Lines Matching refs:token

393  * so we have to have a socket associated with message token.
411 /* Look for the socket with the token */
412 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
421 "%s: Got L2CA_Connect response, token=%d, src bdaddr=%x:%x:%x:%x:%x:%x, " \
423 "state=%d\n", __func__, msg->header.token,
459 /* Send disconnect request with "zero" token */
507 /* Look for the socket with the token */
508 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
517 "%s: Got L2CA_ConnectRsp response, token=%d, src bdaddr=%x:%x:%x:%x:%x:%x, " \
519 __func__, msg->header.token,
567 u_int32_t token = 0;
639 token = pcb1->token;
645 error = ng_btsocket_l2cap_send_l2ca_con_rsp_req(token, rt,
690 * socket that wants to be configured. Use Netgraph message token
694 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
698 * socket with requested token. We even can not send
709 "%s: Got L2CA_Config response, token=%d, src bdaddr=%x:%x:%x:%x:%x:%x, " \
712 __func__, msg->header.token,
773 /* Send disconnect with "zero" token */
806 /* Look for the socket with the token */
807 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
816 "%s: Got L2CA_ConfigRsp response, token=%d, src bdaddr=%x:%x:%x:%x:%x:%x, " \
819 __func__, msg->header.token,
869 /* Send disconnect with "zero" token */
950 /* Send disconnect with "zero" token */
988 * message token to find it.
991 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
1002 "%s: Got L2CA_Disconnect response, token=%d, src bdaddr=%x:%x:%x:%x:%x:%x, " \
1004 __func__, msg->header.token,
1098 /* Look for the socket with given token */
1099 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token);
1175 msg->header.token = pcb->token;
1191 ng_btsocket_l2cap_send_l2ca_con_rsp_req(u_int32_t token,
1207 msg->header.token = token;
1243 msg->header.token = pcb->token;
1279 msg->header.token = pcb->token;
1296 ng_btsocket_l2cap_send_l2ca_discon_req(u_int32_t token,
1314 msg->header.token = token;
1774 pcb->token = 0;
1915 static u_int32_t token = 0;
2006 /* Set PCB token. Use ng_btsocket_l2cap_sockets_mtx for protection */
2007 if (++ token == 0)
2008 token ++;
2010 pcb->token = token;
2311 /* Send disconnect request with "zero" token */
2356 error = ng_btsocket_l2cap_send_l2ca_discon_req(pcb->token, pcb);
2538 hdr->token = pcb->token;
2543 "%s: Sending packet: len=%d, length=%d, lcid=%d, token=%d, state=%d\n",
2545 hdr->token, pcb->state);
2616 * Look for the socket that has given token.
2621 ng_btsocket_l2cap_pcb_by_token(u_int32_t token)
2625 if (token == 0)
2631 if (p->token == token)
2708 /* Send disconnect request with "zero" token */