Home
last modified time | relevance | path

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

1234

/Linux-v6.6/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 …]
Dutil.c917 struct ieee802_11_elems *elems, in ieee80211_parse_extension_element() argument
932 if (len >= sizeof(*elems->mu_edca_param_set)) in ieee80211_parse_extension_element()
933 elems->mu_edca_param_set = data; in ieee80211_parse_extension_element()
937 elems->he_cap = data; in ieee80211_parse_extension_element()
938 elems->he_cap_len = len; in ieee80211_parse_extension_element()
943 if (len >= sizeof(*elems->he_operation) && in ieee80211_parse_extension_element()
945 elems->he_operation = data; in ieee80211_parse_extension_element()
949 elems->uora_element = data; in ieee80211_parse_extension_element()
953 elems->max_channel_switch_time = data; in ieee80211_parse_extension_element()
956 if (len >= sizeof(*elems->mbssid_config_ie)) in ieee80211_parse_extension_element()
[all …]
Dmesh_plink.c421 struct ieee802_11_elems *elems) in mesh_sta_info_init() argument
432 rates = ieee80211_sta_get_rates(sdata, elems, sband->band, in mesh_sta_info_init()
449 elems->ht_cap_elem, in mesh_sta_info_init()
454 elems->vht_cap_elem, NULL, in mesh_sta_info_init()
457 ieee80211_he_cap_ie_to_sta_he_cap(sdata, sband, elems->he_cap, in mesh_sta_info_init()
458 elems->he_cap_len, in mesh_sta_info_init()
459 elems->he_6ghz_capa, in mesh_sta_info_init()
462 ieee80211_eht_cap_ie_to_sta_eht_cap(sdata, sband, elems->he_cap, in mesh_sta_info_init()
463 elems->he_cap_len, in mesh_sta_info_init()
464 elems->eht_cap, elems->eht_cap_len, in mesh_sta_info_init()
[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()
72 struct ieee802_11_elems *elems; in ieee80211_inform_bss() local
79 elems = ieee802_11_parse_elems(ies->data, ies->len, false, NULL); in ieee80211_inform_bss()
80 if (!elems) in ieee80211_inform_bss()
[all …]
Dmlme.c898 const u8 *elems, in ieee80211_add_before_ht_elems() argument
935 noffset = ieee80211_ie_split_ric(elems, elems_len, in ieee80211_add_before_ht_elems()
941 skb_put_data(skb, elems + offset, noffset - offset); in ieee80211_add_before_ht_elems()
947 const u8 *elems, in ieee80211_add_before_vht_elems() argument
969 noffset = ieee80211_ie_split(elems, elems_len, in ieee80211_add_before_vht_elems()
972 skb_put_data(skb, elems + offset, noffset - offset); in ieee80211_add_before_vht_elems()
978 const u8 *elems, in ieee80211_add_before_he_elems() argument
1003 noffset = ieee80211_ie_split(elems, elems_len, in ieee80211_add_before_he_elems()
1006 skb_put_data(skb, elems + offset, noffset - offset); in ieee80211_add_before_he_elems()
1332 extra_elems = assoc_data->link[link_id].elems; in ieee80211_assoc_add_ml_elem()
[all …]
Dmesh.c1284 struct ieee802_11_elems *elems, bool beacon) in ieee80211_mesh_process_chnswitch() argument
1314 if (elems->vht_cap_elem) in ieee80211_mesh_process_chnswitch()
1316 le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_mesh_process_chnswitch()
1319 err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band, in ieee80211_mesh_process_chnswitch()
1409 struct ieee802_11_elems *elems; in ieee80211_mesh_rx_probe_req() local
1418 elems = ieee802_11_parse_elems(pos, len - baselen, false, NULL); in ieee80211_mesh_rx_probe_req()
1419 if (!elems) in ieee80211_mesh_rx_probe_req()
1422 if (!elems->mesh_id) in ieee80211_mesh_rx_probe_req()
1428 elems->ssid_len != 0) in ieee80211_mesh_rx_probe_req()
1431 if (elems->mesh_id_len != 0 && in ieee80211_mesh_rx_probe_req()
[all …]
Dibss.c771 struct ieee802_11_elems *elems, in ieee80211_ibss_process_chanswitch() argument
799 if (elems->vht_cap_elem) in ieee80211_ibss_process_chanswitch()
800 vht_cap_info = le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_ibss_process_chanswitch()
803 err = ieee80211_parse_ch_switch_ie(sdata, elems, in ieee80211_ibss_process_chanswitch()
913 struct ieee802_11_elems *elems) in ieee80211_rx_mgmt_spectrum_mgmt() argument
931 ieee80211_ibss_process_chanswitch(sdata, elems, false); in ieee80211_rx_mgmt_spectrum_mgmt()
982 struct ieee802_11_elems *elems, in ieee80211_update_sta_info() argument
1006 if (elems->supp_rates) { in ieee80211_update_sta_info()
1007 supp_rates = ieee80211_sta_get_rates(sdata, elems, in ieee80211_update_sta_info()
1037 (elems->wmm_info || elems->s1g_capab) && in ieee80211_update_sta_info()
[all …]
Dagg-rx.c467 struct ieee802_11_elems *elems = NULL; in ieee80211_process_addba_request() local
485 elems = ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable, in ieee80211_process_addba_request()
487 if (!elems || elems->parse_error) in ieee80211_process_addba_request()
491 if (sta->sta.deflink.eht_cap.has_eht && elems && elems->addba_ext_ie) { in ieee80211_process_addba_request()
492 u8 buf_size_1k = u8_get_bits(elems->addba_ext_ie->data, in ieee80211_process_addba_request()
501 elems ? elems->addba_ext_ie : NULL); in ieee80211_process_addba_request()
503 kfree(elems); in ieee80211_process_addba_request()
Dtdls.c1792 struct ieee802_11_elems *elems = NULL; in ieee80211_process_tdls_channel_switch_resp() local
1826 elems = ieee802_11_parse_elems(tf->u.chan_switch_resp.variable, in ieee80211_process_tdls_channel_switch_resp()
1828 if (!elems) { in ieee80211_process_tdls_channel_switch_resp()
1833 if (elems->parse_error) { in ieee80211_process_tdls_channel_switch_resp()
1839 if (!elems->ch_sw_timing || !elems->lnk_id) { in ieee80211_process_tdls_channel_switch_resp()
1847 !memcmp(elems->lnk_id->init_sta, sdata->vif.addr, ETH_ALEN); in ieee80211_process_tdls_channel_switch_resp()
1854 params.switch_time = le16_to_cpu(elems->ch_sw_timing->switch_time); in ieee80211_process_tdls_channel_switch_resp()
1855 params.switch_timeout = le16_to_cpu(elems->ch_sw_timing->switch_timeout); in ieee80211_process_tdls_channel_switch_resp()
1875 kfree(elems); in ieee80211_process_tdls_channel_switch_resp()
1884 struct ieee802_11_elems *elems; in ieee80211_process_tdls_channel_switch_req() local
[all …]
Dmesh_hwmp.c925 struct ieee802_11_elems *elems; in mesh_rx_path_sel_frame() local
943 elems = ieee802_11_parse_elems(mgmt->u.action.u.mesh_action.variable, in mesh_rx_path_sel_frame()
945 if (!elems) in mesh_rx_path_sel_frame()
948 if (elems->preq) { in mesh_rx_path_sel_frame()
949 if (elems->preq_len != 37) in mesh_rx_path_sel_frame()
952 path_metric = hwmp_route_info_get(sdata, mgmt, elems->preq, in mesh_rx_path_sel_frame()
955 hwmp_preq_frame_process(sdata, mgmt, elems->preq, in mesh_rx_path_sel_frame()
958 if (elems->prep) { in mesh_rx_path_sel_frame()
959 if (elems->prep_len != 31) in mesh_rx_path_sel_frame()
962 path_metric = hwmp_route_info_get(sdata, mgmt, elems->prep, in mesh_rx_path_sel_frame()
[all …]
/Linux-v6.6/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c766 struct rtw_ieee802_11_elems *elems, in rtw_ieee802_11_parse_vendor_specific() argument
786 elems->wpa_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
787 elems->wpa_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
796 elems->wme = pos; in rtw_ieee802_11_parse_vendor_specific()
797 elems->wme_len = elen; in rtw_ieee802_11_parse_vendor_specific()
800 elems->wme_tspec = pos; in rtw_ieee802_11_parse_vendor_specific()
801 elems->wme_tspec_len = elen; in rtw_ieee802_11_parse_vendor_specific()
809 elems->wps_ie = pos; in rtw_ieee802_11_parse_vendor_specific()
810 elems->wps_ie_len = elen; in rtw_ieee802_11_parse_vendor_specific()
820 elems->vendor_ht_cap = pos; in rtw_ieee802_11_parse_vendor_specific()
[all …]
/Linux-v6.6/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 …]
/Linux-v6.6/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()
224 const struct v4l2_event_subscription *sub, unsigned int elems, in v4l2_event_subscribe() argument
235 if (elems < 1) in v4l2_event_subscribe()
236 elems = 1; in v4l2_event_subscribe()
238 sev = kvzalloc(struct_size(sev, events, elems), GFP_KERNEL); in v4l2_event_subscribe()
241 for (i = 0; i < elems; i++) in v4l2_event_subscribe()
248 sev->elems = elems; in v4l2_event_subscribe()
262 ret = sev->ops->add(sev, elems); in v4l2_event_subscribe()
Dv4l2-ctrls-api.c111 memcpy(tmp, ctrl->p_new.p, ctrl->elems * ctrl->elem_size); in user_to_new()
112 memcpy(tmp + c->size, ctrl->p_cur.p, ctrl->elems * ctrl->elem_size); in user_to_new()
121 unsigned int elems = c->size / ctrl->elem_size; in user_to_new() local
127 ctrl->new_elems = elems; in user_to_new()
129 ctrl->type_ops->init(ctrl, elems, ctrl->p_new); in user_to_new()
273 tot_size *= ctrl->elems; in prepare_ext_ctrls()
291 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls()
919 memcpy(ctrl->p_new.p, p, ctrl->elems * ctrl->elem_size); in __v4l2_ctrl_s_ctrl_compound()
986 unsigned int elems = 1; in __v4l2_ctrl_modify_dimensions() local
996 elems *= dims[i]; in __v4l2_ctrl_modify_dimensions()
[all …]
Dv4l2-ctrls-core.c77 for (i = 0; i < ctrl->elems; i++) { in v4l2_ctrl_type_op_equal()
87 ctrl->elems * ctrl->elem_size); in v4l2_ctrl_type_op_equal()
189 u32 tot_elems = ctrl->elems; in v4l2_ctrl_type_op_init()
190 u32 elems = tot_elems - from_idx; in v4l2_ctrl_type_op_init() local
209 memset(ptr.p_s64 + from_idx, 0, elems * sizeof(s64)); in v4l2_ctrl_type_op_init()
221 memset(ptr.p_s32 + from_idx, 0, elems * sizeof(s32)); in v4l2_ctrl_type_op_init()
226 memset(ptr.p_s32 + from_idx, 0, elems * sizeof(s32)); in v4l2_ctrl_type_op_init()
229 memset(ptr.p_u8 + from_idx, ctrl->default_value, elems); in v4l2_ctrl_type_op_init()
236 memset(ptr.p_u16 + from_idx, 0, elems * sizeof(u16)); in v4l2_ctrl_type_op_init()
244 memset(ptr.p_u32 + from_idx, 0, elems * sizeof(u32)); in v4l2_ctrl_type_op_init()
[all …]
/Linux-v6.6/include/media/
Dv4l2-event.h47 int (*add)(struct v4l2_subscribed_event *sev, unsigned int elems);
78 unsigned int elems; member
156 unsigned int elems,
/Linux-v6.6/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);
/Linux-v6.6/drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/
Dia_css_ref.host.c36 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_ref_config()
41 to->port_b.elems = elems_a; in ia_css_ref_config()
56 if (elems_a % to->port_b.elems != 0) in ia_css_ref_config()
/Linux-v6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dvmem.c197 unsigned int elems) /* In t_vmem_elem */ in isp_vmem_load() argument
204 assert(elems % ISP_NWAY == 0); in isp_vmem_load()
205 for (c = 0; c < elems; c += ISP_NWAY) { in isp_vmem_load()
215 unsigned int elems) /* In t_vmem_elem */ in isp_vmem_store() argument
222 assert(elems % ISP_NWAY == 0); in isp_vmem_store()
223 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 */
/Linux-v6.6/sound/soc/sof/
Dipc3-dtrace.c150 struct sof_ipc_trace_filter_elem *elems) in ipc3_trace_update_filter() argument
156 size = struct_size(msg, elems, num_elems); in ipc3_trace_update_filter()
167 memcpy(&msg->elems[0], elems, num_elems * sizeof(*elems)); in ipc3_trace_update_filter()
187 struct sof_ipc_trace_filter_elem *elems = NULL; in dfsentry_trace_filter_write() local
203 ret = trace_filter_parse(sdev, string, &num_elems, &elems); in dfsentry_trace_filter_write()
208 ret = ipc3_trace_update_filter(sdev, num_elems, elems); in dfsentry_trace_filter_write()
217 kfree(elems); in dfsentry_trace_filter_write()
/Linux-v6.6/drivers/staging/media/atomisp/pci/isp/kernels/crop/crop_1.0/
Dia_css_crop.host.c50 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_crop_config()
53 if (elems_a % to->port_b.elems != 0) in ia_css_crop_config()
/Linux-v6.6/drivers/staging/media/atomisp/pci/isp/kernels/qplane/qplane_2/
Dia_css_qplane.host.c42 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_qplane_config()
45 if (elems_a % to->port_b.elems != 0) in ia_css_qplane_config()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c32 __u32 elems = 0; variable
45 elems++; in copy()
/Linux-v6.6/drivers/staging/media/atomisp/pci/isp/kernels/fpn/fpn_1.0/
Dia_css_fpn.host.c65 to->width_a_over_b = elems_a / to->port_b.elems; in ia_css_fpn_config()
68 if (elems_a % to->port_b.elems != 0) in ia_css_fpn_config()

1234