Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 71) sorted by relevance

123

/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmcdc.h60 #define CDC_GET_IF_IDX(hdr) \ argument
61 ((int)((((hdr)->flags) & CDCF_IOC_IF_MASK) >> CDCF_IOC_IF_SHIFT))
62 #define CDC_SET_IF_IDX(hdr, idx) \ argument
63 ((hdr)->flags = (((hdr)->flags & ~CDCF_IOC_IF_MASK) | ((idx) << CDCF_IOC_IF_SHIFT)))
106 #define BDC_GET_IF_IDX(hdr) \ argument
107 ((int)((((hdr)->flags2) & BDC_FLAG2_IF_MASK) >> BDC_FLAG2_IF_SHIFT))
108 #define BDC_SET_IF_IDX(hdr, idx) \ argument
109 ((hdr)->flags2 = (((hdr)->flags2 & ~BDC_FLAG2_IF_MASK) | ((idx) << BDC_FLAG2_IF_SHIFT)))
117 #define BDC_GET_PAD_LEN(hdr) \ argument
118 ((int)(((((hdr)->flags2) & BDC_FLAG2_PAD_MASK) >> BDC_FLAG2_PAD_SHIFT) | \
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c45 static struct wav_header hdr; variable
267 hdr.data_sz = 0; in record_file()
335 hdr.data_sz += bufsize; in record_file()
336 hdr.riff_sz = hdr.data_sz + 44 - 8; in record_file()
339 write(fd, &hdr, sizeof(hdr)); in record_file()
365 hdr.data_sz += bufsize; in record_file()
366 hdr.riff_sz = hdr.data_sz + 44 - 8; in record_file()
369 write(fd, &hdr, sizeof(hdr)); in record_file()
380 return hdr.data_sz; in record_file()
442 memset(&hdr, 0, sizeof(struct wav_header)); in rec_wav()
[all …]
Daplay.c500 struct wav_header hdr; in play_wav() local
516 hdr.sample_rate = rate; in play_wav()
517 hdr.num_channels = ch; in play_wav()
518 hdr.data_sz = 0; in play_wav()
522 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { in play_wav()
527 if ((hdr.riff_id != ID_RIFF) || in play_wav()
528 (hdr.riff_fmt != ID_WAVE) || in play_wav()
529 (hdr.fmt_id != ID_FMT)) { in play_wav()
533 if ((hdr.audio_format != FORMAT_PCM) || in play_wav()
534 (hdr.fmt_sz != 16)) { in play_wav()
[all …]
/hardware/qcom/msm8x09/original-kernel-headers/linux/
Dmsm_audio_calibration.h147 struct audio_cal_header hdr; member
159 struct audio_cal_header hdr; member
171 struct audio_cal_header hdr; member
183 struct audio_cal_header hdr; member
426 struct audio_cal_header hdr; member
437 struct audio_cal_header hdr; member
448 struct audio_cal_header hdr; member
459 struct audio_cal_header hdr; member
470 struct audio_cal_header hdr; member
481 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8996/kernel-headers/linux/
Dmsm_audio_calibration.h141 struct audio_cal_header hdr; member
151 struct audio_cal_header hdr; member
161 struct audio_cal_header hdr; member
171 struct audio_cal_header hdr; member
395 struct audio_cal_header hdr; member
406 struct audio_cal_header hdr; member
417 struct audio_cal_header hdr; member
429 struct audio_cal_header hdr; member
440 struct audio_cal_header hdr; member
451 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8996/original-kernel-headers/linux/
Dmsm_audio_calibration.h147 struct audio_cal_header hdr; member
159 struct audio_cal_header hdr; member
171 struct audio_cal_header hdr; member
183 struct audio_cal_header hdr; member
426 struct audio_cal_header hdr; member
437 struct audio_cal_header hdr; member
448 struct audio_cal_header hdr; member
459 struct audio_cal_header hdr; member
470 struct audio_cal_header hdr; member
481 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8x09/kernel-headers/linux/
Dmsm_audio_calibration.h141 struct audio_cal_header hdr; member
151 struct audio_cal_header hdr; member
161 struct audio_cal_header hdr; member
171 struct audio_cal_header hdr; member
395 struct audio_cal_header hdr; member
406 struct audio_cal_header hdr; member
417 struct audio_cal_header hdr; member
429 struct audio_cal_header hdr; member
440 struct audio_cal_header hdr; member
451 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8x26/original-kernel-headers/linux/
Dmsm_audio_calibration.h135 struct audio_cal_header hdr; member
147 struct audio_cal_header hdr; member
159 struct audio_cal_header hdr; member
171 struct audio_cal_header hdr; member
358 struct audio_cal_header hdr; member
369 struct audio_cal_header hdr; member
380 struct audio_cal_header hdr; member
391 struct audio_cal_header hdr; member
402 struct audio_cal_header hdr; member
413 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8x26/kernel-headers/linux/
Dmsm_audio_calibration.h129 struct audio_cal_header hdr; member
139 struct audio_cal_header hdr; member
149 struct audio_cal_header hdr; member
159 struct audio_cal_header hdr; member
336 struct audio_cal_header hdr; member
347 struct audio_cal_header hdr; member
359 struct audio_cal_header hdr; member
370 struct audio_cal_header hdr; member
381 struct audio_cal_header hdr; member
392 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8998/kernel-headers/linux/
Dmsm_audio_calibration.h144 struct audio_cal_header hdr; member
154 struct audio_cal_header hdr; member
164 struct audio_cal_header hdr; member
174 struct audio_cal_header hdr; member
412 struct audio_cal_header hdr; member
424 struct audio_cal_header hdr; member
435 struct audio_cal_header hdr; member
446 struct audio_cal_header hdr; member
457 struct audio_cal_header hdr; member
469 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8998/original-kernel-headers/linux/
Dmsm_audio_calibration.h150 struct audio_cal_header hdr; member
162 struct audio_cal_header hdr; member
174 struct audio_cal_header hdr; member
186 struct audio_cal_header hdr; member
442 struct audio_cal_header hdr; member
453 struct audio_cal_header hdr; member
464 struct audio_cal_header hdr; member
475 struct audio_cal_header hdr; member
486 struct audio_cal_header hdr; member
497 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8994/kernel-headers/linux/
Dmsm_audio_calibration.h134 struct audio_cal_header hdr; member
144 struct audio_cal_header hdr; member
154 struct audio_cal_header hdr; member
164 struct audio_cal_header hdr; member
359 struct audio_cal_header hdr; member
370 struct audio_cal_header hdr; member
381 struct audio_cal_header hdr; member
392 struct audio_cal_header hdr; member
404 struct audio_cal_header hdr; member
415 struct audio_cal_header hdr; member
[all …]
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dmsm_audio_calibration.h139 struct audio_cal_header hdr; member
151 struct audio_cal_header hdr; member
163 struct audio_cal_header hdr; member
175 struct audio_cal_header hdr; member
379 struct audio_cal_header hdr; member
390 struct audio_cal_header hdr; member
401 struct audio_cal_header hdr; member
412 struct audio_cal_header hdr; member
423 struct audio_cal_header hdr; member
434 struct audio_cal_header hdr; member
[all …]
/hardware/libhardware/include/hardware/
Dhardware.h40 #define HARDWARE_MAKE_API_VERSION_2(maj,min,hdr) \ argument
41 ((((maj) & 0xff) << 24) | (((min) & 0xff) << 16) | ((hdr) & 0xffff))
69 #define HARDWARE_MODULE_API_VERSION_2(maj,min,hdr) HARDWARE_MAKE_API_VERSION_2(maj,min,hdr) argument
75 #define HARDWARE_DEVICE_API_VERSION_2(maj,min,hdr) HARDWARE_MAKE_API_VERSION_2(maj,min,hdr) argument
/hardware/qcom/msm8998/gpt-utils/
Dgpt-utils.cpp1185 uint8_t* hdr = NULL; in gpt_get_header() local
1218 hdr = (uint8_t*)malloc(block_size); in gpt_get_header()
1219 if (!hdr) { in gpt_get_header()
1233 if (blk_rw(fd, 0, hdr_offset, hdr, block_size)) { in gpt_get_header()
1239 return hdr; in gpt_get_header()
1243 if (hdr) in gpt_get_header()
1244 free(hdr); in gpt_get_header()
1252 static uint8_t* gpt_get_pentry_arr(uint8_t *hdr, int fd) in gpt_get_pentry_arr() argument
1260 if (!hdr) { in gpt_get_pentry_arr()
1274 pentries_start = GET_8_BYTES(hdr + PENTRIES_OFFSET) * block_size; in gpt_get_pentry_arr()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Lan.cpp1916 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_eth_hdr_init()
1917 sCopyHeader.hdr, in handle_eth_hdr_init()
1924 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst], in handle_eth_hdr_init()
1931 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst+IPA_MAC_ADDR_SIZE], in handle_eth_hdr_init()
1940 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_eth_hdr_init()
1941 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1944 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1945 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_eth_hdr_init()
1946 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_ETH_HDR_NAME_v4, sizeof(pHeaderDescriptor->hdr[0].… in handle_eth_hdr_init()
1948 …(" header name construction failed exceed length (%zu)\n", strlen(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
[all …]
DIPACM_Wlan.cpp1098 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_wlan_client_init_ex()
1099 sCopyHeader.hdr, in handle_wlan_client_init_ex()
1112 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1118 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset+IPA_MAC_ADDR_SIZE], in handle_wlan_client_init_ex()
1128 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1140 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_wlan_client_init_ex()
1141 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1144 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1145 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_wlan_client_init_ex()
1147 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_WLAN_PARTIAL_HDR_NAME_v4, sizeof(pHeaderDescriptor… in handle_wlan_client_init_ex()
[all …]
DIPACM_Wan.cpp209 struct ipa_ioc_get_hdr hdr; in handle_addr_evt() local
218 memset(&hdr, 0, sizeof(hdr)); in handle_addr_evt()
260 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
261 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
262 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
267 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
451 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
452 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
453 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
458 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
[all …]
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_Lan.cpp1903 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_eth_hdr_init()
1904 sCopyHeader.hdr, in handle_eth_hdr_init()
1911 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst], in handle_eth_hdr_init()
1918 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst+IPA_MAC_ADDR_SIZE], in handle_eth_hdr_init()
1927 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_eth_hdr_init()
1928 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1931 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1932 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_eth_hdr_init()
1933 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_ETH_HDR_NAME_v4, sizeof(pHeaderDescriptor->hdr[0].… in handle_eth_hdr_init()
1935 …(" header name construction failed exceed length (%zu)\n", strlen(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
[all …]
DIPACM_Wlan.cpp1046 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_wlan_client_init_ex()
1047 sCopyHeader.hdr, in handle_wlan_client_init_ex()
1060 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1066 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset+IPA_MAC_ADDR_SIZE], in handle_wlan_client_init_ex()
1076 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1088 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_wlan_client_init_ex()
1089 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1092 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1093 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_wlan_client_init_ex()
1095 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_WLAN_PARTIAL_HDR_NAME_v4, sizeof(pHeaderDescriptor… in handle_wlan_client_init_ex()
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Wlan.cpp973 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_wlan_client_init_ex()
974 sCopyHeader.hdr, in handle_wlan_client_init_ex()
987 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
993 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset+IPA_MAC_ADDR_SIZE], in handle_wlan_client_init_ex()
1003 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1015 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_wlan_client_init_ex()
1016 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1019 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1020 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_wlan_client_init_ex()
1022 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_WLAN_PARTIAL_HDR_NAME_v4, sizeof(pHeaderDescriptor… in handle_wlan_client_init_ex()
[all …]
DIPACM_Lan.cpp1718 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_eth_hdr_init()
1719 sCopyHeader.hdr, in handle_eth_hdr_init()
1726 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst], in handle_eth_hdr_init()
1733 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst+IPA_MAC_ADDR_SIZE], in handle_eth_hdr_init()
1742 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_eth_hdr_init()
1743 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1746 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
1747 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_eth_hdr_init()
1748 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_ETH_HDR_NAME_v4, sizeof(pHeaderDescriptor->hdr[0].… in handle_eth_hdr_init()
1750 …(" header name construction failed exceed length (%zu)\n", strlen(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
[all …]
/hardware/ril/libril/
DRilSapSocket.cpp242 MsgHeader *hdr = request->curr; in onRequestComplete() local
261 hdr->token, hdr->id, t); in onRequestComplete()
268 if(!pendingResponseQueue.checkAndDequeue(hdr->id, hdr->token)) { in onRequestComplete()
269 RLOGE("Token:%d, MessageId:%d", hdr->token, hdr->id); in onRequestComplete()
274 free(hdr); in onRequestComplete()
/hardware/google/av/media/sfplugin/
DCCodecConfig.cpp1198 C2HdrStaticMetadataStruct hdr; in getSdkFormatForDomain() local
1199 if (msg->findFloat("smpte2086.red.x", &hdr.mastering.red.x) in getSdkFormatForDomain()
1200 && msg->findFloat("smpte2086.red.y", &hdr.mastering.red.y) in getSdkFormatForDomain()
1201 && msg->findFloat("smpte2086.green.x", &hdr.mastering.green.x) in getSdkFormatForDomain()
1202 && msg->findFloat("smpte2086.green.y", &hdr.mastering.green.y) in getSdkFormatForDomain()
1203 && msg->findFloat("smpte2086.blue.x", &hdr.mastering.blue.x) in getSdkFormatForDomain()
1204 && msg->findFloat("smpte2086.blue.y", &hdr.mastering.blue.y) in getSdkFormatForDomain()
1205 && msg->findFloat("smpte2086.white.x", &hdr.mastering.white.x) in getSdkFormatForDomain()
1206 && msg->findFloat("smpte2086.white.y", &hdr.mastering.white.y) in getSdkFormatForDomain()
1207 && msg->findFloat("smpte2086.max-luminance", &hdr.mastering.maxLuminance) in getSdkFormatForDomain()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Dread_device_node.c80 unsigned short hdr; in read_data() local
114 hdr = *((short *)(dptr)); in read_data()
115 if (hdr & 1) in read_data()
118 switch (hdr & (~1)) { in read_data()

123