Home
last modified time | relevance | path

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

12

/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/interfaces/automotive/can/1.0/default/libnl++/
Dprinter.cpp157 static void toStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr, int protocol, in toStream() argument
159 if (!hdr.firstOk()) { in toStream()
173 auto msgDescMaybe = protocolDescr.getMessageDescriptor(hdr->nlmsg_type); in toStream()
175 protocols::MessageDescriptor::getMessageDetails(msgDescMaybe, hdr->nlmsg_type); in toStream()
177 if (msgDescMaybe.has_value()) msgDescMaybe->get().track(hdr); in toStream()
183 if (hdr->nlmsg_flags != 0) { in toStream()
185 flagsToStream(ss, hdr->nlmsg_flags, msgDetails.genre); in toStream()
187 if (hdr->nlmsg_seq != 0) ss << ", seq=" << hdr->nlmsg_seq; in toStream()
188 if (hdr->nlmsg_pid != 0) ss << ", pid=" << hdr->nlmsg_pid; in toStream()
189 ss << ", len=" << hdr->nlmsg_len; in toStream()
[all …]
DSocket.cpp125 for (const auto hdr : msg) { in receiveFrom() local
126 headerByteTotal += hdr->nlmsg_len; in receiveFrom()
/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/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 …]
DIPACM_Wan.cpp204 struct ipa_ioc_get_hdr hdr; in handle_addr_evt() local
213 memset(&hdr, 0, sizeof(hdr)); in handle_addr_evt()
255 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
256 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
257 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
262 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
446 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
447 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
448 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
453 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
[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/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Lan.cpp2048 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_eth_hdr_init()
2049 sCopyHeader.hdr, in handle_eth_hdr_init()
2056 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst], in handle_eth_hdr_init()
2063 memcpy(&pHeaderDescriptor->hdr[0].hdr[sCopyHeader.eth2_ofst+IPA_MAC_ADDR_SIZE], in handle_eth_hdr_init()
2072 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_eth_hdr_init()
2073 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
2076 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
2077 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_eth_hdr_init()
2078 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_ETH_HDR_NAME_v4, sizeof(pHeaderDescriptor->hdr[0].… in handle_eth_hdr_init()
2080 …(" header name construction failed exceed length (%zu)\n", strlen(pHeaderDescriptor->hdr[0].name)); in handle_eth_hdr_init()
[all …]
DIPACM_Wlan.cpp1129 memcpy(pHeaderDescriptor->hdr[0].hdr, in handle_wlan_client_init_ex()
1130 sCopyHeader.hdr, in handle_wlan_client_init_ex()
1143 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1149 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset+IPA_MAC_ADDR_SIZE], in handle_wlan_client_init_ex()
1159 memcpy(&pHeaderDescriptor->hdr[0].hdr[data->attribs[i].offset], in handle_wlan_client_init_ex()
1171 memset(pHeaderDescriptor->hdr[0].name, 0, in handle_wlan_client_init_ex()
1172 sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1175 strlcpy(pHeaderDescriptor->hdr[0].name, index, sizeof(pHeaderDescriptor->hdr[0].name)); in handle_wlan_client_init_ex()
1176 pHeaderDescriptor->hdr[0].name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_wlan_client_init_ex()
1178 …if (strlcat(pHeaderDescriptor->hdr[0].name, IPA_WLAN_PARTIAL_HDR_NAME_v4, sizeof(pHeaderDescriptor… in handle_wlan_client_init_ex()
[all …]
DIPACM_Wan.cpp289 struct ipa_ioc_get_hdr hdr; in handle_addr_evt() local
299 memset(&hdr, 0, sizeof(hdr)); in handle_addr_evt()
358 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
359 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
360 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
365 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
661 strlcpy(hdr.name, tx_prop->tx[0].hdr_name, sizeof(hdr.name)); in handle_addr_evt()
662 hdr.name[IPA_RESOURCE_NAME_MAX-1] = '\0'; in handle_addr_evt()
663 if(m_header.GetHeaderHandle(&hdr) == false) in handle_addr_evt()
669 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
DMessageDefinition.h151 virtual void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const = 0;
158 virtual void track(const Buffer<nlmsghdr> hdr);
189 void dataToStream(std::stringstream& ss, const Buffer<nlmsghdr> hdr) const override { in dataToStream() argument
190 const auto& [ok, msg] = hdr.data<T>().getFirst(); in dataToStream()
/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()
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
Dprinter.h35 std::string toString(const Buffer<nlmsghdr> hdr, int protocol, bool printPayload = true);
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/generic/
DCtrl.cpp63 void Ctrl::track(const Buffer<nlmsghdr> hdr) { in track() argument
64 const auto msgMaybe = Message<genlmsghdr>::parse(hdr, {GENL_ID_CTRL}); in track()
DCtrl.h28 void track(const Buffer<nlmsghdr> hdr) override;
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c715 unsigned short hdr; in read_data() local
784 hdr = *((short *)(dptr)); in read_data()
785 if ((hdr & 0xf) && (hdr != STEP_INDICATOR_HDR)) in read_data()
786 printf("STEP$$$$$$$$$$$$$$$=%x ", hdr); in read_data()
787 switch (hdr & (~0xf)) { in read_data()
862 if (hdr == EMPTY_MARKER) { in read_data()
864 } else if (hdr == END_MARKER) { in read_data()
866 } else if (hdr == COMPASS_HDR_2) { in read_data()
/hardware/qcom/audio/hal/audio_extn/
Dspkr_protection.c199 cal_data.hdr.data_size = sizeof(cal_data); in get_spkr_prot_cal()
200 cal_data.hdr.version = VERSION_0_0; in get_spkr_prot_cal()
201 cal_data.hdr.cal_type = AFE_FB_SPKR_PROT_CAL_TYPE; in get_spkr_prot_cal()
202 cal_data.hdr.cal_type_size = sizeof(cal_data.cal_type); in get_spkr_prot_cal()
241 cal_data.hdr.data_size = sizeof(cal_data); in set_spkr_prot_cal()
242 cal_data.hdr.version = VERSION_0_0; in set_spkr_prot_cal()
243 cal_data.hdr.cal_type = AFE_FB_SPKR_PROT_CAL_TYPE; in set_spkr_prot_cal()
244 cal_data.hdr.cal_type_size = sizeof(cal_data.cal_type); in set_spkr_prot_cal()
/hardware/qcom/display/msm8998/sdm/include/core/
Dlayer_buffer.h208 uint32_t hdr : 1; //!< This flag shall be set by the client to indicate that the member
/hardware/qcom/display/msm8909/sdm/include/core/
Dlayer_buffer.h210 uint32_t hdr : 1; //!< This flag shall be set by the client to indicate that the member
/hardware/qcom/display/msm8909w_3100/sdm/include/core/
Dlayer_buffer.h210 uint32_t hdr : 1; //!< This flag shall be set by the client to indicate that the member
/hardware/qcom/sm7250/display/sdm/include/core/
Dlayer_buffer.h208 uint32_t hdr : 1; //!< This flag shall be set by the client to indicate that the member
/hardware/qcom/sm8150/display/sdm/include/core/
Dlayer_buffer.h221 uint32_t hdr : 1; //!< This flag shall be set by the client to indicate that the member

12