Home
last modified time | relevance | path

Searched refs:hci (Results 1 – 14 of 14) sorted by relevance

/dragonfly/usr.sbin/bthcid/
H A Dhci.c92 int hci; in init_hci() local
94 hci = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI); in init_hci()
95 if (hci < 0) in init_hci()
102 if (bind(hci, (struct sockaddr *)&sa, sizeof(sa)) < 0) { in init_hci()
103 close(hci); in init_hci()
112 if (setsockopt(hci, BTPROTO_HCI, SO_HCI_EVT_FILTER, in init_hci()
114 close(hci); in init_hci()
118 EV_SET(&change, hci, EVFILT_READ, EV_ADD, 0, 0, NULL); in init_hci()
120 close(hci); in init_hci()
124 return hci; in init_hci()
H A Dclient.c67 int hci; /* HCI socket */ member
210 if (item->hci != -1) { in process_client()
216 send_pin_code_reply(item->hci, &sa, &item->raddr, rp.pin); in process_client()
239 item->hci = -1; in process_client()
251 send_client_request(bdaddr_t *laddr, bdaddr_t *raddr, int hci) in send_client_request() argument
287 item->hci = hci; in send_client_request()
288 EV_SET(&change, item->hci, EVFILT_TIMER, EV_ADD, 0, cp.time * 1000, item); in send_client_request()
309 EV_SET(&change, item->hci, EVFILT_TIMER, EV_DELETE, 0, 0, 0); in process_item()
331 if (item->hci >= 0) in lookup_pin()
338 EV_SET(&change, item->hci, EVFILT_TIMER, EV_DELETE, 0, 0, 0); in lookup_pin()
H A DMakefile6 SRCS= bthcid.c hci.c client.c config.c lexer.l parser.y
/dragonfly/sys/netgraph7/bluetooth/l2cap/
H A Dng_l2cap_llpi.c87 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci)) { in ng_l2cap_lp_con_req()
117 NG_SEND_MSG_HOOK(error, l2cap->node, msg, l2cap->hci, 0); in ng_l2cap_lp_con_req()
235 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci)) { in ng_l2cap_lp_con_ind()
267 NG_SEND_MSG_HOOK(error, l2cap->node, rsp, l2cap->hci, 0); in ng_l2cap_lp_con_ind()
375 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci)) { in ng_l2cap_lp_qos_req()
398 NG_SEND_MSG_HOOK(error, l2cap->node, msg, l2cap->hci, 0); in ng_l2cap_lp_qos_req()
756 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci)) { in ng_l2cap_lp_deliver()
775 NG_SEND_DATA_ONLY(error, l2cap->hci, m); in ng_l2cap_lp_deliver()
887 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci)) { in ng_l2cap_process_discon_timeout()
904 NG_SEND_MSG_HOOK(error, l2cap->node, msg, l2cap->hci, 0); in ng_l2cap_process_discon_timeout()
H A Dng_l2cap_main.c173 h = &l2cap->hci; in ng_l2cap_newhook()
199 if (hook == l2cap->hci) in ng_l2cap_connect()
230 if (hook == l2cap->hci) { in ng_l2cap_disconnect()
232 h = &l2cap->hci; in ng_l2cap_disconnect()
499 (l2cap->hci != NULL)? in ng_l2cap_default_rcvmsg()
714 if (hook == l2cap->hci) in ng_l2cap_rcvdata()
H A Dng_l2cap_var.h91 hook_p hci; /* HCI downstream hook */ member
H A Dng_l2cap_misc.c76 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci) || in ng_l2cap_send_hook_info()
/dragonfly/usr.sbin/btconfig/
H A Dbtconfig.c89 static int hci; variable
237 if (hci == -1) in main()
306 close(hci); in main()
384 if (recv(hci, msg, sizeof(msg), 0) < 0) { in hci_req()
443 if (ioctl(hci, cmd, &btr) == -1) in set_unit()
475 if (ioctl(hci, SIOCSBTFLAGS, &btr) < 0) in config_unit()
486 if (ioctl(hci, SIOCSBTFLAGS, &btr) < 0) in config_unit()
515 if (ioctl(hci, SIOCSBTPOLICY, &btr) < 0) in config_unit()
521 if (ioctl(hci, SIOCSBTPTYPE, &btr) < 0) in config_unit()
720 if (ioctl(hci, SIOCGBTSTATS, &btr) < 0) in print_stats()
[all …]
/dragonfly/sys/netgraph7/bluetooth/
H A DMakefile7 hci \
/dragonfly/sys/netgraph7/bluetooth/hci/
H A DTODO2 $FreeBSD: src/sys/netgraph/bluetooth/hci/TODO,v 1.2 2003/05/10 21:44:40 julian Exp $
H A Dng_hci_main.c94 NETGRAPH_INIT(hci, &typestruct);
/dragonfly/sys/netgraph7/bluetooth/common/
H A Dng_bluetooth.c65 SYSCTL_NODE(_net_bluetooth, OID_AUTO, hci, CTLFLAG_RW,
/dragonfly/sys/netbt/
H A Dbt_proto.c179 SYSCTL_NODE(_net_bluetooth, OID_AUTO, hci, CTLFLAG_RD, 0,
/dragonfly/sys/conf/
H A Dfiles1665 netgraph7/bluetooth/hci/ng_hci_cmds.c optional netgraph7_bluetooth_hci
1666 netgraph7/bluetooth/hci/ng_hci_evnt.c optional netgraph7_bluetooth_hci
1667 netgraph7/bluetooth/hci/ng_hci_main.c optional netgraph7_bluetooth_hci
1668 netgraph7/bluetooth/hci/ng_hci_misc.c optional netgraph7_bluetooth_hci
1669 netgraph7/bluetooth/hci/ng_hci_ulpi.c optional netgraph7_bluetooth_hci