/external/bluetooth/bluez/test/ |
D | bdaddr.c | 45 bdaddr_t bdaddr; in generic_reset_device() local 52 return hci_read_bd_addr(dd, &bdaddr, 10000); in generic_reset_device() 57 bdaddr_t bdaddr; member 61 static int ericsson_write_bd_addr(int dd, bdaddr_t *bdaddr) in ericsson_write_bd_addr() argument 67 bacpy(&cp.bdaddr, bdaddr); in ericsson_write_bd_addr() 116 static int csr_write_bd_addr(int dd, bdaddr_t *bdaddr) in csr_write_bd_addr() argument 128 cmd[16] = bdaddr->b[2]; in csr_write_bd_addr() 130 cmd[18] = bdaddr->b[0]; in csr_write_bd_addr() 131 cmd[19] = bdaddr->b[1]; in csr_write_bd_addr() 132 cmd[20] = bdaddr->b[3]; in csr_write_bd_addr() [all …]
|
D | attest.c | 101 static int open_socket(bdaddr_t *bdaddr, uint8_t channel) in open_socket() argument 126 bacpy(&addr.rc_bdaddr, bdaddr); in open_socket() 148 bdaddr_t bdaddr; in main() local 153 str2ba(argv[1], &bdaddr); in main() 157 str2ba(argv[1], &bdaddr); in main() 165 if (bacmp(BDADDR_ANY, &bdaddr)) { in main() 167 fd = open_socket(&bdaddr, channel); in main()
|
D | hciemu.c | 74 bdaddr_t bdaddr; member 87 bdaddr_t bdaddr; member 321 bacpy(&cr->bdaddr, &conn->dest); in connect_request() 349 bacpy(&cc->bdaddr, &conn->dest); in connect_complete() 447 baswap(&ba, &vdev.bdaddr); in scan_enable() 478 if (!(conn = conn_get_by_bdaddr(&cp->bdaddr))) in accept_connection() 546 baswap(&ba, &vdev.bdaddr); in create_connection() 557 baswap(&ba, &cp->bdaddr); in create_connection() 570 bacpy(&info.bdaddr, &vdev.bdaddr); in create_connection() 791 bacpy(&ba.bdaddr, &vdev.bdaddr); in hci_info_param() [all …]
|
/external/bluetooth/bluez/src/ |
D | adapter.h | 60 bdaddr_t bdaddr; member 67 bdaddr_t bdaddr; member 105 void adapter_get_address(struct btd_adapter *adapter, bdaddr_t *bdaddr); 111 void adapter_update_found_devices(struct btd_adapter *adapter, bdaddr_t *bdaddr, 114 int adapter_remove_found_device(struct btd_adapter *adapter, bdaddr_t *bdaddr); 178 int (*resolve_name) (int index, bdaddr_t *bdaddr); 179 int (*cancel_resolve_name) (int index, bdaddr_t *bdaddr); 183 int (*read_clock) (int index, bdaddr_t *bdaddr, int which, int timeout, 185 int (*read_bdaddr) (int index, bdaddr_t *bdaddr); 186 int (*block_device) (int index, bdaddr_t *bdaddr); [all …]
|
D | adapter.c | 113 bdaddr_t bdaddr; /* adapter Bluetooth Address */ member 166 if (bacmp(&d2->bdaddr, BDADDR_ANY)) { in found_device_cmp() 167 ret = bacmp(&d1->bdaddr, &d2->bdaddr); in found_device_cmp() 283 bacpy(&match.bdaddr, BDADDR_ANY); in pending_remote_name_cancel() 290 err = adapter_ops->cancel_resolve_name(adapter->dev_id, &dev->bdaddr); in pending_remote_name_cancel() 310 bacpy(&match.bdaddr, BDADDR_ANY); in adapter_resolve_names() 322 err = adapter_ops->resolve_name(adapter->dev_id, &dev->bdaddr); in adapter_resolve_names() 332 adapter_remove_found_device(adapter, &dev->bdaddr); in adapter_resolve_names() 355 static uint8_t get_mode(const bdaddr_t *bdaddr, const char *mode) in get_mode() argument 366 ba2str(bdaddr, srcaddr); in get_mode() [all …]
|
D | storage.h | 28 int write_discoverable_timeout(bdaddr_t *bdaddr, int timeout); 30 int write_pairable_timeout(bdaddr_t *bdaddr, int timeout); 32 int write_device_mode(bdaddr_t *bdaddr, const char *mode); 35 int write_local_name(bdaddr_t *bdaddr, const char *name); 36 int read_local_name(bdaddr_t *bdaddr, char *name); 37 int write_local_class(bdaddr_t *bdaddr, uint8_t *class); 38 int read_local_class(bdaddr_t *bdaddr, uint8_t *class);
|
D | device.c | 108 bdaddr_t bdaddr; member 183 bt_cancel_discovery(&src, &device->bdaddr); in browse_request_cancel() 256 ba2str(&device->bdaddr, dstaddr); in get_properties() 293 if (read_remote_class(&src, &device->bdaddr, &class) == 0) { in get_properties() 358 ba2str(&device->bdaddr, dstaddr); in set_alias() 390 ba2str(&device->bdaddr, dstaddr); in set_trust() 419 btd_adapter_disconnect_device(device->adapter, &device->bdaddr); in do_disconnect() 437 err = btd_adapter_block_address(device->adapter, &device->bdaddr); in device_block() 445 err = write_blocked(&src, &device->bdaddr, TRUE); in device_block() 466 err = btd_adapter_unblock_address(device->adapter, &device->bdaddr); in device_unblock() [all …]
|
/external/bluetooth/bluez/lib/bluetooth/ |
D | mgmt.h | 66 bdaddr_t bdaddr; member 110 bdaddr_t bdaddr; member 125 bdaddr_t bdaddr; member 131 bdaddr_t bdaddr; member 134 bdaddr_t bdaddr; member 145 bdaddr_t bdaddr; member 152 bdaddr_t bdaddr; member 162 bdaddr_t bdaddr; member 166 bdaddr_t bdaddr; member 172 bdaddr_t bdaddr; member [all …]
|
D | hci.h | 328 bdaddr_t bdaddr; member 348 bdaddr_t bdaddr; member 373 bdaddr_t bdaddr; member 379 bdaddr_t bdaddr; member 386 bdaddr_t bdaddr; member 393 bdaddr_t bdaddr; member 402 bdaddr_t bdaddr; member 444 bdaddr_t bdaddr; member 453 bdaddr_t bdaddr; member 498 bdaddr_t bdaddr; member [all …]
|
D | hci_lib.h | 56 int hci_create_connection(int dd, const bdaddr_t *bdaddr, uint16_t ptype, uint16_t clkoffset, uint8… 61 int hci_devba(int dev_id, bdaddr_t *bdaddr); 66 int hci_read_remote_name(int dd, const bdaddr_t *bdaddr, int len, char *name, int to); 67 int hci_read_remote_name_with_clock_offset(int dd, const bdaddr_t *bdaddr, uint8_t pscan_rep_mode, … 68 int hci_read_remote_name_cancel(int dd, const bdaddr_t *bdaddr, int to); 77 int hci_read_bd_addr(int dd, bdaddr_t *bdaddr, int to); 84 int hci_read_stored_link_key(int dd, bdaddr_t *bdaddr, uint8_t all, int to); 85 int hci_write_stored_link_key(int dd, bdaddr_t *bdaddr, uint8_t *key, int to); 86 int hci_delete_stored_link_key(int dd, bdaddr_t *bdaddr, uint8_t all, int to); 90 int hci_switch_role(int dd, bdaddr_t *bdaddr, uint8_t role, int to); [all …]
|
/external/bluetooth/bluez/cups/ |
D | main.c | 47 char *bdaddr; member 191 static void print_printer_details(const char *name, const char *bdaddr, in print_printer_details() argument 198 bdaddr[0], bdaddr[1], in print_printer_details() 199 bdaddr[3], bdaddr[4], in print_printer_details() 200 bdaddr[6], bdaddr[7], in print_printer_details() 201 bdaddr[9], bdaddr[10], in print_printer_details() 202 bdaddr[12], bdaddr[13], in print_printer_details() 203 bdaddr[15], bdaddr[16]); in print_printer_details() 213 static void add_device_to_list(const char *name, const char *bdaddr, in add_device_to_list() argument 223 if (strcmp(device->bdaddr, bdaddr) == 0) { in add_device_to_list() [all …]
|
/external/bluetooth/bluez/plugins/ |
D | mgmtops.c | 59 bdaddr_t bdaddr; member 222 adapter = manager_find_adapter(&info->bdaddr); in mgmt_update_powered() 299 adapter = manager_find_adapter(&info->bdaddr); in mgmt_discoverable() 337 adapter = manager_find_adapter(&info->bdaddr); in mgmt_connectable() 374 adapter = manager_find_adapter(&info->bdaddr); in mgmt_pairable() 409 btd_event_link_key_notify(&info->bdaddr, &ev->key.bdaddr, in mgmt_new_key() 413 btd_event_bonding_complete(&info->bdaddr, &ev->key.bdaddr, 0); in mgmt_new_key() 427 ba2str(&ev->bdaddr, addr); in mgmt_device_connected() 438 btd_event_conn_complete(&info->bdaddr, &ev->bdaddr); in mgmt_device_connected() 453 ba2str(&ev->bdaddr, addr); in mgmt_device_disconnected() [all …]
|
D | hciops.c | 90 bdaddr_t bdaddr; member 103 bdaddr_t bdaddr; member 112 bdaddr_t bdaddr; member 453 adapter = manager_find_adapter(&devs[index].bdaddr); in hciops_set_pairable() 600 adapter = manager_find_adapter(&dev->bdaddr); in init_adapter() 652 bacpy(&cr->bdaddr, dst); in hciops_encrypt_link() 750 const bdaddr_t *bdaddr = b; in conn_bdaddr_cmp() local 752 return bacmp(&conn->bdaddr, bdaddr); in conn_bdaddr_cmp() 755 static struct bt_conn *find_connection(struct dev_info *dev, bdaddr_t *bdaddr) in find_connection() argument 759 match = g_slist_find_custom(dev->connections, bdaddr, conn_bdaddr_cmp); in find_connection() [all …]
|
D | dbusoob.c | 136 bdaddr_t bdaddr; in add_remote_data() local 148 str2ba(addr, &bdaddr); in add_remote_data() 150 if (btd_adapter_add_remote_oob_data(adapter, &bdaddr, hash, randomizer)) in add_remote_data() 161 bdaddr_t bdaddr; in remove_remote_data() local 170 str2ba(addr, &bdaddr); in remove_remote_data() 172 if (btd_adapter_remove_remote_oob_data(adapter, &bdaddr)) in remove_remote_data()
|
/external/bluetooth/bluez/tools/ |
D | hcitool.c | 68 ba2str(&di.bdaddr, addr); in dev_info() 140 ba2str(&ci->bdaddr, addr); in conn_list() 172 if (!bacmp((bdaddr_t *) arg, &ci->bdaddr)) { in find_conn() 510 ba2str(&(info+i)->bdaddr, addr); in cmd_inq() 652 tmp = get_device_name(&di.bdaddr, &(info+i)->bdaddr); in cmd_scan() 663 ba2str(&(info+i)->bdaddr, addr); in cmd_scan() 671 &(info+i)->bdaddr, in cmd_scan() 688 ba2str(&(info+i)->bdaddr, addr); in cmd_scan() 693 ba2oui(&(info+i)->bdaddr, oui); in cmd_scan() 706 bacpy(&cr->bdaddr, &(info+i)->bdaddr); in cmd_scan() [all …]
|
D | ciptool.c | 201 static void cmd_show(int ctl, bdaddr_t *bdaddr, int argc, char **argv) in cmd_show() argument 217 ba2str(&ci[i].bdaddr, addr); in cmd_show() 224 static void cmd_search(int ctl, bdaddr_t *bdaddr, int argc, char **argv) in cmd_search() argument 233 ba2str(bdaddr, addr); in cmd_search() 239 bacpy(&src, bdaddr); in cmd_search() 252 bacpy(&dst, &(info+i)->bdaddr); in cmd_search() 272 static void cmd_create(int ctl, bdaddr_t *bdaddr, int argc, char **argv) in cmd_create() argument 284 ba2str(bdaddr, addr); in cmd_create() 290 bacpy(&src, bdaddr); in cmd_create() 301 static void cmd_release(int ctl, bdaddr_t *bdaddr, int argc, char **argv) in cmd_release() argument [all …]
|
D | rfcomm.c | 151 static int create_dev(int ctl, int dev, uint32_t flags, bdaddr_t *bdaddr, int argc, char **argv) in create_dev() argument 159 bacpy(&req.src, bdaddr); in create_dev() 168 bacpy(&req.dst, &rfcomm_opts[dev].bdaddr); in create_dev() 212 bacpy(&req.dst, &rfcomm_opts[i].bdaddr); in create_all() 317 static void cmd_connect(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **argv) in cmd_connect() argument 330 bacpy(&laddr.rc_bdaddr, bdaddr); in cmd_connect() 340 bacpy(&raddr.rc_bdaddr, &rfcomm_opts[dev].bdaddr); in cmd_connect() 481 static void cmd_listen(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **argv) in cmd_listen() argument 494 bacpy(&laddr.rc_bdaddr, bdaddr); in cmd_listen() 647 static void cmd_watch(int ctl, int dev, bdaddr_t *bdaddr, int argc, char **argv) in cmd_watch() argument [all …]
|
D | hciattach.h | 51 int stlc2500_init(int fd, bdaddr_t *bdaddr); 52 int bgb2xx_init(int dd, bdaddr_t *bdaddr); 53 int ath3k_init(int fd, int speed, int init_speed, char *bdaddr, 56 int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr);
|
D | ppporc.c | 111 static int create_connection(bdaddr_t *bdaddr, uint8_t channel) in create_connection() argument 129 bacpy(&remote_addr.rc_bdaddr, bdaddr); in create_connection() 212 bdaddr_t bdaddr; in main() local 229 str2ba(argv[0], &bdaddr); in main() 233 str2ba(argv[0], &bdaddr); in main() 261 if ((fd = create_connection(&bdaddr, channel)) < 0) { in main()
|
D | parser.y | 52 bdaddr_t *bdaddr; member 60 %token <bdaddr> BDADDR 111 bacpy(&opts->bdaddr, $2); 149 bacpy(&rfcomm_opts[i].bdaddr, BDADDR_ANY); in rfcomm_read_config()
|
D | hciattach_qualcomm.c | 135 bdaddr_t bdaddr; in qualcomm_load_firmware() local 137 str2ba(bdaddr_s, &bdaddr); in qualcomm_load_firmware() 138 memcpy(&data[3], &bdaddr, sizeof(bdaddr_t)); in qualcomm_load_firmware() 167 int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr) in qualcomm_init() argument 249 qualcomm_load_firmware(fd, fw, bdaddr); in qualcomm_init()
|
/external/bluetooth/bluez/compat/ |
D | hidd.c | 114 static int l2cap_listen(const bdaddr_t *bdaddr, unsigned short psm, int lm, int backlog) in l2cap_listen() argument 125 bacpy(&addr.l2_bdaddr, bdaddr); in l2cap_listen() 150 static int l2cap_accept(int sk, bdaddr_t *bdaddr) in l2cap_accept() argument 162 if (bdaddr) in l2cap_accept() 163 bacpy(bdaddr, &addr.l2_bdaddr); in l2cap_accept() 187 bacpy(&cr->bdaddr, dst); in request_authentication() 223 bacpy(&cr->bdaddr, dst); in request_encryption() 438 ba2str(&ci[i].bdaddr, addr); in do_show() 534 static void do_search(int ctl, bdaddr_t *bdaddr, uint8_t subclass, int fakehid, int bootonly, int e… in do_search() argument 542 ba2str(bdaddr, addr); in do_search() [all …]
|
D | dund.c | 82 bdaddr_t bdaddr; member 99 static int create_connection(char *dst, bdaddr_t *bdaddr, int mrouter); 110 if (create_connection(cache.dst, &cache.bdaddr, type) < 0) { in do_listen() 219 static int create_connection(char *dst, bdaddr_t *bdaddr, int mrouter) in create_connection() argument 231 if (dun_sdp_search(&src_addr, bdaddr, &ch, mrouter) <= 0) in create_connection() 254 sa.rc_bdaddr = *bdaddr; in create_connection() 286 bacpy(&cache.bdaddr, bdaddr); in create_connection() 318 r = create_connection(cache.dst, &cache.bdaddr, 0); in do_connect() 339 ba2str(&ii[i].bdaddr, dst); in do_connect() 341 r = create_connection(dst, &ii[i].bdaddr, 0); in do_connect() [all …]
|
/external/qemu/hw/ |
D | bt.h | 454 bdaddr_t bdaddr; member 474 bdaddr_t bdaddr; member 500 bdaddr_t bdaddr; member 506 bdaddr_t bdaddr; member 512 bdaddr_t bdaddr; member 519 bdaddr_t bdaddr; member 526 bdaddr_t bdaddr; member 535 bdaddr_t bdaddr; member 577 bdaddr_t bdaddr; member 586 bdaddr_t bdaddr; member [all …]
|
/external/bluetooth/hcidump/src/ |
D | csrsniff.c | 160 bdaddr_t bdaddr, master, slave; in main() local 225 if (!bacmp(&di.bdaddr, BDADDR_ANY)) { in main() 226 if (hci_read_bd_addr(dd, &bdaddr, 1000) < 0) { in main() 233 bacpy(&bdaddr, &di.bdaddr); in main()
|