• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/netgraph/bluetooth/l2cap/

Lines Matching refs:l2cap

47 #include <netgraph/bluetooth/l2cap/ng_l2cap_var.h>
48 #include <netgraph/bluetooth/l2cap/ng_l2cap_cmds.h>
49 #include <netgraph/bluetooth/l2cap/ng_l2cap_evnt.h>
50 #include <netgraph/bluetooth/l2cap/ng_l2cap_llpi.h>
51 #include <netgraph/bluetooth/l2cap/ng_l2cap_ulpi.h>
52 #include <netgraph/bluetooth/l2cap/ng_l2cap_misc.h>
69 ng_l2cap_p l2cap = NULL;
78 l2cap = (ng_l2cap_p) NG_NODE_PRIVATE(node);
79 if (l2cap->hci == NULL || NG_HOOK_NOT_VALID(l2cap->hci) ||
80 bcmp(&l2cap->bdaddr, NG_HCI_BDADDR_ANY, sizeof(l2cap->bdaddr)) == 0)
88 bcopy(&l2cap->bdaddr, &ep->addr, sizeof(bdaddr_t));
96 __func__, NG_NODE_NAME(l2cap->node), NG_HOOK_NAME(hook),
102 * Will link connection descriptor to the l2cap node.
106 ng_l2cap_new_con(ng_l2cap_p l2cap, bdaddr_p bdaddr, int type)
117 con->l2cap = l2cap;
146 LIST_INSERT_HEAD(&l2cap->con_list, con, next);
165 __func__, NG_NODE_NAME(con->l2cap->node),
183 "%s: %s - con->refcnt < 0\n", __func__, NG_NODE_NAME(con->l2cap->node));
197 (con->l2cap->discon_timo > 0) &&
213 __func__, NG_NODE_NAME(con->l2cap->node),
217 ng_callout(&con->con_timo, con->l2cap->node, NULL,
218 con->l2cap->discon_timo * hz,
235 __func__, NG_NODE_NAME(con->l2cap->node),
238 if (ng_uncallout(&con->con_timo, con->l2cap->node) == 0)
266 for (f = LIST_FIRST(&con->l2cap->chan_list); f != NULL; ) {
287 __func__, NG_NODE_NAME(con->l2cap->node),
301 ng_l2cap_con_by_addr(ng_l2cap_p l2cap, bdaddr_p bdaddr, unsigned int type)
305 LIST_FOREACH(con, &l2cap->con_list, next)
318 ng_l2cap_con_by_handle(ng_l2cap_p l2cap, u_int16_t con_handle)
322 LIST_FOREACH(con, &l2cap->con_list, next)
331 * Will link the channel to the l2cap node
335 ng_l2cap_new_chan(ng_l2cap_p l2cap, ng_l2cap_con_p con, u_int16_t psm, int idtype)
348 ch->scid = ng_l2cap_get_cid(l2cap,
369 LIST_INSERT_HEAD(&l2cap->chan_list, ch, next);
383 ng_l2cap_chan_by_scid(ng_l2cap_p l2cap, u_int16_t scid, int idtype)
392 LIST_FOREACH(ch, &l2cap->chan_list, next){
406 ng_l2cap_chan_by_conhandle(ng_l2cap_p l2cap, uint16_t scid,
412 LIST_FOREACH(ch, &l2cap->chan_list, next){
464 __func__, NG_NODE_NAME(con->l2cap->node)));
494 __func__, NG_NODE_NAME(con->l2cap->node)));
514 __func__, NG_NODE_NAME(con->l2cap->node),
518 ng_callout(&con->con_timo, con->l2cap->node, NULL,
536 __func__, NG_NODE_NAME(con->l2cap->node),
539 if (ng_uncallout(&con->con_timo, con->l2cap->node) == 0)
560 __func__, NG_NODE_NAME(cmd->con->l2cap->node),
565 ng_callout(&cmd->timo, cmd->con->l2cap->node, NULL, timo,
581 __func__, NG_NODE_NAME(cmd->con->l2cap->node),
584 if (ng_uncallout(&cmd->timo, cmd->con->l2cap->node) == 0)
632 ng_l2cap_get_cid(ng_l2cap_p l2cap,int isle)
639 endcid = l2cap->lecid;
644 endcid = l2cap->cid;
655 if (ng_l2cap_chan_by_scid(l2cap, cid, idtype) == NULL) {
657 l2cap->cid = cid;
659 l2cap->lecid = cid;