/linux-4.1.27/drivers/staging/android/ |
H A D | lowmemorykiller.c | 88 int array_size = ARRAY_SIZE(lowmem_adj); lowmem_scan() local 94 if (lowmem_adj_size < array_size) lowmem_scan() 95 array_size = lowmem_adj_size; lowmem_scan() 96 if (lowmem_minfree_size < array_size) lowmem_scan() 97 array_size = lowmem_minfree_size; lowmem_scan() 98 for (i = 0; i < array_size; i++) { lowmem_scan()
|
/linux-4.1.27/arch/x86/tools/ |
H A D | gen-insn-attr-x86.awk | 111 function array_size(arr, i,c) { function 170 if (array_size(table) != 0) { 175 if (array_size(lptable1) != 0) { 180 if (array_size(lptable2) != 0) { 185 if (array_size(lptable3) != 0) { 192 if (array_size(table) != 0) { 199 if (array_size(lptable1) != 0) { 206 if (array_size(lptable2) != 0) { 213 if (array_size(lptable3) != 0) {
|
/linux-4.1.27/kernel/bpf/ |
H A D | arraymap.c | 28 u32 elem_size, array_size; array_map_alloc() local 42 array_size = sizeof(*array) + attr->max_entries * elem_size; array_map_alloc() 45 array = kzalloc(array_size, GFP_USER | __GFP_NOWARN); array_map_alloc() 47 array = vzalloc(array_size); array_map_alloc()
|
/linux-4.1.27/mm/ |
H A D | swap_cgroup.c | 146 unsigned long array_size; swap_cgroup_swapon() local 154 array_size = length * sizeof(void *); swap_cgroup_swapon() 156 array = vzalloc(array_size); swap_cgroup_swapon()
|
H A D | sparse.c | 65 unsigned long array_size = SECTIONS_PER_ROOT * sparse_index_alloc() local 70 section = kzalloc_node(array_size, GFP_KERNEL, nid); sparse_index_alloc() 72 section = kzalloc(array_size, GFP_KERNEL); sparse_index_alloc() 74 section = memblock_virt_alloc_node(array_size, nid); sparse_index_alloc()
|
H A D | vmalloc.c | 1583 unsigned int nr_pages, array_size, i; __vmalloc_area_node() local 1588 array_size = (nr_pages * sizeof(struct page *)); __vmalloc_area_node() 1592 if (array_size > PAGE_SIZE) { __vmalloc_area_node() 1593 pages = __vmalloc_node(array_size, 1, nested_gfp|__GFP_HIGHMEM, __vmalloc_area_node() 1597 pages = kmalloc_node(array_size, nested_gfp, node); __vmalloc_area_node()
|
/linux-4.1.27/include/linux/gpio/ |
H A D | consumer.h | 103 void gpiod_set_array(unsigned int array_size, 107 void gpiod_set_raw_array(unsigned int array_size, 113 void gpiod_set_array_cansleep(unsigned int array_size, 118 void gpiod_set_raw_array_cansleep(unsigned int array_size, 307 static inline void gpiod_set_array(unsigned int array_size, gpiod_set_array() argument 325 static inline void gpiod_set_raw_array(unsigned int array_size, gpiod_set_raw_array() argument 344 static inline void gpiod_set_array_cansleep(unsigned int array_size, gpiod_set_array_cansleep() argument 363 static inline void gpiod_set_raw_array_cansleep(unsigned int array_size, gpiod_set_raw_array_cansleep() argument
|
/linux-4.1.27/fs/dlm/ |
H A D | member.c | 65 int array_size) log_slots() 75 for (i = 0; i < array_size; i++) { log_slots() 172 int array_size, max_slots, i; dlm_slots_assign() local 219 array_size = max + need; dlm_slots_assign() 221 array = kzalloc(array_size * sizeof(struct dlm_slot), GFP_NOFS); dlm_slots_assign() 233 if (memb->slot > array_size) { dlm_slots_assign() 250 for (i = 0; i < array_size; i++) { dlm_slots_assign() 274 log_slots(ls, gen, num, NULL, array, array_size); dlm_slots_assign() 288 *slots_size = array_size; dlm_slots_assign() 63 log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, struct rcom_slot *ro0, struct dlm_slot *array, int array_size) log_slots() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
H A D | ll_fiemap.h | 104 static inline unsigned fiemap_size_to_count(size_t array_size) fiemap_size_to_count() argument 106 return ((array_size - sizeof(struct ll_user_fiemap)) / fiemap_size_to_count()
|
/linux-4.1.27/fs/omfs/ |
H A D | inode.c | 309 unsigned int bitmap_size, array_size; omfs_get_imap() local 317 array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); omfs_get_imap() 322 sbi->s_imap_size = array_size; omfs_get_imap() 323 sbi->s_imap = kcalloc(array_size, sizeof(unsigned long *), GFP_KERNEL); omfs_get_imap() 352 for (count = 0; count < array_size; count++) omfs_get_imap()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | msgbuf.c | 275 u32 array_size; member in struct:brcmf_msgbuf_pktids 311 pktids->array_size = nr_array_entries; brcmf_msgbuf_init_pktids() 341 if (*idx == pktids->array_size) brcmf_msgbuf_alloc_pktid() 347 } while (count < pktids->array_size); brcmf_msgbuf_alloc_pktid() 349 if (count == pktids->array_size) brcmf_msgbuf_alloc_pktid() 369 if (idx >= pktids->array_size) { brcmf_msgbuf_get_pktid() 371 pktids->array_size); brcmf_msgbuf_get_pktid() 409 } while (count < pktids->array_size); brcmf_msgbuf_release_array()
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
H A D | sti_compositor.c | 58 unsigned int array_size) sti_compositor_init_subdev() 62 for (i = 0; i < array_size; i++) { sti_compositor_init_subdev() 56 sti_compositor_init_subdev(struct sti_compositor *compo, struct sti_compositor_subdev_descriptor *desc, unsigned int array_size) sti_compositor_init_subdev() argument
|
/linux-4.1.27/tools/net/ |
H A D | bpf_dbg.c | 81 #ifndef array_size 82 # define array_size(x) (sizeof(x) / sizeof((x)[0])) macro 532 for (i = 0; i < array_size(bpf_breakpoints); i++) bpf_reset_breakpoints() 541 for (i = 0; i < array_size(bpf_breakpoints); i++) { bpf_set_breakpoints() 564 for (i = 0; i < array_size(bpf_breakpoints); i++) { bpf_dump_breakpoints() 844 for (i = 0; i < array_size(bpf_breakpoints); i++) { bpf_pc_has_breakpoint() 1262 for (i = 0; i < array_size(cmds); i++) { execf() 1284 for (; list_index < array_size(cmds); ) { shell_comp_gen()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 122 int array_size, char sep, char term) try_number() 126 memset(array, 0, sizeof(array[0])*array_size); try_number() 129 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { try_number() 139 if ((*data == term || !term) && i == array_size - 1) try_number() 148 array_size, sep); try_number() 121 try_number(const char *data, size_t dlen, u_int32_t array[], int array_size, char sep, char term) try_number() argument
|
/linux-4.1.27/drivers/md/ |
H A D | dm-table.c | 506 static char **realloc_argv(unsigned *array_size, char **old_argv) realloc_argv() argument 512 if (*array_size) { realloc_argv() 513 new_size = *array_size * 2; realloc_argv() 521 memcpy(argv, old_argv, *array_size * sizeof(*argv)); realloc_argv() 522 *array_size = new_size; realloc_argv() 535 unsigned array_size = 0; dm_split_args() local 544 argv = realloc_argv(&array_size, argv); dm_split_args() 572 if ((*argc + 1) > array_size) { dm_split_args() 573 argv = realloc_argv(&array_size, argv); dm_split_args()
|
H A D | md.c | 4732 __ATTR(array_size, S_IRUGO|S_IWUSR, array_size_show, 5144 "md: invalid array_size %llu > default size %llu\n",
|
H A D | raid5.c | 7317 * array size must be through explicit setting of array_size
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpiolib.c | 1311 unsigned int array_size, gpiod_set_array_priv() 1317 while (i < array_size) { gpiod_set_array_priv() 1353 } while ((i < array_size) && (desc_array[i]->chip == chip)); gpiod_set_array_priv() 1407 * @array_size: number of elements in the descriptor / value arrays 1417 void gpiod_set_raw_array(unsigned int array_size, gpiod_set_raw_array() argument 1422 gpiod_set_array_priv(true, false, array_size, desc_array, value_array); gpiod_set_raw_array() 1428 * @array_size: number of elements in the descriptor / value arrays 1438 void gpiod_set_array(unsigned int array_size, gpiod_set_array() argument 1443 gpiod_set_array_priv(false, false, array_size, desc_array, value_array); gpiod_set_array() 1608 * @array_size: number of elements in the descriptor / value arrays 1617 void gpiod_set_raw_array_cansleep(unsigned int array_size, gpiod_set_raw_array_cansleep() argument 1624 gpiod_set_array_priv(true, true, array_size, desc_array, value_array); gpiod_set_raw_array_cansleep() 1630 * @array_size: number of elements in the descriptor / value arrays 1639 void gpiod_set_array_cansleep(unsigned int array_size, gpiod_set_array_cansleep() argument 1646 gpiod_set_array_priv(false, true, array_size, desc_array, value_array); gpiod_set_array_cansleep() 1310 gpiod_set_array_priv(bool raw, bool can_sleep, unsigned int array_size, struct gpio_desc **desc_array, int *value_array) gpiod_set_array_priv() argument
|
/linux-4.1.27/drivers/net/team/ |
H A D | team.c | 147 unsigned int array_size; __team_option_inst_add() local 151 array_size = option->array_size; __team_option_inst_add() 152 if (!array_size) __team_option_inst_add() 153 array_size = 1; /* No array but still need one instance */ __team_option_inst_add() 155 for (i = 0; i < array_size; i++) { __team_option_inst_add() 2240 if (opt_inst->option->array_size && team_nl_fill_one_option_get() 2503 (option->array_size && !opt_is_array) || team_nl_cmd_options_set()
|
H A D | team_mode_loadbalance.c | 545 .array_size = LB_TX_HASHTABLE_SIZE, 553 .array_size = LB_TX_HASHTABLE_SIZE,
|
/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | mpic_timer.c | 148 unsigned int array_size = ARRAY_SIZE(cascade_timer); detect_idle_cascade_timer() local 154 for (i = 0; i < array_size; i++) { detect_idle_cascade_timer()
|
/linux-4.1.27/drivers/misc/vmw_vmci/ |
H A D | vmci_host.c | 202 u32 array_size = 0; drv_cp_harray_to_user() local 206 array_size = vmci_handle_arr_get_size(handle_array); drv_cp_harray_to_user() 208 if (array_size * sizeof(*handles) > *user_buf_size) drv_cp_harray_to_user() 211 *user_buf_size = array_size * sizeof(*handles); drv_cp_harray_to_user()
|
H A D | vmci_context.c | 204 u32 i, array_size; ctx_fire_notification() local 246 array_size = vmci_handle_arr_get_size(subscriber_array); ctx_fire_notification() 247 for (i = 0; i < array_size; i++) { ctx_fire_notification()
|
/linux-4.1.27/include/linux/ |
H A D | if_team.h | 151 unsigned int array_size; /* != 0 means the option is array */ member in struct:team_option
|
/linux-4.1.27/arch/arm/mm/ |
H A D | dma-mapping.c | 1120 int array_size = count * sizeof(struct page *); __iommu_alloc_buffer() local 1123 if (array_size <= PAGE_SIZE) __iommu_alloc_buffer() 1124 pages = kzalloc(array_size, GFP_KERNEL); __iommu_alloc_buffer() 1126 pages = vzalloc(array_size); __iommu_alloc_buffer() 1193 if (array_size <= PAGE_SIZE) __iommu_alloc_buffer() 1204 int array_size = count * sizeof(struct page *); __iommu_free_buffer() local 1215 if (array_size <= PAGE_SIZE) __iommu_free_buffer()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 2412 static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, check_array_args() argument 2431 *array_size = sizeof(struct v4l2_plane) * buf->length; check_array_args() 2448 *array_size = edid->blocks * 128; check_array_args() 2466 *array_size = sizeof(struct v4l2_ext_control) check_array_args() 2486 size_t array_size = 0; video_usercopy() local 2531 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); video_usercopy() 2543 mbuf = kmalloc(array_size, GFP_KERNEL); video_usercopy() 2548 if (copy_from_user(mbuf, user_ptr, array_size)) video_usercopy() 2566 if (copy_to_user(user_ptr, mbuf, array_size)) video_usercopy()
|
/linux-4.1.27/fs/btrfs/ |
H A D | volumes.c | 2542 u32 array_size; btrfs_del_sys_chunk() local 2548 array_size = btrfs_super_sys_array_size(super_copy); btrfs_del_sys_chunk() 2553 while (cur < array_size) { btrfs_del_sys_chunk() 2569 memmove(ptr, ptr + len, array_size - (cur + len)); btrfs_del_sys_chunk() 2570 array_size -= len; btrfs_del_sys_chunk() 2571 btrfs_set_super_sys_array_size(super_copy, array_size); btrfs_del_sys_chunk() 4092 u32 array_size; btrfs_add_system_chunk() local 4096 array_size = btrfs_super_sys_array_size(super_copy); btrfs_add_system_chunk() 4097 if (array_size + item_size + sizeof(disk_key) btrfs_add_system_chunk() 4103 ptr = super_copy->sys_chunk_array + array_size; btrfs_add_system_chunk() 4109 btrfs_set_super_sys_array_size(super_copy, array_size + item_size); btrfs_add_system_chunk() 6265 u32 array_size; btrfs_read_sys_array() local 6297 array_size = btrfs_super_sys_array_size(super_copy); btrfs_read_sys_array() 6303 while (cur_offset < array_size) { btrfs_read_sys_array() 6306 if (cur_offset + len > array_size) btrfs_read_sys_array() 6322 if (cur_offset + len > array_size) btrfs_read_sys_array() 6335 if (cur_offset + len > array_size) btrfs_read_sys_array()
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
H A D | main.c | 1813 size_t array_size) b43legacy_write_initvals() 1823 if (array_size < sizeof(iv->offset_size)) b43legacy_write_initvals() 1825 array_size -= sizeof(iv->offset_size); b43legacy_write_initvals() 1834 if (array_size < sizeof(iv->data.d32)) b43legacy_write_initvals() 1836 array_size -= sizeof(iv->data.d32); b43legacy_write_initvals() 1847 if (array_size < sizeof(iv->data.d16)) b43legacy_write_initvals() 1849 array_size -= sizeof(iv->data.d16); b43legacy_write_initvals() 1859 if (array_size) b43legacy_write_initvals() 1810 b43legacy_write_initvals(struct b43legacy_wldev *dev, const struct b43legacy_iv *ivals, size_t count, size_t array_size) b43legacy_write_initvals() argument
|
/linux-4.1.27/fs/debugfs/ |
H A D | file.c | 574 u32 *array, int array_size) u32_format_array() 578 while (--array_size >= 0) { u32_format_array() 580 char term = array_size ? ' ' : '\n'; u32_format_array() 573 u32_format_array(char *buf, size_t bufsize, u32 *array, int array_size) u32_format_array() argument
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_device.c | 169 * @array_size: size of the register array 176 const u32 array_size) radeon_program_register_sequence() 181 if (array_size % 3) radeon_program_register_sequence() 184 for (i = 0; i < array_size; i +=3) { radeon_program_register_sequence() 174 radeon_program_register_sequence(struct radeon_device *rdev, const u32 *registers, const u32 array_size) radeon_program_register_sequence() argument
|
H A D | radeon.h | 2998 const u32 array_size);
|
/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | main.c | 2769 size_t array_size) b43_write_initvals() 2779 if (array_size < sizeof(iv->offset_size)) b43_write_initvals() 2781 array_size -= sizeof(iv->offset_size); b43_write_initvals() 2790 if (array_size < sizeof(iv->data.d32)) b43_write_initvals() 2792 array_size -= sizeof(iv->data.d32); b43_write_initvals() 2803 if (array_size < sizeof(iv->data.d16)) b43_write_initvals() 2805 array_size -= sizeof(iv->data.d16); b43_write_initvals() 2815 if (array_size) b43_write_initvals() 2766 b43_write_initvals(struct b43_wldev *dev, const struct b43_iv *ivals, size_t count, size_t array_size) b43_write_initvals() argument
|
/linux-4.1.27/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 1028 int array_size) crypto4xx_register_alg() 1034 for (i = 0; i < array_size; i++) { crypto4xx_register_alg() 1026 crypto4xx_register_alg(struct crypto4xx_device *sec_dev, struct crypto4xx_alg_common *crypto_alg, int array_size) crypto4xx_register_alg() argument
|
/linux-4.1.27/fs/nfs/ |
H A D | dir.c | 631 unsigned int array_size = ARRAY_SIZE(pages); nfs_readdir_xdr_to_array() local 656 status = nfs_readdir_large_page(pages, array_size); nfs_readdir_xdr_to_array() 674 nfs_readdir_free_large_page(pages_ptr, pages, array_size); nfs_readdir_xdr_to_array()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | 3945.c | 123 u32 array_size; /* # of u32 entries in array */ il3945_disable_events() local 181 array_size = il_read_targ_mem(il, base + (5 * sizeof(u32))); il3945_disable_events() 183 if (IL_EVT_DISABLE && array_size == IL_EVT_DISABLE_SIZE) { il3945_disable_events() 194 array_size); il3945_disable_events()
|