Home | History | Annotate | Download | only in btu

Lines Matching refs:p_buf

151 static void btu_hcif_store_cmd (UINT8 controller_id, BT_HDR *p_buf)
163 p = (UINT8 *)(p_buf + 1) + p_buf->offset;
175 if ((p_cmd = HCI_GET_CMD_BUF(p_buf->len + p_buf->offset - HCIC_PREAMBLE_SIZE)) == NULL)
181 memcpy (p_cmd, p_buf, sizeof(BT_HDR));
194 opcode, *(UINT32 *)(p_buf + 1));
196 memcpy ((UINT8 *)(p_cmd + 1), (UINT8 *)(p_buf + 1), sizeof(void *));
200 (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len);
447 void btu_hcif_send_cmd (UINT8 controller_id, BT_HDR *p_buf)
457 if ((p_buf) && (p_hci_cmd_cb->cmd_xmit_q.count))
459 GKI_enqueue (&(p_hci_cmd_cb->cmd_xmit_q), p_buf);
460 p_buf = NULL;
474 if (!p_buf)
475 p_buf = (BT_HDR *)GKI_dequeue (&(p_hci_cmd_cb->cmd_xmit_q));
477 if (p_buf)
479 btu_hcif_store_cmd(controller_id, p_buf);
482 pp = (UINT8 *)(p_buf + 1) + p_buf->offset;
496 HCI_CMD_TO_LOWER(p_buf);
502 GKI_freebuf(p_buf);;
505 p_buf = NULL;
511 if (p_buf)
512 GKI_enqueue (&(p_hci_cmd_cb->cmd_xmit_q), p_buf);