Home | History | Annotate | Download | only in l2cap

Lines Matching refs:BT_HDR

90 static void    process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
91 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack);
93 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission);
94 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf);
95 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word);
98 static BOOLEAN l2c_corrupt_the_fcr_packet (tL2C_CCB *p_ccb, BT_HDR *p_buf,
140 UINT16 l2c_fcr_tx_get_fcs (BT_HDR *p_buf)
156 UINT16 l2c_fcr_rx_get_fcs (BT_HDR *p_buf)
336 BT_HDR *l2c_fcr_clone_buf (BT_HDR *p_buf, UINT16 new_offset, UINT16 no_of_bytes, UINT8 pool)
338 BT_HDR *p_buf2;
347 if ((p_buf2 = (BT_HDR *)GKI_getpoolbuf(pool)) != NULL)
352 if ((no_of_bytes + sizeof(BT_HDR) + new_offset) > pool_buf_size)
354 L2CAP_TRACE_ERROR5("##### l2c_fcr_clone_buf (NumBytes %d) -> Exceeds poolsize %d [bytes %d + BT_HDR %d + offset %d]",
355 (no_of_bytes + sizeof(BT_HDR) + new_offset),
356 pool_buf_size, no_of_bytes, sizeof(BT_HDR),
421 static void prepare_I_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, BOOLEAN is_retransmission)
522 BT_HDR *p_buf;
553 if ((p_buf = (BT_HDR *)GKI_getpoolbuf (L2CAP_CMD_POOL_ID)) != NULL)
638 void l2c_fcr_proc_pdu (tL2C_CCB *p_ccb, BT_HDR *p_buf)
806 while ((p_buf = (BT_HDR *)GKI_dequeue (&temp_q)) != NULL)
982 ls = ((BT_HDR *)(p_fcrb->waiting_for_ack_q.p_first))->layer_specific & L2CAP_FCR_SAR_BITS;
1022 static void process_s_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word)
1105 static void process_i_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word, BOOLEAN delay_ack)
1168 next_srej = (((BT_HDR *)p_fcrb->srej_rcv_hold_q.p_last)->layer_specific + 1) & L2CAP_FCR_SEQ_MODULO;
1175 BT_HDR *p_buf2;
1299 static void process_stream_frame (tL2C_CCB *p_ccb, BT_HDR *p_buf)
1388 static BOOLEAN do_sar_reassembly (tL2C_CCB *p_ccb, BT_HDR *p_buf, UINT16 ctrl_word)
1438 else if ((p_fcrb->p_rx_sdu = (BT_HDR *)GKI_getpoolbuf (p_ccb->ertm_info.user_rx_pool_id)) == NULL)
1515 BT_HDR *p_buf, *p_buf2;
1537 for (p_buf = (BT_HDR *)p_ccb->fcrb.waiting_for_ack_q.p_first; p_buf; p_buf = (BT_HDR *)GKI_getnext (p_buf))
1562 p_buf = (BT_HDR *)p_ccb->p_lcb->link_xmit_data_q.p_first;
1570 p_buf = (BT_HDR *)GKI_getnext (p_buf);
1576 p_buf = (BT_HDR *)GKI_getnext (p_buf);
1583 p_buf = (BT_HDR *)p_ccb->fcrb.waiting_for_ack_q.p_first;
1600 p_buf = (BT_HDR *)GKI_getnext (p_buf);
1624 BT_HDR *l2c_fcr_get_next_xmit_sdu_seg (tL2C_CCB *p_ccb, UINT16 max_packet_length)
1630 BT_HDR *p_buf, *p_xmit;
1638 p_buf = (BT_HDR *)GKI_dequeue (&p_ccb->fcrb.retrans_q);
1671 p_buf = (BT_HDR *)p_ccb->xmit_hold_q.p_first;
1708 p_xmit = (BT_HDR *)GKI_dequeue (&p_ccb->xmit_hold_q);
1759 BT_HDR *p_wack = l2c_fcr_clone_buf (p_xmit, HCI_DATA_PREAMBLE_SIZE, p_xmit->len, p_ccb->ertm_info.fcr_tx_pool_id);
2230 max_retrans_size = GKI_get_pool_bufsize (p_ccb->ertm_info.fcr_tx_pool_id) - sizeof(BT_HDR)
2297 static BOOLEAN l2c_corrupt_the_fcr_packet (tL2C_CCB *p_ccb, BT_HDR *p_buf,
2625 BT_HDR *p_buf;
2643 p_buf = (BT_HDR *)(p_ccb->fcrb.waiting_for_ack_q.p_first);