/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs_ioctl.c | 119 u32 size, max_size = args->return_size; in hw_events_info() local 123 if ((!max_size) || (!out)) in hw_events_info() 132 return copy_to_user(out, arr, min(max_size, size)) ? -EFAULT : 0; in hw_events_info() 137 u32 max_size = args->return_size; in events_info() local 141 if ((max_size < sizeof(u64)) || (!out)) in events_info() 156 u32 max_size = args->return_size; in dram_usage_info() local 161 if ((!max_size) || (!out)) in dram_usage_info() 173 min((size_t) max_size, sizeof(dram_usage))) ? -EFAULT : 0; in dram_usage_info() 179 u32 max_size = args->return_size; in hw_idle() local 182 if ((!max_size) || (!out)) in hw_idle() [all …]
|
/linux-6.6.21/sound/soc/sof/ |
D | ipc4-control.c | 69 scontrol->max_size); in sof_ipc4_set_get_kcontrol_data() 243 if (scontrol->max_size > sizeof(ucontrol->value.bytes.data)) { in sof_ipc4_bytes_put() 246 scontrol->max_size); in sof_ipc4_bytes_put() 251 if (data->size > scontrol->max_size - sizeof(*data)) { in sof_ipc4_bytes_put() 254 data->size, scontrol->max_size - sizeof(*data)); in sof_ipc4_bytes_put() 276 if (scontrol->max_size > sizeof(ucontrol->value.bytes.data)) { in sof_ipc4_bytes_get() 278 scontrol->max_size); in sof_ipc4_bytes_get() 282 if (data->size > scontrol->max_size - sizeof(*data)) { in sof_ipc4_bytes_get() 285 data->size, scontrol->max_size - sizeof(*data)); in sof_ipc4_bytes_get() 326 if (header.length > scontrol->max_size) { in sof_ipc4_bytes_ext_put() [all …]
|
D | ipc3-control.c | 111 scontrol->max_size); in sof_ipc3_set_get_kcontrol_data() 311 if (scontrol->max_size > sizeof(ucontrol->value.bytes.data)) { in sof_ipc3_bytes_get() 313 scontrol->max_size); in sof_ipc3_bytes_get() 318 if (data->size > scontrol->max_size - sizeof(*data)) { in sof_ipc3_bytes_get() 321 data->size, scontrol->max_size - sizeof(*data)); in sof_ipc3_bytes_get() 341 if (scontrol->max_size > sizeof(ucontrol->value.bytes.data)) { in sof_ipc3_bytes_put() 343 scontrol->max_size); in sof_ipc3_bytes_put() 348 if (data->size > scontrol->max_size - sizeof(*data)) { in sof_ipc3_bytes_put() 350 data->size, scontrol->max_size - sizeof(*data)); in sof_ipc3_bytes_put() 392 if (header.length > scontrol->max_size) { in sof_ipc3_bytes_ext_put() [all …]
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_devcaps.c | 62 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-6.6.21/net/sched/ |
D | sch_tbf.c | 101 u32 max_size; member 155 qopt.replace_params.max_size = q->max_size; in tbf_offload_change() 246 if (qdisc_pkt_len(skb) > q->max_size) { in tbf_enqueue() 248 skb_gso_validate_mac_len(skb, q->max_size)) in tbf_enqueue() 361 u64 max_size; in tbf_change() local 393 max_size = nla_get_u32(tb[TCA_TBF_BURST]); in tbf_change() 394 buffer = psched_l2t_ns(&rate, max_size); in tbf_change() 396 max_size = min_t(u64, psched_ns_t2l(&rate, buffer), ~0U); 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() [all …]
|
/linux-6.6.21/drivers/acpi/ |
D | custom_method.c | 26 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-6.6.21/net/core/ |
D | selftests.c | 27 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-6.6.21/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 156 size_t max_size = offsetof(struct wilco_ec_telem_request, args); in check_telem_request() local 163 max_size += sizeof(rq->args.get_log); in check_telem_request() 166 max_size += sizeof(rq->args.get_version); in check_telem_request() 169 max_size += sizeof(rq->args.get_fan_info); in check_telem_request() 172 max_size += sizeof(rq->args.get_diag_info); in check_telem_request() 175 max_size += sizeof(rq->args.get_temp_info); in check_telem_request() 178 max_size += sizeof(rq->args.get_temp_read); in check_telem_request() 181 max_size += sizeof(rq->args.get_batt_ext_info); in check_telem_request() 187 max_size += sizeof(rq->args.get_batt_ppid_info); in check_telem_request() 193 return (size <= max_size) ? 0 : -EMSGSIZE; in check_telem_request()
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/ |
D | sh_css_version.c | 24 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-6.6.21/drivers/base/regmap/ |
D | regmap-spi.c | 115 size_t max_size = spi_max_transfer_size(spi); in regmap_get_spi_bus() local 119 if (max_size != SIZE_MAX) { in regmap_get_spi_bus() 127 if (max_size + reg_reserve_size > max_msg_size) in regmap_get_spi_bus() 128 max_size -= reg_reserve_size; in regmap_get_spi_bus() 131 bus->max_raw_read = max_size; in regmap_get_spi_bus() 132 bus->max_raw_write = max_size; in regmap_get_spi_bus()
|
/linux-6.6.21/fs/btrfs/ |
D | lru_cache.c | 15 void btrfs_lru_cache_init(struct btrfs_lru_cache *cache, unsigned int max_size) in btrfs_lru_cache_init() argument 20 cache->max_size = max_size; in btrfs_lru_cache_init() 134 if (cache->max_size > 0 && cache->size == cache->max_size) { in btrfs_lru_cache_store()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | secvar-sysfs.c | 137 int rc = secvar_ops->max_size(&varsize); in update_kobj_size() 229 u64 max_size; in secvar_sysfs_init() local 282 secvar_ops->max_size(&max_size); in secvar_sysfs_init() 283 if (max_size > PAGE_SIZE) in secvar_sysfs_init() 285 PAGE_SIZE, max_size); in secvar_sysfs_init()
|
/linux-6.6.21/lib/ |
D | bucket_locks.c | 15 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()
|
D | test_rhashtable.c | 37 static int max_size = 0; variable 38 module_param(max_size, int, 0); 39 MODULE_PARM_DESC(max_size, "Maximum table size (default: calculated)"); 440 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max() 695 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init() 699 test_rht_params.max_size + 1)); in test_rht_init() 704 size, max_size, shrinking); in test_rht_init() 710 memset(objs, 0, test_rht_params.max_size * sizeof(struct test_obj)); in test_rht_init() 731 test_rht_params.max_size, test_rhashtable_max(objs, entries) == 0 ? in test_rht_init() 755 test_rht_params.max_size = max_size ? : in test_rht_init()
|
/linux-6.6.21/fs/ext4/ |
D | symlink.c | 32 unsigned int max_size; in ext4_encrypted_get_link() local 40 max_size = sizeof(EXT4_I(inode)->i_data); in ext4_encrypted_get_link() 50 max_size = inode->i_sb->s_blocksize; in ext4_encrypted_get_link() 53 paddr = fscrypt_get_symlink(inode, caddr, max_size, done); in ext4_encrypted_get_link()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 122 for (i = 0; i < table->max_size; i++) { in find_rl_entry() 188 table->rl_entry = kcalloc(table->max_size, sizeof(struct mlx5_rl_entry), in mlx5_rl_table_get() 196 for (i = 0; i < table->max_size; i++) in mlx5_rl_table_get() 221 for (i = 0; i < table->max_size; i++) in mlx5_rl_table_free() 248 if (!table->max_size) in mlx5_rl_add_rate_raw() 266 table->max_size); in mlx5_rl_add_rate_raw() 370 table->max_size = 0; in mlx5_init_rl_table() 377 table->max_size = MLX5_CAP_QOS(dev, packet_pacing_rate_table_size) - 1; in mlx5_init_rl_table() 382 table->max_size, in mlx5_init_rl_table()
|
/linux-6.6.21/arch/s390/appldata/ |
D | appldata_os.c | 165 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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | sdk.c | 64 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-6.6.21/include/media/ |
D | v4l2-rect.h | 45 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-6.6.21/drivers/gpio/ |
D | gpiolib-swnode.c | 21 size_t max_size) in swnode_format_propname() argument 29 snprintf(propname, max_size, "%s-gpios", con_id); in swnode_format_propname() 31 strscpy(propname, "gpios", max_size); in swnode_format_propname()
|
/linux-6.6.21/drivers/staging/most/dim2/ |
D | hal.c | 444 u16 const max_size = ((u16)CDT3_BD_ISOC_MASK + 1u) / ISOC_DBR_FACTOR; in check_packet_length() local 449 if (packet_length > max_size) in check_packet_length() 461 u16 const max_size = ((u16)CDT3_BD_MASK + 1u) >> bd_factor; in check_bytes_per_frame() local 466 if (bytes_per_frame > max_size) in check_bytes_per_frame() 474 u16 const max_size = (u16)ADT1_CTRL_ASYNC_BD_MASK + 1u; in dim_norm_ctrl_async_buffer_size() local 476 if (buf_size > max_size) in dim_norm_ctrl_async_buffer_size() 477 return max_size; in dim_norm_ctrl_async_buffer_size() 485 u16 const max_size = (u16)ADT1_ISOC_SYNC_BD_MASK + 1u; in norm_isoc_buffer_size() local 487 if (buf_size > max_size) in norm_isoc_buffer_size() 488 buf_size = max_size; in norm_isoc_buffer_size() [all …]
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 20 .max_size = HAL_REO_REO2SW1_RING_BASE_MSB_RING_SIZE, 32 .max_size = HAL_REO_REO2TCL_RING_BASE_MSB_RING_SIZE, 40 .max_size = HAL_REO_SW2REO_RING_BASE_MSB_RING_SIZE, 49 .max_size = HAL_REO_CMD_RING_BASE_MSB_RING_SIZE, 58 .max_size = HAL_REO_STATUS_RING_BASE_MSB_RING_SIZE, 67 .max_size = HAL_SW2TCL1_RING_BASE_MSB_RING_SIZE, 76 .max_size = HAL_SW2TCL1_CMD_RING_BASE_MSB_RING_SIZE, 85 .max_size = HAL_TCL_STATUS_RING_BASE_MSB_RING_SIZE, 93 .max_size = HAL_CE_SRC_RING_BASE_MSB_RING_SIZE, 101 .max_size = HAL_CE_DST_RING_BASE_MSB_RING_SIZE, [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | rqt.c | 17 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-6.6.21/arch/powerpc/include/asm/ |
D | secvar.h | 22 int (*max_size)(u64 *max_size); member
|
/linux-6.6.21/arch/x86/kernel/fpu/ |
D | init.c | 203 fpu_kernel_cfg.max_size = size; in fpu__init_system_xstate_size_legacy() 205 fpu_user_cfg.max_size = size; in fpu__init_system_xstate_size_legacy() 227 fpu__init_system_xstate(fpu_kernel_cfg.max_size); in fpu__init_system()
|