• Home
  • Raw
  • Download

Lines Matching refs:p_frag

1276         BT_HDR *p_frag;  in avdt_scb_hdl_write_req_frag()  local
1277 while ((p_frag = (BT_HDR*)fixed_queue_try_dequeue(p_scb->frag_q)) != NULL) in avdt_scb_hdl_write_req_frag()
1278 osi_free(p_frag); in avdt_scb_hdl_write_req_frag()
1291 BT_HDR *p_frag = (BT_HDR *)list_node(node); in avdt_scb_hdl_write_req_frag() local
1296 p_frag->len += AVDT_AL_HDR_SIZE + AVDT_MEDIA_HDR_SIZE; in avdt_scb_hdl_write_req_frag()
1297 p_frag->offset -= AVDT_AL_HDR_SIZE + AVDT_MEDIA_HDR_SIZE; in avdt_scb_hdl_write_req_frag()
1298 p = (UINT8 *)(p_frag + 1) + p_frag->offset; in avdt_scb_hdl_write_req_frag()
1307 UINT16_TO_BE_STREAM(p, p_frag->layer_specific + AVDT_MEDIA_HDR_SIZE ); in avdt_scb_hdl_write_req_frag()
1318 BT_HDR *p_frag = (BT_HDR *)list_node(node); in avdt_scb_hdl_write_req_frag() local
1321 p_frag->len += AVDT_AL_HDR_SIZE; in avdt_scb_hdl_write_req_frag()
1322 p_frag->offset -= AVDT_AL_HDR_SIZE; in avdt_scb_hdl_write_req_frag()
1323 p = (UINT8 *)(p_frag + 1) + p_frag->offset; in avdt_scb_hdl_write_req_frag()
1332 UINT16_TO_BE_STREAM(p, p_frag->layer_specific); in avdt_scb_hdl_write_req_frag()
1439 BT_HDR *p_frag; in avdt_scb_snd_stream_close() local
1440 while ((p_frag = (BT_HDR*)fixed_queue_try_dequeue(p_scb->frag_q)) != NULL) in avdt_scb_snd_stream_close()
1441 osi_free(p_frag); in avdt_scb_snd_stream_close()
1872 BT_HDR *p_frag; in avdt_scb_free_pkt() local
1873 while ((p_frag = (BT_HDR*)fixed_queue_try_dequeue(p_scb->frag_q)) != NULL) in avdt_scb_free_pkt()
1874 osi_free(p_frag); in avdt_scb_free_pkt()
1929 BT_HDR *p_frag; in avdt_scb_clr_pkt() local
1930 while ((p_frag = (BT_HDR*)fixed_queue_try_dequeue(p_scb->frag_q)) != NULL) in avdt_scb_clr_pkt()
1931 osi_free(p_frag); in avdt_scb_clr_pkt()
2126 BT_HDR *p_frag = (BT_HDR *)osi_malloc(buf_size); in avdt_scb_queue_frags() local
2129 p_frag->layer_specific = *p_data_len;/* length of all remaining transport packet */ in avdt_scb_queue_frags()
2130 p_frag->offset = offset; in avdt_scb_queue_frags()
2134 p_frag->len = mtu_used - p_frag->offset; in avdt_scb_queue_frags()
2135 if(p_frag->len > *p_data_len) in avdt_scb_queue_frags()
2136 p_frag->len = *p_data_len; in avdt_scb_queue_frags()
2137 memcpy((UINT8*)(p_frag+1) + p_frag->offset, *pp_data, p_frag->len); in avdt_scb_queue_frags()
2138 *pp_data += p_frag->len; in avdt_scb_queue_frags()
2139 *p_data_len -= p_frag->len; in avdt_scb_queue_frags()
2140 AVDT_TRACE_DEBUG("Prepared fragment len=%d", p_frag->len); in avdt_scb_queue_frags()
2145 p_frag->len += AVDT_AL_HDR_SIZE; in avdt_scb_queue_frags()
2146 p_frag->offset -= AVDT_AL_HDR_SIZE; in avdt_scb_queue_frags()
2147 p = (UINT8 *)(p_frag + 1) + p_frag->offset; in avdt_scb_queue_frags()
2152 UINT16_TO_BE_STREAM(p, p_frag->layer_specific ); in avdt_scb_queue_frags()
2155 fixed_queue_enqueue(p_scb->frag_q, p_frag); in avdt_scb_queue_frags()