/linux-4.4.14/net/netfilter/ |
D | nf_conntrack_extend.c | 52 size_t alloc_size; in nf_ct_ext_create() local 59 alloc_size = t->alloc_size + var_alloc_len; in nf_ct_ext_create() 62 *ext = kzalloc(alloc_size, gfp); in nf_ct_ext_create() 144 t1->alloc_size = ALIGN(sizeof(struct nf_ct_ext), t1->align) + in update_alloc_size() 153 t1->alloc_size = ALIGN(t1->alloc_size, t2->align) in update_alloc_size() 172 type->alloc_size = ALIGN(sizeof(struct nf_ct_ext), type->align) in nf_ct_extend_register()
|
/linux-4.4.14/lib/ |
D | scatterlist.c | 215 unsigned int alloc_size = table->orig_nents; in __sg_free_table() local 224 if (alloc_size > max_ents) { in __sg_free_table() 226 alloc_size = max_ents; in __sg_free_table() 227 sg_size = alloc_size - 1; in __sg_free_table() 229 sg_size = alloc_size; in __sg_free_table() 237 free_fn(sgl, alloc_size); in __sg_free_table() 294 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local 296 if (alloc_size > max_ents) { in __sg_alloc_table() 297 alloc_size = max_ents; in __sg_alloc_table() 298 sg_size = alloc_size - 1; in __sg_alloc_table() [all …]
|
/linux-4.4.14/fs/ocfs2/ |
D | move_extents.c | 734 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument 737 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len() 741 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len() 756 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len() 765 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local 822 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range() 829 if (alloc_size > len_to_move) in __ocfs2_move_extents_range() 830 alloc_size = len_to_move; in __ocfs2_move_extents_range() 846 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range() 858 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range() [all …]
|
D | file.c | 1440 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1474 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents() 1484 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents() 1485 alloc_size = clusters; in ocfs2_allocate_unwritten_extents() 1495 ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1503 cpos += alloc_size; in ocfs2_allocate_unwritten_extents() 1504 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
|
D | xattr.c | 824 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local 834 &alloc_size, in ocfs2_xattr_shrink_size() 841 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size() 842 alloc_size = trunc_len; in ocfs2_xattr_shrink_size() 845 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size() 854 block, alloc_size); in ocfs2_xattr_shrink_size() 855 cpos += alloc_size; in ocfs2_xattr_shrink_size() 856 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_null.c | 161 int alloc_size = size_roundup_power2(msgsize); in null_alloc_reqbuf() local 164 req->rq_reqbuf = libcfs_kvzalloc(alloc_size, GFP_NOFS); in null_alloc_reqbuf() 168 req->rq_reqbuf_len = alloc_size; in null_alloc_reqbuf() 233 int oldsize, newmsg_size, alloc_size; in null_enlarge_reqbuf() local 250 alloc_size = size_roundup_power2(newmsg_size); in null_enlarge_reqbuf() 252 newbuf = libcfs_kvzalloc(alloc_size, GFP_NOFS); in null_enlarge_reqbuf() 268 req->rq_reqbuf_len = alloc_size; in null_enlarge_reqbuf()
|
/linux-4.4.14/net/openvswitch/ |
D | vport.c | 135 size_t alloc_size; in ovs_vport_alloc() local 137 alloc_size = sizeof(struct vport); in ovs_vport_alloc() 139 alloc_size = ALIGN(alloc_size, VPORT_ALIGN); in ovs_vport_alloc() 140 alloc_size += priv_size; in ovs_vport_alloc() 143 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc()
|
/linux-4.4.14/drivers/md/ |
D | dm-stats.c | 80 static bool __check_shared_memory(size_t alloc_size) in __check_shared_memory() argument 84 a = shared_memory_amount + alloc_size; in __check_shared_memory() 96 static bool check_shared_memory(size_t alloc_size) in check_shared_memory() argument 102 ret = __check_shared_memory(alloc_size); in check_shared_memory() 109 static bool claim_shared_memory(size_t alloc_size) in claim_shared_memory() argument 113 if (!__check_shared_memory(alloc_size)) { in claim_shared_memory() 118 shared_memory_amount += alloc_size; in claim_shared_memory() 125 static void free_shared_memory(size_t alloc_size) in free_shared_memory() argument 131 if (WARN_ON_ONCE(shared_memory_amount < alloc_size)) { in free_shared_memory() 137 shared_memory_amount -= alloc_size; in free_shared_memory() [all …]
|
D | dm-log-writes.c | 553 size_t alloc_size; in log_writes_map() local 580 alloc_size = sizeof(struct pending_block); in log_writes_map() 582 alloc_size = sizeof(struct pending_block) + sizeof(struct bio_vec) * bio_segments(bio); in log_writes_map() 584 block = kzalloc(alloc_size, GFP_NOIO); in log_writes_map()
|
/linux-4.4.14/arch/x86/kernel/ |
D | ldt.c | 40 int alloc_size; in alloc_ldt_struct() local 50 alloc_size = size * LDT_ENTRY_SIZE; in alloc_ldt_struct() 58 if (alloc_size > PAGE_SIZE) in alloc_ldt_struct() 59 new_ldt->entries = vzalloc(alloc_size); in alloc_ldt_struct()
|
/linux-4.4.14/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 90 unsigned alloc_size; member 181 m->options.alloc_size = val; in ttm_pool_store() 199 val = m->options.alloc_size; in ttm_pool_show() 595 unsigned alloc_size = _manager->options.alloc_size; in ttm_page_pool_fill_locked() local 605 cstate, alloc_size); in ttm_page_pool_fill_locked() 611 pool->npages += alloc_size; in ttm_page_pool_fill_locked() 834 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_page_alloc_init()
|
D | ttm_page_alloc_dma.c | 142 unsigned alloc_size; member 235 m->options.alloc_size = val; in ttm_pool_store() 253 val = m->options.alloc_size; in ttm_pool_show() 1097 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_dma_page_alloc_init()
|
/linux-4.4.14/drivers/cpufreq/ |
D | cpufreq_stats.c | 166 unsigned int alloc_size; in __cpufreq_stats_create_table() local 187 alloc_size = count * sizeof(int) + count * sizeof(u64); in __cpufreq_stats_create_table() 190 alloc_size += count * count * sizeof(int); in __cpufreq_stats_create_table() 194 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL); in __cpufreq_stats_create_table()
|
/linux-4.4.14/net/ieee802154/ |
D | core.c | 115 size_t alloc_size; in wpan_phy_new() local 117 alloc_size = sizeof(*rdev) + priv_size; in wpan_phy_new() 118 rdev = kzalloc(alloc_size, GFP_KERNEL); in wpan_phy_new()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | eeh_pe.c | 62 size_t alloc_size; in eeh_pe_alloc() local 64 alloc_size = sizeof(struct eeh_pe); in eeh_pe_alloc() 66 alloc_size = ALIGN(alloc_size, cache_line_size()); in eeh_pe_alloc() 67 alloc_size += eeh_pe_aux_size; in eeh_pe_alloc() 71 pe = kzalloc(alloc_size, GFP_KERNEL); in eeh_pe_alloc()
|
D | vio.c | 561 size_t alloc_size = 0; in vio_dma_iommu_map_sg() local 565 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 567 if (vio_cmo_alloc(viodev, alloc_size)) { in vio_dma_iommu_map_sg() 575 vio_cmo_dealloc(viodev, alloc_size); in vio_dma_iommu_map_sg() 581 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 582 if (alloc_size) in vio_dma_iommu_map_sg() 583 vio_cmo_dealloc(viodev, alloc_size); in vio_dma_iommu_map_sg() 596 size_t alloc_size = 0; in vio_dma_iommu_unmap_sg() local 601 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg() 605 vio_cmo_dealloc(viodev, alloc_size); in vio_dma_iommu_unmap_sg()
|
/linux-4.4.14/drivers/firmware/efi/libstub/ |
D | efi-stub-helper.c | 548 unsigned long alloc_size, in efi_relocate_kernel() argument 558 if (!image_addr || !image_size || !alloc_size) in efi_relocate_kernel() 560 if (alloc_size < image_size) in efi_relocate_kernel() 573 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel() 583 status = efi_low_alloc(sys_table_arg, alloc_size, alignment, in efi_relocate_kernel()
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-cros-ec-tunnel.c | 185 int alloc_size; in ec_i2c_xfer() local 202 alloc_size = max(request_len, response_len); in ec_i2c_xfer() 203 msg = kmalloc(sizeof(*msg) + alloc_size, GFP_KERNEL); in ec_i2c_xfer()
|
/linux-4.4.14/drivers/mtd/ |
D | cmdlinepart.c | 181 int alloc_size; in newpart() local 184 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart() 187 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
|
/linux-4.4.14/tools/perf/util/ |
D | util.c | 543 size_t size = 0, alloc_size = 0; in filename__read_str() local 553 if (size == alloc_size) { in filename__read_str() 554 alloc_size += BUFSIZ; in filename__read_str() 555 nbf = realloc(bf, alloc_size); in filename__read_str() 564 n = read(fd, bf + size, alloc_size - size); in filename__read_str()
|
/linux-4.4.14/mm/ |
D | percpu.c | 1440 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info() 1446 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); in pcpu_dump_alloc_info() 1783 size_t size_sum, min_unit_size, alloc_size; in pcpu_build_alloc_info() local 1807 alloc_size = roundup(min_unit_size, atom_size); in pcpu_build_alloc_info() 1808 upa = alloc_size / min_unit_size; in pcpu_build_alloc_info() 1809 while (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info() 1841 if (alloc_size % upa || (offset_in_page(alloc_size / upa))) in pcpu_build_alloc_info() 1883 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info() 1885 ai->alloc_size = alloc_size; in pcpu_build_alloc_info() 2244 ai->alloc_size = unit_size; in setup_per_cpu_areas()
|
D | mempolicy.c | 1469 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE5() local 1473 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE5() 1476 nm = compat_alloc_user_space(alloc_size); in COMPAT_SYSCALL_DEFINE5() 1482 copy_size = min_t(unsigned long, sizeof(bm), alloc_size); in COMPAT_SYSCALL_DEFINE5() 1497 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE3() local 1501 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE3() 1505 nm = compat_alloc_user_space(alloc_size); in COMPAT_SYSCALL_DEFINE3() 1506 err |= copy_to_user(nm, bm, alloc_size); in COMPAT_SYSCALL_DEFINE3() 1521 unsigned long nr_bits, alloc_size; in COMPAT_SYSCALL_DEFINE6() local 1525 alloc_size = ALIGN(nr_bits, BITS_PER_LONG) / 8; in COMPAT_SYSCALL_DEFINE6() [all …]
|
D | page_alloc.c | 4713 size_t alloc_size; in zone_wait_table_init() local 4723 alloc_size = zone->wait_table_hash_nr_entries in zone_wait_table_init() 4729 alloc_size, zone->zone_pgdat->node_id); in zone_wait_table_init() 4741 zone->wait_table = vmalloc(alloc_size); in zone_wait_table_init()
|
/linux-4.4.14/drivers/usb/host/ |
D | ehci-dbg.c | 381 size_t alloc_size; member 509 size = buf->alloc_size; in fill_async_buffer() 550 size = buf->alloc_size; in fill_bandwidth_buffer() 639 size = buf->alloc_size; in fill_periodic_buffer() 760 return buf->alloc_size - size; in fill_periodic_buffer() 792 size = buf->alloc_size; in fill_registers_buffer() 936 return buf->alloc_size - size; in fill_registers_buffer() 950 buf->alloc_size = PAGE_SIZE; in alloc_buffer() 961 buf->output_buf = vmalloc(buf->alloc_size); in fill_buffer() 1037 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; in debug_periodic_open()
|
D | fotg210-hcd.c | 330 size_t alloc_size; member 470 size = buf->alloc_size; in fill_async_buffer() 545 size = buf->alloc_size; in fill_periodic_buffer() 631 return buf->alloc_size - size; in fill_periodic_buffer() 663 size = buf->alloc_size; in fill_registers_buffer() 751 return buf->alloc_size - size; in fill_registers_buffer() 765 buf->alloc_size = PAGE_SIZE; in alloc_buffer() 776 buf->output_buf = vmalloc(buf->alloc_size); in fill_buffer() 844 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; in debug_periodic_open()
|
/linux-4.4.14/net/core/ |
D | dev_addr_lists.c | 29 int alloc_size; in __hw_addr_create_ex() local 31 alloc_size = sizeof(*ha); in __hw_addr_create_ex() 32 if (alloc_size < L1_CACHE_BYTES) in __hw_addr_create_ex() 33 alloc_size = L1_CACHE_BYTES; in __hw_addr_create_ex() 34 ha = kmalloc(alloc_size, GFP_ATOMIC); in __hw_addr_create_ex()
|
D | dev.c | 7067 size_t alloc_size; in alloc_netdev_mqs() local 7084 alloc_size = sizeof(struct net_device); in alloc_netdev_mqs() 7087 alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); in alloc_netdev_mqs() 7088 alloc_size += sizeof_priv; in alloc_netdev_mqs() 7091 alloc_size += NETDEV_ALIGN - 1; in alloc_netdev_mqs() 7093 p = kzalloc(alloc_size, GFP_KERNEL | __GFP_NOWARN | __GFP_REPEAT); in alloc_netdev_mqs() 7095 p = vzalloc(alloc_size); in alloc_netdev_mqs()
|
/linux-4.4.14/drivers/net/phy/ |
D | mdio_bus.c | 53 size_t alloc_size; in mdiobus_alloc_size() local 57 alloc_size = aligned_size + size; in mdiobus_alloc_size() 59 alloc_size = sizeof(*bus); in mdiobus_alloc_size() 61 bus = kzalloc(alloc_size, GFP_KERNEL); in mdiobus_alloc_size()
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_main.h | 131 u32 *alloc_size, in cnnic_alloc_aligned_dma() argument 155 *alloc_size = size; in cnnic_alloc_aligned_dma()
|
/linux-4.4.14/drivers/dca/ |
D | dca-core.c | 327 int alloc_size; in alloc_dca_provider() local 329 alloc_size = (sizeof(*dca) + priv_size); in alloc_dca_provider() 330 dca = kzalloc(alloc_size, GFP_KERNEL); in alloc_dca_provider()
|
/linux-4.4.14/drivers/scsi/osd/ |
D | osd_initiator.c | 434 if (!seg->buff || !seg->alloc_size) in _osd_free_seg() 439 seg->alloc_size = 0; in _osd_free_seg() 541 if (seg->alloc_size >= max_bytes) in _osd_realloc_seg() 547 seg->alloc_size); in _osd_realloc_seg() 551 memset(buff + seg->alloc_size, 0, max_bytes - seg->alloc_size); in _osd_realloc_seg() 553 seg->alloc_size = max_bytes; in _osd_realloc_seg() 1152 if (unlikely(or->set_attr.alloc_size < total_bytes)) { in osd_req_add_set_attr_list() 1182 (padding <= last_seg->alloc_size - last_seg->total_bytes)) in _req_append_segment() 1268 if (unlikely(or->enc_get_attr.alloc_size < total_bytes)) { in osd_req_add_get_attr_list() 1372 (or->get_attr.buff + or->get_attr.alloc_size < *iterator)); in osd_req_decode_get_attr_list() [all …]
|
/linux-4.4.14/fs/exofs/ |
D | ore_raid.c | 88 unsigned num_a1pa, alloc_size, i; in _sp2d_alloc() local 96 alloc_size = sizeof(_aab->__asp2d) + sizeof__a1pa * num_a1pa; in _sp2d_alloc() 99 alloc_size = sizeof(*_aab); in _sp2d_alloc() 102 _aab = kzalloc(alloc_size, GFP_KERNEL); in _sp2d_alloc() 104 ORE_DBGMSG("!! Failed to alloc sp2d size=%d\n", alloc_size); in _sp2d_alloc()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | devconnect.c | 779 size_t alloc_size = 32, desc_size = 4; in wusb_dev_bos_add() local 781 bos = kmalloc(alloc_size, GFP_KERNEL); in wusb_dev_bos_add() 791 if (desc_size >= alloc_size) { in wusb_dev_bos_add() 793 alloc_size = desc_size; in wusb_dev_bos_add() 794 bos = kmalloc(alloc_size, GFP_KERNEL); in wusb_dev_bos_add()
|
D | wa-xfer.c | 1176 size_t alloc_size = sizeof(*xfer->seg[0]) in __wa_xfer_setup_segs() local 1206 seg = xfer->seg[cnt] = kmalloc(alloc_size + iso_pkt_descr_size, in __wa_xfer_setup_segs()
|
/linux-4.4.14/drivers/soc/qcom/ |
D | smem.c | 299 size_t alloc_size; in qcom_smem_alloc_private() local 322 alloc_size = sizeof(*hdr) + ALIGN(size, 8); in qcom_smem_alloc_private() 323 if ((void *)hdr + alloc_size >= cached) { in qcom_smem_alloc_private() 340 le32_add_cpu(&phdr->offset_free_uncached, alloc_size); in qcom_smem_alloc_private()
|
/linux-4.4.14/kernel/ |
D | relay.c | 104 if (length != (unsigned long)buf->chan->alloc_size) in relay_mmap_buf() 176 buf->start = relay_alloc_buf(buf, &chan->alloc_size); in relay_create_buf() 588 chan->alloc_size = PAGE_ALIGN(subbuf_size * n_subbufs); in relay_open() 1219 uint32_t alloc_size = (uint32_t) rbuf->chan->alloc_size; in subbuf_splice_actor() local 1220 size_t read_start = (size_t) do_div(pos, alloc_size); in subbuf_splice_actor() 1248 subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT; in subbuf_splice_actor()
|
/linux-4.4.14/drivers/iio/ |
D | industrialio-core.c | 992 size_t alloc_size; in iio_device_alloc() local 994 alloc_size = sizeof(struct iio_dev); in iio_device_alloc() 996 alloc_size = ALIGN(alloc_size, IIO_ALIGN); in iio_device_alloc() 997 alloc_size += sizeof_priv; in iio_device_alloc() 1000 alloc_size += IIO_ALIGN - 1; in iio_device_alloc() 1002 dev = kzalloc(alloc_size, GFP_KERNEL); in iio_device_alloc()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | pci_sun4v.c | 750 unsigned long q_size, alloc_size, pages, order; in pci_sun4v_msiq_alloc() local 754 alloc_size = (pbm->msiq_num * q_size); in pci_sun4v_msiq_alloc() 755 order = get_order(alloc_size); in pci_sun4v_msiq_alloc() 804 unsigned long q_size, alloc_size, pages, order; in pci_sun4v_msiq_free() local 814 alloc_size = (pbm->msiq_num * q_size); in pci_sun4v_msiq_free() 815 order = get_order(alloc_size); in pci_sun4v_msiq_free()
|
D | mdesc.c | 93 unsigned int handle_size, alloc_size; in mdesc_memblock_alloc() local 100 alloc_size = PAGE_ALIGN(handle_size); in mdesc_memblock_alloc() 102 paddr = memblock_alloc(alloc_size, PAGE_SIZE); in mdesc_memblock_alloc() 114 unsigned int alloc_size; in mdesc_memblock_free() local 120 alloc_size = PAGE_ALIGN(hp->handle_size); in mdesc_memblock_free() 122 free_bootmem_late(start, alloc_size); in mdesc_memblock_free()
|
/linux-4.4.14/arch/s390/kernel/ |
D | crash_dump.c | 570 u32 alloc_size; in elfcorehdr_alloc() local 592 alloc_size = 0x1000 + get_cpu_cnt() * 0x4a0 + in elfcorehdr_alloc() 594 hdr = kzalloc_panic(alloc_size); in elfcorehdr_alloc() 611 BUG_ON(elfcorehdr_size > alloc_size); in elfcorehdr_alloc()
|
/linux-4.4.14/drivers/dma-buf/ |
D | dma-buf.c | 289 size_t alloc_size = sizeof(struct dma_buf); in dma_buf_export() local 292 alloc_size += sizeof(struct reservation_object); in dma_buf_export() 295 alloc_size += 1; in dma_buf_export() 311 dmabuf = kzalloc(alloc_size, GFP_KERNEL); in dma_buf_export()
|
/linux-4.4.14/include/linux/ |
D | percpu.h | 73 size_t alloc_size; member
|
D | relay.h | 61 size_t alloc_size; /* total buffer size allocated */ member
|
D | efi.h | 1280 unsigned long alloc_size,
|
/linux-4.4.14/include/net/netfilter/ |
D | nf_conntrack_extend.h | 118 u8 alloc_size; member
|
/linux-4.4.14/drivers/acpi/apei/ |
D | erst.c | 515 int new_size, alloc_size; in __erst_record_id_cache_add_one() local 526 alloc_size = new_size * sizeof(entries[0]); in __erst_record_id_cache_add_one() 527 if (alloc_size < PAGE_SIZE) in __erst_record_id_cache_add_one() 528 new_entries = kmalloc(alloc_size, GFP_KERNEL); in __erst_record_id_cache_add_one() 530 new_entries = vmalloc(alloc_size); in __erst_record_id_cache_add_one()
|
/linux-4.4.14/drivers/net/fddi/ |
D | defxx.c | 538 int alloc_size; /* total buffer size used */ in dfx_register() local 647 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_register() 655 dma_free_coherent(bdev, alloc_size, in dfx_register() 1045 int alloc_size; /* total buffer size needed */ in dfx_driver_init() local 1134 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_driver_init() 1142 bp->kmalloced = top_v = dma_zalloc_coherent(bp->bus_dev, alloc_size, in dfx_driver_init() 3702 int alloc_size; /* total buffer size used */ in dfx_unregister() local 3706 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_unregister() 3714 dma_free_coherent(bdev, alloc_size, in dfx_unregister()
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-gic-v3-its.c | 840 int alloc_size; in its_alloc_tables() local 872 alloc_size = (1 << order) * PAGE_SIZE; in its_alloc_tables() 873 alloc_pages = (alloc_size / psz); in its_alloc_tables() 925 __flush_dcache_area(base, alloc_size); in its_alloc_tables() 955 (int)(alloc_size / entry_size), in its_alloc_tables()
|
/linux-4.4.14/arch/mips/net/ |
D | bpf_jit.c | 1195 unsigned int alloc_size, tmp_idx; in bpf_jit_compile() local 1217 alloc_size = 4 * ctx.idx; in bpf_jit_compile() 1218 ctx.target = module_alloc(alloc_size); in bpf_jit_compile() 1223 memset(ctx.target, 0, alloc_size); in bpf_jit_compile() 1237 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); in bpf_jit_compile()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_kms.c | 393 unsigned n, alloc_size; in amdgpu_info_ioctl() local 412 alloc_size = info->read_mmr_reg.count * sizeof(*regs); in amdgpu_info_ioctl() 423 n = copy_to_user(out, regs, min(size, alloc_size)); in amdgpu_info_ioctl()
|
/linux-4.4.14/arch/ia64/mm/ |
D | contig.c | 178 ai->alloc_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
|
D | discontig.c | 228 ai->alloc_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
|
/linux-4.4.14/drivers/hsi/clients/ |
D | hsi_char.c | 186 static inline struct hsi_msg *hsc_msg_alloc(unsigned int alloc_size) in hsc_msg_alloc() argument 194 buf = kmalloc(alloc_size, GFP_KERNEL); in hsc_msg_alloc() 199 sg_init_one(msg->sgt.sgl, buf, alloc_size); in hsc_msg_alloc()
|
/linux-4.4.14/drivers/net/wan/ |
D | wanxl.c | 569 int i, ports, alloc_size; in wanxl_pci_init_one() local 604 alloc_size = sizeof(struct card) + ports * sizeof(struct port); in wanxl_pci_init_one() 605 card = kzalloc(alloc_size, GFP_KERNEL); in wanxl_pci_init_one()
|
/linux-4.4.14/security/apparmor/ |
D | apparmorfs.c | 84 size_t alloc_size, size_t copy_size, in aa_simple_write_to_buffer() argument 89 BUG_ON(copy_size > alloc_size); in aa_simple_write_to_buffer() 103 data = kvmalloc(alloc_size); in aa_simple_write_to_buffer()
|
/linux-4.4.14/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 322 size_t alloc_size; in spider_net_init_chain() local 324 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain() 326 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, in spider_net_init_chain() 2347 size_t alloc_size; in spider_net_alloc_card() local 2349 alloc_size = sizeof(struct spider_net_card) + in spider_net_alloc_card() 2351 netdev = alloc_etherdev(alloc_size); in spider_net_alloc_card()
|
D | ps3_gelic_net.c | 1541 size_t alloc_size; in gelic_alloc_card_net() local 1548 alloc_size = in gelic_alloc_card_net() 1554 p = kzalloc(alloc_size, GFP_KERNEL); in gelic_alloc_card_net()
|
/linux-4.4.14/arch/arm/net/ |
D | bpf_jit_32.c | 994 unsigned alloc_size; in bpf_jit_compile() local 1031 alloc_size = 4 * ctx.idx; in bpf_jit_compile() 1032 header = bpf_jit_binary_alloc(alloc_size, &target_ptr, in bpf_jit_compile() 1060 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); in bpf_jit_compile()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 114 unsigned int alloc_size; /* size of allocated buffer */ member
|
D | sge.c | 360 q->alloc_size, PCI_DMA_FROMDEVICE); in clear_rx_desc() 457 0, q->alloc_size, PCI_DMA_FROMDEVICE); in alloc_pg_chunk() 887 fl->alloc_size, in get_packet_pg() 2090 fl->alloc_size, in lro_add_page() 3056 q->fl[0].alloc_size = FL0_PG_ALLOC_SIZE; in t3_sge_alloc_qset() 3057 q->fl[1].alloc_size = FL1_PG_ALLOC_SIZE; in t3_sge_alloc_qset()
|
/linux-4.4.14/drivers/atm/ |
D | fore200e.c | 185 chunk->alloc_size = size + alignment; in fore200e_chunk_alloc() 189 chunk->alloc_addr = kzalloc(chunk->alloc_size, GFP_KERNEL | GFP_DMA); in fore200e_chunk_alloc() 472 chunk->alloc_size = size * nbr; in fore200e_pca_dma_chunk_alloc() 474 chunk->alloc_size, in fore200e_pca_dma_chunk_alloc() 493 chunk->alloc_size, in fore200e_pca_dma_chunk_free() 723 chunk->alloc_size = chunk->align_size = size * nbr; in fore200e_sba_dma_chunk_alloc() 726 chunk->alloc_addr = dma_alloc_coherent(&op->dev, chunk->alloc_size, in fore200e_sba_dma_chunk_alloc() 742 dma_free_coherent(&op->dev, chunk->alloc_size, in fore200e_sba_dma_chunk_free()
|
D | fore200e.h | 568 u32 alloc_size; /* length of allocated chunk */ member
|
/linux-4.4.14/include/scsi/ |
D | osd_initiator.h | 138 unsigned alloc_size; /* 0 here means: don't call kfree */ member
|
/linux-4.4.14/net/wireless/ |
D | core.c | 345 int alloc_size; in wiphy_new_nm() local 356 alloc_size = sizeof(*rdev) + sizeof_priv; in wiphy_new_nm() 358 rdev = kzalloc(alloc_size, GFP_KERNEL); in wiphy_new_nm()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 790 size_t alloc_size; in mlxsw_core_bus_device_register() local 796 alloc_size = sizeof(*mlxsw_core) + mlxsw_driver->priv_size; in mlxsw_core_bus_device_register() 797 mlxsw_core = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_core_bus_device_register()
|
D | switchx2.c | 1110 size_t alloc_size; in mlxsw_sx_ports_create() local 1114 alloc_size = sizeof(struct mlxsw_sx_port *) * MLXSW_PORT_MAX_PORTS; in mlxsw_sx_ports_create() 1115 mlxsw_sx->ports = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sx_ports_create()
|
D | spectrum.c | 1369 size_t alloc_size; in mlxsw_sp_ports_create() local 1373 alloc_size = sizeof(struct mlxsw_sp_port *) * MLXSW_PORT_MAX_PORTS; in mlxsw_sp_ports_create() 1374 mlxsw_sp->ports = kzalloc(alloc_size, GFP_KERNEL); in mlxsw_sp_ports_create()
|
/linux-4.4.14/drivers/hid/ |
D | hid-rmi.c | 1294 size_t alloc_size; in rmi_probe() local 1347 alloc_size = data->output_report_size + data->input_report_size; in rmi_probe() 1349 data->writeReport = devm_kzalloc(&hdev->dev, alloc_size, GFP_KERNEL); in rmi_probe()
|
/linux-4.4.14/net/netlink/ |
D | af_netlink.c | 2790 int alloc_size; in netlink_dump() local 2811 alloc_size = nlk->max_recvmsg_len; in netlink_dump() 2812 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, in netlink_dump() 2818 alloc_size = alloc_min_size; in netlink_dump() 2819 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, in netlink_dump() 2835 skb_reserve(skb, skb_tailroom(skb) - alloc_size); in netlink_dump()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bcmsysport.h | 637 unsigned int alloc_size; /* Ring one-time allocated size */ member
|
D | bcmsysport.c | 1222 ring->alloc_size = ring->size; in bcm_sysport_init_tx_ring() 1289 ring->alloc_size = 0; in bcm_sysport_fini_tx_ring()
|
D | cnic.c | 5470 int alloc_size; in cnic_alloc_dev() local 5472 alloc_size = sizeof(struct cnic_dev) + sizeof(struct cnic_local); in cnic_alloc_dev() 5474 cdev = kzalloc(alloc_size, GFP_KERNEL); in cnic_alloc_dev()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 1517 cmd->alloc_size = MLX5_ADAPTER_PAGE_SIZE; in alloc_cmd_page() 1531 cmd->alloc_size = 2 * MLX5_ADAPTER_PAGE_SIZE - 1; in alloc_cmd_page() 1539 dma_free_coherent(ddev, cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
|
/linux-4.4.14/net/iucv/ |
D | iucv.c | 583 size_t alloc_size; in iucv_enable() local 588 alloc_size = iucv_max_pathid * sizeof(struct iucv_path); in iucv_enable() 589 iucv_path_table = kzalloc(alloc_size, GFP_KERNEL); in iucv_enable()
|
/linux-4.4.14/drivers/char/agp/ |
D | generic.c | 104 unsigned long alloc_size = num_agp_pages*sizeof(struct page *); in agp_create_user_memory() local 120 agp_alloc_page_array(alloc_size, new); in agp_create_user_memory()
|
/linux-4.4.14/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 1679 size_t alloc_size; in vop_bind() local 1688 alloc_size = sizeof(*vop) + sizeof(*vop->win) * vop_data->win_size; in vop_bind() 1689 vop = devm_kzalloc(dev, alloc_size, GFP_KERNEL); in vop_bind()
|
/linux-4.4.14/fs/btrfs/ |
D | super.c | 1931 u64 alloc_size; in btrfs_calc_avail_data_space() local 1934 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space() 1936 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
|
D | ioctl.c | 4172 int alloc_size; in btrfs_ioctl_space_info() local 4220 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info() 4225 if (alloc_size > PAGE_CACHE_SIZE) in btrfs_ioctl_space_info() 4229 dest = kmalloc(alloc_size, GFP_NOFS); in btrfs_ioctl_space_info() 4288 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | pal.h | 1031 ia64_pal_copy_pal (u64 target_addr, u64 alloc_size, u64 processor, u64 *pal_proc_offset) in ia64_pal_copy_pal() argument 1034 PAL_CALL(iprv, PAL_COPY_PAL, target_addr, alloc_size, processor); in ia64_pal_copy_pal()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_pm.c | 2894 uint16_t alloc_size, start, cursor_blocks; in skl_allocate_pipe_ddb() local 2901 alloc_size = skl_ddb_entry_size(alloc); in skl_allocate_pipe_ddb() 2902 if (alloc_size == 0) { in skl_allocate_pipe_ddb() 2913 alloc_size -= cursor_blocks; in skl_allocate_pipe_ddb() 2925 alloc_size -= minimum[plane]; in skl_allocate_pipe_ddb() 2927 alloc_size -= y_minimum[plane]; in skl_allocate_pipe_ddb() 2956 plane_blocks += div_u64((uint64_t)alloc_size * data_rate, in skl_allocate_pipe_ddb() 2970 y_plane_blocks += div_u64((uint64_t)alloc_size * y_data_rate, in skl_allocate_pipe_ddb()
|
/linux-4.4.14/include/linux/mlx5/ |
D | driver.h | 244 int alloc_size; member
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1381 uint alloc_size; member 4398 adapter->desc_pool.alloc_size = in ksz_alloc_desc() 4405 adapter->desc_pool.alloc_size, in ksz_alloc_desc() 4408 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc() 4559 adapter->desc_pool.alloc_size, in ksz_free_desc() 4564 adapter->desc_pool.alloc_size = 0; in ksz_free_desc()
|
/linux-4.4.14/drivers/scsi/be2iscsi/ |
D | be_main.c | 2700 unsigned int i, j, alloc_size, curr_alloc_size; in beiscsi_alloc_mem() local 2741 alloc_size = phba->mem_req[i]; in beiscsi_alloc_mem() 2744 curr_alloc_size = min(be_max_phys_size * 1024, alloc_size); in beiscsi_alloc_mem() 2763 alloc_size -= curr_alloc_size; in beiscsi_alloc_mem() 2765 1024, alloc_size); in beiscsi_alloc_mem() 2769 } while (alloc_size); in beiscsi_alloc_mem()
|
/linux-4.4.14/kernel/sched/ |
D | core.c | 7367 unsigned long alloc_size = 0, ptr; in sched_init() local 7370 alloc_size += 2 * nr_cpu_ids * sizeof(void **); in sched_init() 7373 alloc_size += 2 * nr_cpu_ids * sizeof(void **); in sched_init() 7375 if (alloc_size) { in sched_init() 7376 ptr = (unsigned long)kzalloc(alloc_size, GFP_NOWAIT); in sched_init()
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 372 u32 page_offset, alloc_size; in bnad_rxq_refill_page() local 378 alloc_size = PAGE_SIZE << unmap_q->alloc_order; in bnad_rxq_refill_page() 416 if (page_offset < alloc_size) in bnad_rxq_refill_page()
|
/linux-4.4.14/net/bluetooth/ |
D | l2cap_core.c | 315 size_t alloc_size, i; in l2cap_seq_list_init() local 321 alloc_size = roundup_pow_of_two(size); in l2cap_seq_list_init() 323 seq_list->list = kmalloc(sizeof(u16) * alloc_size, GFP_KERNEL); in l2cap_seq_list_init() 327 seq_list->mask = alloc_size - 1; in l2cap_seq_list_init() 330 for (i = 0; i < alloc_size; i++) in l2cap_seq_list_init()
|
/linux-4.4.14/drivers/net/ethernet/rocker/ |
D | rocker.c | 5057 size_t alloc_size; in rocker_probe_ports() local 5060 alloc_size = sizeof(struct rocker_port *) * rocker->port_count; in rocker_probe_ports() 5061 rocker->ports = kzalloc(alloc_size, GFP_KERNEL); in rocker_probe_ports()
|