Lines Matching full:p_buf
552 static uint8_t hw_config_set_bdaddr(HC_BT_HDR *p_buf)
555 uint8_t *p = (uint8_t *) (p_buf + 1);
570 p_buf->len = HCI_CMD_PREAMBLE_SIZE + BD_ADDR_LEN;
573 retval = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_BD_ADDR, p_buf, \
590 static uint8_t hw_config_read_bdaddr(HC_BT_HDR *p_buf)
593 uint8_t *p = (uint8_t *) (p_buf + 1);
598 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
601 retval = bt_vendor_cbacks->xmit_cb(HCI_READ_LOCAL_BDADDR, p_buf, \
623 HC_BT_HDR *p_buf=NULL;
637 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
640 if (p_buf != NULL)
642 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
643 p_buf->offset = 0;
644 p_buf->len = 0;
645 p_buf->layer_specific = 0;
647 p = (uint8_t *) (p_buf + 1);
662 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
666 p_buf, hw_config_cback);
713 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
717 HCI_VSC_DOWNLOAD_MINIDRV, p_buf, \
730 is_proceeding = hw_config_set_bdaddr(p_buf);
740 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE);
741 if (p_buf->len > 0)
743 if ((p_buf->len < HCI_CMD_PREAMBLE_SIZE) || \
750 p_buf->len += read(hw_cfg_cb.fw_fd, \
755 p_buf, hw_config_cback);
782 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
786 is_proceeding = bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_config_cback);
797 p_buf->len = HCI_CMD_PREAMBLE_SIZE + 1;
802 p_buf, hw_config_cback);
814 p_buf->len = HCI_CMD_PREAMBLE_SIZE + \
820 p_buf, hw_config_cback);
831 if ((is_proceeding = hw_config_read_bdaddr(p_buf)) == TRUE)
834 if ((is_proceeding = hw_config_set_bdaddr(p_buf)) == TRUE)
840 bt_vendor_cbacks->dealloc(p_buf);
863 if ((is_proceeding = hw_config_set_bdaddr(p_buf)) == TRUE)
874 bt_vendor_cbacks->dealloc(p_buf);
889 } // if (p_buf != NULL)
900 if (p_buf != NULL)
901 bt_vendor_cbacks->dealloc(p_buf);
966 HC_BT_HDR *p_buf = NULL;
990 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc(
992 if (p_buf)
994 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
995 p_buf->offset = 0;
996 p_buf->layer_specific = 0;
997 p_buf->len = HCI_CMD_PREAMBLE_SIZE + SCO_PCM_PARAM_SIZE;
998 p = (uint8_t *)(p_buf + 1);
1007 if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_SCO_PCM_INT_PARAM, p_buf,
1010 bt_vendor_cbacks->dealloc(p_buf);
1024 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc(
1026 if (p_buf)
1028 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1029 p_buf->offset = 0;
1030 p_buf->layer_specific = 0;
1031 p_buf->len = HCI_CMD_PREAMBLE_SIZE + PCM_DATA_FORMAT_PARAM_SIZE;
1033 p = (uint8_t *)(p_buf + 1);
1044 p_buf, hw_sco_i2spcm_cfg_cback)) == FALSE)
1046 bt_vendor_cbacks->dealloc(p_buf);
1112 HC_BT_HDR *p_buf = NULL;
1123 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
1127 if (p_buf)
1129 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1130 p_buf->offset = 0;
1131 p_buf->layer_specific = 0;
1132 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
1134 p = (uint8_t *) (p_buf + 1);
1140 bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_config_cback);
1163 HC_BT_HDR *p_buf = NULL;
1168 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
1172 if (p_buf)
1174 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1175 p_buf->offset = 0;
1176 p_buf->layer_specific = 0;
1177 p_buf->len = HCI_CMD_PREAMBLE_SIZE + LPM_CMD_PARAM_SIZE;
1179 p = (uint8_t *) (p_buf + 1);
1194 if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_SLEEP_MODE, p_buf, \
1197 bt_vendor_cbacks->dealloc(p_buf);
1337 HC_BT_HDR *p_buf = NULL;
1342 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + cmd_u16);
1344 if (p_buf)
1346 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1347 p_buf->offset = 0;
1348 p_buf->layer_specific = 0;
1349 p_buf->len = cmd_u16;
1351 p = (uint8_t *)(p_buf + 1);
1377 if ((ret = bt_vendor_cbacks->xmit_cb(cmd_u16, p_buf, hw_sco_i2spcm_cfg_cback)) == FALSE)
1379 bt_vendor_cbacks->dealloc(p_buf);
1401 HC_BT_HDR *p_buf = NULL;
1410 p_buf = (HC_BT_HDR *)bt_vendor_cbacks->alloc(
1413 if (p_buf)
1415 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1416 p_buf->offset = 0;
1417 p_buf->layer_specific = 0;
1418 p = (uint8_t *)(p_buf + 1);
1430 p_buf->len = HCI_CMD_PREAMBLE_SIZE + SCO_CODEC_PARAM_SIZE;
1441 p_buf->len = HCI_CMD_PREAMBLE_SIZE + SCO_CODEC_PARAM_SIZE - 2;
1450 if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_ENABLE_WBS, p_buf, p_set_SCO_codec_cback))\
1453 bt_vendor_cbacks->dealloc(p_buf);
1597 HC_BT_HDR *p_buf = NULL;
1606 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
1610 if (p_buf)
1612 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1613 p_buf->offset = 0;
1614 p_buf->layer_specific = 0;
1615 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
1617 p = (uint8_t *) (p_buf + 1);
1622 bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_epilog_cback);