Searched refs:alloc_size (Results 1 - 25 of 159) sorted by path

1234567

/linux-master/drivers/atm/
H A Dfore200e.h569 u32 alloc_size; /* length of allocated chunk */ member in struct:chunk
H A Dfore200e.c169 chunk->alloc_size = size + alignment;
172 chunk->alloc_addr = kzalloc(chunk->alloc_size, GFP_KERNEL);
211 chunk->alloc_size = size * nbr;
212 chunk->alloc_addr = dma_alloc_coherent(fore200e->dev, chunk->alloc_size,
226 dma_free_coherent(fore200e->dev, chunk->alloc_size, chunk->alloc_addr,
/linux-master/drivers/hsi/clients/
H A Dhsi_char.c173 static inline struct hsi_msg *hsc_msg_alloc(unsigned int alloc_size) argument
181 buf = kmalloc(alloc_size, GFP_KERNEL);
186 sg_init_one(msg->sgt.sgl, buf, alloc_size);
/linux-master/arch/powerpc/kernel/
H A Deeh_pe.c50 size_t alloc_size; local
52 alloc_size = sizeof(struct eeh_pe);
54 alloc_size = ALIGN(alloc_size, cache_line_size());
55 alloc_size += eeh_pe_aux_size;
59 pe = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/arch/powerpc/platforms/pseries/
H A Dvio.c559 size_t alloc_size = 0; local
562 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl));
564 ret = vio_cmo_alloc(viodev, alloc_size);
573 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
574 if (alloc_size)
575 vio_cmo_dealloc(viodev, alloc_size);
579 vio_cmo_dealloc(viodev, alloc_size);
593 size_t alloc_size = 0; local
597 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl));
600 vio_cmo_dealloc(viodev, alloc_size);
[all...]
/linux-master/arch/s390/kernel/
H A Dcrash_dump.c572 size_t alloc_size; local
593 alloc_size = get_elfcorehdr_size(mem_chunk_cnt);
595 hdr = kzalloc(alloc_size, GFP_KERNEL);
619 BUG_ON(elfcorehdr_size > alloc_size);
/linux-master/arch/sparc/kernel/
H A Dmdesc.c164 unsigned int handle_size, alloc_size; local
171 alloc_size = PAGE_ALIGN(handle_size);
173 paddr = memblock_phys_alloc(alloc_size, PAGE_SIZE);
185 unsigned int alloc_size; local
191 alloc_size = PAGE_ALIGN(hp->handle_size);
193 memblock_free_late(start, alloc_size);
H A Dpci_sun4v.c1057 unsigned long q_size, alloc_size, pages, order; local
1061 alloc_size = (pbm->msiq_num * q_size);
1062 order = get_order(alloc_size);
1111 unsigned long q_size, alloc_size, pages, order; local
1121 alloc_size = (pbm->msiq_num * q_size);
1122 order = get_order(alloc_size);
/linux-master/arch/x86/kernel/
H A Dldt.c152 unsigned int alloc_size; local
162 alloc_size = num_entries * LDT_ENTRY_SIZE;
170 if (alloc_size > PAGE_SIZE)
171 new_ldt->entries = __vmalloc(alloc_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO);
/linux-master/drivers/acpi/
H A Dmipi-disco-img.c204 size_t alloc_size; local
215 port_count, &alloc_size) ||
219 alloc_size, &alloc_size)) {
226 swnodes = kmalloc(alloc_size, GFP_KERNEL);
H A Dproperty.c401 size_t alloc_size; local
407 &alloc_size) ||
408 check_add_overflow(sizeof(*props) + sizeof(*package), alloc_size,
409 &alloc_size)) {
416 props = kvzalloc(alloc_size, GFP_KERNEL);
/linux-master/drivers/block/
H A Drbd.c809 fsparam_u32 ("alloc_size", Opt_alloc_size),
827 int alloc_size; member in struct:rbd_options
2292 * Align the range to alloc_size boundary and punt on discards
2295 * alloc_size == object_size && is_tail() is a special case for
2299 if (rbd_dev->opts->alloc_size != rbd_dev->layout.object_size ||
2301 off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size);
2303 rbd_dev->opts->alloc_size);
4958 .io_min = rbd_dev->opts->alloc_size,
4959 .io_opt = rbd_dev->opts->alloc_size,
4978 lim.discard_granularity = rbd_dev->opts->alloc_size;
[all...]
/linux-master/drivers/bus/mhi/host/
H A Dboot.c315 size_t alloc_size)
318 int segments = DIV_ROUND_UP(alloc_size, seg_size) + 1;
313 mhi_alloc_bhie_table(struct mhi_controller *mhi_cntrl, struct image_info **image_info, size_t alloc_size) argument
H A Dinit.c143 ring->alloc_size = len + (len - 1);
144 ring->pre_aligned = dma_alloc_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size,
244 dma_free_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size,
260 dma_free_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size,
412 dma_free_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size,
428 dma_free_coherent(mhi_cntrl->cntrl_dev, ring->alloc_size,
603 dma_free_coherent(mhi_cntrl->cntrl_dev, tre_ring->alloc_size,
646 dma_free_coherent(mhi_cntrl->cntrl_dev, tre_ring->alloc_size,
H A Dinternal.h209 size_t alloc_size; member in struct:mhi_ring
315 struct image_info **image_info, size_t alloc_size);
/linux-master/drivers/char/agp/
H A Dgeneric.c99 unsigned long alloc_size = num_agp_pages*sizeof(struct page *); local
115 agp_alloc_page_array(alloc_size, new);
/linux-master/drivers/cpufreq/
H A Dcpufreq_stats.c214 unsigned int alloc_size; local
229 alloc_size = count * sizeof(int) + count * sizeof(u64);
231 alloc_size += count * count * sizeof(int);
234 stats->time_in_state = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/drivers/crypto/axis/
H A Dartpec6_crypto.c785 size_t alloc_size = sizeof(struct artpec6_crypto_bounce_buffer) + local
787 struct artpec6_crypto_bounce_buffer *bbuf = kzalloc(alloc_size, flags);
/linux-master/drivers/dca/
H A Ddca-core.c310 int alloc_size; local
312 alloc_size = (sizeof(*dca) + priv_size);
313 dca = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/drivers/dma-buf/
H A Ddma-buf.c613 size_t alloc_size = sizeof(struct dma_buf); local
639 alloc_size += sizeof(struct dma_resv);
642 alloc_size += 1;
643 dmabuf = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/drivers/dma/qcom/
H A Dgpi.c455 size_t alloc_size; member in struct:gpi_ring
1400 dma_free_coherent(gpii->gpi_dev->dev, ring->alloc_size,
1417 ring->alloc_size = (len + (len - 1));
1419 "#el:%u el_size:%u len:%u actual_len:%llu alloc_size:%zu\n",
1421 ring->alloc_size);
1424 ring->alloc_size,
1428 ring->alloc_size);
/linux-master/drivers/firmware/efi/libstub/
H A Darm32-stub.c87 int alloc_size = MAX_UNCOMP_KERNEL_SIZE + EFI_PHYS_ALIGN; local
97 status = efi_low_alloc_above(alloc_size, EFI_PAGE_SIZE, &alloc_base, 0x0);
122 alloc_size -= *reserve_addr - alloc_base;
125 (alloc_size - MAX_UNCOMP_KERNEL_SIZE) / EFI_PAGE_SIZE);
H A Darm64.c95 unsigned long alloc_size)
117 efi_remap_image(image_base, alloc_size, code_size);
94 efi_cache_sync_image(unsigned long image_base, unsigned long alloc_size) argument
H A Defi-stub-helper.c712 * @alloc_size: the size of the area in memory occupied by the image
721 void efi_remap_image(unsigned long image_base, unsigned alloc_size, argument
740 alloc_size, &attr);
767 alloc_size - code_size,
H A Defistub.h1076 unsigned long alloc_size,
1152 unsigned long alloc_size);
1216 void efi_remap_image(unsigned long image_base, unsigned alloc_size,

Completed in 415 milliseconds

1234567