Home | History | Annotate | Download | only in src

Lines Matching refs:p_buf

515 static uint8_t hw_config_set_bdaddr(HC_BT_HDR *p_buf)
518 uint8_t *p = (uint8_t *) (p_buf + 1);
533 p_buf->len = HCI_CMD_PREAMBLE_SIZE + BD_ADDR_LEN;
536 retval = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_BD_ADDR, p_buf, \
553 static uint8_t hw_config_read_bdaddr(HC_BT_HDR *p_buf)
556 uint8_t *p = (uint8_t *) (p_buf + 1);
561 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
564 retval = bt_vendor_cbacks->xmit_cb(HCI_READ_LOCAL_BDADDR, p_buf, \
586 HC_BT_HDR *p_buf=NULL;
599 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
602 if (p_buf != NULL)
604 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
605 p_buf->offset = 0;
606 p_buf->len = 0;
607 p_buf->layer_specific = 0;
609 p = (uint8_t *) (p_buf + 1);
624 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
628 p_buf, hw_config_cback);
666 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
670 HCI_VSC_DOWNLOAD_MINIDRV, p_buf, \
683 is_proceeding = hw_config_set_bdaddr(p_buf);
693 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE);
694 if (p_buf->len > 0)
696 if ((p_buf->len < HCI_CMD_PREAMBLE_SIZE) || \
703 p_buf->len += read(hw_cfg_cb.fw_fd, \
708 p_buf, hw_config_cback);
742 p_buf->len = HCI_CMD_PREAMBLE_SIZE + 1;
747 p_buf, hw_config_cback);
759 p_buf->len = HCI_CMD_PREAMBLE_SIZE + \
765 p_buf, hw_config_cback);
776 if ((is_proceeding = hw_config_read_bdaddr(p_buf)) == TRUE)
779 if ((is_proceeding = hw_config_set_bdaddr(p_buf)) == TRUE)
785 bt_vendor_cbacks->dealloc(p_buf);
808 if ((is_proceeding = hw_config_set_bdaddr(p_buf)) == TRUE)
819 bt_vendor_cbacks->dealloc(p_buf);
834 } // if (p_buf != NULL)
845 if (p_buf != NULL)
846 bt_vendor_cbacks->dealloc(p_buf);
911 HC_BT_HDR *p_buf=NULL;
927 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
930 if (p_buf)
932 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
933 p_buf->offset = 0;
934 p_buf->layer_specific = 0;
935 p_buf->len = HCI_CMD_PREAMBLE_SIZE + PCM_DATA_FORMAT_PARAM_SIZE;
937 p = (uint8_t *) (p_buf + 1);
943 p_buf, hw_sco_cfg_cback)) == FALSE)
945 bt_vendor_cbacks->dealloc(p_buf);
974 HC_BT_HDR *p_buf = NULL;
985 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
989 if (p_buf)
991 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
992 p_buf->offset = 0;
993 p_buf->layer_specific = 0;
994 p_buf->len = HCI_CMD_PREAMBLE_SIZE;
996 p = (uint8_t *) (p_buf + 1);
1002 bt_vendor_cbacks->xmit_cb(HCI_RESET, p_buf, hw_config_cback);
1025 HC_BT_HDR *p_buf = NULL;
1030 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE + \
1034 if (p_buf)
1036 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1037 p_buf->offset = 0;
1038 p_buf->layer_specific = 0;
1039 p_buf->len = HCI_CMD_PREAMBLE_SIZE + LPM_CMD_PARAM_SIZE;
1041 p = (uint8_t *) (p_buf + 1);
1056 if ((ret = bt_vendor_cbacks->xmit_cb(HCI_VSC_WRITE_SLEEP_MODE, p_buf, \
1059 bt_vendor_cbacks->dealloc(p_buf);
1124 HC_BT_HDR *p_buf = NULL;
1134 p_buf = (HC_BT_HDR *) bt_vendor_cbacks->alloc(BT_HC_HDR_SIZE+cmd_u16);
1136 if (p_buf)
1138 p_buf->event = MSG_STACK_TO_HC_HCI_CMD;
1139 p_buf->offset = 0;
1140 p_buf->layer_specific = 0;
1141 p_buf->len = cmd_u16;
1143 p = (uint8_t *) (p_buf + 1);
1162 if ((ret=bt_vendor_cbacks->xmit_cb(cmd_u16, p_buf, hw_sco_cfg_cback)) \
1165 bt_vendor_cbacks->dealloc(p_buf);