/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | msgbuf.c | 286 u32 array_size; member 312 pktids->array_size = nr_array_entries; in brcmf_msgbuf_init_pktids() 342 if (*idx == pktids->array_size) in brcmf_msgbuf_alloc_pktid() 348 } while (count < pktids->array_size); in brcmf_msgbuf_alloc_pktid() 350 if (count == pktids->array_size) { in brcmf_msgbuf_alloc_pktid() 373 if (idx >= pktids->array_size) { in brcmf_msgbuf_get_pktid() 375 pktids->array_size); in brcmf_msgbuf_get_pktid() 413 } while (count < pktids->array_size); in brcmf_msgbuf_release_array()
|
/openbmc/linux/sound/soc/sof/ |
H A D | topology.c | 495 int array_size, u32 token_id, int token_instance_num, in sof_copy_tuples() argument 530 while (array_size > 0 && found < num_tokens * token_instance_num) { in sof_copy_tuples() 540 array_size -= asize; in sof_copy_tuples() 541 if (array_size < 0) { in sof_copy_tuples() 713 int array_size, int token_instance_num, size_t object_size) in sof_parse_token_sets() argument 721 while (array_size > 0 && total < count * token_instance_num) { in sof_parse_token_sets() 732 array_size -= asize; in sof_parse_token_sets() 733 if (array_size < 0) { in sof_parse_token_sets() 799 int array_size) in sof_parse_tokens() argument 809 array_size, 1, 0); in sof_parse_tokens()
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | virgl.c | 76 args.array_size = 1; in virgl_cmd_create_resource_2d() 99 args.array_size = c3d.array_size; in virgl_cmd_create_resource_3d()
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | messages.c | 780 (u8 *)dmas, array_size(sizeof(*dmas), num_dmas)); in avs_ipc_probe_attach_dma() 790 array_size(sizeof(*node_ids), num_node_ids)); in avs_ipc_probe_detach_dma() 820 (u8 *)descs, array_size(sizeof(*descs), num_descs)); in avs_ipc_probe_connect_points() 830 array_size(sizeof(*ids), num_ids)); in avs_ipc_probe_disconnect_points()
|
H A D | topology.c | 282 int array_size, ret; in avs_parse_tokens() local 285 array_size = le32_to_cpu(tuples->size); in avs_parse_tokens() 287 if (array_size <= 0) { in avs_parse_tokens() 288 dev_err(comp->dev, "invalid array size 0x%x\n", array_size); in avs_parse_tokens() 293 priv_size -= array_size; in avs_parse_tokens() 295 dev_err(comp->dev, "invalid array size 0x%x\n", array_size); in avs_parse_tokens()
|
/openbmc/linux/kernel/bpf/ |
H A D | ringbuf.c | 96 size_t array_size; in bpf_ringbuf_area_alloc() local 116 array_size = (nr_meta_pages + 2 * nr_data_pages) * sizeof(*pages); in bpf_ringbuf_area_alloc() 117 pages = bpf_map_area_alloc(array_size, numa_node); in bpf_ringbuf_area_alloc()
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-stm32.c | 534 int nb, ret, array_size; in stm32_pwm_probe_breakinputs() local 551 array_size = nb * sizeof(struct stm32_breakinput) / sizeof(u32); in stm32_pwm_probe_breakinputs() 553 (u32 *)priv->breakinputs, array_size); in stm32_pwm_probe_breakinputs()
|
/openbmc/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_ioctl.c | 137 params.array_size = rc->array_size; in virtio_gpu_resource_create_ioctl() 150 if (rc->array_size > 1) in virtio_gpu_resource_create_ioctl()
|
/openbmc/linux/tools/testing/cxl/test/ |
H A D | cxl.c | 920 int i, array_size; in mock_cxl_port_enumerate_dports() local 924 array_size = ARRAY_SIZE(cxl_root_port); in mock_cxl_port_enumerate_dports() 927 array_size = ARRAY_SIZE(cxl_root_single); in mock_cxl_port_enumerate_dports() 938 array_size = ARRAY_SIZE(cxl_switch_dport); in mock_cxl_port_enumerate_dports() 941 array_size = ARRAY_SIZE(cxl_swd_single); in mock_cxl_port_enumerate_dports() 954 for (i = 0; i < array_size; i++) { in mock_cxl_port_enumerate_dports()
|
/openbmc/linux/arch/s390/hypfs/ |
H A D | hypfs_diag.c | 72 diag204_buf = __vmalloc_node(array_size(*pages, PAGE_SIZE), in diag204_get_buffer()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-compat-ioctl32.c | 1022 void __user *user_ptr, size_t array_size, in v4l2_compat_get_array_args() argument 1027 memset(mbuf, 0, array_size); in v4l2_compat_get_array_args() 1085 if (copy_from_user(mbuf, user_ptr, array_size)) in v4l2_compat_get_array_args() 1094 void *mbuf, size_t array_size, in v4l2_compat_put_array_args() argument 1158 if (copy_to_user(user_ptr, mbuf, array_size)) in v4l2_compat_put_array_args()
|
/openbmc/u-boot/drivers/smem/ |
H A D | msm_smem.c | 846 size_t array_size; in qcom_smem_probe() local 856 array_size = num_regions * sizeof(struct smem_region); in qcom_smem_probe() 857 smem = devm_kzalloc(dev, sizeof(*smem) + array_size, GFP_KERNEL); in qcom_smem_probe()
|
/openbmc/qemu/hw/display/ |
H A D | virtio-gpu-virgl.c | 50 args.array_size = 1; in virgl_cmd_create_resource_2d() 74 args.array_size = c3d.array_size; in virgl_cmd_create_resource_3d()
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | fnic_trace.c | 477 vmalloc(array_size(fnic_max_trace_entries, in fnic_trace_buf_init() 551 (unsigned long)vmalloc(array_size(PAGE_SIZE, in fnic_fc_trace_init() 565 vmalloc(array_size(fc_trace_max_entries, in fnic_fc_trace_init()
|
/openbmc/linux/include/uapi/drm/ |
H A D | virtgpu_drm.h | 115 __u32 array_size; member
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_hashtab.c | 54 ht->table = vzalloc(array_size(size, sizeof(*ht->table))); in drm_ht_create()
|
/openbmc/linux/include/linux/ |
H A D | overflow.h | 250 #define array_size(a, b) size_mul(a, b) macro
|
/openbmc/linux/tools/testing/selftests/alsa/ |
H A D | conf.c | 450 const char **array, int array_size, const char *def) in conf_get_string_array() argument 461 for (index = 0; index < array_size; index++) { in conf_get_string_array()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | imu_v11_0.c | 318 const u32 array_size) in program_imu_rlc_ram() argument 324 for (i = 0; i < array_size; ++i) { in program_imu_rlc_ram()
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | mpic_timer.c | 112 unsigned int array_size = ARRAY_SIZE(cascade_timer); in detect_idle_cascade_timer() local 118 for (i = 0; i < array_size; i++) { in detect_idle_cascade_timer()
|
/openbmc/linux/fs/reiserfs/ |
H A D | resize.c | 123 vzalloc(array_size(bmap_nr_new, in reiserfs_resize()
|
/openbmc/linux/include/media/ |
H A D | v4l2-ioctl.h | 693 void __user *user_ptr, size_t array_size, 696 void *mbuf, size_t array_size,
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | rings.c | 98 tx_ring->size = array_size(tx_ring->cnt, sizeof(*tx_ring->ktxds)); in nfp_nfdk_tx_ring_alloc()
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebtables.c | 923 vmalloc(array_size(nr_cpu_ids, in translate_table() 929 vmalloc_node(array_size(udc_cnt, in translate_table() 941 cl_s = vmalloc(array_size(udc_cnt, sizeof(*cl_s))); in translate_table() 1077 array_size(repl->num_counters, sizeof(struct ebt_counter)))) { in do_replace_finish() 1389 tmp = vmalloc(array_size(num_counters, sizeof(*tmp))); in do_update_counters() 1403 array_size(num_counters, sizeof(*counters)))) { in do_update_counters() 1529 counterstmp = vmalloc(array_size(nentries, sizeof(*counterstmp))); in copy_counters_to_user() 1538 array_size(nentries, sizeof(struct ebt_counter)))) in copy_counters_to_user()
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_context.c | 203 u32 i, array_size; in ctx_fire_notification() local 245 array_size = vmci_handle_arr_get_size(subscriber_array); in ctx_fire_notification() 246 for (i = 0; i < array_size; i++) { in ctx_fire_notification()
|