/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_extend.c | 52 size_t alloc_size; nf_ct_ext_create() local 59 alloc_size = t->alloc_size + var_alloc_len; nf_ct_ext_create() 62 *ext = kzalloc(alloc_size, gfp); nf_ct_ext_create() 144 t1->alloc_size = ALIGN(sizeof(struct nf_ct_ext), t1->align) + update_alloc_size() 153 t1->alloc_size = ALIGN(t1->alloc_size, t2->align) update_alloc_size() 171 before updating alloc_size */ nf_ct_extend_register() 172 type->alloc_size = ALIGN(sizeof(struct nf_ct_ext), type->align) nf_ct_extend_register()
|
/linux-4.1.27/drivers/staging/unisys/visorutil/ |
H A D | charqueue.c | 29 int alloc_size; member in struct:charqueue 38 int alloc_size = sizeof(struct charqueue) + nslots + 1; visor_charqueue_create() local 41 cq = kmalloc(alloc_size, GFP_KERNEL|__GFP_NORETRY); visor_charqueue_create() 44 cq->alloc_size = alloc_size; visor_charqueue_create()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-stats.c | 73 static bool __check_shared_memory(size_t alloc_size) __check_shared_memory() argument 77 a = shared_memory_amount + alloc_size; __check_shared_memory() 89 static bool check_shared_memory(size_t alloc_size) check_shared_memory() argument 95 ret = __check_shared_memory(alloc_size); check_shared_memory() 102 static bool claim_shared_memory(size_t alloc_size) claim_shared_memory() argument 106 if (!__check_shared_memory(alloc_size)) { claim_shared_memory() 111 shared_memory_amount += alloc_size; claim_shared_memory() 118 static void free_shared_memory(size_t alloc_size) free_shared_memory() argument 124 if (WARN_ON_ONCE(shared_memory_amount < alloc_size)) { free_shared_memory() 130 shared_memory_amount -= alloc_size; free_shared_memory() 135 static void *dm_kvzalloc(size_t alloc_size, int node) dm_kvzalloc() argument 139 if (!claim_shared_memory(alloc_size)) dm_kvzalloc() 142 if (alloc_size <= KMALLOC_MAX_SIZE) { dm_kvzalloc() 143 p = kzalloc_node(alloc_size, GFP_KERNEL | __GFP_NORETRY | __GFP_NOMEMALLOC | __GFP_NOWARN, node); dm_kvzalloc() 147 p = vzalloc_node(alloc_size, node); dm_kvzalloc() 151 free_shared_memory(alloc_size); dm_kvzalloc() 156 static void dm_kvfree(void *ptr, size_t alloc_size) dm_kvfree() argument 161 free_shared_memory(alloc_size); dm_kvfree()
|
H A D | dm-log-writes.c | 551 size_t alloc_size; log_writes_map() local 578 alloc_size = sizeof(struct pending_block); log_writes_map() 580 alloc_size = sizeof(struct pending_block) + sizeof(struct bio_vec) * bio_segments(bio); log_writes_map() 582 block = kzalloc(alloc_size, GFP_NOIO); log_writes_map()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | move_extents.c | 736 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, ocfs2_calc_extent_defrag_len() argument 739 if ((*alloc_size + *len_defraged) < threshold) { ocfs2_calc_extent_defrag_len() 743 *len_defraged += *alloc_size; ocfs2_calc_extent_defrag_len() 758 *alloc_size = threshold - *len_defraged; ocfs2_calc_extent_defrag_len() 767 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; __ocfs2_move_extents_range() local 824 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, __ocfs2_move_extents_range() 831 if (alloc_size > len_to_move) __ocfs2_move_extents_range() 832 alloc_size = len_to_move; __ocfs2_move_extents_range() 848 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, __ocfs2_move_extents_range() 859 "alloc_size: %u, len_defraged: %u\n", __ocfs2_move_extents_range() 860 cpos, phys_cpos, alloc_size, len_defraged); __ocfs2_move_extents_range() 863 &alloc_size, flags); __ocfs2_move_extents_range() 866 &new_phys_cpos, alloc_size, __ocfs2_move_extents_range() 869 new_phys_cpos += alloc_size; __ocfs2_move_extents_range() 877 context->clusters_moved += alloc_size; __ocfs2_move_extents_range() 879 cpos += alloc_size; __ocfs2_move_extents_range() 880 len_to_move -= alloc_size; __ocfs2_move_extents_range()
|
H A D | file.c | 530 * we'll update all the disk stuff, and oip->alloc_size 1426 u32 cpos, phys_cpos, clusters, alloc_size; ocfs2_allocate_unwritten_extents() local 1460 &alloc_size, NULL); ocfs2_allocate_unwritten_extents() 1470 if (alloc_size > clusters) ocfs2_allocate_unwritten_extents() 1471 alloc_size = clusters; ocfs2_allocate_unwritten_extents() 1481 ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); ocfs2_allocate_unwritten_extents() 1489 cpos += alloc_size; ocfs2_allocate_unwritten_extents() 1490 clusters -= alloc_size; ocfs2_allocate_unwritten_extents()
|
H A D | xattr.c | 830 u32 trunc_len, cpos, phys_cpos, alloc_size; ocfs2_xattr_shrink_size() local 840 &alloc_size, ocfs2_xattr_shrink_size() 847 if (alloc_size > trunc_len) ocfs2_xattr_shrink_size() 848 alloc_size = trunc_len; ocfs2_xattr_shrink_size() 851 phys_cpos, alloc_size, ocfs2_xattr_shrink_size() 860 block, alloc_size); ocfs2_xattr_shrink_size() local 861 cpos += alloc_size; ocfs2_xattr_shrink_size() 862 trunc_len -= alloc_size; ocfs2_xattr_shrink_size()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | sec_null.c | 159 int alloc_size = size_roundup_power2(msgsize); null_alloc_reqbuf() local 162 OBD_ALLOC_LARGE(req->rq_reqbuf, alloc_size); null_alloc_reqbuf() 166 req->rq_reqbuf_len = alloc_size; null_alloc_reqbuf() 231 int oldsize, newmsg_size, alloc_size; null_enlarge_reqbuf() local 248 alloc_size = size_roundup_power2(newmsg_size); null_enlarge_reqbuf() 250 OBD_ALLOC_LARGE(newbuf, alloc_size); null_enlarge_reqbuf() 266 req->rq_reqbuf_len = alloc_size; null_enlarge_reqbuf()
|
/linux-4.1.27/lib/ |
H A D | scatterlist.c | 187 unsigned int alloc_size = table->orig_nents; __sg_free_table() local 196 if (alloc_size > max_ents) { __sg_free_table() 198 alloc_size = max_ents; __sg_free_table() 199 sg_size = alloc_size - 1; __sg_free_table() 201 sg_size = alloc_size; __sg_free_table() 209 free_fn(sgl, alloc_size); __sg_free_table() 266 unsigned int sg_size, alloc_size = left; __sg_alloc_table() local 268 if (alloc_size > max_ents) { __sg_alloc_table() 269 alloc_size = max_ents; __sg_alloc_table() 270 sg_size = alloc_size - 1; __sg_alloc_table() 272 sg_size = alloc_size; __sg_alloc_table() 280 sg = alloc_fn(alloc_size, gfp_mask); __sg_alloc_table() 295 sg_init_table(sg, alloc_size); __sg_alloc_table()
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 166 unsigned int alloc_size; __cpufreq_stats_create_table() local 187 alloc_size = count * sizeof(int) + count * sizeof(u64); __cpufreq_stats_create_table() 190 alloc_size += count * count * sizeof(int); __cpufreq_stats_create_table() 194 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL); __cpufreq_stats_create_table()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | ldt.c | 40 int alloc_size; alloc_ldt_struct() local 50 alloc_size = size * LDT_ENTRY_SIZE; alloc_ldt_struct() 58 if (alloc_size > PAGE_SIZE) alloc_ldt_struct() 59 new_ldt->entries = vzalloc(alloc_size); alloc_ldt_struct()
|
/linux-4.1.27/tools/perf/util/ |
H A D | util.c | 492 size_t size = 0, alloc_size = 0; filename__read_str() local 502 if (size == alloc_size) { filename__read_str() 503 alloc_size += BUFSIZ; filename__read_str() 504 nbf = realloc(bf, alloc_size); filename__read_str() 513 n = read(fd, bf + size, alloc_size - size); filename__read_str()
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
H A D | ttm_page_alloc.c | 90 unsigned alloc_size; member in struct:ttm_pool_opts 181 m->options.alloc_size = val; ttm_pool_store() 199 val = m->options.alloc_size; ttm_pool_show() 595 unsigned alloc_size = _manager->options.alloc_size; ttm_page_pool_fill_locked() local 605 cstate, alloc_size); ttm_page_pool_fill_locked() 611 pool->npages += alloc_size; ttm_page_pool_fill_locked() 834 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; ttm_page_alloc_init()
|
H A D | ttm_page_alloc_dma.c | 142 unsigned alloc_size; member in struct:ttm_pool_opts 235 m->options.alloc_size = val; ttm_pool_store() 253 val = m->options.alloc_size; ttm_pool_show() 1095 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; ttm_dma_page_alloc_init()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack_extend.h | 118 u8 alloc_size; member in struct:nf_ct_ext_type
|
/linux-4.1.27/net/ieee802154/ |
H A D | core.c | 103 size_t alloc_size; wpan_phy_new() local 105 alloc_size = sizeof(*rdev) + priv_size; wpan_phy_new() 106 rdev = kzalloc(alloc_size, GFP_KERNEL); wpan_phy_new()
|
/linux-4.1.27/drivers/firmware/efi/libstub/ |
H A D | efi-stub-helper.c | 548 unsigned long alloc_size, efi_relocate_kernel() 558 if (!image_addr || !image_size || !alloc_size) efi_relocate_kernel() 560 if (alloc_size < image_size) efi_relocate_kernel() 573 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; efi_relocate_kernel() 583 status = efi_low_alloc(sys_table_arg, alloc_size, alignment, efi_relocate_kernel() 545 efi_relocate_kernel(efi_system_table_t *sys_table_arg, unsigned long *image_addr, unsigned long image_size, unsigned long alloc_size, unsigned long preferred_addr, unsigned long alignment) efi_relocate_kernel() argument
|
/linux-4.1.27/drivers/usb/host/ |
H A D | ehci-dbg.c | 381 size_t alloc_size; member in struct:debug_buffer 509 size = buf->alloc_size; fill_async_buffer() 550 size = buf->alloc_size; fill_bandwidth_buffer() 638 size = buf->alloc_size; fill_periodic_buffer() 759 return buf->alloc_size - size; fill_periodic_buffer() 791 size = buf->alloc_size; fill_registers_buffer() 935 return buf->alloc_size - size; fill_registers_buffer() 949 buf->alloc_size = PAGE_SIZE; alloc_buffer() 960 buf->output_buf = vmalloc(buf->alloc_size); fill_buffer() 1036 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; debug_periodic_open()
|
H A D | fotg210-hcd.c | 347 size_t alloc_size; member in struct:debug_buffer 485 size = buf->alloc_size; fill_async_buffer() 531 size = buf->alloc_size; fill_periodic_buffer() 645 return buf->alloc_size - size; fill_periodic_buffer() 677 size = buf->alloc_size; fill_registers_buffer() 765 return buf->alloc_size - size; fill_registers_buffer() 779 buf->alloc_size = PAGE_SIZE; alloc_buffer() 790 buf->output_buf = vmalloc(buf->alloc_size); fill_buffer() 857 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; debug_periodic_open()
|
H A D | fusbh200-hcd.c | 339 size_t alloc_size; member in struct:debug_buffer 465 size = buf->alloc_size; fill_async_buffer() 509 size = buf->alloc_size; fill_periodic_buffer() 619 return buf->alloc_size - size; fill_periodic_buffer() 651 size = buf->alloc_size; fill_registers_buffer() 736 return buf->alloc_size - size; fill_registers_buffer() 750 buf->alloc_size = PAGE_SIZE; alloc_buffer() 761 buf->output_buf = vmalloc(buf->alloc_size); fill_buffer() 828 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; debug_periodic_open()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | pci_sun4v.c | 750 unsigned long q_size, alloc_size, pages, order; pci_sun4v_msiq_alloc() local 754 alloc_size = (pbm->msiq_num * q_size); pci_sun4v_msiq_alloc() 755 order = get_order(alloc_size); pci_sun4v_msiq_alloc() 804 unsigned long q_size, alloc_size, pages, order; pci_sun4v_msiq_free() local 814 alloc_size = (pbm->msiq_num * q_size); pci_sun4v_msiq_free() 815 order = get_order(alloc_size); pci_sun4v_msiq_free()
|
H A D | mdesc.c | 93 unsigned int handle_size, alloc_size; mdesc_memblock_alloc() local 100 alloc_size = PAGE_ALIGN(handle_size); mdesc_memblock_alloc() 102 paddr = memblock_alloc(alloc_size, PAGE_SIZE); mdesc_memblock_alloc() 114 unsigned int alloc_size; mdesc_memblock_free() local 120 alloc_size = PAGE_ALIGN(hp->handle_size); mdesc_memblock_free() 122 free_bootmem_late(start, alloc_size); mdesc_memblock_free()
|
/linux-4.1.27/net/openvswitch/ |
H A D | vport.c | 138 size_t alloc_size; ovs_vport_alloc() local 140 alloc_size = sizeof(struct vport); ovs_vport_alloc() 142 alloc_size = ALIGN(alloc_size, VPORT_ALIGN); ovs_vport_alloc() 143 alloc_size += priv_size; ovs_vport_alloc() 146 vport = kzalloc(alloc_size, GFP_KERNEL); ovs_vport_alloc()
|
/linux-4.1.27/drivers/mtd/ |
H A D | cmdlinepart.c | 183 int alloc_size; newpart() local 186 alloc_size = *num_parts * sizeof(struct mtd_partition) + newpart() 189 parts = kzalloc(alloc_size, GFP_KERNEL); newpart()
|
/linux-4.1.27/drivers/dca/ |
H A D | dca-core.c | 327 int alloc_size; alloc_dca_provider() local 329 alloc_size = (sizeof(*dca) + priv_size); alloc_dca_provider() 330 dca = kzalloc(alloc_size, GFP_KERNEL); alloc_dca_provider()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | mdio_bus.c | 53 size_t alloc_size; mdiobus_alloc_size() local 57 alloc_size = aligned_size + size; mdiobus_alloc_size() 59 alloc_size = sizeof(*bus); mdiobus_alloc_size() 61 bus = kzalloc(alloc_size, GFP_KERNEL); mdiobus_alloc_size()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | crash_dump.c | 602 u32 alloc_size; elfcorehdr_alloc() local 624 alloc_size = 0x1000 + get_cpu_cnt() * 0x4a0 + elfcorehdr_alloc() 626 hdr = kzalloc_panic(alloc_size); elfcorehdr_alloc() 643 BUG_ON(elfcorehdr_size > alloc_size); elfcorehdr_alloc()
|
/linux-4.1.27/drivers/scsi/osd/ |
H A D | osd_initiator.c | 434 if (!seg->buff || !seg->alloc_size) _osd_free_seg() 439 seg->alloc_size = 0; _osd_free_seg() 541 if (seg->alloc_size >= max_bytes) _osd_realloc_seg() 547 seg->alloc_size); _osd_realloc_seg() 551 memset(buff + seg->alloc_size, 0, max_bytes - seg->alloc_size); _osd_realloc_seg() 553 seg->alloc_size = max_bytes; _osd_realloc_seg() 1152 if (unlikely(or->set_attr.alloc_size < total_bytes)) { osd_req_add_set_attr_list() 1182 (padding <= last_seg->alloc_size - last_seg->total_bytes)) _req_append_segment() 1268 if (unlikely(or->enc_get_attr.alloc_size < total_bytes)) { osd_req_add_get_attr_list() 1372 (or->get_attr.buff + or->get_attr.alloc_size < *iterator)); osd_req_decode_get_attr_list() 1383 if (returned_bytes > or->get_attr.alloc_size) { osd_req_decode_get_attr_list() 1386 or->get_attr.alloc_size, osd_req_decode_get_attr_list() 1390 or->get_attr.alloc_size - sizeof_attr_list; osd_req_decode_get_attr_list()
|
/linux-4.1.27/fs/exofs/ |
H A D | ore_raid.c | 88 unsigned num_a1pa, alloc_size, i; _sp2d_alloc() local 96 alloc_size = sizeof(_aab->__asp2d) + sizeof__a1pa * num_a1pa; _sp2d_alloc() 99 alloc_size = sizeof(*_aab); _sp2d_alloc() 102 _aab = kzalloc(alloc_size, GFP_KERNEL); _sp2d_alloc() 104 ORE_DBGMSG("!! Failed to alloc sp2d size=%d\n", alloc_size); _sp2d_alloc()
|
/linux-4.1.27/net/core/ |
H A D | dev_addr_lists.c | 29 int alloc_size; __hw_addr_create_ex() local 31 alloc_size = sizeof(*ha); __hw_addr_create_ex() 32 if (alloc_size < L1_CACHE_BYTES) __hw_addr_create_ex() 33 alloc_size = L1_CACHE_BYTES; __hw_addr_create_ex() 34 ha = kmalloc(alloc_size, GFP_ATOMIC); __hw_addr_create_ex()
|
H A D | dev.c | 6788 size_t alloc_size; alloc_netdev_mqs() local 6805 alloc_size = sizeof(struct net_device); alloc_netdev_mqs() 6808 alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); alloc_netdev_mqs() 6809 alloc_size += sizeof_priv; alloc_netdev_mqs() 6812 alloc_size += NETDEV_ALIGN - 1; alloc_netdev_mqs() 6814 p = kzalloc(alloc_size, GFP_KERNEL | __GFP_NOWARN | __GFP_REPEAT); alloc_netdev_mqs() 6816 p = vzalloc(alloc_size); alloc_netdev_mqs()
|
/linux-4.1.27/security/apparmor/ |
H A D | apparmorfs.c | 76 * @alloc_size: size of user buffer (REQUIRES: @alloc_size >= @copy_size) 84 size_t alloc_size, size_t copy_size, aa_simple_write_to_buffer() 89 BUG_ON(copy_size > alloc_size); aa_simple_write_to_buffer() 103 data = kvmalloc(alloc_size); aa_simple_write_to_buffer() 83 aa_simple_write_to_buffer(int op, const char __user *userbuf, size_t alloc_size, size_t copy_size, loff_t *pos) aa_simple_write_to_buffer() argument
|
/linux-4.1.27/drivers/iio/ |
H A D | industrialio-core.c | 968 size_t alloc_size; iio_device_alloc() local 970 alloc_size = sizeof(struct iio_dev); iio_device_alloc() 972 alloc_size = ALIGN(alloc_size, IIO_ALIGN); iio_device_alloc() 973 alloc_size += sizeof_priv; iio_device_alloc() 976 alloc_size += IIO_ALIGN - 1; iio_device_alloc() 978 dev = kzalloc(alloc_size, GFP_KERNEL); iio_device_alloc()
|
/linux-4.1.27/kernel/ |
H A D | relay.c | 107 if (length != (unsigned long)buf->chan->alloc_size) relay_mmap_buf() 179 buf->start = relay_alloc_buf(buf, &chan->alloc_size); relay_create_buf() 591 chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); relay_open() 1222 uint32_t alloc_size = (uint32_t) rbuf->chan->alloc_size; subbuf_splice_actor() local 1223 size_t read_start = (size_t) do_div(pos, alloc_size); subbuf_splice_actor() 1251 subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; subbuf_splice_actor()
|
/linux-4.1.27/drivers/dma-buf/ |
H A D | dma-buf.c | 287 size_t alloc_size = sizeof(struct dma_buf); dma_buf_export() local 289 alloc_size += sizeof(struct reservation_object); dma_buf_export() 292 alloc_size += 1; dma_buf_export() 305 dmabuf = kzalloc(alloc_size, GFP_KERNEL); dma_buf_export()
|
/linux-4.1.27/include/linux/ |
H A D | percpu.h | 73 size_t alloc_size; member in struct:pcpu_alloc_info
|
H A D | relay.h | 61 size_t alloc_size; /* total buffer size allocated */ member in struct:rchan
|
H A D | efi.h | 1243 unsigned long alloc_size,
|
/linux-4.1.27/mm/ |
H A D | percpu.c | 1440 upa = ai->alloc_size / ai->unit_size; pcpu_dump_alloc_info() 1446 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); pcpu_dump_alloc_info() 1505 * @ai->alloc_size is the allocation size and always multiple of 1784 size_t size_sum, min_unit_size, alloc_size; pcpu_build_alloc_info() local 1801 * Determine min_unit_size, alloc_size and max_upa such that pcpu_build_alloc_info() 1802 * alloc_size is multiple of atom_size and is the smallest pcpu_build_alloc_info() 1808 alloc_size = roundup(min_unit_size, atom_size); pcpu_build_alloc_info() 1809 upa = alloc_size / min_unit_size; pcpu_build_alloc_info() 1810 while (alloc_size % upa || ((alloc_size / upa) & ~PAGE_MASK)) pcpu_build_alloc_info() 1842 if (alloc_size % upa || ((alloc_size / upa) & ~PAGE_MASK)) 1884 ai->unit_size = alloc_size / upa; 1886 ai->alloc_size = alloc_size; 2245 ai->alloc_size = unit_size; setup_per_cpu_areas()
|
H A D | mempolicy.c | 1472 unsigned long nr_bits, alloc_size; COMPAT_SYSCALL_DEFINE5() local 1476 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; COMPAT_SYSCALL_DEFINE5() 1479 nm = compat_alloc_user_space(alloc_size); COMPAT_SYSCALL_DEFINE5() 1485 copy_size = min_t(unsigned long, sizeof(bm), alloc_size); COMPAT_SYSCALL_DEFINE5() 1500 unsigned long nr_bits, alloc_size; COMPAT_SYSCALL_DEFINE3() local 1504 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; COMPAT_SYSCALL_DEFINE3() 1508 nm = compat_alloc_user_space(alloc_size); COMPAT_SYSCALL_DEFINE3() 1509 err |= copy_to_user(nm, bm, alloc_size); COMPAT_SYSCALL_DEFINE3() 1524 unsigned long nr_bits, alloc_size; COMPAT_SYSCALL_DEFINE6() local 1528 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; COMPAT_SYSCALL_DEFINE6() 1532 nm = compat_alloc_user_space(alloc_size); COMPAT_SYSCALL_DEFINE6() 1533 err |= copy_to_user(nm, nodes_addr(bm), alloc_size); COMPAT_SYSCALL_DEFINE6()
|
H A D | page_alloc.c | 4429 size_t alloc_size; zone_wait_table_init() local 4439 alloc_size = zone->wait_table_hash_nr_entries zone_wait_table_init() 4445 alloc_size, zone->zone_pgdat->node_id); zone_wait_table_init() 4457 zone->wait_table = vmalloc(alloc_size); zone_wait_table_init()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 62 size_t alloc_size; eeh_pe_alloc() local 64 alloc_size = sizeof(struct eeh_pe); eeh_pe_alloc() 66 alloc_size = ALIGN(alloc_size, cache_line_size()); eeh_pe_alloc() 67 alloc_size += eeh_pe_aux_size; eeh_pe_alloc() 71 pe = kzalloc(alloc_size, GFP_KERNEL); eeh_pe_alloc()
|
H A D | vio.c | 561 size_t alloc_size = 0; vio_dma_iommu_map_sg() local 565 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); vio_dma_iommu_map_sg() 567 if (vio_cmo_alloc(viodev, alloc_size)) { vio_dma_iommu_map_sg() 575 vio_cmo_dealloc(viodev, alloc_size); vio_dma_iommu_map_sg() 581 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); vio_dma_iommu_map_sg() 582 if (alloc_size) vio_dma_iommu_map_sg() 583 vio_cmo_dealloc(viodev, alloc_size); vio_dma_iommu_map_sg() 596 size_t alloc_size = 0; vio_dma_iommu_unmap_sg() local 601 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); vio_dma_iommu_unmap_sg() 605 vio_cmo_dealloc(viodev, alloc_size); vio_dma_iommu_unmap_sg()
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-gic-v3-its.c | 847 int alloc_size; its_alloc_tables() local 881 alloc_size = (1 << order) * PAGE_SIZE; its_alloc_tables() 910 val |= (alloc_size / psz) - 1; its_alloc_tables() 926 __flush_dcache_area(base, alloc_size); its_alloc_tables() 956 (int)(alloc_size / entry_size), its_alloc_tables()
|
/linux-4.1.27/drivers/acpi/apei/ |
H A D | erst.c | 518 int new_size, alloc_size; __erst_record_id_cache_add_one() local 529 alloc_size = new_size * sizeof(entries[0]); __erst_record_id_cache_add_one() 530 if (alloc_size < PAGE_SIZE) __erst_record_id_cache_add_one() 531 new_entries = kmalloc(alloc_size, GFP_KERNEL); __erst_record_id_cache_add_one() 533 new_entries = vmalloc(alloc_size); __erst_record_id_cache_add_one()
|
/linux-4.1.27/drivers/usb/wusbcore/ |
H A D | devconnect.c | 779 size_t alloc_size = 32, desc_size = 4; wusb_dev_bos_add() local 781 bos = kmalloc(alloc_size, GFP_KERNEL); wusb_dev_bos_add() 791 if (desc_size >= alloc_size) { wusb_dev_bos_add() 793 alloc_size = desc_size; wusb_dev_bos_add() 794 bos = kmalloc(alloc_size, GFP_KERNEL); wusb_dev_bos_add()
|
H A D | wa-xfer.c | 1176 size_t alloc_size = sizeof(*xfer->seg[0]) __wa_xfer_setup_segs() local 1206 seg = xfer->seg[cnt] = kmalloc(alloc_size + iso_pkt_descr_size, __wa_xfer_setup_segs()
|
/linux-4.1.27/arch/mips/net/ |
H A D | bpf_jit.c | 1319 unsigned int alloc_size, tmp_idx; bpf_jit_compile() local 1341 alloc_size = 4 * ctx.idx; bpf_jit_compile() 1342 ctx.target = module_alloc(alloc_size); bpf_jit_compile() 1347 memset(ctx.target, 0, alloc_size); bpf_jit_compile() 1361 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); bpf_jit_compile()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | wanxl.c | 569 int i, ports, alloc_size; wanxl_pci_init_one() local 604 alloc_size = sizeof(struct card) + ports * sizeof(struct port); wanxl_pci_init_one() 605 card = kzalloc(alloc_size, GFP_KERNEL); wanxl_pci_init_one()
|
/linux-4.1.27/drivers/hsi/clients/ |
H A D | hsi_char.c | 186 static inline struct hsi_msg *hsc_msg_alloc(unsigned int alloc_size) hsc_msg_alloc() argument 194 buf = kmalloc(alloc_size, GFP_KERNEL); hsc_msg_alloc() 199 sg_init_one(msg->sgt.sgl, buf, alloc_size); hsc_msg_alloc()
|
/linux-4.1.27/arch/ia64/mm/ |
H A D | contig.c | 178 ai->alloc_size = PERCPU_PAGE_SIZE; setup_per_cpu_areas()
|
H A D | discontig.c | 228 ai->alloc_size = PERCPU_PAGE_SIZE; setup_per_cpu_areas()
|
/linux-4.1.27/arch/arm/net/ |
H A D | bpf_jit_32.c | 888 unsigned alloc_size; bpf_jit_compile() local 925 alloc_size = 4 * ctx.idx; bpf_jit_compile() 926 header = bpf_jit_binary_alloc(alloc_size, &target_ptr, bpf_jit_compile() 954 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); bpf_jit_compile()
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
H A D | spider_net.c | 322 size_t alloc_size; spider_net_init_chain() local 324 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); spider_net_init_chain() 326 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, spider_net_init_chain() 2348 size_t alloc_size; spider_net_alloc_card() local 2350 alloc_size = sizeof(struct spider_net_card) + spider_net_alloc_card() 2352 netdev = alloc_etherdev(alloc_size); spider_net_alloc_card()
|
H A D | ps3_gelic_net.c | 1541 size_t alloc_size; gelic_alloc_card_net() local 1548 alloc_size = gelic_alloc_card_net() 1554 p = kzalloc(alloc_size, GFP_KERNEL); gelic_alloc_card_net()
|
/linux-4.1.27/drivers/atm/ |
H A D | fore200e.c | 185 chunk->alloc_size = size + alignment; fore200e_chunk_alloc() 189 chunk->alloc_addr = kzalloc(chunk->alloc_size, GFP_KERNEL | GFP_DMA); fore200e_chunk_alloc() 472 chunk->alloc_size = size * nbr; fore200e_pca_dma_chunk_alloc() 474 chunk->alloc_size, fore200e_pca_dma_chunk_alloc() 493 chunk->alloc_size, fore200e_pca_dma_chunk_free() 723 chunk->alloc_size = chunk->align_size = size * nbr; fore200e_sba_dma_chunk_alloc() 726 chunk->alloc_addr = dma_alloc_coherent(&op->dev, chunk->alloc_size, fore200e_sba_dma_chunk_alloc() 742 dma_free_coherent(&op->dev, chunk->alloc_size, fore200e_sba_dma_chunk_free()
|
H A D | fore200e.h | 568 u32 alloc_size; /* length of allocated chunk */ member in struct:chunk
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | adapter.h | 114 unsigned int alloc_size; /* size of allocated buffer */ member in struct:sge_fl
|
H A D | sge.c | 360 q->alloc_size, PCI_DMA_FROMDEVICE); clear_rx_desc() 457 0, q->alloc_size, PCI_DMA_FROMDEVICE); alloc_pg_chunk() 887 fl->alloc_size, get_packet_pg() 2090 fl->alloc_size, lro_add_page() 3056 q->fl[0].alloc_size = FL0_PG_ALLOC_SIZE; t3_sge_alloc_qset() 3057 q->fl[1].alloc_size = FL1_PG_ALLOC_SIZE; t3_sge_alloc_qset()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | cmd.c | 1340 cmd->alloc_size = MLX5_ADAPTER_PAGE_SIZE; alloc_cmd_page() 1354 cmd->alloc_size = 2 * MLX5_ADAPTER_PAGE_SIZE - 1; alloc_cmd_page() 1362 dma_free_coherent(ddev, cmd->alloc_size, cmd->cmd_alloc_buf, free_cmd_page()
|
/linux-4.1.27/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop.c | 1411 size_t alloc_size; vop_bind() local 1420 alloc_size = sizeof(*vop) + sizeof(*vop->win) * vop_data->win_size; vop_bind() 1421 vop = devm_kzalloc(dev, alloc_size, GFP_KERNEL); vop_bind()
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-rmi.c | 1158 size_t alloc_size; rmi_probe() local 1211 alloc_size = data->output_report_size + data->input_report_size; rmi_probe() 1213 data->writeReport = devm_kzalloc(&hdev->dev, alloc_size, GFP_KERNEL); rmi_probe()
|
/linux-4.1.27/net/wireless/ |
H A D | core.c | 345 int alloc_size; wiphy_new_nm() local 356 alloc_size = sizeof(*rdev) + sizeof_priv; wiphy_new_nm() 358 rdev = kzalloc(alloc_size, GFP_KERNEL); wiphy_new_nm()
|
/linux-4.1.27/net/netlink/ |
H A D | af_netlink.c | 2688 int alloc_size; netlink_dump() local 2709 alloc_size = nlk->max_recvmsg_len; netlink_dump() 2710 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, netlink_dump() 2716 alloc_size = alloc_min_size; netlink_dump() 2717 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, netlink_dump() 2733 skb_reserve(skb, skb_tailroom(skb) - alloc_size); netlink_dump()
|
/linux-4.1.27/drivers/net/fddi/ |
H A D | defxx.c | 538 int alloc_size; /* total buffer size used */ dfx_register() local 647 alloc_size = sizeof(PI_DESCR_BLOCK) + dfx_register() 655 dma_free_coherent(bdev, alloc_size, dfx_register() 1045 int alloc_size; /* total buffer size needed */ dfx_driver_init() local 1134 alloc_size = sizeof(PI_DESCR_BLOCK) + dfx_driver_init() 1142 bp->kmalloced = top_v = dma_zalloc_coherent(bp->bus_dev, alloc_size, dfx_driver_init() 3702 int alloc_size; /* total buffer size used */ dfx_unregister() local 3706 alloc_size = sizeof(PI_DESCR_BLOCK) + dfx_unregister() 3714 dma_free_coherent(bdev, alloc_size, dfx_unregister()
|
/linux-4.1.27/drivers/char/agp/ |
H A D | generic.c | 104 unsigned long alloc_size = num_agp_pages*sizeof(struct page *); agp_create_user_memory() local 120 agp_alloc_page_array(alloc_size, new); agp_create_user_memory()
|
/linux-4.1.27/fs/btrfs/ |
H A D | super.c | 1797 u64 alloc_size; btrfs_calc_avail_data_space() local 1800 alloc_size = devices_info[i].max_avail; btrfs_calc_avail_data_space() 1802 devices_info[j].max_avail -= alloc_size; btrfs_calc_avail_data_space()
|
H A D | ioctl.c | 4007 int alloc_size; btrfs_ioctl_space_info() local 4055 alloc_size = sizeof(*dest) * slot_count; btrfs_ioctl_space_info() 4060 if (alloc_size > PAGE_CACHE_SIZE) btrfs_ioctl_space_info() 4064 dest = kmalloc(alloc_size, GFP_NOFS); btrfs_ioctl_space_info() 4123 if (copy_to_user(user_dest, dest_orig, alloc_size)) btrfs_ioctl_space_info()
|
/linux-4.1.27/net/iucv/ |
H A D | iucv.c | 583 size_t alloc_size; iucv_enable() local 588 alloc_size = iucv_max_pathid * sizeof(struct iucv_path); iucv_enable() 589 iucv_path_table = kzalloc(alloc_size, GFP_KERNEL); iucv_enable()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.h | 637 unsigned int alloc_size; /* Ring one-time allocated size */ member in struct:bcm_sysport_tx_ring
|
H A D | bcmsysport.c | 1143 ring->alloc_size = ring->size; bcm_sysport_init_tx_ring() 1210 ring->alloc_size = 0; bcm_sysport_fini_tx_ring()
|
H A D | cnic.c | 5441 int alloc_size; cnic_alloc_dev() local 5443 alloc_size = sizeof(struct cnic_dev) + sizeof(struct cnic_local); cnic_alloc_dev() 5445 cdev = kzalloc(alloc_size, GFP_KERNEL); cnic_alloc_dev()
|
/linux-4.1.27/include/scsi/ |
H A D | osd_initiator.h | 138 unsigned alloc_size; /* 0 here means: don't call kfree */ member in struct:osd_request::_osd_req_data_segment
|
/linux-4.1.27/include/linux/mlx5/ |
H A D | driver.h | 237 int alloc_size; member in struct:mlx5_cmd
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | pal.h | 1031 ia64_pal_copy_pal (u64 target_addr, u64 alloc_size, u64 processor, u64 *pal_proc_offset) ia64_pal_copy_pal() argument 1034 PAL_CALL(iprv, PAL_COPY_PAL, target_addr, alloc_size, processor); ia64_pal_copy_pal()
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
H A D | be_main.c | 2679 unsigned int i, j, alloc_size, curr_alloc_size; beiscsi_alloc_mem() local 2720 alloc_size = phba->mem_req[i]; beiscsi_alloc_mem() 2723 curr_alloc_size = min(be_max_phys_size * 1024, alloc_size); beiscsi_alloc_mem() 2742 alloc_size -= curr_alloc_size; beiscsi_alloc_mem() 2744 1024, alloc_size); beiscsi_alloc_mem() 2748 } while (alloc_size); beiscsi_alloc_mem()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1374 * @alloc_size: Allocation size. 1381 uint alloc_size; member in struct:ksz_shared_mem 4398 adapter->desc_pool.alloc_size = ksz_alloc_desc() 4405 adapter->desc_pool.alloc_size, ksz_alloc_desc() 4408 adapter->desc_pool.alloc_size = 0; ksz_alloc_desc() 4559 adapter->desc_pool.alloc_size, ksz_free_desc() 4564 adapter->desc_pool.alloc_size = 0; ksz_free_desc()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bnad.c | 371 u32 page_offset, alloc_size; bnad_rxq_refill_page() local 377 alloc_size = PAGE_SIZE << unmap_q->alloc_order; bnad_rxq_refill_page() 409 if (page_offset < alloc_size) bnad_rxq_refill_page()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | intel_pm.c | 2654 uint16_t alloc_size, start, cursor_blocks; skl_allocate_pipe_ddb() local 2660 alloc_size = skl_ddb_entry_size(alloc); skl_allocate_pipe_ddb() 2661 if (alloc_size == 0) { skl_allocate_pipe_ddb() 2671 alloc_size -= cursor_blocks; skl_allocate_pipe_ddb() 2683 alloc_size -= minimum[plane]; for_each_plane() 2711 plane_blocks += div_u64((uint64_t)alloc_size * data_rate,
|
/linux-4.1.27/net/bluetooth/ |
H A D | l2cap_core.c | 315 size_t alloc_size, i; l2cap_seq_list_init() local 321 alloc_size = roundup_pow_of_two(size); l2cap_seq_list_init() 323 seq_list->list = kmalloc(sizeof(u16) * alloc_size, GFP_KERNEL); l2cap_seq_list_init() 327 seq_list->mask = alloc_size - 1; l2cap_seq_list_init() 330 for (i = 0; i < alloc_size; i++) l2cap_seq_list_init()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon.h | 528 * alloc_size. If so we allocate new object there. 532 * alloc_size, this object then become the sub object we return.
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
H A D | rocker.c | 4671 size_t alloc_size; rocker_probe_ports() local 4674 alloc_size = sizeof(struct rocker_port *) * rocker->port_count; rocker_probe_ports() 4675 rocker->ports = kmalloc(alloc_size, GFP_KERNEL); rocker_probe_ports()
|
/linux-4.1.27/kernel/sched/ |
H A D | core.c | 7109 unsigned long alloc_size = 0, ptr; sched_init() local 7112 alloc_size += 2 * nr_cpu_ids * sizeof(void **); sched_init() 7115 alloc_size += 2 * nr_cpu_ids * sizeof(void **); sched_init() 7117 if (alloc_size) { sched_init() 7118 ptr = (unsigned long)kzalloc(alloc_size, GFP_NOWAIT); sched_init()
|