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

Lines Matching defs: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);
382 ng_l2cap_chan_by_scid(ng_l2cap_p l2cap, u_int16_t scid, int idtype)
391 LIST_FOREACH(ch, &l2cap->chan_list, next){
405 ng_l2cap_chan_by_conhandle(ng_l2cap_p l2cap, uint16_t scid,
410 LIST_FOREACH(ch, &l2cap->chan_list, next){
462 __func__, NG_NODE_NAME(con->l2cap->node)));
492 __func__, NG_NODE_NAME(con->l2cap->node)));
512 __func__, NG_NODE_NAME(con->l2cap->node),
516 ng_callout(&con->con_timo, con->l2cap->node, NULL,
534 __func__, NG_NODE_NAME(con->l2cap->node),
537 if (ng_uncallout(&con->con_timo, con->l2cap->node) == 0)
558 __func__, NG_NODE_NAME(cmd->con->l2cap->node),
563 ng_callout(&cmd->timo, cmd->con->l2cap->node, NULL, timo,
579 __func__, NG_NODE_NAME(cmd->con->l2cap->node),
582 if (ng_uncallout(&cmd->timo, cmd->con->l2cap->node) == 0)
630 ng_l2cap_get_cid(ng_l2cap_p l2cap,int isle)
637 endcid = l2cap->lecid;
642 endcid = l2cap->cid;
653 if (ng_l2cap_chan_by_scid(l2cap, cid, idtype) == NULL) {
655 l2cap->cid = cid;
657 l2cap->lecid = cid;