/linux-4.19.296/lib/ |
D | scatterlist.c | 203 unsigned int alloc_size = table->orig_nents; in __sg_free_table() local 212 if (alloc_size > max_ents) { in __sg_free_table() 214 alloc_size = max_ents; in __sg_free_table() 215 sg_size = alloc_size - 1; in __sg_free_table() 217 sg_size = alloc_size; in __sg_free_table() 225 free_fn(sgl, alloc_size); in __sg_free_table() 282 unsigned int sg_size, alloc_size = left; in __sg_alloc_table() local 284 if (alloc_size > max_ents) { in __sg_alloc_table() 285 alloc_size = max_ents; in __sg_alloc_table() 286 sg_size = alloc_size - 1; in __sg_alloc_table() [all …]
|
/linux-4.19.296/fs/ocfs2/ |
D | move_extents.c | 741 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument 744 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len() 748 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len() 763 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len() 772 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local 829 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range() 836 if (alloc_size > len_to_move) in __ocfs2_move_extents_range() 837 alloc_size = len_to_move; in __ocfs2_move_extents_range() 853 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range() 865 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range() [all …]
|
D | file.c | 1449 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1483 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents() 1493 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents() 1494 alloc_size = clusters; in ocfs2_allocate_unwritten_extents() 1504 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1512 cpos += alloc_size; in ocfs2_allocate_unwritten_extents() 1513 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
|
D | xattr.c | 826 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local 836 &alloc_size, in ocfs2_xattr_shrink_size() 843 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size() 844 alloc_size = trunc_len; in ocfs2_xattr_shrink_size() 847 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size() 856 block, alloc_size); in ocfs2_xattr_shrink_size() 857 cpos += alloc_size; in ocfs2_xattr_shrink_size() 858 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
|
/linux-4.19.296/drivers/cpufreq/ |
D | cpufreq_stats.c | 174 unsigned int alloc_size; in cpufreq_stats_create_table() local 189 alloc_size = count * sizeof(int) + count * sizeof(u64); in cpufreq_stats_create_table() 191 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.19.296/fs/exofs/ |
D | ore_raid.c | 109 unsigned num_a1pa, alloc_size, i; in _sp2d_alloc() local 122 alloc_size = sizeof_stripe_pages_2d + sizeof__a1pa * num_a1pa; in _sp2d_alloc() 125 alloc_size = alloc_total; in _sp2d_alloc() 128 *psp2d = sp2d = kzalloc(alloc_size, GFP_KERNEL); in _sp2d_alloc() 130 ORE_DBGMSG("!! Failed to alloc sp2d size=%d\n", alloc_size); in _sp2d_alloc() 138 __a1pa_end = __a1pa + alloc_size; in _sp2d_alloc() 147 alloc_size = sizeof__a1pa * num_a1pa; in _sp2d_alloc() 149 __a1pa = kzalloc(alloc_size, GFP_KERNEL); in _sp2d_alloc() 155 __a1pa_end = __a1pa + alloc_size; in _sp2d_alloc()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-cros-ec-tunnel.c | 187 int alloc_size; in ec_i2c_xfer() local 204 alloc_size = max(request_len, response_len); in ec_i2c_xfer() 205 msg = kmalloc(sizeof(*msg) + alloc_size, GFP_KERNEL); in ec_i2c_xfer()
|
/linux-4.19.296/drivers/dca/ |
D | dca-core.c | 328 int alloc_size; in alloc_dca_provider() local 330 alloc_size = (sizeof(*dca) + priv_size); in alloc_dca_provider() 331 dca = kzalloc(alloc_size, GFP_KERNEL); in alloc_dca_provider()
|
/linux-4.19.296/include/linux/ |
D | percpu.h | 87 size_t alloc_size; member
|
D | relay.h | 64 size_t alloc_size; /* total buffer size allocated */ member
|
D | efi.h | 1556 unsigned long alloc_size,
|
/linux-4.19.296/drivers/dma-buf/ |
D | dma-buf.c | 394 size_t alloc_size = sizeof(struct dma_buf); in dma_buf_export() local 398 alloc_size += sizeof(struct reservation_object); in dma_buf_export() 401 alloc_size += 1; in dma_buf_export() 416 dmabuf = kzalloc(alloc_size, GFP_KERNEL); in dma_buf_export()
|
/linux-4.19.296/drivers/iio/ |
D | industrialio-core.c | 1447 size_t alloc_size; in iio_device_alloc() local 1449 alloc_size = sizeof(struct iio_dev); in iio_device_alloc() 1451 alloc_size = ALIGN(alloc_size, IIO_ALIGN); in iio_device_alloc() 1452 alloc_size += sizeof_priv; in iio_device_alloc() 1455 alloc_size += IIO_ALIGN - 1; in iio_device_alloc() 1457 dev = kzalloc(alloc_size, GFP_KERNEL); in iio_device_alloc()
|
/linux-4.19.296/drivers/hid/ |
D | hid-rmi.c | 643 size_t alloc_size; in rmi_probe() local 697 alloc_size = data->output_report_size + data->input_report_size; in rmi_probe() 699 data->writeReport = devm_kzalloc(&hdev->dev, alloc_size, GFP_KERNEL); in rmi_probe()
|
/linux-4.19.296/include/scsi/ |
D | osd_initiator.h | 138 unsigned alloc_size; /* 0 here means: don't call kfree */ member
|
/linux-4.19.296/fs/ |
D | select.c | 603 size_t size, alloc_size; in core_sys_select() local 633 alloc_size = 6 * size; in core_sys_select() 634 bits = kvmalloc(alloc_size, GFP_KERNEL); in core_sys_select()
|
/linux-4.19.296/drivers/char/agp/ |
D | generic.c | 100 unsigned long alloc_size = num_agp_pages*sizeof(struct page *); in agp_create_user_memory() local 116 agp_alloc_page_array(alloc_size, new); in agp_create_user_memory()
|
/linux-4.19.296/fs/gfs2/ |
D | bmap.c | 945 u64 alloc_size; in gfs2_iomap_get() local 951 alloc_size = len << inode->i_blkbits; in gfs2_iomap_get() 952 if (alloc_size < iomap->length) in gfs2_iomap_get() 953 iomap->length = alloc_size; in gfs2_iomap_get()
|
/linux-4.19.296/fs/btrfs/ |
D | super.c | 2078 u64 alloc_size; in btrfs_calc_avail_data_space() local 2081 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space() 2083 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
|
D | send.c | 6802 unsigned alloc_size; in btrfs_ioctl_send() local 6897 alloc_size = sizeof(struct clone_root) * (arg->clone_sources_count + 1); in btrfs_ioctl_send() 6899 sctx->clone_roots = kvzalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_send() 6905 alloc_size = arg->clone_sources_count * sizeof(*arg->clone_sources); in btrfs_ioctl_send() 6908 clone_sources_tmp = kvmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_send() 6915 alloc_size); in btrfs_ioctl_send()
|
D | ioctl.c | 4542 int alloc_size; in btrfs_ioctl_space_info() local 4590 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info() 4595 if (alloc_size > PAGE_SIZE) in btrfs_ioctl_space_info() 4599 dest = kmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_space_info() 4658 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
|
/linux-4.19.296/include/linux/mlx5/ |
D | driver.h | 302 int alloc_size; member
|