Searched refs:alloc_size (Results 1 – 11 of 11) sorted by relevance
/arch/x86/kernel/ |
D | ldt.c | 51 int alloc_size; in alloc_ldt_struct() local 62 alloc_size = size * LDT_ENTRY_SIZE; in alloc_ldt_struct() 70 if (alloc_size > PAGE_SIZE) in alloc_ldt_struct() 71 new_ldt->entries = vzalloc(alloc_size); in alloc_ldt_struct() 80 ret = kaiser_add_mapping((unsigned long)new_ldt->entries, alloc_size, in alloc_ldt_struct()
|
/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()
|
/arch/s390/kernel/ |
D | crash_dump.c | 587 u32 alloc_size; in elfcorehdr_alloc() local 609 alloc_size = 0x1000 + get_cpu_cnt() * 0x4a0 + in elfcorehdr_alloc() 611 hdr = kzalloc_panic(alloc_size); in elfcorehdr_alloc() 628 BUG_ON(elfcorehdr_size > alloc_size); in elfcorehdr_alloc()
|
/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 | 94 unsigned int handle_size, alloc_size; in mdesc_memblock_alloc() local 101 alloc_size = PAGE_ALIGN(handle_size); in mdesc_memblock_alloc() 103 paddr = memblock_alloc(alloc_size, PAGE_SIZE); in mdesc_memblock_alloc() 115 unsigned int alloc_size; in mdesc_memblock_free() local 121 alloc_size = PAGE_ALIGN(hp->handle_size); in mdesc_memblock_free() 123 free_bootmem_late(start, alloc_size); in mdesc_memblock_free()
|
/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()
|
/arch/mips/net/ |
D | bpf_jit.c | 1203 unsigned int alloc_size, tmp_idx; in bpf_jit_compile() local 1225 alloc_size = 4 * ctx.idx; in bpf_jit_compile() 1226 ctx.target = module_alloc(alloc_size); in bpf_jit_compile() 1231 memset(ctx.target, 0, alloc_size); in bpf_jit_compile() 1245 bpf_jit_dump(fp->len, alloc_size, 2, ctx.target); in bpf_jit_compile()
|
/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()
|
/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()
|