Lines Matching refs:p_buf
141 void btsnoop_capture(HC_BT_HDR *p_buf, uint8_t is_rcvd);
142 uint8_t hci_mct_send_int_cmd(uint16_t opcode, HC_BT_HDR *p_buf, \
179 HC_BT_HDR *p_buf = (HC_BT_HDR *) p_mem; in get_acl_data_length_cback() local
181 p = (uint8_t *)(p_buf + 1) + 3; in get_acl_data_length_cback()
193 p_buf->event = MSG_STACK_TO_HC_HCI_CMD; in get_acl_data_length_cback()
194 p_buf->offset = 0; in get_acl_data_length_cback()
195 p_buf->layer_specific = 0; in get_acl_data_length_cback()
196 p_buf->len = 3; in get_acl_data_length_cback()
198 p = (uint8_t *) (p_buf + 1); in get_acl_data_length_cback()
202 if ((status = hci_mct_send_int_cmd(HCI_LE_READ_BUFFER_SIZE, p_buf, \ in get_acl_data_length_cback()
205 bt_hc_cbacks->dealloc((TRANSAC) p_buf, (char *) (p_buf + 1)); in get_acl_data_length_cback()
216 bt_hc_cbacks->dealloc((TRANSAC) p_buf, (char *) (p_buf + 1)); in get_acl_data_length_cback()
446 HC_BT_HDR *p_buf; in acl_rx_frame_end_chk() local
450 p_buf = p_cb->rcv_acl.p_rcv_msg; in acl_rx_frame_end_chk()
451 p = (uint8_t *)(p_buf + 1); in acl_rx_frame_end_chk()
459 if (l2cap_len > (p_buf->len-(HCI_ACL_PREAMBLE_SIZE+L2CAP_HEADER_SIZE)) ) in acl_rx_frame_end_chk()
472 utils_remove_from_queue(&(p_cb->acl_rx_q), p_buf); in acl_rx_frame_end_chk()
479 if (p_buf->offset) in acl_rx_frame_end_chk()
484 uint16_t tmp_u16 = p_buf->len; in acl_rx_frame_end_chk()
487 p = (uint8_t *)(p_buf + 1) + p_buf->offset - HCI_ACL_PREAMBLE_SIZE; in acl_rx_frame_end_chk()
497 UINT16_TO_STREAM (p, (p_buf->len - p_buf->offset)); in acl_rx_frame_end_chk()
504 p_buf->offset = p_buf->offset - HCI_ACL_PREAMBLE_SIZE; in acl_rx_frame_end_chk()
505 p_buf->len = p_buf->len - p_buf->offset; in acl_rx_frame_end_chk()
507 btsnoop_capture(p_buf, TRUE); in acl_rx_frame_end_chk()
513 p_buf->len = tmp_u16; in acl_rx_frame_end_chk()
518 btsnoop_capture(p_buf, TRUE); in acl_rx_frame_end_chk()
522 p_buf->offset = 0; in acl_rx_frame_end_chk()
524 p_buf->offset = p_buf->len; /* save current buffer-end position */ in acl_rx_frame_end_chk()
1089 uint8_t hci_mct_send_int_cmd(uint16_t opcode, HC_BT_HDR *p_buf, \ in hci_mct_send_int_cmd() argument
1106 p_buf->layer_specific = opcode; in hci_mct_send_int_cmd()
1108 utils_enqueue(&tx_q, (void *) p_buf); in hci_mct_send_int_cmd()
1127 HC_BT_HDR *p_buf = NULL; in hci_mct_get_acl_data_length() local
1132 p_buf = (HC_BT_HDR *) bt_hc_cbacks->alloc(BT_HC_HDR_SIZE + \ in hci_mct_get_acl_data_length()
1136 if (p_buf) in hci_mct_get_acl_data_length()
1138 p_buf->event = MSG_STACK_TO_HC_HCI_CMD; in hci_mct_get_acl_data_length()
1139 p_buf->offset = 0; in hci_mct_get_acl_data_length()
1140 p_buf->layer_specific = 0; in hci_mct_get_acl_data_length()
1141 p_buf->len = HCI_CMD_PREAMBLE_SIZE; in hci_mct_get_acl_data_length()
1143 p = (uint8_t *) (p_buf + 1); in hci_mct_get_acl_data_length()
1147 if ((ret = hci_mct_send_int_cmd(HCI_READ_BUFFER_SIZE, p_buf, \ in hci_mct_get_acl_data_length()
1150 bt_hc_cbacks->dealloc((TRANSAC) p_buf, (char *) (p_buf + 1)); in hci_mct_get_acl_data_length()