Home
last modified time | relevance | path

Searched refs:tlv (Results 26 – 50 of 224) sorted by relevance

123456789

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c139 struct sr6_tlv_t tlv; in is_valid_tlv_boundary() local
147 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
151 if (tlv.type == SR6_TLV_PADDING) { in is_valid_tlv_boundary()
152 *pad_size = tlv.len + sizeof(tlv); in is_valid_tlv_boundary()
161 } else if (tlv.type == SR6_TLV_HMAC) { in is_valid_tlv_boundary()
165 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
238 uint8_t tlv[20] = {2, 18, 0, 0, 0xfd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, in __add_egr_x() local
242 (struct sr6_tlv_t *)&tlv, 20); in __add_egr_x()
/openbmc/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c38 struct vic_provinfo_tlv *tlv; in vic_provinfo_add_tlv() local
47 tlv = (struct vic_provinfo_tlv *)((u8 *)vp->tlv + in vic_provinfo_add_tlv()
50 tlv->type = htons(type); in vic_provinfo_add_tlv()
51 tlv->length = htons(length); in vic_provinfo_add_tlv()
52 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv()
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_fwd.c186 tlv->type = CLSF_TLV_FILTER; in fill_tlv()
187 tlv->length = sizeof(struct filter); in fill_tlv()
188 *((struct filter *)&tlv->val) = *filter; in fill_tlv()
190 tlv = (struct filter_tlv *)((char *)tlv + sizeof(struct filter_tlv) + in fill_tlv()
192 tlv->type = CLSF_TLV_ACTION; in fill_tlv()
193 tlv->length = sizeof(struct filter_action); in fill_tlv()
194 *((struct filter_action *)&tlv->val) = *action; in fill_tlv()
201 struct filter_tlv *tlv; in usnic_fwd_alloc_flow() local
218 if (!tlv) { in usnic_fwd_alloc_flow()
224 fill_tlv(tlv, filter, &uaction->action); in usnic_fwd_alloc_flow()
[all …]
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcommands.c178 tlv = (struct qlink_tlv_ie_set *)skb_put(cmd_skb, sizeof(*tlv) + in qtnf_cmd_tlv_ie_set_add()
181 tlv->hdr.len = cpu_to_le16(len + sizeof(*tlv) - sizeof(tlv->hdr)); in qtnf_cmd_tlv_ie_set_add()
182 tlv->type = frame_type; in qtnf_cmd_tlv_ie_set_add()
183 tlv->flags = 0; in qtnf_cmd_tlv_ie_set_add()
227 tlv = (struct qlink_tlv_ext_ie *)skb_put(cmd_skb, sizeof(*tlv) + len); in qtnf_cmd_tlv_ie_ext_add()
229 tlv->hdr.len = cpu_to_le16(sizeof(*tlv) + len - sizeof(tlv->hdr)); in qtnf_cmd_tlv_ie_ext_add()
599 map = tlv->val; in qtnf_cmd_sta_info_parse()
1330 payload_len = struct_size(tlv, iftype_data, tlv->n_iftype_data); in qtnf_cmd_band_fill_iftype()
1953 tlv = skb_put_zero(cmd_skb, sizeof(*tlv)); in qtnf_cmd_channel_tlv_add()
1954 qch = &tlv->chan; in qtnf_cmd_channel_tlv_add()
[all …]
H A Dqlink_util.c293 const struct qlink_tlv_reg_rule *tlv) in qlink_utils_regrule_q2nl() argument
295 rule->freq_range.start_freq_khz = le32_to_cpu(tlv->start_freq_khz); in qlink_utils_regrule_q2nl()
296 rule->freq_range.end_freq_khz = le32_to_cpu(tlv->end_freq_khz); in qlink_utils_regrule_q2nl()
298 le32_to_cpu(tlv->max_bandwidth_khz); in qlink_utils_regrule_q2nl()
299 rule->power_rule.max_antenna_gain = le32_to_cpu(tlv->max_antenna_gain); in qlink_utils_regrule_q2nl()
300 rule->power_rule.max_eirp = le32_to_cpu(tlv->max_eirp); in qlink_utils_regrule_q2nl()
301 rule->dfs_cac_ms = le32_to_cpu(tlv->dfs_cac_ms); in qlink_utils_regrule_q2nl()
302 rule->flags = qtnf_reg_rule_flags_parse(le32_to_cpu(tlv->flags)); in qlink_utils_regrule_q2nl()
H A Devent.c29 const struct qlink_tlv_hdr *tlv; in qtnf_event_handle_sta_assoc() local
63 tlv_type = le16_to_cpu(tlv->type); in qtnf_event_handle_sta_assoc()
64 tlv_value_len = le16_to_cpu(tlv->len); in qtnf_event_handle_sta_assoc()
76 ie_set = (const struct qlink_tlv_ie_set *)tlv; in qtnf_event_handle_sta_assoc()
148 const struct qlink_tlv_hdr *tlv; in qtnf_event_handle_bss_join() local
232 tlv_type = le16_to_cpu(tlv->type); in qtnf_event_handle_bss_join()
233 tlv_value_len = le16_to_cpu(tlv->len); in qtnf_event_handle_bss_join()
246 ie_set = (const struct qlink_tlv_ie_set *)tlv; in qtnf_event_handle_bss_join()
351 const struct qlink_tlv_hdr *tlv; in qtnf_event_handle_scan_results() local
371 tlv_type = le16_to_cpu(tlv->type); in qtnf_event_handle_scan_results()
[all …]
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfru_oem_ibm.cpp49 auto tlv = reinterpret_cast<const pldm_fru_record_tlv*>(data); in processOEMFRUTable() local
50 if (!tlv) in processOEMFRUTable()
55 if (tlv->type == PLDM_OEM_FRU_FIELD_TYPE_PCIE_CONFIG_SPACE_DATA) in processOEMFRUTable()
58 reinterpret_cast<const PcieConfigSpaceData*>(tlv->value); in processOEMFRUTable()
88 if (tlv->type == PLDM_OEM_IBM_FRU_FIELD_TYPE_FIRMWARE_UAK) in processOEMFRUTable()
90 std::vector<uint8_t> value(&tlv->value[0], in processOEMFRUTable()
91 &tlv->value[tlv->length]); in processOEMFRUTable()
97 tlv->length; in processOEMFRUTable()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mcu.c330 struct tlv *tlv; in mt76_connac_mcu_bss_omac_tlv() local
372 struct tlv *tlv; in mt76_connac_mcu_sta_basic_tlv() local
430 struct tlv *tlv; in mt76_connac_mcu_sta_uapsd() local
464 struct tlv *tlv; in mt76_connac_mcu_wtbl_hdr_trans_tlv() local
544 struct tlv *tlv; in mt76_connac_mcu_wtbl_generic_tlv() local
594 struct tlv *tlv; in mt76_connac_mcu_sta_amsdu_tlv() local
621 struct tlv *tlv; in mt76_connac_mcu_sta_he_tlv() local
754 struct tlv *tlv; in mt76_connac_mcu_sta_he_tlv_v2() local
840 struct tlv *tlv; in mt76_connac_mcu_sta_tlv() local
933 struct tlv *tlv; in mt76_connac_mcu_wtbl_smps_tlv() local
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dcfg.c264 tlv += i; in lbs_add_supported_rates_tlv()
278 return tlv; in add_ie_rates()
294 return tlv; in add_ie_rates()
320 tlv = add_ie_rates(tlv, rates_eid, &n); in lbs_add_common_rates_tlv()
324 tlv = add_ie_rates(tlv, ext_rates_eid, &n); in lbs_add_common_rates_tlv()
328 *tlv++ = 0x82; in lbs_add_common_rates_tlv()
329 *tlv++ = 0x84; in lbs_add_common_rates_tlv()
753 tlv += lbs_add_ssid_tlv(tlv, in lbs_scan_worker()
761 tlv += lbs_add_channel_list_tlv(priv, tlv, last_channel, in lbs_scan_worker()
765 tlv += lbs_add_supported_rates_tlv(tlv); in lbs_scan_worker()
[all …]
H A Ddebugfs.c197 static void *lbs_tlv_find(uint16_t tlv_type, const uint8_t *tlv, uint16_t size) in lbs_tlv_find() argument
204 tlv_h = (struct mrvl_ie_header *) tlv; in lbs_tlv_find()
211 tlv += length; in lbs_tlv_find()
248 got = lbs_tlv_find(tlv_type, subscribed->tlv, sizeof(subscribed->tlv)); in lbs_threshold_read()
275 struct mrvl_ie_thresholds *tlv; in lbs_threshold_write() local
313 tlv = (void *)events->tlv; in lbs_threshold_write()
317 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write()
318 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write()
319 tlv->value = value; in lbs_threshold_write()
321 tlv->freq = freq; in lbs_threshold_write()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dhal_rx.c32 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath12k_hal_reo_cmd_queue_stats()
49 struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_cmd_flush_cache() argument
65 desc = (struct hal_reo_flush_cache *)tlv->value; in ath12k_hal_reo_cmd_flush_cache()
103 desc = (struct hal_reo_update_rx_queue *)tlv->value; in ath12k_hal_reo_cmd_update_rx_queue()
529 (struct hal_reo_flush_queue_status *)tlv->value; in ath12k_hal_reo_flush_queue_status()
611 struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_flush_timeout_list_status() argument
640 struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_desc_thresh_reached_status() argument
675 struct hal_tlv_64_hdr *tlv, in ath12k_hal_reo_update_rx_reo_queue_status() argument
679 (struct hal_reo_status_hdr *)tlv->value; in ath12k_hal_reo_update_rx_reo_queue_status()
795 struct hal_tlv_64_hdr *tlv; in ath12k_hal_reo_init_cmd_ring() local
[all …]
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_event.c338 tp = (void *)tlv; in mwifiex_process_uap_tx_pause()
372 tp = (void *)tlv; in mwifiex_process_sta_tx_pause()
410 struct mwifiex_ie_types_header *tlv; in mwifiex_process_multi_chan_event() local
433 tlv_type = le16_to_cpu(tlv->type); in mwifiex_process_multi_chan_event()
434 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
472 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
501 tlv_type = le16_to_cpu(tlv->type); in mwifiex_process_tx_pause_event()
502 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
519 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_tx_pause_event()
541 tlv_len = le16_to_cpu(tlv->len); in mwifiex_bt_coex_wlan_param_update_event()
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_mng_tlv.c1184 struct qed_drv_tlv_hdr tlv; in qed_mfw_update_tlvs() local
1198 memset(&tlv, 0, sizeof(tlv)); in qed_mfw_update_tlvs()
1200 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in qed_mfw_update_tlvs()
1202 tlv.tlv_type = TLV_TYPE(p_tlv); in qed_mfw_update_tlvs()
1204 tlv.tlv_flags = TLV_FLAGS(p_tlv); in qed_mfw_update_tlvs()
1208 tlv.tlv_length, tlv.tlv_flags); in qed_mfw_update_tlvs()
1228 WARN(len > 4 * tlv.tlv_length, in qed_mfw_update_tlvs()
1230 len, 4 * tlv.tlv_length); in qed_mfw_update_tlvs()
1248 struct qed_drv_tlv_hdr tlv; in qed_mfw_process_tlv_req() local
1285 offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) { in qed_mfw_process_tlv_req()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmcu.c484 struct tlv *tlv; in mt7915_mcu_bss_rfch_tlv() local
517 struct tlv *tlv; in mt7915_mcu_bss_ra_tlv() local
545 struct tlv *tlv; in mt7915_mcu_bss_he_tlv() local
571 struct tlv *tlv; in mt7915_mcu_bss_hw_amsdu_tlv() local
588 struct tlv *tlv; in mt7915_mcu_bss_bmc_tlv() local
720 struct tlv *tlv; in mt7915_mcu_sta_he_tlv() local
862 struct tlv *tlv; in mt7915_mcu_sta_muru_tlv() local
915 struct tlv *tlv; in mt7915_mcu_sta_ht_tlv() local
930 struct tlv *tlv; in mt7915_mcu_sta_vht_tlv() local
949 struct tlv *tlv; in mt7915_mcu_sta_amsdu_tlv() local
[all …]
/openbmc/libpldm/src/dsp/
H A Dfru.c225 const struct pldm_fru_record_tlv *tlv; in get_fru_record_by_option() local
233 tlv = record_data_src->tlvs; in get_fru_record_by_option()
236 len = sizeof(*tlv) - 1 + tlv->length; in get_fru_record_by_option()
237 tlv = (const struct pldm_fru_record_tlv in get_fru_record_by_option()
238 *)((char *)tlv + len); in get_fru_record_by_option()
242 *)(tlv); in get_fru_record_by_option()
257 tlv = record_data_src->tlvs; in get_fru_record_by_option()
260 len = sizeof(*tlv) - 1 + tlv->length; in get_fru_record_by_option()
261 if (tlv->type == ft || ft == 0) { in get_fru_record_by_option()
265 memcpy(pos, tlv, len); in get_fru_record_by_option()
[all …]
/openbmc/linux/drivers/net/wireless/ath/
H A Dspectral_common.h50 struct fft_sample_tlv tlv; member
68 struct fft_sample_tlv tlv; member
96 struct fft_sample_tlv tlv; member
115 struct fft_sample_tlv tlv; member
/openbmc/linux/sound/core/
H A Dvmaster.c35 unsigned int tlv[4]; member
223 unsigned int __user *tlv) in follower_tlv_cmd() argument
227 return follower->follower.tlv.c(&follower->follower, op_flag, size, tlv); in follower_tlv_cmd()
274 follower->tlv.c = follower_tlv_cmd; in _snd_ctl_add_follower()
421 const unsigned int *tlv) in snd_ctl_make_virtual_master() argument
449 if (tlv) { in snd_ctl_make_virtual_master()
450 unsigned int type = tlv[SNDRV_CTL_TLVO_TYPE]; in snd_ctl_make_virtual_master()
455 memcpy(master->tlv, tlv, sizeof(master->tlv)); in snd_ctl_make_virtual_master()
456 kctl->tlv.p = master->tlv; in snd_ctl_make_virtual_master()
/openbmc/pldm/libpldmresponder/
H A Dpdr_utils.cpp244 auto tlv = in parseFruRecordTable() local
247 frutlv.fruFieldType = tlv->type; in parseFruRecordTable()
248 frutlv.fruFieldLen = tlv->length; in parseFruRecordTable()
249 frutlv.fruFieldValue.resize(tlv->length); in parseFruRecordTable()
250 for (const auto& i : std::views::iota(0, (int)tlv->length)) in parseFruRecordTable()
252 memcpy(frutlv.fruFieldValue.data() + i, tlv->value + i, 1); in parseFruRecordTable()
257 index += fruFieldTypeLength + (unsigned)tlv->length; in parseFruRecordTable()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dhal_rx.c31 desc = (struct hal_reo_get_queue_stats *)tlv->value; in ath11k_hal_reo_cmd_queue_stats()
63 desc = (struct hal_reo_flush_cache *)tlv->value; in ath11k_hal_reo_cmd_flush_cache()
101 desc = (struct hal_reo_update_rx_queue *)tlv->value; in ath11k_hal_reo_cmd_update_rx_queue()
502 hdr = (struct hal_reo_status_hdr *)tlv->value; in ath11k_hal_reo_process_status()
668 (struct hal_reo_status_hdr *)tlv->value; in ath11k_hal_reo_update_rx_reo_queue_status()
786 struct hal_tlv_hdr *tlv; in ath11k_hal_reo_init_cmd_ring() local
799 tlv = (struct hal_tlv_hdr *)entry; in ath11k_hal_reo_init_cmd_ring()
1505 struct hal_tlv_hdr *tlv; in ath11k_hal_rx_parse_mon_status() local
1513 tlv = (struct hal_tlv_hdr *)ptr; in ath11k_hal_rx_parse_mon_status()
1514 tlv_tag = FIELD_GET(HAL_TLV_HDR_TAG, tlv->tl); in ath11k_hal_rx_parse_mon_status()
[all …]
H A Dspectral.c585 struct spectral_tlv *tlv; in ath11k_spectral_process_fft() local
601 tlv = (struct spectral_tlv *)data; in ath11k_spectral_process_fft()
659 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH11K; in ath11k_spectral_process_fft()
707 struct spectral_tlv *tlv; in ath11k_spectral_process_data() local
736 if ((i + sizeof(*tlv)) > data_len) { in ath11k_spectral_process_data()
743 tlv = (struct spectral_tlv *)&data[i]; in ath11k_spectral_process_data()
745 __le32_to_cpu(tlv->header)); in ath11k_spectral_process_data()
754 __le32_to_cpu(tlv->header)); in ath11k_spectral_process_data()
765 __le32_to_cpu(tlv->header)); in ath11k_spectral_process_data()
795 sizeof(*tlv))) { in ath11k_spectral_process_data()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/nvmem/layouts/
H A Donie,tlv-layout.yaml4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml#
7 title: NVMEM layout of the ONIE tlv table
26 const: onie,tlv-layout
117 compatible = "onie,tlv-layout";
138 compatible = "onie,tlv-layout";
/openbmc/linux/sound/pci/ice1712/
H A Dwm8776.c132 .tlv = wm8776_dac_tlv,
158 .tlv = wm8776_hp_tlv,
219 .tlv = wm8776_adc_tlv,
278 .tlv = wm8776_lct_tlv,
318 .tlv = wm8776_maxatten_lim_tlv,
328 .tlv = wm8776_lct_tlv,
359 .tlv = wm8776_maxgain_tlv,
369 .tlv = wm8776_maxatten_alc_tlv,
398 .tlv = wm8776_ngth_tlv,
559 cont.tlv.p = NULL; in snd_wm8776_add_control()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dbtintel.c555 struct intel_tlv *tlv; in btintel_parse_version_tlv() local
558 if (skb->len < sizeof(*tlv)) in btintel_parse_version_tlv()
564 if (skb->len < tlv->len + sizeof(*tlv)) in btintel_parse_version_tlv()
567 switch (tlv->type) { in btintel_parse_version_tlv()
584 version->img_type = tlv->val[0]; in btintel_parse_version_tlv()
596 version->build_type = tlv->val[0]; in btintel_parse_version_tlv()
610 version->otp_lock = tlv->val[0]; in btintel_parse_version_tlv()
613 version->api_lock = tlv->val[0]; in btintel_parse_version_tlv()
627 version->sbe_type = tlv->val[0]; in btintel_parse_version_tlv()
638 skb_pull(skb, tlv->len + sizeof(*tlv)); in btintel_parse_version_tlv()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_tlv.h41 #define FM10K_TLV_LEN_ALIGN(tlv) \ argument
42 (((tlv) + FM10K_TLV_LEN_ALIGN_MASK) & ~FM10K_TLV_LEN_ALIGN_MASK)
43 #define FM10K_TLV_DWORD_LEN(tlv) \ argument
44 ((u16)((FM10K_TLV_LEN_ALIGN(tlv)) >> (FM10K_TLV_LEN_SHIFT + 2)) + 1)
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-dbg-tlv.h23 struct iwl_ucode_tlv tlv; member
53 void iwl_dbg_tlv_alloc(struct iwl_trans *trans, const struct iwl_ucode_tlv *tlv,

123456789