Home
last modified time | relevance | path

Searched refs:array_size (Results 1 – 25 of 30) sorted by relevance

12

/drivers/staging/android/
Dlowmemorykiller.c95 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_scan() local
102 if (lowmem_adj_size < array_size) in lowmem_scan()
103 array_size = lowmem_adj_size; in lowmem_scan()
104 if (lowmem_minfree_size < array_size) in lowmem_scan()
105 array_size = lowmem_minfree_size; in lowmem_scan()
106 for (i = 0; i < array_size; i++) { in lowmem_scan()
225 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_autodetect_oom_adj_values() local
227 if (lowmem_adj_size < array_size) in lowmem_autodetect_oom_adj_values()
228 array_size = lowmem_adj_size; in lowmem_autodetect_oom_adj_values()
230 if (array_size <= 0) in lowmem_autodetect_oom_adj_values()
[all …]
/drivers/hwspinlock/
Dqcom_hwspinlock.c88 size_t array_size; in qcom_hwspinlock_probe() local
117 array_size = QCOM_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in qcom_hwspinlock_probe()
118 bank = devm_kzalloc(&pdev->dev, sizeof(*bank) + array_size, GFP_KERNEL); in qcom_hwspinlock_probe()
/drivers/staging/lustre/lustre/include/lustre/
Dll_fiemap.h113 static inline unsigned fiemap_size_to_count(size_t array_size) in fiemap_size_to_count() argument
115 return ((array_size - sizeof(struct ll_user_fiemap)) / in fiemap_size_to_count()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c1048 if (srf->array_size > 0) { in vmw_gb_surface_create()
1068 if (srf->array_size > 0) { in vmw_gb_surface_create()
1080 cmd2->body.arraySize = srf->array_size; in vmw_gb_surface_create()
1300 req->array_size, in vmw_gb_surface_define_ioctl()
1433 rep->creq.array_size = srf->array_size; in vmw_gb_surface_reference_ioctl()
1476 uint32_t array_size, in vmw_surface_gb_priv_define() argument
1504 if (array_size > 0 && !dev_priv->has_dx) { in vmw_surface_gb_priv_define()
1543 srf->array_size = array_size; in vmw_surface_gb_priv_define()
1546 if (array_size) in vmw_surface_gb_priv_define()
1547 num_layers = array_size; in vmw_surface_gb_priv_define()
Dvmwgfx_drv.h173 uint32_t array_size; member
1060 uint32_t array_size,
/drivers/gpu/drm/sti/
Dsti_compositor.c69 unsigned int array_size = compo->data.nb_subdev; in sti_compositor_bind() local
74 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
98 for (i = 0; i < array_size; i++) { in sti_compositor_bind()
/drivers/md/
Ddm-table.c514 static char **realloc_argv(unsigned *array_size, char **old_argv) in realloc_argv() argument
520 if (*array_size) { in realloc_argv()
521 new_size = *array_size * 2; in realloc_argv()
529 memcpy(argv, old_argv, *array_size * sizeof(*argv)); in realloc_argv()
530 *array_size = new_size; in realloc_argv()
543 unsigned array_size = 0; in dm_split_args() local
552 argv = realloc_argv(&array_size, argv); in dm_split_args()
580 if ((*argc + 1) > array_size) { in dm_split_args()
581 argv = realloc_argv(&array_size, argv); in dm_split_args()
/drivers/iommu/
Ddma-iommu.c251 unsigned int i = 0, array_size = count * sizeof(*pages); in __iommu_dma_alloc_pages() local
257 if (array_size <= PAGE_SIZE) in __iommu_dma_alloc_pages()
258 pages = kzalloc(array_size, GFP_KERNEL); in __iommu_dma_alloc_pages()
260 pages = vzalloc(array_size); in __iommu_dma_alloc_pages()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dmsgbuf.c278 u32 array_size; member
304 pktids->array_size = nr_array_entries; in brcmf_msgbuf_init_pktids()
334 if (*idx == pktids->array_size) in brcmf_msgbuf_alloc_pktid()
340 } while (count < pktids->array_size); in brcmf_msgbuf_alloc_pktid()
342 if (count == pktids->array_size) in brcmf_msgbuf_alloc_pktid()
362 if (idx >= pktids->array_size) { in brcmf_msgbuf_get_pktid()
364 pktids->array_size); in brcmf_msgbuf_get_pktid()
402 } while (count < pktids->array_size); in brcmf_msgbuf_release_array()
/drivers/misc/vmw_vmci/
Dvmci_host.c202 u32 array_size = 0; in drv_cp_harray_to_user() local
206 array_size = vmci_handle_arr_get_size(handle_array); in drv_cp_harray_to_user()
208 if (array_size * sizeof(*handles) > *user_buf_size) in drv_cp_harray_to_user()
211 *user_buf_size = array_size * sizeof(*handles); in drv_cp_harray_to_user()
Dvmci_context.c204 u32 i, array_size; in ctx_fire_notification() local
246 array_size = vmci_handle_arr_get_size(subscriber_array); in ctx_fire_notification()
247 for (i = 0; i < array_size; i++) { in ctx_fire_notification()
/drivers/soc/qcom/
Dsmem.c698 size_t array_size; in qcom_smem_probe() local
708 array_size = num_regions * sizeof(struct smem_region); in qcom_smem_probe()
709 smem = devm_kzalloc(&pdev->dev, sizeof(*smem) + array_size, GFP_KERNEL); in qcom_smem_probe()
/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c233 if (rc->array_size > 1) in virtio_gpu_resource_create_ioctl()
279 rc_3d.array_size = cpu_to_le32(rc->array_size); in virtio_gpu_resource_create_ioctl()
/drivers/gpio/
Dgpiolib.c2546 unsigned int array_size, in gpiod_set_array_value_complex() argument
2552 while (i < array_size) { in gpiod_set_array_value_complex()
2587 } while ((i < array_size) && in gpiod_set_array_value_complex()
2649 void gpiod_set_raw_array_value(unsigned int array_size, in gpiod_set_raw_array_value() argument
2654 gpiod_set_array_value_complex(true, false, array_size, desc_array, in gpiod_set_raw_array_value()
2671 void gpiod_set_array_value(unsigned int array_size, in gpiod_set_array_value() argument
2676 gpiod_set_array_value_complex(false, false, array_size, desc_array, in gpiod_set_array_value()
2905 void gpiod_set_raw_array_value_cansleep(unsigned int array_size, in gpiod_set_raw_array_value_cansleep() argument
2912 gpiod_set_array_value_complex(true, true, array_size, desc_array, in gpiod_set_raw_array_value_cansleep()
2928 void gpiod_set_array_value_cansleep(unsigned int array_size, in gpiod_set_array_value_cansleep() argument
[all …]
Dgpiolib.h172 unsigned int array_size,
/drivers/net/team/
Dteam.c161 unsigned int array_size; in __team_option_inst_add() local
165 array_size = option->array_size; in __team_option_inst_add()
166 if (!array_size) in __team_option_inst_add()
167 array_size = 1; /* No array but still need one instance */ in __team_option_inst_add()
169 for (i = 0; i < array_size; i++) { in __team_option_inst_add()
2286 if (opt_inst->option->array_size && in team_nl_fill_one_option_get()
2555 (option->array_size && !opt_is_array) || in team_nl_cmd_options_set()
Dteam_mode_loadbalance.c559 .array_size = LB_TX_HASHTABLE_SIZE,
567 .array_size = LB_TX_HASHTABLE_SIZE,
/drivers/media/v4l2-core/
Dv4l2-ioctl.c2743 static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, in check_array_args() argument
2762 *array_size = sizeof(struct v4l2_plane) * buf->length; in check_array_args()
2779 *array_size = edid->blocks * 128; in check_array_args()
2797 *array_size = sizeof(struct v4l2_ext_control) in check_array_args()
2817 size_t array_size = 0; in video_usercopy() local
2862 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); in video_usercopy()
2874 mbuf = kmalloc(array_size, GFP_KERNEL); in video_usercopy()
2879 if (copy_from_user(mbuf, user_ptr, array_size)) in video_usercopy()
2900 if (copy_to_user(user_ptr, mbuf, array_size)) in video_usercopy()
/drivers/dma/
Dedma.c1146 unsigned int width, pset_len, array_size; in edma_prep_dma_memcpy() local
1154 array_size = SZ_32K - 1; in edma_prep_dma_memcpy()
1157 array_size = SZ_32K - 2; in edma_prep_dma_memcpy()
1160 array_size = SZ_32K - 4; in edma_prep_dma_memcpy()
1185 width = array_size; in edma_prep_dma_memcpy()
1233 pset_len = width = len % array_size; in edma_prep_dma_memcpy()
/drivers/net/wireless/broadcom/b43legacy/
Dmain.c1813 size_t array_size) in b43legacy_write_initvals() argument
1823 if (array_size < sizeof(iv->offset_size)) in b43legacy_write_initvals()
1825 array_size -= sizeof(iv->offset_size); in b43legacy_write_initvals()
1834 if (array_size < sizeof(iv->data.d32)) in b43legacy_write_initvals()
1836 array_size -= sizeof(iv->data.d32); in b43legacy_write_initvals()
1847 if (array_size < sizeof(iv->data.d16)) in b43legacy_write_initvals()
1849 array_size -= sizeof(iv->data.d16); in b43legacy_write_initvals()
1859 if (array_size) in b43legacy_write_initvals()
/drivers/gpu/drm/radeon/
Dradeon_device.c194 const u32 array_size) in radeon_program_register_sequence() argument
199 if (array_size % 3) in radeon_program_register_sequence()
202 for (i = 0; i < array_size; i +=3) { in radeon_program_register_sequence()
/drivers/net/wireless/intel/iwlegacy/
D3945.c123 u32 array_size; /* # of u32 entries in array */ in il3945_disable_events() local
181 array_size = il_read_targ_mem(il, base + (5 * sizeof(u32))); in il3945_disable_events()
183 if (IL_EVT_DISABLE && array_size == IL_EVT_DISABLE_SIZE) { in il3945_disable_events()
194 array_size); in il3945_disable_events()
/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smc.c787 uint32_t array_size = sizeof(struct SMU73_Discrete_GraphicsLevel) * in fiji_populate_all_graphic_levels() local
863 (uint32_t)array_size, SMC_RAM_END); in fiji_populate_all_graphic_levels()
1009 uint32_t array_size = sizeof(SMU73_Discrete_MemoryLevel) * in fiji_populate_all_memory_levels() local
1047 (uint32_t)array_size, SMC_RAM_END); in fiji_populate_all_memory_levels()
Dpolaris10_smc.c761 uint32_t array_size = sizeof(struct SMU74_Discrete_GraphicsLevel) * in polaris10_populate_all_graphic_levels() local
838 (uint32_t)array_size, SMC_RAM_END); in polaris10_populate_all_graphic_levels()
907 uint32_t array_size = sizeof(SMU74_Discrete_MemoryLevel) * in polaris10_populate_all_memory_levels() local
943 (uint32_t)array_size, SMC_RAM_END); in polaris10_populate_all_memory_levels()
/drivers/net/wireless/broadcom/b43/
Dmain.c2779 size_t array_size) in b43_write_initvals() argument
2789 if (array_size < sizeof(iv->offset_size)) in b43_write_initvals()
2791 array_size -= sizeof(iv->offset_size); in b43_write_initvals()
2800 if (array_size < sizeof(iv->data.d32)) in b43_write_initvals()
2802 array_size -= sizeof(iv->data.d32); in b43_write_initvals()
2813 if (array_size < sizeof(iv->data.d16)) in b43_write_initvals()
2815 array_size -= sizeof(iv->data.d16); in b43_write_initvals()
2825 if (array_size) in b43_write_initvals()

12