Home | History | Annotate | Download | only in src

Lines Matching defs:dba

68 	bdaddr_t dba;
85 static struct hci_req_data *hci_req_data_new(int dev_id, const bdaddr_t *dba,
96 bacpy(&data->dba, dba);
169 void hci_req_queue_remove(int dev_id, bdaddr_t *dba)
177 if ((req->dev_id != dev_id) || (bacmp(&req->dba, dba)))
216 static int get_handle(int dev, bdaddr_t *sba, bdaddr_t *dba, uint16_t *handle)
236 if (bacmp(&ci->bdaddr, dba) == 0) {
248 static inline int get_bdaddr(int dev, bdaddr_t *sba, uint16_t handle, bdaddr_t *dba)
269 bacpy(dba, &ci->bdaddr);
279 static inline void update_lastseen(bdaddr_t *sba, bdaddr_t *dba)
287 write_lastseen_info(sba, dba, tm);
290 static inline void update_lastused(bdaddr_t *sba, bdaddr_t *dba)
298 write_lastused_info(sba, dba, tm);
303 static void link_key_request(int dev, bdaddr_t *sba, bdaddr_t *dba)
313 if (!get_adapter_and_device(sba, dba, &adapter, &device, FALSE))
316 ba2str(sba, sa); ba2str(dba, da);
317 info("link_key_request (sba=%s, dba=%s)", sa, da);
320 bacpy(&req.bdaddr, dba);
334 else if (read_link_key(sba, dba, key, &type) < 0 || type == 0x03) {
336 hci_send_cmd(dev, OGF_LINK_CTL, OCF_LINK_KEY_NEG_REPLY, 6, dba);
348 6, dba);
353 bacpy(&lr.bdaddr, dba);
363 bdaddr_t *dba = &evt->bdaddr;
369 ba2str(sba, sa); ba2str(dba, da);
370 info("link_key_notify (sba=%s, dba=%s, type=%d)", sa, da,
373 err = read_link_key(sba, dba, old_key, &old_key_type);
381 err = hcid_dbus_link_key_notify(sba, dba, evt->link_key,
392 hcid_dbus_bonding_process_complete(sba, dba,
395 hcid_dbus_bonding_process_complete(sba, dba,
398 if (get_handle(dev, sba, dba, &handle) == 0) {
417 bdaddr_t dba;
424 bacpy(&dba, ptr); ba2str(&dba, da);
427 info("return_link_keys (sba=%s, dba=%s)", sa, da);
429 hcid_dbus_returned_link_key(sba, &dba);
472 static void io_capa_request(int dev, bdaddr_t *sba, bdaddr_t *dba)
477 ba2str(dba, da);
478 info("io_capa_request (sba=%s, dba=%s)", sa, da);
480 if (hcid_dbus_get_io_cap(sba, dba) < 0) {
483 bacpy(&cp.bdaddr, dba);
496 info("io_capa_response (sba=%s, dba=%s)", sa, da);
516 static void pin_code_request(int dev, bdaddr_t *sba, bdaddr_t *dba)
525 bacpy(&pr.bdaddr, dba);
527 ba2str(sba, sa); ba2str(dba, da);
528 info("pin_code_request (sba=%s, dba=%s)", sa, da);
532 bacpy(&cr->bdaddr, dba);
541 pinlen = read_pin_code(sba, dba, pin);
562 hci_send_cmd(dev, OGF_LINK_CTL, OCF_PIN_CODE_NEG_REPLY, 6, dba);
727 bdaddr_t dba;
731 bacpy(&dba, &evt->bdaddr);
740 write_device_name(sba, &dba, name);
743 hcid_dbus_remote_name(sba, &dba, evt->status, name);
749 bdaddr_t dba;
754 if (get_bdaddr(dev, sba, btohs(evt->handle), &dba) < 0)
757 write_version_info(sba, &dba, btohs(evt->manufacturer),
845 bdaddr_t dba;
850 if (get_bdaddr(dev, sba, btohs(evt->handle), &dba) < 0)
853 write_features_info(sba, &dba, evt->features, NULL);
922 bdaddr_t dba;
924 if (get_bdaddr(dev, sba, btohs(evt->handle), &dba) < 0)
927 hcid_dbus_bonding_process_complete(sba, &dba, evt->status);