Home
last modified time | relevance | path

Searched refs:elems (Results 1 – 25 of 100) sorted by relevance

1234

/kernel/linux/linux-5.10/net/mac80211/
Dspectmgmt.c23 struct ieee802_11_elems *elems, in ieee80211_parse_ch_switch_ie() argument
40 sec_chan_offs = elems->sec_chan_offs; in ieee80211_parse_ch_switch_ie()
41 wide_bw_chansw_ie = elems->wide_bw_chansw_ie; in ieee80211_parse_ch_switch_ie()
52 if (elems->ext_chansw_ie) { in ieee80211_parse_ch_switch_ie()
54 elems->ext_chansw_ie->new_operating_class, in ieee80211_parse_ch_switch_ie()
58 elems->ext_chansw_ie->new_operating_class); in ieee80211_parse_ch_switch_ie()
60 new_chan_no = elems->ext_chansw_ie->new_ch_num; in ieee80211_parse_ch_switch_ie()
61 csa_ie->count = elems->ext_chansw_ie->count; in ieee80211_parse_ch_switch_ie()
62 csa_ie->mode = elems->ext_chansw_ie->mode; in ieee80211_parse_ch_switch_ie()
63 } else if (elems->ch_switch_ie) { in ieee80211_parse_ch_switch_ie()
[all …]
Dmesh_plink.c413 struct ieee802_11_elems *elems) in mesh_sta_info_init() argument
424 rates = ieee80211_sta_get_rates(sdata, elems, sband->band, in mesh_sta_info_init()
441 elems->ht_cap_elem, sta)) in mesh_sta_info_init()
445 elems->vht_cap_elem, sta); in mesh_sta_info_init()
447 ieee80211_he_cap_ie_to_sta_he_cap(sdata, sband, elems->he_cap, in mesh_sta_info_init()
448 elems->he_cap_len, in mesh_sta_info_init()
449 elems->he_6ghz_capa, in mesh_sta_info_init()
456 if (elems->ht_operation && in mesh_sta_info_init()
457 !(elems->ht_operation->ht_param & in mesh_sta_info_init()
530 struct ieee802_11_elems *elems, in mesh_sta_info_alloc() argument
[all …]
Dutil.c950 struct ieee802_11_elems *elems) in ieee80211_parse_extension_element() argument
962 if (len >= sizeof(*elems->mu_edca_param_set)) { in ieee80211_parse_extension_element()
963 elems->mu_edca_param_set = data; in ieee80211_parse_extension_element()
970 elems->he_cap = data; in ieee80211_parse_extension_element()
971 elems->he_cap_len = len; in ieee80211_parse_extension_element()
974 if (len >= sizeof(*elems->he_operation) && in ieee80211_parse_extension_element()
979 elems->he_operation = data; in ieee80211_parse_extension_element()
984 elems->uora_element = data; in ieee80211_parse_extension_element()
988 elems->max_channel_switch_time = data; in ieee80211_parse_extension_element()
991 if (len >= sizeof(*elems->mbssid_config_ie)) in ieee80211_parse_extension_element()
[all …]
Dscan.c41 static bool is_uapsd_supported(struct ieee802_11_elems *elems) in is_uapsd_supported() argument
45 if (elems->wmm_info && elems->wmm_info_len == 7 in is_uapsd_supported()
46 && elems->wmm_info[5] == 1) in is_uapsd_supported()
47 qos_info = elems->wmm_info[6]; in is_uapsd_supported()
48 else if (elems->wmm_param && elems->wmm_param_len == 24 in is_uapsd_supported()
49 && elems->wmm_param[5] == 1) in is_uapsd_supported()
50 qos_info = elems->wmm_param[6]; in is_uapsd_supported()
61 struct ieee802_11_elems *elems, in ieee80211_update_bss_from_elems() argument
72 if (elems->parse_error) { in ieee80211_update_bss_from_elems()
85 if (elems->erp_info && (!elems->parse_error || in ieee80211_update_bss_from_elems()
[all …]
Dmlme.c1362 struct ieee802_11_elems *elems, in ieee80211_sta_process_chanswitch() argument
1386 res = ieee80211_parse_ch_switch_ie(sdata, elems, current_band, in ieee80211_sta_process_chanswitch()
3248 const struct ieee802_11_elems *elems) in ieee80211_twt_req_supported() argument
3250 if (elems->ext_capab_len < 10) in ieee80211_twt_req_supported()
3253 if (!(elems->ext_capab[9] & WLAN_EXT_CAPA10_TWT_RESPONDER_SUPPORT)) in ieee80211_twt_req_supported()
3262 struct ieee802_11_elems *elems) in ieee80211_recalc_twt_req() argument
3264 bool twt = ieee80211_twt_req_supported(sta, elems); in ieee80211_recalc_twt_req()
3276 struct ieee802_11_elems *elems) in ieee80211_assoc_success() argument
3302 ieee802_11_parse_elems(pos, len - (pos - (u8 *)mgmt), false, elems, in ieee80211_assoc_success()
3305 if (elems->aid_resp) in ieee80211_assoc_success()
[all …]
Dmesh.c1094 struct ieee802_11_elems *elems, bool beacon) in ieee80211_mesh_process_chnswitch() argument
1124 if (elems->vht_cap_elem) in ieee80211_mesh_process_chnswitch()
1126 le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_mesh_process_chnswitch()
1129 err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band, in ieee80211_mesh_process_chnswitch()
1219 struct ieee802_11_elems elems; in ieee80211_mesh_rx_probe_req() local
1228 ieee802_11_parse_elems(pos, len - baselen, false, &elems, mgmt->bssid, in ieee80211_mesh_rx_probe_req()
1231 if (!elems.mesh_id) in ieee80211_mesh_rx_probe_req()
1237 elems.ssid_len != 0) in ieee80211_mesh_rx_probe_req()
1240 if (elems.mesh_id_len != 0 && in ieee80211_mesh_rx_probe_req()
1241 (elems.mesh_id_len != ifmsh->mesh_id_len || in ieee80211_mesh_rx_probe_req()
[all …]
Dibss.c779 struct ieee802_11_elems *elems, in ieee80211_ibss_process_chanswitch() argument
806 if (elems->vht_cap_elem) in ieee80211_ibss_process_chanswitch()
807 vht_cap_info = le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_ibss_process_chanswitch()
810 err = ieee80211_parse_ch_switch_ie(sdata, elems, in ieee80211_ibss_process_chanswitch()
920 struct ieee802_11_elems *elems) in ieee80211_rx_mgmt_spectrum_mgmt() argument
938 ieee80211_ibss_process_chanswitch(sdata, elems, false); in ieee80211_rx_mgmt_spectrum_mgmt()
989 struct ieee802_11_elems *elems, in ieee80211_update_sta_info() argument
1013 if (elems->supp_rates) { in ieee80211_update_sta_info()
1014 supp_rates = ieee80211_sta_get_rates(sdata, elems, in ieee80211_update_sta_info()
1044 (elems->wmm_info || elems->s1g_capab) && in ieee80211_update_sta_info()
[all …]
Dmesh_sync.c82 struct ieee802_11_elems *elems, in mesh_sync_offset_rx_bcn_presp() argument
105 elems->total_len + in mesh_sync_offset_rx_bcn_presp()
122 if (elems->mesh_config && mesh_peer_tbtt_adjusting(elems)) { in mesh_sync_offset_rx_bcn_presp()
Dtdls.c1687 struct ieee802_11_elems elems; in ieee80211_process_tdls_channel_switch_resp() local
1722 skb->len - baselen, false, &elems, in ieee80211_process_tdls_channel_switch_resp()
1724 if (elems.parse_error) { in ieee80211_process_tdls_channel_switch_resp()
1730 if (!elems.ch_sw_timing || !elems.lnk_id) { in ieee80211_process_tdls_channel_switch_resp()
1738 !memcmp(elems.lnk_id->init_sta, sdata->vif.addr, ETH_ALEN); in ieee80211_process_tdls_channel_switch_resp()
1745 params.switch_time = le16_to_cpu(elems.ch_sw_timing->switch_time); in ieee80211_process_tdls_channel_switch_resp()
1746 params.switch_timeout = le16_to_cpu(elems.ch_sw_timing->switch_timeout); in ieee80211_process_tdls_channel_switch_resp()
1774 struct ieee802_11_elems elems; in ieee80211_process_tdls_channel_switch_req() local
1835 skb->len - baselen, false, &elems, NULL, NULL); in ieee80211_process_tdls_channel_switch_req()
1836 if (elems.parse_error) { in ieee80211_process_tdls_channel_switch_req()
[all …]
Dmesh_hwmp.c911 struct ieee802_11_elems elems; in mesh_rx_path_sel_frame() local
930 len - baselen, false, &elems, mgmt->bssid, NULL); in mesh_rx_path_sel_frame()
932 if (elems.preq) { in mesh_rx_path_sel_frame()
933 if (elems.preq_len != 37) in mesh_rx_path_sel_frame()
936 path_metric = hwmp_route_info_get(sdata, mgmt, elems.preq, in mesh_rx_path_sel_frame()
939 hwmp_preq_frame_process(sdata, mgmt, elems.preq, in mesh_rx_path_sel_frame()
942 if (elems.prep) { in mesh_rx_path_sel_frame()
943 if (elems.prep_len != 31) in mesh_rx_path_sel_frame()
946 path_metric = hwmp_route_info_get(sdata, mgmt, elems.prep, in mesh_rx_path_sel_frame()
949 hwmp_prep_frame_process(sdata, mgmt, elems.prep, in mesh_rx_path_sel_frame()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/base/circbuf/src/
Dcircbuf.c73 ia_css_circbuf_elem_t *elems, in ia_css_circbuf_create() argument
87 ia_css_circbuf_elem_init(&elems[i]); in ia_css_circbuf_create()
89 cb->elems = elems; in ia_css_circbuf_create()
100 cb->elems = NULL; in ia_css_circbuf_destroy()
160 val = ia_css_circbuf_elem_get_val(&cb->elems[pos]); in ia_css_circbuf_extract()
181 return cb->elems[pos].val; in ia_css_circbuf_peek()
195 return cb->elems[pos].val; in ia_css_circbuf_peek_from_start()
206 ia_css_circbuf_elem_t *elems) in ia_css_circbuf_increase_size() argument
228 if (elems) { in ia_css_circbuf_increase_size()
234 cb->elems[i] = elems[i - curr_size]; in ia_css_circbuf_increase_size()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_ieee80211.c680 struct rtw_ieee802_11_elems *elems, int show_errors) in rtw_ieee802_11_parse_vendor_specific() argument
710 elems->wpa_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
711 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
722 elems->wme = pos; in rtw_ieee802_11_parse_vendor_specific()
723 elems->wme_len = elen; in rtw_ieee802_11_parse_vendor_specific()
726 elems->wme_tspec = pos; in rtw_ieee802_11_parse_vendor_specific()
727 elems->wme_tspec_len = elen; in rtw_ieee802_11_parse_vendor_specific()
737 elems->wps_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
738 elems->wps_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
750 elems->vendor_ht_cap = pos; in rtw_ieee802_11_parse_vendor_specific()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c861 struct rtw_ieee802_11_elems *elems, in rtw_ieee802_11_parse_vendor_specific() argument
887 elems->wpa_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
888 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
901 elems->wme = pos; in rtw_ieee802_11_parse_vendor_specific()
902 elems->wme_len = elen; in rtw_ieee802_11_parse_vendor_specific()
905 elems->wme_tspec = pos; in rtw_ieee802_11_parse_vendor_specific()
906 elems->wme_tspec_len = elen; in rtw_ieee802_11_parse_vendor_specific()
918 elems->wps_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
919 elems->wps_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
933 elems->vendor_ht_cap = pos; in rtw_ieee802_11_parse_vendor_specific()
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-event.c24 return idx >= sev->elems ? idx - sev->elems : idx; in sev_pos()
118 if (sev->in_use == sev->elems) { in __v4l2_event_queue_fh()
125 if (sev->elems == 1) { in __v4l2_event_queue_fh()
207 const struct v4l2_event_subscription *sub, unsigned elems, in v4l2_event_subscribe() argument
218 if (elems < 1) in v4l2_event_subscribe()
219 elems = 1; in v4l2_event_subscribe()
221 sev = kvzalloc(struct_size(sev, events, elems), GFP_KERNEL); in v4l2_event_subscribe()
224 for (i = 0; i < elems; i++) in v4l2_event_subscribe()
231 sev->elems = elems; in v4l2_event_subscribe()
245 ret = sev->ops->add(sev, elems); in v4l2_event_subscribe()
/kernel/linux/linux-5.10/fs/btrfs/
Dreada.c67 u64 elems; member
186 if (atomic_dec_and_test(&rc->elems)) { in __readahead_hook()
271 zone->elems = 0; in reada_find_zone()
367 if (!zone->elems) in reada_find_extent()
369 ++zone->elems; in reada_find_extent()
469 --zone->elems; in reada_find_extent()
470 if (zone->elems == 0) { in reada_find_extent()
514 --zone->elems; in reada_extent_put()
515 if (zone->elems == 0) { in reada_extent_put()
568 atomic_inc(&rc->elems); in reada_add_block()
[all …]
/kernel/linux/linux-5.10/include/media/
Dv4l2-event.h47 int (*add)(struct v4l2_subscribed_event *sev, unsigned int elems);
78 unsigned int elems; member
147 unsigned int elems,
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/
Dia_css_ref.host.c35 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_ref_config()
40 to->port_b.elems = elems_a; in ia_css_ref_config()
55 assert(elems_a % to->port_b.elems == 0); in ia_css_ref_config()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/base/circbuf/interface/
Dia_css_circbuf.h38 ia_css_circbuf_elem_t *elems; /* an array of elements */ member
50 ia_css_circbuf_elem_t *elems,
287 ia_css_circbuf_elem_cpy(&elem, &cb->elems[cb->desc->end]); in ia_css_circbuf_write()
375 ia_css_circbuf_elem_t *elems);
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dvmem.c189 unsigned int elems) /* In t_vmem_elem */ in isp_vmem_load() argument
196 assert(elems % ISP_NWAY == 0); in isp_vmem_load()
197 for (c = 0; c < elems; c += ISP_NWAY) { in isp_vmem_load()
207 unsigned int elems) /* In t_vmem_elem */ in isp_vmem_store() argument
214 assert(elems % ISP_NWAY == 0); in isp_vmem_store()
215 for (c = 0; c < elems; c += ISP_NWAY) { in isp_vmem_store()
Dvmem_local.h30 unsigned int elems); /* In t_vmem_elem */
36 unsigned int elems); /* In t_vmem_elem */
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/crop/crop_1.0/
Dia_css_crop.host.c49 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_crop_config()
52 assert(elems_a % to->port_b.elems == 0); in ia_css_crop_config()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/qplane/qplane_2/
Dia_css_qplane.host.c41 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_qplane_config()
44 assert(elems_a % to->port_b.elems == 0); in ia_css_qplane_config()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c32 __u32 elems = 0; variable
45 elems++; in copy()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/fpn/fpn_1.0/
Dia_css_fpn.host.c64 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_fpn_config()
67 assert(elems_a % to->port_b.elems == 0); in ia_css_fpn_config()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr_1.0/
Dia_css_tnr.host.c85 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_tnr_config()
93 assert(elems_a % to->port_b.elems == 0); in ia_css_tnr_config()

1234