Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 25 of 189) sorted by relevance

12345678

/Linux-v4.19/drivers/acpi/
Dcustom_method.c26 static u32 max_size; in cm_write() local
39 uncopied_bytes = max_size = table.length; in cm_write()
40 buf = kzalloc(max_size, GFP_KERNEL); in cm_write()
48 if ((*ppos > max_size) || in cm_write()
49 (*ppos + count > max_size) || in cm_write()
/Linux-v4.19/net/sched/
Dsch_tbf.c104 u32 max_size; member
190 if (qdisc_pkt_len(skb) > q->max_size) { in tbf_enqueue()
192 skb_gso_validate_mac_len(skb, q->max_size)) in tbf_enqueue()
306 u64 max_size; in tbf_change() local
337 max_size = nla_get_u32(tb[TCA_TBF_BURST]); in tbf_change()
338 buffer = psched_l2t_ns(&rate, max_size); in tbf_change()
340 max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); in tbf_change()
356 max_size = min_t(u32, max_size, pburst); in tbf_change()
359 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change()
365 if (max_size < psched_mtu(qdisc_dev(sch))) in tbf_change()
[all …]
/Linux-v4.19/fs/ext4/
Dsymlink.c32 unsigned int max_size; in ext4_encrypted_get_link() local
40 max_size = sizeof(EXT4_I(inode)->i_data); in ext4_encrypted_get_link()
46 max_size = inode->i_sb->s_blocksize; in ext4_encrypted_get_link()
49 paddr = fscrypt_get_symlink(inode, caddr, max_size, done); in ext4_encrypted_get_link()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Drl.c116 for (i = 0; i < table->max_size; i++) { in find_rl_entry()
180 table->max_size); in mlx5_rl_add_rate()
246 table->max_size = 0; in mlx5_init_rl_table()
251 table->max_size = MLX5_CAP_QOS(dev, packet_pacing_rate_table_size) - 1; in mlx5_init_rl_table()
255 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_init_rl_table()
263 for (i = 0; i < table->max_size; i++) in mlx5_init_rl_table()
268 table->max_size, in mlx5_init_rl_table()
282 for (i = 0; i < table->max_size; i++) in mlx5_cleanup_rl_table()
/Linux-v4.19/lib/
Dbucket_locks.c15 size_t max_size, unsigned int cpu_mult, gfp_t gfp, in __alloc_bucket_spinlocks() argument
28 size = min_t(unsigned int, nr_pcpus * cpu_mult, max_size); in __alloc_bucket_spinlocks()
30 size = max_size; in __alloc_bucket_spinlocks()
Dtest_rhashtable.c40 static int max_size = 0; variable
41 module_param(max_size, int, 0);
42 MODULE_PARM_DESC(max_size, "Maximum table size (default: calculated)");
462 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max()
708 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init()
712 test_rht_params.max_size + 1)); in test_rht_init()
717 size, max_size, shrinking); in test_rht_init()
723 memset(objs, 0, test_rht_params.max_size * sizeof(struct test_obj)); in test_rht_init()
744 test_rht_params.max_size, test_rhashtable_max(objs, entries) == 0 ? in test_rht_init()
768 test_rht_params.max_size = max_size ? : in test_rht_init()
/Linux-v4.19/include/media/
Dv4l2-rect.h45 const struct v4l2_rect *max_size) in v4l2_rect_set_max_size() argument
47 if (r->width > max_size->width) in v4l2_rect_set_max_size()
48 r->width = max_size->width; in v4l2_rect_set_max_size()
49 if (r->height > max_size->height) in v4l2_rect_set_max_size()
50 r->height = max_size->height; in v4l2_rect_set_max_size()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c149 unsigned int max_size; in vmw_fill_compat_cap() local
154 max_size = (size - pair_offset) / sizeof(SVGA3dCapPair); in vmw_fill_compat_cap()
156 if (max_size > SVGA3D_DEVCAP_MAX) in vmw_fill_compat_cap()
157 max_size = SVGA3D_DEVCAP_MAX; in vmw_fill_compat_cap()
160 (pair_offset + max_size * sizeof(SVGA3dCapPair)) / sizeof(u32); in vmw_fill_compat_cap()
164 for (i = 0; i < max_size; ++i) { in vmw_fill_compat_cap()
190 if (unlikely(arg->pad64 != 0 || arg->max_size == 0)) { in vmw_get_cap_3d_ioctl()
203 if (arg->max_size < size) in vmw_get_cap_3d_ioctl()
204 size = arg->max_size; in vmw_get_cap_3d_ioctl()
/Linux-v4.19/arch/s390/appldata/
Dappldata_os.c174 int rc, max_size; in appldata_os_init() local
176 max_size = sizeof(struct appldata_os_data) + in appldata_os_init()
178 if (max_size > APPLDATA_MAX_REC_SIZE) { in appldata_os_init()
180 "record size %i\n", max_size, APPLDATA_MAX_REC_SIZE); in appldata_os_init()
185 appldata_os_data = kzalloc(max_size, GFP_KERNEL | GFP_DMA); in appldata_os_init()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dsdk.c64 size_t max_size = MLX5_FPGA_ACCESS_REG_SIZE_MAX; in mlx5_fpga_mem_read_i2c() local
76 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_read_i2c()
96 size_t max_size = MLX5_FPGA_ACCESS_REG_SIZE_MAX; in mlx5_fpga_mem_write_i2c() local
108 actual_size = min(max_size, (size - bytes_done)); in mlx5_fpga_mem_write_i2c()
/Linux-v4.19/tools/vm/
Dpage_owner_sort.c28 static int max_size; variable
67 if (list_size == max_size) { in add_list()
108 max_size = st.st_size / 100; /* hack ... */ in main()
110 list = malloc(max_size * sizeof(*list)); in main()
/Linux-v4.19/drivers/staging/most/dim2/
Dhal.c446 u16 const max_size = ((u16)CDT3_BD_ISOC_MASK + 1u) / ISOC_DBR_FACTOR; in check_packet_length() local
451 if (packet_length > max_size) in check_packet_length()
463 u16 const max_size = ((u16)CDT3_BD_MASK + 1u) >> bd_factor; in check_bytes_per_frame() local
468 if (bytes_per_frame > max_size) in check_bytes_per_frame()
476 u16 const max_size = (u16)ADT1_CTRL_ASYNC_BD_MASK + 1u; in norm_ctrl_async_buffer_size() local
478 if (buf_size > max_size) in norm_ctrl_async_buffer_size()
479 return max_size; in norm_ctrl_async_buffer_size()
487 u16 const max_size = (u16)ADT1_ISOC_SYNC_BD_MASK + 1u; in norm_isoc_buffer_size() local
489 if (buf_size > max_size) in norm_isoc_buffer_size()
490 buf_size = max_size; in norm_isoc_buffer_size()
[all …]
/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_page_alloc.c89 unsigned max_size; member
168 m->options.max_size = val; in ttm_pool_store()
195 val = m->options.max_size; in ttm_pool_show()
759 unsigned max_size, n2free; in ttm_put_pages() local
784 max_size = _manager->options.max_size; in ttm_put_pages()
785 max_size /= HPAGE_PMD_NR; in ttm_put_pages()
786 if (huge->npages > max_size) in ttm_put_pages()
787 n2free = huge->npages - max_size; in ttm_put_pages()
809 if (pool->npages > _manager->options.max_size) { in ttm_put_pages()
810 npages = pool->npages - _manager->options.max_size; in ttm_put_pages()
[all …]
/Linux-v4.19/drivers/crypto/virtio/
Dvirtio_crypto_core.c305 u64 max_size = 0; in virtcrypto_probe() local
348 max_size, &max_size); in virtcrypto_probe()
381 vcrypto->max_size = max_size; in virtcrypto_probe()
396 vcrypto->max_size); in virtcrypto_probe()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_lblc.c112 int max_size; /* maximum size of entries */ member
316 if (atomic_read(&tbl->entries) <= tbl->max_size) { in ip_vs_lblc_check_expire()
321 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
322 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
323 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
370 tbl->max_size = IP_VS_LBLC_TAB_SIZE*16; in ip_vs_lblc_init_svc()
/Linux-v4.19/drivers/iio/buffer/
Dindustrialio-buffer-dmaengine.c38 size_t max_size; member
66 block->bytes_used = min(block->size, dmaengine_buffer->max_size); in iio_dmaengine_buffer_submit_block()
178 dmaengine_buffer->max_size = dma_get_max_seg_size(chan->device->dev); in iio_dmaengine_buffer_alloc()
/Linux-v4.19/drivers/firmware/efi/
Dcapsule.c92 u64 max_size; in efi_capsule_supported() local
101 status = efi.query_capsule_caps(cap_list, 1, &max_size, reset); in efi_capsule_supported()
105 if (size > max_size) in efi_capsule_supported()
/Linux-v4.19/drivers/usb/class/
Dusbtmc.c208 int max_size; in usbtmc_ioctl_abort_bulk_in() local
241 max_size = 0; in usbtmc_ioctl_abort_bulk_in()
246 max_size = usb_endpoint_maxp(&current_setting->endpoint[n].desc); in usbtmc_ioctl_abort_bulk_in()
248 if (max_size == 0) { in usbtmc_ioctl_abort_bulk_in()
254 dev_dbg(&data->intf->dev, "wMaxPacketSize is %d\n", max_size); in usbtmc_ioctl_abort_bulk_in()
273 } while ((actual == max_size) && in usbtmc_ioctl_abort_bulk_in()
276 if (actual == max_size) { in usbtmc_ioctl_abort_bulk_in()
327 } while ((actual == max_size) && in usbtmc_ioctl_abort_bulk_in()
330 if (actual == max_size) { in usbtmc_ioctl_abort_bulk_in()
936 int max_size; in usbtmc_ioctl_clear() local
[all …]
/Linux-v4.19/arch/x86/kernel/
Dtboot.c367 u32 max_size; in tboot_log_read() local
379 max_size = readl(log_base + LOG_MAX_SIZE_OFF); in tboot_log_read()
380 if (*ppos >= max_size) { in tboot_log_read()
385 if (*ppos + count > max_size) in tboot_log_read()
386 count = max_size - *ppos; in tboot_log_read()
/Linux-v4.19/arch/x86/platform/efi/
Dquirks.c128 u64 storage_size, remaining_size, max_size; in query_variable_store_nonblocking() local
132 &max_size); in query_variable_store_nonblocking()
153 u64 storage_size, remaining_size, max_size; in efi_query_variable_store() local
162 &remaining_size, &max_size); in efi_query_variable_store()
207 &remaining_size, &max_size); in efi_query_variable_store()
/Linux-v4.19/fs/crypto/
Dhooks.c215 unsigned int max_size, in fscrypt_get_symlink() argument
239 if (max_size < sizeof(*sd)) in fscrypt_get_symlink()
248 if (cstr.len + sizeof(*sd) - 1 > max_size) in fscrypt_get_symlink()
/Linux-v4.19/arch/x86/kernel/cpu/microcode/
Damd.c467 u32 max_size; in verify_patch_size() local
477 max_size = F14H_MPB_MAX_SIZE; in verify_patch_size()
480 max_size = F15H_MPB_MAX_SIZE; in verify_patch_size()
483 max_size = F16H_MPB_MAX_SIZE; in verify_patch_size()
486 max_size = F17H_MPB_MAX_SIZE; in verify_patch_size()
489 max_size = F1XH_MPB_MAX_SIZE; in verify_patch_size()
493 if (patch_size > min_t(u32, size, max_size)) { in verify_patch_size()
/Linux-v4.19/drivers/regulator/
Dda9211-regulator.c156 int i, max_size; in da9211_set_current_limit() local
162 max_size = ARRAY_SIZE(da9211_current_limits)-1; in da9211_set_current_limit()
166 max_size = ARRAY_SIZE(da9213_current_limits)-1; in da9211_set_current_limit()
170 max_size = ARRAY_SIZE(da9215_current_limits)-1; in da9211_set_current_limit()
177 for (i = max_size; i >= 0; i--) { in da9211_set_current_limit()
/Linux-v4.19/fs/jfs/
Dxattr.c74 int max_size; /* largest xattr that fits in current buffer */ member
457 ea_buf->max_size = 0; in ea_get()
464 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
476 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
497 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
500 ea_buf->xattr = kmalloc(ea_buf->max_size, GFP_KERNEL); in ea_get()
548 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
568 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
725 if (new_size > ea_buf.max_size) { in __jfs_setxattr()
/Linux-v4.19/include/net/
Dbond_3ad.h286 int max_size = ARRAY_SIZE(churn_description); in bond_3ad_churn_desc() local
288 if (state >= max_size) in bond_3ad_churn_desc()
289 state = max_size - 1; in bond_3ad_churn_desc()

12345678