Home
last modified time | relevance | path

Searched refs:num_elems (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.1.9/sound/soc/sof/
Dsof-client-probes.c54 unsigned int num_elems; member
60 unsigned int num_elems; member
69 unsigned int num_elems; member
75 unsigned int num_elems; member
106 msg->num_elems = 1; in sof_probes_init()
156 if (!reply->num_elems) in sof_probes_info()
163 bytes *= reply->num_elems; in sof_probes_info()
169 *num_params = reply->num_elems; in sof_probes_info()
220 msg->num_elems = num_desc; in sof_probes_points_add()
250 msg->num_elems = num_buffer_id; in sof_probes_points_remove()
[all …]
Dipc3-control.c69 cdata->num_elems = scontrol->num_channels; in sof_ipc3_set_get_kcontrol_data()
77 cdata->num_elems = cdata->data->size; in sof_ipc3_set_get_kcontrol_data()
510 if (cdata->num_elems != local_cdata->data->size) { in snd_sof_update_control()
512 cdata->num_elems, local_cdata->data->size); in snd_sof_update_control()
517 memcpy(local_cdata->data, cdata->data, cdata->num_elems); in snd_sof_update_control()
518 } else if (cdata->num_elems != scontrol->num_channels) { in snd_sof_update_control()
520 cdata->num_elems, scontrol->num_channels); in snd_sof_update_control()
523 for (i = 0; i < cdata->num_elems; i++) in snd_sof_update_control()
611 expected_size += cdata->num_elems * in sof_ipc3_control_update()
616 expected_size += cdata->num_elems + sizeof(struct sof_abi_hdr); in sof_ipc3_control_update()
[all …]
Dipc3-dtrace.c149 static int ipc3_trace_update_filter(struct snd_sof_dev *sdev, int num_elems, in ipc3_trace_update_filter() argument
157 size = struct_size(msg, elems, num_elems); in ipc3_trace_update_filter()
167 msg->elem_cnt = num_elems; in ipc3_trace_update_filter()
168 memcpy(&msg->elems[0], elems, num_elems * sizeof(*elems)); in ipc3_trace_update_filter()
191 int num_elems; in dfsentry_trace_filter_write() local
211 ret = trace_filter_parse(sdev, string, &num_elems, &elems); in dfsentry_trace_filter_write()
215 if (num_elems) { in dfsentry_trace_filter_write()
216 ret = ipc3_trace_update_filter(sdev, num_elems, elems); in dfsentry_trace_filter_write()
Ddebug.c247 if (struct_size(reply, elems, reply->num_elems) != reply->rhdr.hdr.size) { in memory_info_update()
254 for (i = 0, len = 0; i < reply->num_elems; i++) { in memory_info_update()
Dtopology.c416 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_uuid_tokens()
506 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_copy_tuples()
578 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_string_tokens()
622 for (i = 0; i < le32_to_cpu(array->num_elems); i++) { in sof_parse_word_tokens()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c190 __u32 i, num_sockets, num_elems; in test_sockmap_copy() local
203 num_elems = bpf_map__max_entries(src); in test_sockmap_copy()
204 num_sockets = num_elems - 1; in test_sockmap_copy()
207 num_elems = bpf_map__max_entries(src) - 1; in test_sockmap_copy()
208 num_sockets = num_elems; in test_sockmap_copy()
248 if (!ASSERT_EQ(skel->bss->elems, num_elems, "elems")) in test_sockmap_copy()
/linux-6.1.9/drivers/staging/media/atomisp/pci/runtime/queue/src/
Dqueue.c292 u32 num_elems = 0; in ia_css_queue_peek() local
304 num_elems = ia_css_circbuf_get_num_elems(&qhandle->desc.cb_local); in ia_css_queue_peek()
305 if (offset > num_elems) in ia_css_queue_peek()
323 num_elems = ia_css_circbuf_desc_get_num_elems(&cb_desc); in ia_css_queue_peek()
324 if (offset > num_elems) in ia_css_queue_peek()
/linux-6.1.9/sound/soc/qcom/qdsp6/
Dtopology.c218 while (!found && tkn_count <= (le32_to_cpu(sg_array->num_elems) - 1)) { in audioreach_get_sg_array()
251 while (!found && tkn_count <= (le32_to_cpu(cont_array->num_elems) - 1)) { in audioreach_get_cont_array()
284 while (!found && tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_get_module_array()
316 while (tkn_count <= (le32_to_cpu(sg_array->num_elems) - 1)) { in audioreach_parse_sg_tokens()
373 while (tkn_count <= (le32_to_cpu(cont_array->num_elems) - 1)) { in audioreach_parse_cont_tokens()
422 while (tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_parse_common_tokens()
536 while (tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_widget_load_enc_dec_cnv()
565 while (tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_widget_log_module_load()
595 while (tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_widget_dma_module_load()
624 while (tkn_count <= (le32_to_cpu(mod_array->num_elems) - 1)) { in audioreach_widget_i2s_module_load()
[all …]
/linux-6.1.9/include/sound/sof/
Dcontrol.h109 uint32_t num_elems; /**< in array elems or bytes for data type */ member
144 uint32_t num_elems; /**< in array elems or bytes for data type */ member
Ddebug.h39 uint32_t num_elems; /**< elems[] counter */ member
Dpm.h33 uint32_t num_elems; member
/linux-6.1.9/drivers/dma/
Dste_dma40_ll.c144 int num_elems; in d40_phy_fill_lli() local
147 num_elems = 1; in d40_phy_fill_lli()
149 num_elems = 2 << psize; in d40_phy_fill_lli()
156 if (data_size < num_elems * data_width) in d40_phy_fill_lli()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_sched.c246 buf->hdr.num_elems = cpu_to_le16(num_nodes); in ice_sched_remove_elems()
897 buf->hdr.num_elems = cpu_to_le16(num_nodes); in ice_sched_add_elems()
1206 u16 num_elems; in ice_sched_init_port() local
1234 num_elems = le16_to_cpu(buf[0].hdr.num_elems); in ice_sched_init_port()
1237 if (num_elems < 1 || num_elems > ICE_AQC_TOPO_MAX_LEVEL_NUM) { in ice_sched_init_port()
1239 num_elems); in ice_sched_init_port()
1247 if (num_elems > 2 && buf[0].generic[num_elems - 1].data.elem_type == in ice_sched_init_port()
1250 le32_to_cpu(buf[0].generic[num_elems - 2].node_teid); in ice_sched_init_port()
1253 le32_to_cpu(buf[0].generic[num_elems - 1].node_teid); in ice_sched_init_port()
1262 num_elems = le16_to_cpu(buf[i].hdr.num_elems); in ice_sched_init_port()
[all …]
Dice_adminq_cmd.h197 __le16 num_elems; member
291 __le16 num_elems; member
820 __le16 num_elems; member
873 __le16 num_elems; member
Dice_switch.c1445 u16 buf_size, u16 *req_desc, u16 *num_elems, in ice_aq_get_sw_cfg() argument
1459 *num_elems = le16_to_cpu(cmd->num_elems); in ice_aq_get_sw_cfg()
1820 sw_buf->num_elems = cpu_to_le16(1); in ice_aq_alloc_free_vsi_list()
2091 sw_buf->num_elems = cpu_to_le16(1); in ice_alloc_recipe()
2335 u16 num_elems; in ice_get_initial_sw_cfg() local
2352 &req_desc, &num_elems, NULL); in ice_get_initial_sw_cfg()
2357 for (i = 0, ele = rbuf; i < num_elems; i++, ele++) { in ice_get_initial_sw_cfg()
4473 buf->num_elems = cpu_to_le16(num_items); in ice_alloc_res_cntr()
4511 buf->num_elems = cpu_to_le16(num_items); in ice_free_res_cntr()
/linux-6.1.9/sound/hda/
Dhdac_device.c469 unsigned int shift, num_elems, mask; in snd_hdac_get_connections() local
480 num_elems = 2; in snd_hdac_get_connections()
484 num_elems = 4; in snd_hdac_get_connections()
510 if (i % num_elems == 0) { in snd_hdac_get_connections()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Ddebugfs_htt_stats.c197 u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_PDEV_MAX_URRN_STATS); in htt_print_tx_pdev_stats_urrn_tlv_v() local
202 num_elems, "\n\n"); in htt_print_tx_pdev_stats_urrn_tlv_v()
221 u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_PDEV_MAX_FLUSH_REASON_STATS); in htt_print_tx_pdev_stats_flush_tlv_v() local
226 num_elems, "\n\n"); in htt_print_tx_pdev_stats_flush_tlv_v()
245 u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_PDEV_MAX_SIFS_BURST_STATS); in htt_print_tx_pdev_stats_sifs_tlv_v() local
250 num_elems, "\n\n"); in htt_print_tx_pdev_stats_sifs_tlv_v()
269 u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_PDEV_MAX_PHY_ERR_STATS); in htt_print_tx_pdev_stats_phy_err_tlv_v() local
274 num_elems, "\n\n"); in htt_print_tx_pdev_stats_phy_err_tlv_v()
293 u16 num_elems = min_t(u16, (tag_len >> 2), HTT_TX_PDEV_MAX_SIFS_BURST_HIST_STATS); in htt_print_tx_pdev_stats_sifs_hist_tlv_v() local
299 "sifs_hist_status", num_elems, "\n\n"); in htt_print_tx_pdev_stats_sifs_hist_tlv_v()
[all …]
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c332 page_cnt = QED_CHAIN_PAGE_CNT(params->num_elems, in qed_chain_alloc()
344 params->num_elems, params->elem_size, in qed_chain_alloc()
Dqed_spq.c403 .num_elems = num_elem, in qed_eq_alloc()
1009 .num_elems = QED_CHAIN_PAGE_SIZE / QED_SPQ_CONSQ_ELEM_SIZE, in qed_consq_alloc()
/linux-6.1.9/tools/bpf/bpftool/
Dmap.c828 unsigned int num_elems = 0; in map_dump() local
874 num_elems++; in map_dump()
883 printf("Found %u element%s\n", num_elems, in map_dump()
884 num_elems != 1 ? "s" : ""); in map_dump()
/linux-6.1.9/include/rdma/
Duverbs_ioctl.h77 u8 num_elems; member
550 .u.enum_def.num_elems = ARRAY_SIZE(_enum_arr), \
/linux-6.1.9/drivers/infiniband/hw/qedr/
Dverbs.c945 chain_params.num_elems = chain_entries; in qedr_create_cq()
1508 u32 num_elems; in qedr_alloc_srq_kernel_params() local
1524 num_elems = init_attr->attr.max_wr * RDMA_MAX_SRQ_WQE_SIZE; in qedr_alloc_srq_kernel_params()
1525 params.num_elems = num_elems; in qedr_alloc_srq_kernel_params()
1531 hw_srq->num_elems = num_elems; in qedr_alloc_srq_kernel_params()
2035 params.num_elems = n_sq_elems; in qedr_roce_create_kernel_qp()
2046 params.num_elems = n_rq_elems; in qedr_roce_create_kernel_qp()
2099 params.num_elems = n_sq_elems; in qedr_iwarp_create_kernel_qp()
2109 params.num_elems = n_rq_elems; in qedr_iwarp_create_kernel_qp()
/linux-6.1.9/include/uapi/sound/
Dasoc.h223 __le32 num_elems; /* number of elements in array */ member
/linux-6.1.9/kernel/bpf/
Darraymap.c701 u32 i, key, num_elems = 0; in bpf_for_each_array_elem() local
719 num_elems++; in bpf_for_each_array_elem()
730 return num_elems; in bpf_for_each_array_elem()
/linux-6.1.9/net/core/
Dskmsg.c313 int i, maxpages, ret = 0, num_elems = sk_msg_elem_used(msg); in sk_msg_zerocopy_from_iter() local
321 maxpages = to_max_pages - num_elems; in sk_msg_zerocopy_from_iter()
347 num_elems++; in sk_msg_zerocopy_from_iter()

12