Lines Matching refs:dev_id
131 static int do_connect(int ctl, int dev_id, bdaddr_t *src, bdaddr_t *dst, unsigned short psm, uint32_t flags)
140 hci_devinfo(dev_id, &di);
229 int i, dev_id, num_rsp, length, flags;
234 dev_id = hci_devid(addr);
235 if (dev_id < 0) {
236 dev_id = hci_get_route(NULL);
237 hci_devba(dev_id, &src);
247 num_rsp = hci_inquiry(dev_id, length, num_rsp, NULL, &info, flags);
262 do_connect(ctl, dev_id, &src, &dst, psm, 0);
276 int dev_id;
285 dev_id = hci_devid(addr);
286 if (dev_id < 0) {
287 dev_id = hci_get_route(&dst);
288 hci_devba(dev_id, &src);
298 do_connect(ctl, dev_id, &src, &dst, psm, 0);
342 int dev_id, sk;
351 dev_id = hci_devid(addr);
352 if (dev_id < 0) {
353 dev_id = hci_get_route(&dst);
354 hci_devba(dev_id, &src);
367 sk = do_connect(ctl, dev_id, &src, &dst, psm, (1 << CMTP_LOOPBACK));