Home
last modified time | relevance | path

Searched refs:dev_id (Results 1 – 25 of 44) sorted by relevance

12

/external/bluetooth/bluez/tools/
Dhcitool.c53 static int dev_info(int s, int dev_id, long arg) in dev_info() argument
55 struct hci_dev_info di = { dev_id: dev_id }; in dev_info()
80 static int conn_list(int s, int dev_id, long arg) in conn_list() argument
87 if (id != -1 && dev_id != id) in conn_list()
94 cl->dev_id = dev_id; in conn_list()
117 static int find_conn(int s, int dev_id, long arg) in find_conn() argument
127 cl->dev_id = dev_id; in find_conn()
379 static void cmd_dev(int dev_id, int argc, char **argv) in cmd_dev() argument
414 static void cmd_inq(int dev_id, int argc, char **argv) in cmd_inq() argument
463 num_rsp = hci_inquiry(dev_id, length, num_rsp, lap, &info, flags); in cmd_inq()
[all …]
Dciptool.c131 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 …]
Dhciconfig.c73 di.dev_id = (dr+i)->dev_id; in print_dev_list()
78 int dd = hci_open_dev(di.dev_id); in print_dev_list()
136 dr.dev_id = hdev; in cmd_scan()
205 dr.dev_id = hdev; in cmd_auth()
222 dr.dev_id = hdev; in cmd_encrypt()
275 dr.dev_id = hdev; in cmd_ptype()
293 dr.dev_id = hdev; in cmd_lp()
311 dr.dev_id = hdev; in cmd_lm()
327 struct hci_dev_req dr = { dev_id: hdev }; in cmd_aclmtu()
347 struct hci_dev_req dr = { dev_id: hdev }; in cmd_scomtu()
[all …]
Dhciattach_ti.c499 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()
Davinfo.c626 int opt, sk, dev_id; in main() local
634 dev_id = hci_get_route(&src); in main()
635 if ((dev_id < 0) || (hci_devba(dev_id, &src) < 0)) { in main()
/external/bluetooth/bluez/src/
Ddbus-hci.c167 uint16_t dev_id = adapter_get_dev_id(adapter); in pincode_cb() local
169 dev = hci_open_dev(dev_id); in pincode_cb()
171 error("hci_open_dev(%d): %s (%d)", dev_id, in pincode_cb()
223 uint16_t dev_id = adapter_get_dev_id(adapter); in confirm_cb() local
225 dd = hci_open_dev(dev_id); in confirm_cb()
227 error("Unable to open hci%d", dev_id); in confirm_cb()
252 uint16_t dev_id = adapter_get_dev_id(adapter); in passkey_cb() local
254 dd = hci_open_dev(dev_id); in passkey_cb()
256 error("Unable to open hci%d", dev_id); in passkey_cb()
283 uint16_t dev_id = adapter_get_dev_id(adapter); in pairing_consent_cb() local
[all …]
Dsecurity.c64 int dev_id; member
84 static struct hci_req_data *hci_req_data_new(int dev_id, const bdaddr_t *dba, in hci_req_data_new() argument
97 data->dev_id = dev_id; in hci_req_data_new()
110 const int *dev_id = user_data; in hci_req_find_by_devid() local
112 return (*dev_id - req->dev_id); in hci_req_find_by_devid()
115 static void hci_req_queue_process(int dev_id) in hci_req_queue_process() argument
120 dd = hci_open_dev(dev_id); in hci_req_queue_process()
122 error("hci_open_dev(%d): %s (%d)", dev_id, strerror(errno), in hci_req_queue_process()
129 GSList *l = g_slist_find_custom(hci_req_queue, &dev_id, hci_req_find_by_devid); in hci_req_queue_process()
157 l = g_slist_find_custom(hci_req_queue, &data->dev_id, hci_req_find_by_devid); in hci_req_queue_append()
[all …]
Dmanager.c81 int manager_get_adapter_class(uint16_t dev_id, uint8_t *cls) in manager_get_adapter_class() argument
85 adapter = manager_find_adapter_by_id(dev_id); in manager_get_adapter_class()
135 int dev_id; in find_adapter() local
150 dev_id = atoi(pattern + 3); in find_adapter()
151 adapter = manager_find_adapter_by_id(dev_id); in find_adapter()
291 uint16_t dev_id = adapter_get_dev_id(adapter); in manager_remove_adapter() local
298 if (default_adapter_id == dev_id || default_adapter_id < 0) { in manager_remove_adapter()
327 uint16_t dev_id = adapter_get_dev_id(adapter); in adapter_id_cmp() local
329 return dev_id == id ? 0 : -1; in adapter_id_cmp()
Dadapter.c96 uint16_t dev_id; member
239 dd = hci_open_dev(adapter->dev_id); in set_service_classes()
243 adapter->dev_id, strerror(errno), errno); in set_service_classes()
272 dd = hci_open_dev(adapter->dev_id); in set_major_and_minor_class()
276 adapter->dev_id, strerror(errno), errno); in set_major_and_minor_class()
311 err = adapter_ops->cancel_resolve_name(adapter->dev_id, &dev->bdaddr); in pending_remote_name_cancel()
336 err = adapter_ops->resolve_name(adapter->dev_id, &dev->bdaddr); in adapter_resolve_names()
410 adapter_ops->set_connectable(adapter->dev_id); in discov_timeout_handler()
437 err = adapter_ops->set_powered(adapter->dev_id, TRUE); in set_mode()
443 err = adapter_ops->set_powered(adapter->dev_id, FALSE); in set_mode()
[all …]
Ddbus-common.c96 manager_register_adapter(dr->dev_id, TRUE); in system_bus_reconnect()
122 uint16_t dev_id; in hcid_dbus_unregister() local
144 dev_id = adapter_get_dev_id(adapter); in hcid_dbus_unregister()
145 manager_unregister_adapter(dev_id); in hcid_dbus_unregister()
Dhcid.h81 char *expand_name(char *dst, int size, char *str, int dev_id);
83 void hci_req_queue_remove(int dev_id, bdaddr_t *dba);
Dmanager.h47 int manager_get_adapter_class(uint16_t dev_id, uint8_t *cls);
/external/bluetooth/bluez/compat/
Dhidd.c172 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 …]
Ddun.c192 dev_id: -1 in dun_create_tty()
221 req.dev_id = id; in dun_create_tty()
/external/bluetooth/bluez/rfcomm/
Dmain.c155 req.dev_id = dev; in create_dev()
207 req.dev_id = i; in create_all()
226 req.dev_id = dev; in release_dev()
388 req.dev_id = dev; in cmd_connect()
470 req.dev_id = dev; in cmd_connect()
546 req.dev_id = dev; in cmd_listen()
636 req.dev_id = dev; in cmd_listen()
745 int i, opt, ctl, dev_id, show_all = 0; in main() local
824 dev_id = atoi(argv[1] + 11); in main()
826 dev_id = atoi(argv[1] + 6); in main()
[all …]
/external/bluetooth/bluez/lib/
Dhci.c720 int hci_for_each_dev(int flag, int (*func)(int dd, int dev_id, long arg), long arg) in hci_for_each_dev() argument
724 int dev_id = -1; in hci_for_each_dev() local
749 if (!func || func(sk, dr->dev_id, arg)) { in hci_for_each_dev()
750 dev_id = dr->dev_id; in hci_for_each_dev()
755 if (dev_id < 0) in hci_for_each_dev()
765 return dev_id; in hci_for_each_dev()
768 static int __other_bdaddr(int dd, int dev_id, long arg) in __other_bdaddr() argument
770 struct hci_dev_info di = { dev_id: dev_id }; in __other_bdaddr()
781 static int __same_bdaddr(int dd, int dev_id, long arg) in __same_bdaddr() argument
783 struct hci_dev_info di = { dev_id: dev_id }; in __same_bdaddr()
[all …]
/external/bluetooth/bluez/include/bluetooth/
Dhci_lib.h51 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);
117 int hci_for_each_dev(int flag, int(*func)(int dd, int dev_id, long arg), long arg);
Drfcomm.h70 int16_t dev_id; member
/external/qemu/
Dbt-host.c159 int dev_id = hci_devid(id); in bt_host_hci() local
162 if (dev_id < 0) { in bt_host_hci()
167 fd = hci_open_dev(dev_id); in bt_host_hci()
/external/grub/netboot/
Dotulip.c31 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()
Dnatsemi.c193 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()
Ddavicom.c132 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()
Dconfig.c232 unsigned short dev_id; member
547 if (p->vendor == pt->vendor && p->dev_id == pt->dev_id) in eth_probe()
/external/bluetooth/bluez/plugins/
Dhciops.c185 dr.dev_id = index; in init_device()
306 device_event(HCI_DEV_REG, dr->dev_id); in init_known_adapters()
310 device_event(HCI_DEV_UP, dr->dev_id); in init_known_adapters()
355 device_event(sd->event, sd->dev_id); in io_stack_event()
/external/bluetooth/bluez/common/
Dglib-helper.c711 int dd, dev_id, err; in bt_acl_encrypt() local
717 dev_id = hci_devid(src_addr); in bt_acl_encrypt()
718 if (dev_id < 0) in bt_acl_encrypt()
721 dd = hci_open_dev(dev_id); in bt_acl_encrypt()

12