/drivers/staging/android/ |
D | lowmemorykiller.c | 82 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_shrink() local 88 if (lowmem_adj_size < array_size) in lowmem_shrink() 89 array_size = lowmem_adj_size; in lowmem_shrink() 90 if (lowmem_minfree_size < array_size) in lowmem_shrink() 91 array_size = lowmem_minfree_size; in lowmem_shrink() 92 for (i = 0; i < array_size; i++) { in lowmem_shrink() 211 int array_size = ARRAY_SIZE(lowmem_adj); in lowmem_autodetect_oom_adj_values() local 213 if (lowmem_adj_size < array_size) in lowmem_autodetect_oom_adj_values() 214 array_size = lowmem_adj_size; in lowmem_autodetect_oom_adj_values() 216 if (array_size <= 0) in lowmem_autodetect_oom_adj_values() [all …]
|
/drivers/md/ |
D | dm-table.c | 585 static char **realloc_argv(unsigned *array_size, char **old_argv) in realloc_argv() argument 590 new_size = *array_size ? *array_size * 2 : 64; in realloc_argv() 593 memcpy(argv, old_argv, *array_size * sizeof(*argv)); in realloc_argv() 594 *array_size = new_size; in realloc_argv() 607 unsigned array_size = 0; in dm_split_args() local 616 argv = realloc_argv(&array_size, argv); in dm_split_args() 644 if ((*argc + 1) > array_size) { in dm_split_args() 645 argv = realloc_argv(&array_size, argv); in dm_split_args()
|
D | md.c | 4666 __ATTR(array_size, S_IRUGO|S_IWUSR, array_size_show,
|
/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 | 204 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/media/v4l2-core/ |
D | v4l2-ioctl.c | 2253 static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, in check_array_args() argument 2272 *array_size = sizeof(struct v4l2_plane) * buf->length; in check_array_args() 2289 *array_size = edid->blocks * 128; in check_array_args() 2307 *array_size = sizeof(struct v4l2_ext_control) in check_array_args() 2327 size_t array_size = 0; in video_usercopy() local 2372 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); in video_usercopy() 2384 mbuf = kmalloc(array_size, GFP_KERNEL); in video_usercopy() 2389 if (copy_from_user(mbuf, user_ptr, array_size)) in video_usercopy() 2401 if (copy_to_user(user_ptr, mbuf, array_size)) in video_usercopy()
|
/drivers/net/team/ |
D | team.c | 148 unsigned int array_size; in __team_option_inst_add() local 152 array_size = option->array_size; in __team_option_inst_add() 153 if (!array_size) in __team_option_inst_add() 154 array_size = 1; /* No array but still need one instance */ in __team_option_inst_add() 156 for (i = 0; i < array_size; i++) { in __team_option_inst_add() 2022 if (opt_inst->option->array_size && in team_nl_fill_one_option_get() 2285 (option->array_size && !opt_is_array) || in team_nl_cmd_options_set()
|
D | team_mode_loadbalance.c | 542 .array_size = LB_TX_HASHTABLE_SIZE, 550 .array_size = LB_TX_HASHTABLE_SIZE,
|
/drivers/gpu/drm/radeon/ |
D | radeon_device.c | 113 const u32 array_size) in radeon_program_register_sequence() argument 118 if (array_size % 3) in radeon_program_register_sequence() 121 for (i = 0; i < array_size; i +=3) { in radeon_program_register_sequence()
|
D | radeon.h | 1967 const u32 array_size);
|
/drivers/net/wireless/b43legacy/ |
D | main.c | 1813 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/net/wireless/iwlegacy/ |
D | 3945.c | 124 u32 array_size; /* # of u32 entries in array */ in il3945_disable_events() local 182 array_size = il_read_targ_mem(il, base + (5 * sizeof(u32))); in il3945_disable_events() 184 if (IL_EVT_DISABLE && array_size == IL_EVT_DISABLE_SIZE) { in il3945_disable_events() 195 array_size); in il3945_disable_events()
|
/drivers/net/wireless/b43/ |
D | main.c | 2635 size_t array_size) in b43_write_initvals() argument 2645 if (array_size < sizeof(iv->offset_size)) in b43_write_initvals() 2647 array_size -= sizeof(iv->offset_size); in b43_write_initvals() 2656 if (array_size < sizeof(iv->data.d32)) in b43_write_initvals() 2658 array_size -= sizeof(iv->data.d32); in b43_write_initvals() 2669 if (array_size < sizeof(iv->data.d16)) in b43_write_initvals() 2671 array_size -= sizeof(iv->data.d16); in b43_write_initvals() 2681 if (array_size) in b43_write_initvals()
|
/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 1026 int array_size) in crypto4xx_register_alg() argument 1032 for (i = 0; i < array_size; i++) { in crypto4xx_register_alg()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | wl_cfg80211.c | 5045 u32 array_size; in brcmf_construct_reginfo() local 5071 array_size = ARRAY_SIZE(__wl_2ghz_channels); in brcmf_construct_reginfo() 5077 array_size = ARRAY_SIZE(__wl_5ghz_a_channels); in brcmf_construct_reginfo() 5088 for (j = 0; (j < *n_cnt && (*n_cnt < array_size)); j++) { in brcmf_construct_reginfo() 5098 if (index < array_size) { in brcmf_construct_reginfo()
|
/drivers/scsi/ |
D | aic7xxx_old.c | 8128 size_t array_size; in aic7xxx_register() local 8131 array_size = p->scb_data->maxscbs * sizeof(struct aic7xxx_hwscb); in aic7xxx_register() 8137 p->scb_data->hscbs = pci_alloc_consistent(p->pdev, array_size, in aic7xxx_register() 8141 p->scb_data->hscbs_dma_len = array_size; in aic7xxx_register()
|