/drivers/staging/android/ |
D | lowmemorykiller.c | 231 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_scan() local 238 if (lowmem_adj_size < array_size) in lowmem_scan() 239 array_size = lowmem_adj_size; in lowmem_scan() 240 if (lowmem_minfree_size < array_size) in lowmem_scan() 241 array_size = lowmem_minfree_size; in lowmem_scan() 242 for (i = 0; i < array_size; i++) { in lowmem_scan() 373 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_autodetect_oom_adj_values() local 375 if (lowmem_adj_size < array_size) in lowmem_autodetect_oom_adj_values() 376 array_size = lowmem_adj_size; in lowmem_autodetect_oom_adj_values() 378 if (array_size <= 0) in lowmem_autodetect_oom_adj_values() [all …]
|
/drivers/hwspinlock/ |
D | qcom_hwspinlock.c | 88 size_t array_size; in qcom_hwspinlock_probe() local 116 array_size = QCOM_MUTEX_NUM_LOCKS * sizeof(struct hwspinlock); in qcom_hwspinlock_probe() 117 bank = devm_kzalloc(&pdev->dev, sizeof(*bank) + array_size, GFP_KERNEL); in qcom_hwspinlock_probe()
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | ll_fiemap.h | 101 static inline unsigned fiemap_size_to_count(size_t array_size) in fiemap_size_to_count() argument 103 return ((array_size - sizeof(struct ll_user_fiemap)) / in fiemap_size_to_count()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_surface.c | 1061 if (srf->array_size > 0) { in vmw_gb_surface_create() 1081 if (srf->array_size > 0) { in vmw_gb_surface_create() 1093 cmd2->body.arraySize = srf->array_size; in vmw_gb_surface_create() 1313 req->array_size, in vmw_gb_surface_define_ioctl() 1446 rep->creq.array_size = srf->array_size; in vmw_gb_surface_reference_ioctl() 1489 uint32_t array_size, in vmw_surface_gb_priv_define() argument 1517 if (array_size > 0 && !dev_priv->has_dx) { in vmw_surface_gb_priv_define() 1556 srf->array_size = array_size; in vmw_surface_gb_priv_define() 1559 if (array_size) in vmw_surface_gb_priv_define() 1560 num_layers = array_size; in vmw_surface_gb_priv_define()
|
D | vmwgfx_drv.h | 173 uint32_t array_size; member 1056 uint32_t array_size,
|
/drivers/gpu/drm/sti/ |
D | sti_compositor.c | 69 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/iommu/ |
D | dma-iommu.c | 200 unsigned int i = 0, array_size = count * sizeof(*pages); in __iommu_dma_alloc_pages() local 203 if (array_size <= PAGE_SIZE) in __iommu_dma_alloc_pages() 204 pages = kzalloc(array_size, GFP_KERNEL); in __iommu_dma_alloc_pages() 206 pages = vzalloc(array_size); in __iommu_dma_alloc_pages()
|
/drivers/gpio/ |
D | gpiolib.c | 1441 unsigned int array_size, in gpiod_set_array_value_priv() argument 1447 while (i < array_size) { in gpiod_set_array_value_priv() 1482 } while ((i < array_size) && (desc_array[i]->chip == chip)); in gpiod_set_array_value_priv() 1545 void gpiod_set_raw_array_value(unsigned int array_size, in gpiod_set_raw_array_value() argument 1550 gpiod_set_array_value_priv(true, false, array_size, desc_array, in gpiod_set_raw_array_value() 1567 void gpiod_set_array_value(unsigned int array_size, in gpiod_set_array_value() argument 1572 gpiod_set_array_value_priv(false, false, array_size, desc_array, in gpiod_set_array_value() 1750 void gpiod_set_raw_array_value_cansleep(unsigned int array_size, in gpiod_set_raw_array_value_cansleep() argument 1757 gpiod_set_array_value_priv(true, true, array_size, desc_array, in gpiod_set_raw_array_value_cansleep() 1773 void gpiod_set_array_value_cansleep(unsigned int array_size, in gpiod_set_array_value_cansleep() argument [all …]
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | msgbuf.c | 278 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/ |
D | vmci_host.c | 202 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()
|
D | vmci_context.c | 210 u32 i, array_size; in ctx_fire_notification() local 252 array_size = vmci_handle_arr_get_size(subscriber_array); in ctx_fire_notification() 253 for (i = 0; i < array_size; i++) { in ctx_fire_notification()
|
/drivers/soc/qcom/ |
D | smem.c | 699 size_t array_size; in qcom_smem_probe() local 709 array_size = num_regions * sizeof(struct smem_region); in qcom_smem_probe() 710 smem = devm_kzalloc(&pdev->dev, sizeof(*smem) + array_size, GFP_KERNEL); in qcom_smem_probe()
|
D | smd.c | 1289 size_t array_size; in qcom_smd_probe() local 1301 array_size = sizeof(*smd) + num_edges * sizeof(struct qcom_smd_edge); in qcom_smd_probe() 1302 smd = devm_kzalloc(&pdev->dev, array_size, GFP_KERNEL); in qcom_smd_probe()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 250 if (rc->array_size > 1) in virtio_gpu_resource_create_ioctl() 296 rc_3d.array_size = cpu_to_le32(rc->array_size); in virtio_gpu_resource_create_ioctl()
|
/drivers/net/team/ |
D | team.c | 147 unsigned int array_size; in __team_option_inst_add() local 151 array_size = option->array_size; in __team_option_inst_add() 152 if (!array_size) in __team_option_inst_add() 153 array_size = 1; /* No array but still need one instance */ in __team_option_inst_add() 155 for (i = 0; i < array_size; i++) { in __team_option_inst_add() 2273 if (opt_inst->option->array_size && in team_nl_fill_one_option_get() 2538 (option->array_size && !opt_is_array) || in team_nl_cmd_options_set()
|
D | team_mode_loadbalance.c | 559 .array_size = LB_TX_HASHTABLE_SIZE, 567 .array_size = LB_TX_HASHTABLE_SIZE,
|
/drivers/md/ |
D | dm-table.c | 549 unsigned array_size = 0; in dm_split_args() local 558 argv = realloc_argv(&array_size, argv); in dm_split_args() 586 if ((*argc + 1) > array_size) { in dm_split_args() 587 argv = realloc_argv(&array_size, argv); in dm_split_args()
|
/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 2643 static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, in check_array_args() argument 2662 *array_size = sizeof(struct v4l2_plane) * buf->length; in check_array_args() 2679 *array_size = edid->blocks * 128; in check_array_args() 2697 *array_size = sizeof(struct v4l2_ext_control) in check_array_args() 2717 size_t array_size = 0; in video_usercopy() local 2762 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); in video_usercopy() 2768 array_buf = kmalloc(array_size, GFP_KERNEL); in video_usercopy() 2773 if (copy_from_user(array_buf, user_ptr, array_size)) in video_usercopy() 2794 if (copy_to_user(user_ptr, array_buf, array_size)) in video_usercopy()
|
/drivers/dma/ |
D | edma.c | 1129 unsigned int width, pset_len, array_size; in edma_prep_dma_memcpy() local 1137 array_size = SZ_32K - 1; in edma_prep_dma_memcpy() 1140 array_size = SZ_32K - 2; in edma_prep_dma_memcpy() 1143 array_size = SZ_32K - 4; in edma_prep_dma_memcpy() 1168 width = array_size; in edma_prep_dma_memcpy() 1218 pset_len = width = len % array_size; in edma_prep_dma_memcpy()
|
/drivers/net/wireless/b43legacy/ |
D | main.c | 1814 size_t array_size) in b43legacy_write_initvals() argument 1824 if (array_size < sizeof(iv->offset_size)) in b43legacy_write_initvals() 1826 array_size -= sizeof(iv->offset_size); in b43legacy_write_initvals() 1835 if (array_size < sizeof(iv->data.d32)) in b43legacy_write_initvals() 1837 array_size -= sizeof(iv->data.d32); in b43legacy_write_initvals() 1848 if (array_size < sizeof(iv->data.d16)) in b43legacy_write_initvals() 1850 array_size -= sizeof(iv->data.d16); in b43legacy_write_initvals() 1860 if (array_size) in b43legacy_write_initvals()
|
/drivers/gpu/drm/radeon/ |
D | radeon_device.c | 180 const u32 array_size) in radeon_program_register_sequence() argument 185 if (array_size % 3) in radeon_program_register_sequence() 188 for (i = 0; i < array_size; i +=3) { in radeon_program_register_sequence()
|
/drivers/net/wireless/iwlegacy/ |
D | 3945.c | 123 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/amdgpu/ |
D | amdgpu_device.c | 302 const u32 array_size) in amdgpu_program_register_sequence() argument 307 if (array_size % 3) in amdgpu_program_register_sequence() 310 for (i = 0; i < array_size; i +=3) { in amdgpu_program_register_sequence()
|
/drivers/net/wireless/b43/ |
D | main.c | 2769 size_t array_size) in b43_write_initvals() argument 2779 if (array_size < sizeof(iv->offset_size)) in b43_write_initvals() 2781 array_size -= sizeof(iv->offset_size); in b43_write_initvals() 2790 if (array_size < sizeof(iv->data.d32)) in b43_write_initvals() 2792 array_size -= sizeof(iv->data.d32); in b43_write_initvals() 2803 if (array_size < sizeof(iv->data.d16)) in b43_write_initvals() 2805 array_size -= sizeof(iv->data.d16); in b43_write_initvals() 2815 if (array_size) in b43_write_initvals()
|
/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 1006 int array_size) in crypto4xx_register_alg() argument 1012 for (i = 0; i < array_size; i++) { in crypto4xx_register_alg()
|