/external/bluetooth/bluez/tools/ |
D | hcitool.c | 60 static int dev_info(int s, int dev_id, long arg) in dev_info() argument 62 struct hci_dev_info di = { dev_id: dev_id }; in dev_info() 114 static int conn_list(int s, int dev_id, long arg) in conn_list() argument 121 if (id != -1 && dev_id != id) in conn_list() 128 cl->dev_id = dev_id; in conn_list() 152 static int find_conn(int s, int dev_id, long arg) in find_conn() argument 162 cl->dev_id = dev_id; in find_conn() 417 static void cmd_dev(int dev_id, int argc, char **argv) in cmd_dev() argument 453 static void cmd_inq(int dev_id, int argc, char **argv) in cmd_inq() argument 503 num_rsp = hci_inquiry(dev_id, length, num_rsp, lap, &info, flags); in cmd_inq() [all …]
|
D | ciptool.c | 131 static int do_connect(int ctl, int dev_id, bdaddr_t *src, bdaddr_t *dst, unsigned short psm, uint32… in do_connect() argument 140 hci_devinfo(dev_id, &di); in do_connect() 229 int i, dev_id, num_rsp, length, flags; in cmd_search() local 234 dev_id = hci_devid(addr); in cmd_search() 235 if (dev_id < 0) { in cmd_search() 236 dev_id = hci_get_route(NULL); in cmd_search() 237 hci_devba(dev_id, &src); in cmd_search() 247 num_rsp = hci_inquiry(dev_id, length, num_rsp, NULL, &info, flags); in cmd_search() 262 do_connect(ctl, dev_id, &src, &dst, psm, 0); in cmd_search() 276 int dev_id; in cmd_create() local [all …]
|
D | hciattach_ti.c | 499 int dev_id, dd, ret = 0; in texas_post() local 503 dev_id = ioctl(fd, HCIUARTGETDEVICE, 0); in texas_post() 504 if (dev_id < 0) { in texas_post() 509 DPRINTF("\nAdded device hci%d\n", dev_id); in texas_post() 511 dd = hci_open_dev(dev_id); in texas_post() 517 if (ioctl(dd, HCIDEVUP, dev_id) < 0 && errno != EALREADY) { in texas_post() 518 fprintf(stderr, "Can't init device hci%d: %s (%d)", dev_id, in texas_post()
|
D | rfcomm.c | 157 req.dev_id = dev; in create_dev() 209 req.dev_id = i; in create_all() 228 req.dev_id = dev; in release_dev() 392 req.dev_id = dev; in cmd_connect() 474 req.dev_id = dev; in cmd_connect() 550 req.dev_id = dev; in cmd_listen() 640 req.dev_id = dev; in cmd_listen() 749 int i, opt, ctl, dev_id, show_all = 0; in main() local 828 dev_id = atoi(argv[1] + 11); in main() 830 dev_id = atoi(argv[1] + 6); in main() [all …]
|
D | hciconfig.c | 74 di.dev_id = (dr+i)->dev_id; in print_dev_list() 79 int dd = hci_open_dev(di.dev_id); in print_dev_list() 182 dr.dev_id = hdev; in cmd_scan() 384 dr.dev_id = hdev; in cmd_auth() 401 dr.dev_id = hdev; in cmd_encrypt() 454 dr.dev_id = hdev; in cmd_ptype() 472 dr.dev_id = hdev; in cmd_lp() 490 dr.dev_id = hdev; in cmd_lm() 506 struct hci_dev_req dr = { dev_id: hdev }; in cmd_aclmtu() 526 struct hci_dev_req dr = { dev_id: hdev }; in cmd_scomtu() [all …]
|
/external/bluetooth/bluez/compat/ |
D | hidd.c | 172 int err, dd, dev_id; in request_authentication() local 175 dev_id = hci_devid(addr); in request_authentication() 176 if (dev_id < 0) in request_authentication() 177 return dev_id; in request_authentication() 179 dd = hci_open_dev(dev_id); in request_authentication() 208 int err, dd, dev_id; in request_encryption() local 211 dev_id = hci_devid(addr); in request_encryption() 212 if (dev_id < 0) in request_encryption() 213 return dev_id; in request_encryption() 215 dd = hci_open_dev(dev_id); in request_encryption() [all …]
|
/external/bluetooth/bluez/src/ |
D | manager.c | 91 int dev_id; in find_adapter() local 106 dev_id = atoi(pattern + 3); in find_adapter() 107 adapter = manager_find_adapter_by_id(dev_id); in find_adapter() 267 uint16_t dev_id = adapter_get_dev_id(adapter); in manager_remove_adapter() local 274 if (default_adapter_id == dev_id || default_adapter_id < 0) { in manager_remove_adapter() 303 uint16_t dev_id = adapter_get_dev_id(adapter); in adapter_id_cmp() local 305 return dev_id == id ? 0 : -1; in adapter_id_cmp()
|
D | adapter.c | 110 uint16_t dev_id; member 195 static char *expand_name(char *dst, int size, char *str, int dev_id) in expand_name() argument 215 sprintf(buf, "%d", dev_id); in expand_name() 273 return adapter_ops->set_dev_class(adapter->dev_id, major, minor); in btd_adapter_set_class() 290 err = adapter_ops->cancel_resolve_name(adapter->dev_id, &dev->bdaddr); in pending_remote_name_cancel() 322 err = adapter_ops->resolve_name(adapter->dev_id, &dev->bdaddr); in adapter_resolve_names() 380 adapter_ops->set_limited_discoverable(adapter->dev_id, limited); in adapter_set_limited_discoverable() 470 err = adapter_ops->set_discoverable(adapter->dev_id, FALSE); in adapter_set_mode() 472 err = adapter_ops->set_discoverable(adapter->dev_id, TRUE); in adapter_set_mode() 510 err = adapter_ops->set_powered(adapter->dev_id, TRUE); in set_mode() [all …]
|
/external/bluetooth/bluez/lib/bluetooth/ |
D | hci_lib.h | 51 int hci_open_dev(int dev_id); 59 int hci_inquiry(int dev_id, int len, int num_rsp, const uint8_t *lap, inquiry_info **ii, long flags… 60 int hci_devinfo(int dev_id, struct hci_dev_info *di); 61 int hci_devba(int dev_id, bdaddr_t *bdaddr); 118 int hci_le_set_scan_enable(int dev_id, uint8_t enable, uint8_t filter_dup, int to); 119 int hci_le_set_scan_parameters(int dev_id, uint8_t type, uint16_t interval, 122 int hci_le_set_advertise_enable(int dev_id, uint8_t enable, int to); 138 int hci_for_each_dev(int flag, int(*func)(int dd, int dev_id, long arg), long arg);
|
/external/bluetooth/bluez/test/ |
D | test-nap | 21 if options.dev_id: 22 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-audio | 19 if options.dev_id: 20 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-input | 19 if options.dev_id: 20 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-service | 20 if options.dev_id: 21 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-network | 21 if options.dev_id: 22 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-serial | 20 if options.dev_id: 21 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-discovery | 38 if options.dev_id: 39 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-attrib | 29 if options.dev_id: 30 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-adapter | 20 if options.dev_id: 21 adapter_path = manager.FindAdapter(options.dev_id)
|
D | test-telephony | 19 if options.dev_id: 20 adapter_path = manager.FindAdapter(options.dev_id)
|
/external/qemu/ |
D | bt-host.c | 150 int dev_id = hci_devid(id); in bt_host_hci() local 153 if (dev_id < 0) { in bt_host_hci() 158 fd = hci_open_dev(dev_id); in bt_host_hci()
|
/external/bluetooth/bluez/lib/ |
D | hci.c | 812 int hci_for_each_dev(int flag, int (*func)(int dd, int dev_id, long arg), in hci_for_each_dev() argument 817 int dev_id = -1; in hci_for_each_dev() local 842 if (!func || func(sk, dr->dev_id, arg)) { in hci_for_each_dev() 843 dev_id = dr->dev_id; in hci_for_each_dev() 848 if (dev_id < 0) in hci_for_each_dev() 858 return dev_id; in hci_for_each_dev() 861 static int __other_bdaddr(int dd, int dev_id, long arg) in __other_bdaddr() argument 863 struct hci_dev_info di = { dev_id: dev_id }; in __other_bdaddr() 874 static int __same_bdaddr(int dd, int dev_id, long arg) in __same_bdaddr() argument 876 struct hci_dev_info di = { dev_id: dev_id }; in __same_bdaddr() [all …]
|
/external/grub/netboot/ |
D | otulip.c | 31 static unsigned short vendor, dev_id; variable 199 if (vendor == PCI_VENDOR_ID_MACRONIX && dev_id == PCI_DEVICE_ID_MX987x5) { in tulip_reset() 348 dev_id = pci->dev_id; in otulip_probe()
|
D | natsemi.c | 193 static unsigned short vendor, dev_id; variable 262 dev_id = pci->dev_id; in natsemi_probe() 290 printf("natsemi_probe: Vendor:%#hX Device:%#hX\n", vendor, dev_id); in natsemi_probe()
|
D | davicom.c | 132 static unsigned short vendor, dev_id; variable 370 if (vendor == PCI_VENDOR_ID_DAVICOM && dev_id == PCI_DEVICE_ID_DM9009) { in davicom_media_chk() 659 dev_id = pci->dev_id; in davicom_probe()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_group.c | 528 const u8 *dev_id) in p2p_group_get_client() argument 533 if (os_memcmp(dev_id, m->dev_addr, ETH_ALEN) == 0) in p2p_group_get_client() 582 int p2p_group_go_discover(struct p2p_group *group, const u8 *dev_id, in p2p_group_go_discover() argument 590 m = p2p_group_get_client(group, dev_id); in p2p_group_go_discover() 605 "sent to " MACSTR, MAC2STR(dev_id)); in p2p_group_go_discover()
|