Lines Matching refs:p

98 #define STREAM_TO_UINT16(u16, p) {u16 = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); (p) +…  argument
99 #define UINT8_TO_STREAM(p, u8) {*(p)++ = (uint8_t)(u8);} argument
100 #define UINT16_TO_STREAM(p, u16) {*(p)++ = (uint8_t)(u16); *(p)++ = (uint8_t)((u16) >> 8);} argument
101 #define UINT32_TO_STREAM(p, u32) {*(p)++ = (uint8_t)(u32); *(p)++ = (uint8_t)((u32) >> 8); *(p)++ =… argument
513 char *p = p_chip_id_str + len - 1; in hw_config_findpatch() local
520 if ((isdigit(*p)==0) && (*p != 'M') && (*p != 'm')) in hw_config_findpatch()
523 p--; in hw_config_findpatch()
529 *p = 0; in hw_config_findpatch()
555 uint8_t *p = (uint8_t *) (p_buf + 1); in hw_config_set_bdaddr() local
561 UINT16_TO_STREAM(p, HCI_VSC_WRITE_BD_ADDR); in hw_config_set_bdaddr()
562 *p++ = BD_ADDR_LEN; /* parameter length */ in hw_config_set_bdaddr()
563 *p++ = vnd_local_bd_addr[5]; in hw_config_set_bdaddr()
564 *p++ = vnd_local_bd_addr[4]; in hw_config_set_bdaddr()
565 *p++ = vnd_local_bd_addr[3]; in hw_config_set_bdaddr()
566 *p++ = vnd_local_bd_addr[2]; in hw_config_set_bdaddr()
567 *p++ = vnd_local_bd_addr[1]; in hw_config_set_bdaddr()
568 *p = vnd_local_bd_addr[0]; in hw_config_set_bdaddr()
593 uint8_t *p = (uint8_t *) (p_buf + 1); in hw_config_read_bdaddr() local
595 UINT16_TO_STREAM(p, HCI_READ_LOCAL_BDADDR); in hw_config_read_bdaddr()
596 *p = 0; /* parameter length */ in hw_config_read_bdaddr()
621 uint8_t *p, status; in hw_config_cback() local
632 p = (uint8_t *)(p_evt_buf + 1) + HCI_EVT_CMD_CMPL_OPCODE; in hw_config_cback()
633 STREAM_TO_UINT16(opcode,p); in hw_config_cback()
647 p = (uint8_t *) (p_buf + 1); in hw_config_cback()
659 UINT16_TO_STREAM(p, HCI_READ_LOCAL_NAME); in hw_config_cback()
660 *p = 0; /* parameter length */ in hw_config_cback()
710 UINT16_TO_STREAM(p, HCI_VSC_DOWNLOAD_MINIDRV); in hw_config_cback()
711 *p = 0; /* parameter length */ in hw_config_cback()
740 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE); in hw_config_cback()
751 p+HCI_CMD_PREAMBLE_SIZE,\ in hw_config_cback()
752 *(p+HCD_REC_PAYLOAD_LEN_BYTE)); in hw_config_cback()
753 STREAM_TO_UINT16(opcode,p); in hw_config_cback()
783 UINT16_TO_STREAM(p, HCI_RESET); in hw_config_cback()
784 *p = 0; /* parameter length */ in hw_config_cback()
793 UINT16_TO_STREAM(p, HCI_VSC_WRITE_UART_CLOCK_SETTING); in hw_config_cback()
794 *p++ = 1; /* parameter length */ in hw_config_cback()
795 *p = 1; /* (1,"UART CLOCK 48 MHz")(2,"UART CLOCK 24 MHz") */ in hw_config_cback()
808 UINT16_TO_STREAM(p, HCI_VSC_UPDATE_BAUDRATE); in hw_config_cback()
809 *p++ = UPDATE_BAUDRATE_CMD_PARAM_SIZE; /* parameter length */ in hw_config_cback()
810 *p++ = 0; /* encoded baud rate */ in hw_config_cback()
811 *p++ = 0; /* use encoded form */ in hw_config_cback()
812 UINT32_TO_STREAM(p, UART_TARGET_BAUD_RATE); in hw_config_cback()
964 uint8_t *p; in hw_sco_i2spcm_cfg_cback() local
969 p = (uint8_t *)(p_evt_buf + 1) + HCI_EVT_CMD_CMPL_OPCODE; in hw_sco_i2spcm_cfg_cback()
970 STREAM_TO_UINT16(opcode,p); in hw_sco_i2spcm_cfg_cback()
998 p = (uint8_t *)(p_buf + 1); in hw_sco_i2spcm_cfg_cback()
1001 UINT16_TO_STREAM(p, HCI_VSC_WRITE_SCO_PCM_INT_PARAM); in hw_sco_i2spcm_cfg_cback()
1002 *p++ = SCO_PCM_PARAM_SIZE; in hw_sco_i2spcm_cfg_cback()
1003 memcpy(p, &bt_sco_param, SCO_PCM_PARAM_SIZE); in hw_sco_i2spcm_cfg_cback()
1033 p = (uint8_t *)(p_buf + 1); in hw_sco_i2spcm_cfg_cback()
1034 UINT16_TO_STREAM(p, HCI_VSC_WRITE_PCM_DATA_FORMAT_PARAM); in hw_sco_i2spcm_cfg_cback()
1035 *p++ = PCM_DATA_FORMAT_PARAM_SIZE; in hw_sco_i2spcm_cfg_cback()
1036 memcpy(p, &bt_pcm_data_fmt_param, PCM_DATA_FORMAT_PARAM_SIZE); in hw_sco_i2spcm_cfg_cback()
1113 uint8_t *p; in hw_config_start() local
1134 p = (uint8_t *) (p_buf + 1); in hw_config_start()
1135 UINT16_TO_STREAM(p, HCI_RESET); in hw_config_start()
1136 *p = 0; /* parameter length */ in hw_config_start()
1164 uint8_t *p; in hw_lpm_enable() local
1179 p = (uint8_t *) (p_buf + 1); in hw_lpm_enable()
1180 UINT16_TO_STREAM(p, HCI_VSC_WRITE_SLEEP_MODE); in hw_lpm_enable()
1181 *p++ = LPM_CMD_PARAM_SIZE; /* parameter length */ in hw_lpm_enable()
1185 memcpy(p, &lpm_param, LPM_CMD_PARAM_SIZE); in hw_lpm_enable()
1190 memset(p, 0, LPM_CMD_PARAM_SIZE); in hw_lpm_enable()
1338 uint8_t *p, ret; in hw_sco_i2spcm_config() local
1351 p = (uint8_t *)(p_buf + 1); in hw_sco_i2spcm_config()
1353 UINT16_TO_STREAM(p, HCI_VSC_WRITE_I2SPCM_INTERFACE_PARAM); in hw_sco_i2spcm_config()
1354 *p++ = SCO_I2SPCM_PARAM_SIZE; in hw_sco_i2spcm_config()
1371 memcpy(p, &bt_sco_i2spcm_param, SCO_I2SPCM_PARAM_SIZE); in hw_sco_i2spcm_config()
1402 uint8_t *p; in hw_set_SCO_codec() local
1418 p = (uint8_t *)(p_buf + 1); in hw_set_SCO_codec()
1420 UINT16_TO_STREAM(p, HCI_VSC_ENABLE_WBS); in hw_set_SCO_codec()
1425 *p++ = SCO_CODEC_PARAM_SIZE; /* set the parameter size */ in hw_set_SCO_codec()
1426 UINT8_TO_STREAM(p,1); /* enable */ in hw_set_SCO_codec()
1427 UINT16_TO_STREAM(p, codec); in hw_set_SCO_codec()
1437 *p++ = (SCO_CODEC_PARAM_SIZE - 2); /* set the parameter size */ in hw_set_SCO_codec()
1438 UINT8_TO_STREAM(p,0); /* disable */ in hw_set_SCO_codec()
1566 uint8_t *p, status; in hw_epilog_cback() local
1570 p = (uint8_t *)(p_evt_buf + 1) + HCI_EVT_CMD_CMPL_OPCODE; in hw_epilog_cback()
1571 STREAM_TO_UINT16(opcode,p); in hw_epilog_cback()
1598 uint8_t *p; in hw_epilog_process() local
1617 p = (uint8_t *) (p_buf + 1); in hw_epilog_process()
1618 UINT16_TO_STREAM(p, HCI_RESET); in hw_epilog_process()
1619 *p = 0; /* parameter length */ in hw_epilog_process()