Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 11 of 11) sorted by relevance

/arch/x86/kernel/
Dldt.c40 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()
/arch/powerpc/kernel/
Deeh_pe.c62 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()
Dvio.c561 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()
/arch/sparc/kernel/
Dmdesc.c93 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()
Dpci_sun4v.c769 unsigned long q_size, alloc_size, pages, order; in pci_sun4v_msiq_alloc() local
773 alloc_size = (pbm->msiq_num * q_size); in pci_sun4v_msiq_alloc()
774 order = get_order(alloc_size); in pci_sun4v_msiq_alloc()
823 unsigned long q_size, alloc_size, pages, order; in pci_sun4v_msiq_free() local
833 alloc_size = (pbm->msiq_num * q_size); in pci_sun4v_msiq_free()
834 order = get_order(alloc_size); in pci_sun4v_msiq_free()
/arch/s390/kernel/
Dcrash_dump.c602 u32 alloc_size; in elfcorehdr_alloc() local
624 alloc_size = 0x1000 + get_cpu_cnt() * 0x4a0 + in elfcorehdr_alloc()
626 hdr = kzalloc_panic(alloc_size); in elfcorehdr_alloc()
643 BUG_ON(elfcorehdr_size > alloc_size); in elfcorehdr_alloc()
/arch/ia64/mm/
Dcontig.c178 ai->alloc_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
Ddiscontig.c228 ai->alloc_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
/arch/mips/net/
Dbpf_jit.c1195 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()
/arch/arm/net/
Dbpf_jit_32.c870 unsigned alloc_size; in bpf_jit_compile() local
907 alloc_size = 4 * ctx.idx; in bpf_jit_compile()
908 header = bpf_jit_binary_alloc(alloc_size, &target_ptr, in bpf_jit_compile()
929 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); in bpf_jit_compile()
/arch/ia64/include/asm/
Dpal.h1031 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()