Home
last modified time | relevance | path

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

12345678910

/linux/drivers/misc/habanalabs/common/
A Dhabanalabs_ioctl.c110 if ((!max_size) || (!out)) in hw_events_info()
127 if ((!max_size) || (!out)) in dram_usage_info()
148 if ((!max_size) || (!out)) in hw_idle()
233 if ((!max_size) || (!out)) in device_utilization()
251 if ((!max_size) || (!out)) in get_clk_rate()
269 if ((!max_size) || (!out)) in get_reset_count()
285 if ((!max_size) || (!out)) in time_sync_info()
303 if ((!max_size) || (!out)) in pci_counters_info()
321 if ((!max_size) || (!out)) in clk_throttle_info()
340 if ((!max_size) || (!out)) in cs_counters_info()
[all …]
A Dsysfs.c354 size_t max_size) in eeprom_read_handler() argument
364 if (!max_size) in eeprom_read_handler()
367 data = kzalloc(max_size, GFP_KERNEL); in eeprom_read_handler()
371 rc = hdev->asic_funcs->get_eeprom_data(hdev, data, max_size); in eeprom_read_handler()
375 memcpy(buf, data, max_size); in eeprom_read_handler()
380 return max_size; in eeprom_read_handler()
/linux/net/sched/
A Dsch_tbf.c100 u32 max_size; member
154 qopt.replace_params.max_size = q->max_size; in tbf_offload_change()
245 if (qdisc_pkt_len(skb) > q->max_size) { in tbf_enqueue()
361 u64 max_size; in tbf_change() local
394 buffer = psched_l2t_ns(&rate, max_size); in tbf_change()
412 max_size = min_t(u32, max_size, pburst); in tbf_change()
415 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change()
421 if (max_size < psched_mtu(qdisc_dev(sch))) in tbf_change()
423 max_size, qdisc_dev(sch)->name, in tbf_change()
426 if (!max_size) { in tbf_change()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_devcaps.c62 unsigned int max_size; in vmw_fill_compat_cap() local
67 max_size = (size - pair_offset) / sizeof(SVGA3dFifoCapPair); in vmw_fill_compat_cap()
69 if (max_size > SVGA3D_DEVCAP_MAX) in vmw_fill_compat_cap()
70 max_size = SVGA3D_DEVCAP_MAX; in vmw_fill_compat_cap()
73 (pair_offset + max_size * sizeof(SVGA3dFifoCapPair)) / sizeof(u32); in vmw_fill_compat_cap()
76 for (i = 0; i < max_size; ++i) { in vmw_fill_compat_cap()
/linux/net/core/
A Dselftests.c27 int max_size; member
72 if (attr->max_size && attr->max_size > size) in net_test_get_skb()
73 size = attr->max_size; in net_test_get_skb()
111 if (attr->max_size) in net_test_get_skb()
112 uhdr->len = htons(attr->max_size - in net_test_get_skb()
130 if (attr->max_size) in net_test_get_skb()
131 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb()
149 if (attr->max_size && attr->max_size > skb->len) in net_test_get_skb()
150 skb_put(skb, attr->max_size - skb->len); in net_test_get_skb()
326 attr.max_size = ndev->mtu; in net_test_phy_loopback_udp_mtu()
/linux/drivers/acpi/
A Dcustom_method.c26 static u32 max_size; in cm_write() local
44 uncopied_bytes = max_size = table.length; in cm_write()
47 buf = kzalloc(max_size, GFP_KERNEL); in cm_write()
55 if ((*ppos > max_size) || in cm_write()
56 (*ppos + count > max_size) || in cm_write()
/linux/drivers/platform/chrome/wilco_ec/
A Dtelemetry.c157 size_t max_size = offsetof(struct wilco_ec_telem_request, args); in check_telem_request() local
164 max_size += sizeof(rq->args.get_log); in check_telem_request()
167 max_size += sizeof(rq->args.get_version); in check_telem_request()
170 max_size += sizeof(rq->args.get_fan_info); in check_telem_request()
173 max_size += sizeof(rq->args.get_diag_info); in check_telem_request()
176 max_size += sizeof(rq->args.get_temp_info); in check_telem_request()
179 max_size += sizeof(rq->args.get_temp_read); in check_telem_request()
182 max_size += sizeof(rq->args.get_batt_ext_info); in check_telem_request()
188 max_size += sizeof(rq->args.get_batt_ppid_info); in check_telem_request()
194 return (size <= max_size) ? 0 : -EMSGSIZE; in check_telem_request()
/linux/fs/ext4/
A 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/drivers/staging/media/atomisp/pci/
A Dsh_css_version.c24 ia_css_get_version(char *version, int max_size) in ia_css_get_version() argument
33 if (max_size <= (int)strlen(css_version) + (int)strlen(sh_css_get_fw_version()) + 5) in ia_css_get_version()
35 strscpy(version, css_version, max_size); in ia_css_get_version()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Drl.c123 for (i = 0; i < table->max_size; i++) { in find_rl_entry()
189 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_rl_table_get()
197 for (i = 0; i < table->max_size; i++) in mlx5_rl_table_get()
222 for (i = 0; i < table->max_size; i++) in mlx5_rl_table_free()
249 if (!table->max_size) in mlx5_rl_add_rate_raw()
267 table->max_size); in mlx5_rl_add_rate_raw()
371 table->max_size = 0; in mlx5_init_rl_table()
378 table->max_size = MLX5_CAP_QOS(dev, packet_pacing_rate_table_size) - 1; in mlx5_init_rl_table()
383 table->max_size, in mlx5_init_rl_table()
/linux/arch/s390/appldata/
A Dappldata_os.c165 int rc, max_size; in appldata_os_init() local
167 max_size = struct_size(appldata_os_data, os_cpu, num_possible_cpus()); in appldata_os_init()
168 if (max_size > APPLDATA_MAX_REC_SIZE) { in appldata_os_init()
170 "record size %i\n", max_size, APPLDATA_MAX_REC_SIZE); in appldata_os_init()
175 appldata_os_data = kzalloc(max_size, GFP_KERNEL | GFP_DMA); in appldata_os_init()
/linux/lib/
A 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()
A Dtest_rhashtable.c37 static int max_size = 0; variable
38 module_param(max_size, int, 0);
39 MODULE_PARM_DESC(max_size, "Maximum table size (default: calculated)");
454 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max()
711 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init()
715 test_rht_params.max_size + 1)); in test_rht_init()
720 size, max_size, shrinking); in test_rht_init()
726 memset(objs, 0, test_rht_params.max_size * sizeof(struct test_obj)); in test_rht_init()
747 test_rht_params.max_size, test_rhashtable_max(objs, entries) == 0 ? in test_rht_init()
771 test_rht_params.max_size = max_size ? : in test_rht_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
A 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/drivers/net/wireless/ath/ath11k/
A Dhal.c48 .max_size = HAL_REO_CMD_RING_BASE_MSB_RING_SIZE,
66 .max_size = HAL_SW2TCL1_RING_BASE_MSB_RING_SIZE,
92 .max_size = HAL_CE_SRC_RING_BASE_MSB_RING_SIZE,
100 .max_size = HAL_CE_DST_RING_BASE_MSB_RING_SIZE,
140 .max_size = HAL_RXDMA_RING_MAX_SIZE,
148 .max_size = HAL_RXDMA_RING_MAX_SIZE,
156 .max_size = HAL_RXDMA_RING_MAX_SIZE,
164 .max_size = HAL_RXDMA_RING_MAX_SIZE,
172 .max_size = HAL_RXDMA_RING_MAX_SIZE,
180 .max_size = HAL_RXDMA_RING_MAX_SIZE,
[all …]
/linux/include/media/
A 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/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dport.c181 u32 max_size; in mlx5e_port_ptys2speed() local
184 mlx5e_port_get_speed_arr(mdev, &table, &max_size, force_legacy); in mlx5e_port_ptys2speed()
185 i = find_first_bit(&temp, max_size); in mlx5e_port_ptys2speed()
186 if (i < max_size) in mlx5e_port_ptys2speed()
221 u32 max_size; in mlx5e_port_max_linkspeed() local
231 mlx5e_port_get_speed_arr(mdev, &table, &max_size, false); in mlx5e_port_max_linkspeed()
232 for (i = 0; i < max_size; ++i) in mlx5e_port_max_linkspeed()
245 u32 max_size; in mlx5e_port_speed2linkmodes() local
248 mlx5e_port_get_speed_arr(mdev, &table, &max_size, force_legacy); in mlx5e_port_speed2linkmodes()
249 for (i = 0; i < max_size; ++i) { in mlx5e_port_speed2linkmodes()
A Drqt.c17 u16 max_size, u32 *init_rqns, u16 init_size) in mlx5e_rqt_init() argument
26 rqt->size = max_size; in mlx5e_rqt_init()
50 u16 max_size = indir_enabled ? MLX5E_INDIR_RQT_SIZE : 1; in mlx5e_rqt_init_direct() local
52 return mlx5e_rqt_init(rqt, mdev, max_size, &init_rqn, 1); in mlx5e_rqt_init_direct()
/linux/arch/x86/kernel/fpu/
A Dinit.c206 fpu_kernel_cfg.max_size = size; in fpu__init_system_xstate_size_legacy()
208 fpu_user_cfg.max_size = size; in fpu__init_system_xstate_size_legacy()
216 init_fpstate.size = fpu_kernel_cfg.max_size; in fpu__init_init_fpstate()
237 fpu__init_system_xstate(fpu_kernel_cfg.max_size); in fpu__init_system()
/linux/drivers/staging/most/dim2/
A Dhal.c450 if (packet_length > max_size) in check_packet_length()
467 if (bytes_per_frame > max_size) in check_bytes_per_frame()
475 u16 const max_size = (u16)ADT1_CTRL_ASYNC_BD_MASK + 1u; in dim_norm_ctrl_async_buffer_size() local
477 if (buf_size > max_size) in dim_norm_ctrl_async_buffer_size()
478 return max_size; in dim_norm_ctrl_async_buffer_size()
486 u16 const max_size = (u16)ADT1_ISOC_SYNC_BD_MASK + 1u; in norm_isoc_buffer_size() local
488 if (buf_size > max_size) in norm_isoc_buffer_size()
489 buf_size = max_size; in norm_isoc_buffer_size()
502 u16 const max_size = (u16)ADT1_ISOC_SYNC_BD_MASK + 1u; in norm_sync_buffer_size() local
505 if (buf_size > max_size) in norm_sync_buffer_size()
[all …]
/linux/drivers/base/regmap/
A Dregmap-spi.c115 size_t max_size = spi_max_transfer_size(spi); in regmap_get_spi_bus() local
118 if (max_size != SIZE_MAX) { in regmap_get_spi_bus()
124 bus->max_raw_read = max_size; in regmap_get_spi_bus()
125 bus->max_raw_write = max_size; in regmap_get_spi_bus()
/linux/drivers/soundwire/
A Dgeneric_bandwidth_allocation.c27 unsigned int max_size; member
220 if (group->count >= group->max_size) { in sdw_add_element_group_count()
223 group->max_size += 1; in sdw_add_element_group_count()
225 (sizeof(int) * group->max_size), in sdw_add_element_group_count()
246 group->max_size = SDW_STRM_RATE_GROUPING; in sdw_get_group_count()
247 group->rates = kcalloc(group->max_size, sizeof(int), GFP_KERNEL); in sdw_get_group_count()
/linux/tools/vm/
A Dpage_owner_sort.c35 static int max_size; variable
114 if (list_size == max_size) { in add_list()
181 max_size = st.st_size / 100; /* hack ... */ in main()
183 list = malloc(max_size * sizeof(*list)); in main()
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dnfp_nsp.c495 unsigned int max_size, unsigned int chunk_order, in nfp_nsp_command_buf_dma_sg() argument
514 nseg = DIV_ROUND_UP(max_size, chunk_size); in nfp_nsp_command_buf_dma_sg()
530 chunks[i].len = min_t(u64, chunk_size, max_size - off); in nfp_nsp_command_buf_dma_sg()
617 arg->arg.code, ret, max_size, chunk_order); in nfp_nsp_command_buf_dma_sg()
624 unsigned int max_size, unsigned int dma_order) in nfp_nsp_command_buf_dma() argument
632 buf_order = order_base_2(roundup_pow_of_two(max_size)); in nfp_nsp_command_buf_dma()
659 unsigned int dma_order, def_size, max_size; in nfp_nsp_command_buf() local
681 max_size = max(arg->in_size, arg->out_size); in nfp_nsp_command_buf()
685 if (def_size >= max_size) { in nfp_nsp_command_buf()
689 arg->arg.code, def_size, max_size); in nfp_nsp_command_buf()
[all …]
/linux/drivers/crypto/virtio/
A Dvirtio_crypto_core.c293 u64 max_size = 0; in virtcrypto_probe() local
336 max_size, &max_size); in virtcrypto_probe()
369 vcrypto->max_size = max_size; in virtcrypto_probe()
384 vcrypto->max_size); in virtcrypto_probe()

Completed in 47 milliseconds

12345678910