| /linux/net/mac80211/ |
| H A D | parse.c | 39 struct ieee802_11_elems elems; member 68 struct ieee802_11_elems *elems = &elems_parse->elems; in ieee80211_parse_extension_element() local 83 if (len >= sizeof(*elems->mu_edca_param_set)) in ieee80211_parse_extension_element() 84 elems->mu_edca_param_set = data; in ieee80211_parse_extension_element() 90 elems->he_cap = data; in ieee80211_parse_extension_element() 91 elems->he_cap_len = len; in ieee80211_parse_extension_element() 98 if (len >= sizeof(*elems->he_operation) && in ieee80211_parse_extension_element() 100 elems->he_operation = data; in ieee80211_parse_extension_element() 106 elems->uora_element = data; in ieee80211_parse_extension_element() 110 elems->max_channel_switch_time = data; in ieee80211_parse_extension_element() [all …]
|
| H A D | mesh_plink.c | 427 struct ieee802_11_elems *elems) in mesh_sta_info_init() argument 438 rates = ieee80211_sta_get_rates(sdata, elems, sband->band, NULL); in mesh_sta_info_init() 454 elems->ht_cap_elem, in mesh_sta_info_init() 459 elems->vht_cap_elem, NULL, in mesh_sta_info_init() 462 ieee80211_he_cap_ie_to_sta_he_cap(sdata, sband, elems->he_cap, in mesh_sta_info_init() 463 elems->he_cap_len, in mesh_sta_info_init() 464 elems->he_6ghz_capa, in mesh_sta_info_init() 467 ieee80211_eht_cap_ie_to_sta_eht_cap(sdata, sband, elems->he_cap, in mesh_sta_info_init() 468 elems->he_cap_len, in mesh_sta_info_init() 469 elems in mesh_sta_info_init() 550 mesh_sta_info_alloc(struct ieee80211_sub_if_data * sdata,u8 * addr,struct ieee802_11_elems * elems,struct ieee80211_rx_status * rx_status) mesh_sta_info_alloc() argument 589 mesh_sta_info_get(struct ieee80211_sub_if_data * sdata,u8 * addr,struct ieee802_11_elems * elems,struct ieee80211_rx_status * rx_status) mesh_sta_info_get() argument 628 mesh_neighbour_update(struct ieee80211_sub_if_data * sdata,u8 * hw_addr,struct ieee802_11_elems * elems,struct ieee80211_rx_status * rx_status) mesh_neighbour_update() argument 1029 mesh_plink_get_event(struct ieee80211_sub_if_data * sdata,struct sta_info * sta,struct ieee802_11_elems * elems,enum ieee80211_self_protected_actioncode ftype,u16 llid,u16 plid) mesh_plink_get_event() argument 1120 mesh_process_plink_frame(struct ieee80211_sub_if_data * sdata,struct ieee80211_mgmt * mgmt,struct ieee802_11_elems * elems,struct ieee80211_rx_status * rx_status) mesh_process_plink_frame() argument 1223 struct ieee802_11_elems *elems; mesh_rx_plink_frame() local [all...] |
| H A D | mlme.c | 156 const struct ieee802_11_elems *elems, in ieee80211_determine_ap_chan() argument 161 const struct ieee80211_ht_operation *ht_oper = elems->ht_operation; in ieee80211_determine_ap_chan() 162 const struct ieee80211_vht_operation *vht_oper = elems->vht_operation; in ieee80211_determine_ap_chan() 163 const struct ieee80211_he_operation *he_oper = elems->he_operation; in ieee80211_determine_ap_chan() 164 const struct ieee80211_eht_operation *eht_oper = elems->eht_operation; in ieee80211_determine_ap_chan() 165 const struct ieee80211_uhr_operation *uhr_oper = elems->uhr_operation; in ieee80211_determine_ap_chan() 184 if (!ieee80211_chandef_s1g_oper(sdata->local, elems->s1g_oper, in ieee80211_determine_ap_chan() 202 if (!elems->he_6ghz_capa || !elems->he_cap) { in ieee80211_determine_ap_chan() 208 if (!eht_oper || !elems->eht_cap) { in ieee80211_determine_ap_chan() 228 if (!ht_oper || !elems->ht_cap_elem) in ieee80211_determine_ap_chan() [all …]
|
| H A D | scan.c | 41 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, in ieee80211_inform_bss() 84 if (!elems) in ieee80211_inform_bss() [all …]
|
| H A D | mesh.c | 1276 struct ieee802_11_elems *elems, bool beacon) in ieee80211_mesh_process_chnswitch() argument 1309 if (elems->vht_cap_elem) in ieee80211_mesh_process_chnswitch() 1311 le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_mesh_process_chnswitch() 1314 err = ieee80211_parse_ch_switch_ie(sdata, elems, sband->band, in ieee80211_mesh_process_chnswitch() 1404 struct ieee802_11_elems *elems; in ieee80211_mesh_rx_probe_req() local 1413 elems = ieee802_11_parse_elems(pos, len - baselen, in ieee80211_mesh_rx_probe_req() 1417 if (!elems) in ieee80211_mesh_rx_probe_req() 1420 if (!elems->mesh_id) in ieee80211_mesh_rx_probe_req() 1426 elems->ssid_len != 0) in ieee80211_mesh_rx_probe_req() 1429 if (elems->mesh_id_len != 0 && in ieee80211_mesh_rx_probe_req() [all …]
|
| H A D | ibss.c | 745 struct ieee802_11_elems *elems, in ieee80211_ibss_process_chanswitch() argument 774 if (elems->vht_cap_elem) in ieee80211_ibss_process_chanswitch() 775 vht_cap_info = le32_to_cpu(elems->vht_cap_elem->vht_cap_info); in ieee80211_ibss_process_chanswitch() 778 err = ieee80211_parse_ch_switch_ie(sdata, elems, in ieee80211_ibss_process_chanswitch() 889 struct ieee802_11_elems *elems) in ieee80211_rx_mgmt_spectrum_mgmt() argument 907 ieee80211_ibss_process_chanswitch(sdata, elems, false); in ieee80211_rx_mgmt_spectrum_mgmt() 958 struct ieee802_11_elems *elems, in ieee80211_update_sta_info() argument 981 if (elems->supp_rates) { in ieee80211_update_sta_info() 982 supp_rates = ieee80211_sta_get_rates(sdata, elems, in ieee80211_update_sta_info() 1006 (elems in ieee80211_update_sta_info() 1078 ieee80211_rx_bss_info(struct ieee80211_sub_if_data * sdata,struct ieee80211_mgmt * mgmt,size_t len,struct ieee80211_rx_status * rx_status,struct ieee802_11_elems * elems) ieee80211_rx_bss_info() argument 1556 struct ieee802_11_elems *elems; ieee80211_rx_mgmt_probe_beacon() local 1584 struct ieee802_11_elems *elems; ieee80211_ibss_rx_queued_mgmt() local [all...] |
| H A D | tdls.c | 1750 struct ieee802_11_elems *elems = NULL; in ieee80211_process_tdls_channel_switch_resp() local 1785 elems = ieee802_11_parse_elems(tf->u.chan_switch_resp.variable, in ieee80211_process_tdls_channel_switch_resp() 1790 if (!elems) { in ieee80211_process_tdls_channel_switch_resp() 1795 if (elems->parse_error) { in ieee80211_process_tdls_channel_switch_resp() 1801 if (!elems->ch_sw_timing || !elems->lnk_id) { in ieee80211_process_tdls_channel_switch_resp() 1809 !memcmp(elems->lnk_id->init_sta, sdata->vif.addr, ETH_ALEN); in ieee80211_process_tdls_channel_switch_resp() 1816 params.switch_time = le16_to_cpu(elems->ch_sw_timing->switch_time); in ieee80211_process_tdls_channel_switch_resp() 1817 params.switch_timeout = le16_to_cpu(elems->ch_sw_timing->switch_timeout); in ieee80211_process_tdls_channel_switch_resp() 1836 kfree(elems); 1842 struct ieee802_11_elems *elems; ieee80211_process_tdls_channel_switch_req() local [all...] |
| H A D | mesh_hwmp.c | 935 struct ieee802_11_elems *elems; in mesh_rx_path_sel_frame() local 953 elems = ieee802_11_parse_elems(mgmt->u.action.u.mesh_action.variable, in mesh_rx_path_sel_frame() 958 if (!elems) in mesh_rx_path_sel_frame() 961 if (elems->preq) { in mesh_rx_path_sel_frame() 962 if (elems->preq_len != 37) in mesh_rx_path_sel_frame() 965 path_metric = hwmp_route_info_get(sdata, mgmt, elems->preq, in mesh_rx_path_sel_frame() 968 hwmp_preq_frame_process(sdata, mgmt, elems->preq, in mesh_rx_path_sel_frame() 971 if (elems->prep) { in mesh_rx_path_sel_frame() 972 if (elems->prep_len != 31) in mesh_rx_path_sel_frame() 975 path_metric = hwmp_route_info_get(sdata, mgmt, elems->prep, in mesh_rx_path_sel_frame() [all …]
|
| H A D | agg-rx.c | 200 struct ieee802_11_elems *elems; in ieee80211_retrieve_addba_ext_data() local 209 elems = ieee802_11_parse_elems(elem_data, elem_len, in ieee80211_retrieve_addba_ext_data() 214 if (!elems || elems->parse_error || !elems->addba_ext_ie) in ieee80211_retrieve_addba_ext_data() 217 data = elems->addba_ext_ie->data; in ieee80211_retrieve_addba_ext_data() 221 buf_size_1k = u8_get_bits(elems->addba_ext_ie->data, in ieee80211_retrieve_addba_ext_data() 228 kfree(elems); in ieee80211_retrieve_addba_ext_data()
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-event.c | 24 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_flex(*sev, events, elems); in v4l2_event_subscribe() 241 sev->elems = elems; in v4l2_event_subscribe() 242 for (i = 0; i < elems; i++) in v4l2_event_subscribe() 262 ret = sev->ops->add(sev, elems); in v4l2_event_subscribe()
|
| H A D | v4l2-ctrls-api.c | 127 memcpy(tmp, ctrl->p_new.p, ctrl->elems * ctrl->elem_size); in user_to_new() 128 memcpy(tmp + c->size, ctrl->p_cur.p, ctrl->elems * ctrl->elem_size); in user_to_new() 137 unsigned int elems = c->size / ctrl->elem_size; in user_to_new() local 143 ctrl->new_elems = elems; in user_to_new() 145 ctrl->type_ops->init(ctrl, elems, ctrl->p_new); in user_to_new() 298 tot_size *= ctrl->elems; in prepare_ext_ctrls() 316 unsigned int tot_size = ctrl->elems * ctrl->elem_size; in prepare_ext_ctrls() 956 memcpy(ctrl->p_new.p, p, ctrl->elems * ctrl->elem_size); in __v4l2_ctrl_s_ctrl_compound() 1023 unsigned int elems = 1; in __v4l2_ctrl_modify_dimensions() local 1033 elems *= dims[i]; in __v4l2_ctrl_modify_dimensions() [all …]
|
| H A D | v4l2-ctrls-core.c | 77 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() 217 u32 tot_elems = ctrl->elems; in __v4l2_ctrl_type_op_init() 218 u32 elems = tot_elems - from_idx; in __v4l2_ctrl_type_op_init() local 252 memset(ptr.p_s64 + from_idx, 0, elems * sizeof(s64)); in __v4l2_ctrl_type_op_init() 264 memset(ptr.p_s32 + from_idx, 0, elems * sizeof(s32)); in __v4l2_ctrl_type_op_init() 269 memset(ptr.p_s32 + from_idx, 0, elems * sizeof(s32)); in __v4l2_ctrl_type_op_init() 272 memset(ptr.p_u8 + from_idx, value, elems); in __v4l2_ctrl_type_op_init() 279 memset(ptr.p_u16 + from_idx, 0, elems * sizeof(u16)); in __v4l2_ctrl_type_op_init() 287 memset(ptr.p_u32 + from_idx, 0, elems * sizeof(u32)); in __v4l2_ctrl_type_op_init() [all …]
|
| /linux/rust/syn/ |
| H A D | pat.rs | 167 pub elems: Punctuated<Pat, Token![,]>, 190 pub elems: Punctuated<Pat, Token![,]>, 202 pub elems: Punctuated<Pat, Token![,]>, 503 let mut elems = Punctuated::new(); in pat_tuple_struct() localVariable 506 elems.push_value(value); in pat_tuple_struct() 511 elems.push_punct(punct); in pat_tuple_struct() 519 elems, in pat_tuple_struct() 649 let mut elems = Punctuated::new(); in pat_paren_or_tuple() localVariable 653 if elems.is_empty() && !matches!(value, Pat::Rest(_)) { in pat_paren_or_tuple() 660 elems.push_value(value); in pat_paren_or_tuple() [all …]
|
| H A D | ty.rs | 228 pub elems: Punctuated<Type, Token![,]>, 387 elems: Punctuated::new(), in ambig_ty() 425 elems: { in ambig_ty() 426 let mut elems = Punctuated::new(); in ambig_ty() localVariable 427 elems.push_value(first); in ambig_ty() 428 elems.push_punct(content.parse()?); in ambig_ty() 430 elems.push_value(content.parse()?); in ambig_ty() 434 elems.push_punct(content.parse()?); in ambig_ty() 436 elems in ambig_ty() 749 elems: Punctuated::new(), in parse() [all …]
|
| /linux/net/mac80211/tests/ |
| H A D | chan-mode.c | 216 struct ieee802_11_elems *elems; in KUNIT_ARRAY_PARAM_DESC() local 244 elems = ieee80211_determine_chan_mode(t_sdata->sdata, &conn, &cbss, in KUNIT_ARRAY_PARAM_DESC() 250 if (!IS_ERR_OR_NULL(elems)) in KUNIT_ARRAY_PARAM_DESC() 251 kfree(elems); in KUNIT_ARRAY_PARAM_DESC() 254 KUNIT_ASSERT_TRUE(test, IS_ERR(elems)); in KUNIT_ARRAY_PARAM_DESC() 255 KUNIT_ASSERT_EQ(test, PTR_ERR(elems), -params->error); in KUNIT_ARRAY_PARAM_DESC() 257 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, elems); in KUNIT_ARRAY_PARAM_DESC()
|
| /linux/include/media/ |
| H A D | v4l2-event.h | 47 int (*add)(struct v4l2_subscribed_event *sev, unsigned int elems); 78 unsigned int elems; member 81 struct v4l2_kevent events[] __counted_by(elems); 156 unsigned int elems,
|
| /linux/mm/ |
| H A D | mempool.c | 412 static unsigned int mempool_alloc_from_pool(struct mempool *pool, void **elems, in mempool_alloc_from_pool() argument 423 if (!elems[i]) { in mempool_alloc_from_pool() 424 elems[i] = remove_element(pool); in mempool_alloc_from_pool() 438 kmemleak_update_trace(elems[i]); in mempool_alloc_from_pool() 492 int mempool_alloc_bulk_noprof(struct mempool *pool, void **elems, in mempool_alloc_bulk_noprof() argument 518 if (elems[i]) in mempool_alloc_bulk_noprof() 520 elems[i] = pool->alloc(gfp_temp, pool->pool_data); in mempool_alloc_bulk_noprof() 521 if (unlikely(!elems[i])) in mempool_alloc_bulk_noprof() 529 allocated = mempool_alloc_from_pool(pool, elems, count, allocated, in mempool_alloc_bulk_noprof() 627 unsigned int mempool_free_bulk(struct mempool *pool, void **elems, in mempool_free_bulk() argument [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | action_ste_pool.c | 249 err = hws_action_ste_pool_element_init(ctx, &pool->elems[opt], in hws_action_ste_pool_init() 253 pool->elems[opt].parent_pool = pool; in hws_action_ste_pool_init() 260 hws_action_ste_pool_element_destroy(&pool->elems[opt]); in hws_action_ste_pool_init() 271 hws_action_ste_pool_element_destroy(&pool->elems[opt]); in hws_action_ste_pool_destroy() 315 &p->elems[opt], &cleanup); in hws_action_ste_pool_cleanup() 378 return &pool->elems[MLX5HWS_POOL_OPTIMIZE_MIRROR]; in hws_action_ste_choose_elem() 381 return &pool->elems[MLX5HWS_POOL_OPTIMIZE_ORIG]; in hws_action_ste_choose_elem() 383 return &pool->elems[MLX5HWS_POOL_OPTIMIZE_NONE]; in hws_action_ste_choose_elem()
|
| /linux/sound/soc/sof/ |
| H A D | ipc3-dtrace.c | 150 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() 191 struct sof_ipc_trace_filter_elem *elems = NULL; in dfsentry_trace_filter_write() local 207 ret = trace_filter_parse(sdev, string, &num_elems, &elems); in dfsentry_trace_filter_write() 212 ret = ipc3_trace_update_filter(sdev, num_elems, elems); in dfsentry_trace_filter_write() 221 kfree(elems); in dfsentry_trace_filter_write()
|
| H A D | debug.c | 232 if (struct_size(reply, elems, reply->num_elems) != reply->rhdr.hdr.size) { in memory_info_update() 241 reply->elems[i].zone, reply->elems[i].id, in memory_info_update() 242 reply->elems[i].used, reply->elems[i].free); in memory_info_update()
|
| /linux/tools/testing/selftests/net/bench/page_pool/ |
| H A D | bench_page_pool_simple.c | 106 static void pp_fill_ptr_ring(struct page_pool *pp, int elems) in pp_fill_ptr_ring() argument 113 array = kcalloc(elems, sizeof(struct page *), gfp_mask); in pp_fill_ptr_ring() 115 for (i = 0; i < elems; i++) in pp_fill_ptr_ring() 117 for (i = 0; i < elems; i++) in pp_fill_ptr_ring()
|
| /linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
| H A D | vmem_local.h | 23 unsigned int elems); /* In t_vmem_elem */ 29 unsigned int elems); /* In t_vmem_elem */
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 477 const void **elems; member 487 tmp = realloc(arr->elems, sizeof(*arr->elems) * new_cap); in ptr_array_push() 490 arr->elems = tmp; in ptr_array_push() 493 arr->elems[arr->cnt++] = ptr; in ptr_array_push() 499 free(arr->elems); in ptr_array_free() 553 qsort_r(kfuncs.elems, kfuncs.cnt, sizeof(*kfuncs.elems), cmp_kfuncs, (void *)btf); in dump_btf_kfuncs() 555 const struct btf_type *t = kfuncs.elems[i]; in dump_btf_kfuncs() 561 if (fastcalls.elems[j] == t) { in dump_btf_kfuncs()
|
| /linux/sound/soc/sof/intel/ |
| H A D | ext_manifest.h | 32 struct sof_config_elem elems[]; member
|
| /linux/include/sound/sof/ |
| H A D | debug.h | 40 struct sof_ipc_dbg_mem_usage_elem elems[]; /**< memory usage information */ member
|