Searched refs:alloc_size (Results 1 - 25 of 159) sorted by last modified time

1234567

/linux-master/drivers/nvme/host/
H A Dpci.c2672 size_t alloc_size = sizeof(struct scatterlist) * NVME_MAX_SEGS; local
2676 (void *)alloc_size, GFP_KERNEL,
H A Dcore.c810 static const size_t alloc_size = sizeof(*range) * NVME_DSM_MAX_RANGES; local
812 range = kzalloc(alloc_size, GFP_ATOMIC | __GFP_NOWARN);
862 bvec_set_virt(&req->special_vec, range, alloc_size);
/linux-master/drivers/gpu/drm/xe/
H A Dxe_guc_ads.c248 size_t total_size = 0, alloc_size, real_size; local
256 alloc_size = PAGE_ALIGN(real_size);
257 total_size += alloc_size;
621 size_t total_size = 0, alloc_size, real_size; local
640 alloc_size = PAGE_ALIGN(real_size);
641 total_size += alloc_size;
662 addr_ggtt += alloc_size;
663 offset += alloc_size;
/linux-master/net/bluetooth/
H A Dl2cap_core.c328 size_t alloc_size, i; local
334 alloc_size = roundup_pow_of_two(size);
336 seq_list->list = kmalloc_array(alloc_size, sizeof(u16), GFP_KERNEL);
340 seq_list->mask = alloc_size - 1;
343 for (i = 0; i < alloc_size; i++)
H A Dhci_core.c2492 unsigned int alloc_size; local
2494 alloc_size = sizeof(*hdev);
2497 alloc_size += sizeof_priv;
2500 hdev = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/fs/smb/server/
H A Dsmb2pdu.c3458 loff_t alloc_size; local
3467 alloc_size = le64_to_cpu(az_req->AllocationSize);
3470 alloc_size);
3473 alloc_size);
/linux-master/kernel/dma/
H A Dswiotlb.c69 * @alloc_size: Size of the allocated buffer.
77 size_t alloc_size; member in struct:io_tlb_slot
292 mem->slots[i].alloc_size = 0;
360 size_t alloc_size; local
398 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs));
399 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE);
402 __func__, alloc_size, PAGE_SIZE);
863 size_t alloc_size = mem->slots[index].alloc_size; local
885 alloc_size
1015 swiotlb_search_pool_area(struct device *dev, struct io_tlb_pool *pool, int area_index, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask) argument
1140 swiotlb_search_area(struct device *dev, int start_cpu, int cpu_offset, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument
1180 swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument
1256 swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask, struct io_tlb_pool **retpool) argument
1343 swiotlb_tbl_map_single(struct device *dev, phys_addr_t orig_addr, size_t mapping_size, size_t alloc_size, unsigned int alloc_align_mask, enum dma_data_direction dir, unsigned long attrs) argument
[all...]
/linux-master/lib/
H A Dscatterlist.c207 unsigned int alloc_size = num_ents; local
216 if (alloc_size > curr_max_ents) {
218 alloc_size = curr_max_ents;
219 sg_size = alloc_size - 1;
221 sg_size = alloc_size;
229 free_fn(sgl, alloc_size);
307 unsigned int sg_size, alloc_size = left; local
309 if (alloc_size > curr_max_ents) {
310 alloc_size = curr_max_ents;
311 sg_size = alloc_size
392 unsigned int alloc_size; local
[all...]
/linux-master/kernel/bpf/
H A Dverifier.c1238 size_t alloc_size; local
1244 alloc_size = kmalloc_size_roundup(size_mul(new_n, size));
1245 new_arr = krealloc(arr, alloc_size, GFP_KERNEL);
3329 size_t alloc_size; local
3345 alloc_size = kmalloc_size_roundup(size_mul(cnt, sizeof(*p)));
3346 p = krealloc(cur->jmp_history, alloc_size, GFP_USER);
/linux-master/fs/btrfs/
H A Dioctl.c3059 int alloc_size; local
3104 alloc_size = sizeof(*dest) * slot_count;
3109 if (alloc_size > PAGE_SIZE)
3113 dest = kmalloc(alloc_size, GFP_KERNEL);
3169 if (copy_to_user(user_dest, dest_orig, alloc_size))
/linux-master/fs/bcachefs/
H A Dbuckets.c424 unsigned alloc_size = sizeof(*d) + new_size; local
426 WARN_ON_ONCE(alloc_size > REPLICAS_DELTA_LIST_MAX);
429 d = krealloc(d, alloc_size, gfp|__GFP_ZERO);
432 if (alloc_size > REPLICAS_DELTA_LIST_MAX)
/linux-master/fs/ntfs3/
H A Dinode.c151 t64 = le64_to_cpu(attr->nres.alloc_size);
266 if (!attr->nres.alloc_size)
309 inode_set_bytes(inode, le64_to_cpu(attr->nres.alloc_size));
320 if (le64_to_cpu(attr->nres.alloc_size) >= 0x20000000)
1414 fname->dup.alloc_size = fname->dup.data_size = 0;
1569 attr->nres.alloc_size =
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.c2105 size_t alloc_size; local
2114 alloc_size = sizeof(*mlxsw_core) + mlxsw_driver->priv_size;
2115 devlink = devlink_alloc(&mlxsw_devlink_ops, alloc_size,
2151 alloc_size = sizeof(*mlxsw_core->lag.mapping) * max_lag *
2153 mlxsw_core->lag.mapping = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/net/netfilter/
H A Dnf_tables_api.c5022 size_t alloc_size; local
5220 alloc_size = sizeof(*set) + size + udlen;
5221 if (alloc_size < size || alloc_size > INT_MAX)
5227 set = kvzalloc(alloc_size, GFP_KERNEL_ACCOUNT);
/linux-master/net/core/
H A Ddev.c10825 unsigned int alloc_size; local
10840 alloc_size = sizeof(struct net_device);
10843 alloc_size = ALIGN(alloc_size, NETDEV_ALIGN);
10844 alloc_size += sizeof_priv;
10847 alloc_size += NETDEV_ALIGN - 1;
10849 p = kvzalloc(alloc_size, GFP_KERNEL_ACCOUNT | __GFP_RETRY_MAYFAIL);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c358 size_t alloc_size; local
360 alloc_size = array_size(wq_sz, struct_size(rq->mpwqe.info,
364 rq->mpwqe.info = kvzalloc_node(alloc_size, GFP_KERNEL, node);
/linux-master/include/net/mana/
H A Dmana.h312 u32 alloc_size; member in struct:mana_rxq
/linux-master/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c568 if (mpc->rxbpre_alloc_size != rxq->alloc_size) {
570 mpc->rxbpre_alloc_size, rxq->alloc_size);
594 static void mana_get_rxbuf_cfg(int mtu, u32 *datasize, u32 *alloc_size, argument
602 *alloc_size = mtu + MANA_RXBUF_PAD + *headroom;
1485 struct sk_buff *skb = napi_build_skb(buf_va, rxq->alloc_size);
1615 } else if (rxq->alloc_size > PAGE_SIZE) {
1617 va = napi_alloc_frag(rxq->alloc_size);
1619 va = netdev_alloc_frag(rxq->alloc_size);
1626 if (compound_order(page) < get_order(rxq->alloc_size)) {
2180 mana_get_rxbuf_cfg(ndev->mtu, &rxq->datasize, &rxq->alloc_size,
[all...]
/linux-master/scripts/
H A Dkernel-doc1727 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
/linux-master/drivers/pwm/
H A Dcore.c474 size_t alloc_size; local
476 alloc_size = size_add(ALIGN(sizeof(*chip), PWMCHIP_ALIGN), sizeof_priv);
478 chip = kzalloc(alloc_size, GFP_KERNEL);
/linux-master/drivers/staging/vc04_services/vchiq-mmal/
H A Dmmal-vchiq.c425 m.u.buffer_from_host.buffer_header.alloc_size = buf->buffer_size;
/linux-master/drivers/firmware/efi/libstub/
H A Dx86-stub.c782 unsigned long addr, alloc_size, entry; local
787 alloc_size = ALIGN(max_t(unsigned long, output_len, kernel_total_size),
815 status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,
824 efi_free(alloc_size, addr);
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/
H A Ddbg.c567 int alloc_size, nents, i; local
591 alloc_size = min_t(int, size, PAGE_SIZE);
593 sg_set_page(iter, new_page, alloc_size, 0);
/linux-master/fs/gfs2/
H A Dbmap.c943 u64 alloc_size; local
949 alloc_size = len << inode->i_blkbits;
950 if (alloc_size < iomap->length)
951 iomap->length = alloc_size;
/linux-master/drivers/iommu/
H A Ddma-iommu.c1536 size_t alloc_size = PAGE_ALIGN(size); local
1537 int count = alloc_size >> PAGE_SHIFT;
1542 dma_free_from_pool(dev, cpu_addr, alloc_size))
1553 dma_common_free_remap(cpu_addr, alloc_size);
1562 dma_free_contiguous(dev, page, alloc_size);
1576 size_t alloc_size = PAGE_ALIGN(size); local
1581 page = dma_alloc_contiguous(dev, alloc_size, gfp);
1583 page = alloc_pages_node(node, gfp, get_order(alloc_size));
1590 cpu_addr = dma_common_contiguous_remap(page, alloc_size,
1602 memset(cpu_addr, 0, alloc_size);
[all...]

Completed in 723 milliseconds

1234567