Home | History | Annotate | Download | only in l2cap

Lines Matching refs:p_lcb

41 static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len);
124 tL2C_LCB *p_lcb;
138 if ((p_lcb = l2cu_find_lcb_by_handle (handle)) == NULL)
186 if (++p_lcb->link_pkts_unacked >= p_lcb->link_ack_thresh)
197 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, rcv_cid)) == NULL)
229 process_l2cap_cmd (p_lcb, p, l2cap_len);
234 /* process_connectionless_data (p_lcb); */
242 tcs_proc_bcst_msg( p_lcb->remote_bd_addr, p_msg ) ;
250 if ( l2c_ucd_check_rx_pkts( p_lcb, p_msg ) )
261 l2cble_process_sig_cmd (p_lcb, p, l2cap_len);
270 if (p_lcb && l2cu_initialize_fixed_ccb (p_lcb, rcv_cid,
274 l2cble_notify_le_connection(p_lcb->remote_bd_addr);
276 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL];
281 (*l2cb.fixed_reg[rcv_cid - L2CAP_FIRST_FIXED_CHNL].pL2CA_FixedData_Cb)(p_lcb->remote_bd_addr, p_msg);
319 static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len)
335 if (p_lcb->transport == BT_TRANSPORT_LE)
380 if (l2c_is_cmd_rejected(cmd_code, id, p_lcb))
396 L2CAP_TRACE_WARNING ("L2CAP - MTU rej Handle: %d MTU: %d", p_lcb->handle, rej_mtu);
406 if (((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
415 else if (rej_reason == L2CAP_CMD_REJ_NOT_UNDERSTOOD && p_lcb->w4_info_rsp)
417 btu_stop_timer (&p_lcb->info_timer_entry);
419 p_lcb->w4_info_rsp = FALSE;
421 memcpy (ci.bd_addr, p_lcb->remote_bd_addr, sizeof(BD_ADDR));
424 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
437 l2cu_reject_connection (p_lcb, rcid, id, L2CAP_CONN_NO_PSM);
445 l2cu_reject_connection (p_lcb, rcid, id, L2CAP_CONN_NO_PSM);
449 if ((p_ccb = l2cu_allocate_ccb (p_lcb, 0)) == NULL)
452 l2cu_reject_connection (p_lcb, rcid, id, L2CAP_CONN_NO_RESOURCES);
468 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) == NULL)
577 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
592 l2cu_send_peer_cmd_reject (p_lcb, L2CAP_CMD_REJ_INVALID_CID, id, 0, 0);
660 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
684 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
693 l2cu_send_peer_disc_rsp (p_lcb, id, lcid, rcid);
701 if ((p_ccb = l2cu_find_ccb_by_cid (p_lcb, lcid)) != NULL)
711 l2cu_send_peer_echo_rsp (p_lcb, id, NULL, 0);
715 if (p_lcb->p_echo_rsp_cb)
717 tL2CA_ECHO_RSP_CB *p_cb = p_lcb->p_echo_rsp_cb;
720 p_lcb->p_echo_rsp_cb = NULL;
728 l2cu_send_peer_info_rsp (p_lcb, id, info_type);
733 if (p_lcb->w4_info_rsp)
735 btu_stop_timer (&p_lcb->info_timer_entry);
736 p_lcb->w4_info_rsp = FALSE;
742 p_lcb->info_rx_bits |= (1 << info_type);
747 STREAM_TO_UINT32( p_lcb->peer_ext_fea, p );
750 if (p_lcb->peer_ext_fea & L2CAP_EXTFEA_FIXED_CHNLS)
752 l2cu_send_peer_info_req (p_lcb, L2CAP_FIXED_CHANNELS_INFO_TYPE);
757 l2cu_process_fixed_chnl_resp (p_lcb);
768 memcpy (p_lcb->peer_chnl_mask, p, L2CAP_FIXED_CHNL_ARRAY_SIZE);
771 l2cu_process_fixed_chnl_resp (p_lcb);
779 STREAM_TO_UINT16 (p_lcb->ucd_mtu, p);
785 memcpy (ci.bd_addr, p_lcb->remote_bd_addr, sizeof(BD_ADDR));
786 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_ccb->p_next_ccb)
794 l2cu_send_peer_cmd_reject (p_lcb, L2CAP_CMD_REJ_NOT_UNDERSTOOD, id, 0, 0);