Lines Matching refs:p_xmit

1651   BT_HDR *p_buf, *p_xmit;  in l2c_fcr_get_next_xmit_sdu_seg()  local
1693 p_xmit = l2c_fcr_clone_buf(p_buf, L2CAP_MIN_OFFSET + L2CAP_SDU_LEN_OFFSET, in l2c_fcr_get_next_xmit_sdu_seg()
1696 if (p_xmit != NULL) { in l2c_fcr_get_next_xmit_sdu_seg()
1698 p_xmit->event = p_ccb->local_cid; in l2c_fcr_get_next_xmit_sdu_seg()
1704 p_xmit->layer_specific = p_buf->layer_specific; in l2c_fcr_get_next_xmit_sdu_seg()
1714 p_xmit = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->xmit_hold_q); in l2c_fcr_get_next_xmit_sdu_seg()
1716 if (p_xmit->event != 0) last_seg = true; in l2c_fcr_get_next_xmit_sdu_seg()
1718 p_xmit->event = p_ccb->local_cid; in l2c_fcr_get_next_xmit_sdu_seg()
1722 p_xmit->offset -= (L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD); in l2c_fcr_get_next_xmit_sdu_seg()
1723 p_xmit->len += L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD; in l2c_fcr_get_next_xmit_sdu_seg()
1726 p_xmit->offset -= L2CAP_SDU_LEN_OVERHEAD; in l2c_fcr_get_next_xmit_sdu_seg()
1727 p_xmit->len += L2CAP_SDU_LEN_OVERHEAD; in l2c_fcr_get_next_xmit_sdu_seg()
1731 p = (uint8_t*)(p_xmit + 1) + p_xmit->offset; in l2c_fcr_get_next_xmit_sdu_seg()
1736 UINT16_TO_STREAM(p, p_xmit->len - L2CAP_PKT_OVERHEAD); in l2c_fcr_get_next_xmit_sdu_seg()
1747 p_xmit->layer_specific |= L2CAP_FCR_START_SDU; in l2c_fcr_get_next_xmit_sdu_seg()
1751 p_xmit->layer_specific |= L2CAP_FCR_CONT_SDU; in l2c_fcr_get_next_xmit_sdu_seg()
1753 p_xmit->layer_specific |= L2CAP_FCR_END_SDU; in l2c_fcr_get_next_xmit_sdu_seg()
1755 p_xmit->layer_specific |= L2CAP_FCR_UNSEG_SDU; in l2c_fcr_get_next_xmit_sdu_seg()
1757 prepare_I_frame(p_ccb, p_xmit, false); in l2c_fcr_get_next_xmit_sdu_seg()
1761 l2c_fcr_clone_buf(p_xmit, HCI_DATA_PREAMBLE_SIZE, p_xmit->len); in l2c_fcr_get_next_xmit_sdu_seg()
1766 p_ccb->local_cid, p_xmit->len); in l2c_fcr_get_next_xmit_sdu_seg()
1769 if (p_ccb->bypass_fcs != L2CAP_BYPASS_FCS) p_xmit->len -= L2CAP_FCS_LEN; in l2c_fcr_get_next_xmit_sdu_seg()
1772 fixed_queue_enqueue(p_ccb->fcrb.waiting_for_ack_q, p_xmit); in l2c_fcr_get_next_xmit_sdu_seg()
1789 p_wack->layer_specific = p_xmit->layer_specific; in l2c_fcr_get_next_xmit_sdu_seg()
1795 p_ccb->fcrb.ertm_byte_counts[0] += (p_xmit->len - 8); in l2c_fcr_get_next_xmit_sdu_seg()
1799 return (p_xmit); in l2c_fcr_get_next_xmit_sdu_seg()
1818 BT_HDR* p_xmit = in l2c_lcc_get_next_xmit_sdu_seg() local
1823 p_xmit->event = p_ccb->local_cid; in l2c_lcc_get_next_xmit_sdu_seg()
1826 p_xmit->offset -= L2CAP_LCC_SDU_LENGTH; /* for writing the SDU length. */ in l2c_lcc_get_next_xmit_sdu_seg()
1827 uint8_t* p = (uint8_t*)(p_xmit + 1) + p_xmit->offset; in l2c_lcc_get_next_xmit_sdu_seg()
1829 p_xmit->len += L2CAP_LCC_SDU_LENGTH; in l2c_lcc_get_next_xmit_sdu_seg()
1836 p_xmit->layer_specific = p_buf->layer_specific; in l2c_lcc_get_next_xmit_sdu_seg()
1846 p_xmit->offset -= L2CAP_PKT_OVERHEAD; in l2c_lcc_get_next_xmit_sdu_seg()
1847 p_xmit->len += L2CAP_PKT_OVERHEAD; in l2c_lcc_get_next_xmit_sdu_seg()
1850 uint8_t* p = (uint8_t*)(p_xmit + 1) + p_xmit->offset; in l2c_lcc_get_next_xmit_sdu_seg()
1853 UINT16_TO_STREAM(p, p_xmit->len - L2CAP_PKT_OVERHEAD); in l2c_lcc_get_next_xmit_sdu_seg()
1855 return (p_xmit); in l2c_lcc_get_next_xmit_sdu_seg()