| /linux/drivers/clk/renesas/ |
| H A D | rzv2h-cpg-lib.c | 20 * @limits: Pointer to the structure containing the limits for the PLL parameters 34 bool rzv2h_cpg_get_pll_pars(const struct rzv2h_pll_limits *limits, in rzv2h_cpg_get_pll_pars() argument 37 unsigned long input_fref = limits->input_fref ?: (24 * MEGA); in rzv2h_cpg_get_pll_pars() 38 u64 fout_min_millihz = mul_u32_u32(limits->fout.min, MILLI); in rzv2h_cpg_get_pll_pars() 39 u64 fout_max_millihz = mul_u32_u32(limits->fout.max, MILLI); in rzv2h_cpg_get_pll_pars() 49 for (p.p = limits->p.min; p.p <= limits->p.max; p.p++) { in rzv2h_cpg_get_pll_pars() 53 for (divider = 1 << limits->s.min, p.s = limits->s.min; in rzv2h_cpg_get_pll_pars() 54 p.s <= limits->s.max; p.s++, divider <<= 1) { in rzv2h_cpg_get_pll_pars() 55 for (p.m = limits->m.min; p.m <= limits->m.max; p.m++) { in rzv2h_cpg_get_pll_pars() 79 * limits->k.min <= pll_k <= limits->k.max in rzv2h_cpg_get_pll_pars() [all …]
|
| /linux/drivers/net/ipa/ |
| H A D | ipa_resource.c | 35 /* We program at most 8 source or destination resource group limits */ in ipa_resource_limits_valid() 50 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 63 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 99 ylimits = group_count == 1 ? NULL : &resource->limits[1]; in ipa_resource_config_src() 101 &resource->limits[0], ylimits); in ipa_resource_config_src() 106 ylimits = group_count == 3 ? NULL : &resource->limits[3]; in ipa_resource_config_src() 108 &resource->limits[2], ylimits); in ipa_resource_config_src() 113 ylimits = group_count == 5 ? NULL : &resource->limits[5]; in ipa_resource_config_src() 115 &resource->limits[4], ylimits); in ipa_resource_config_src() 120 ylimits = group_count == 7 ? NULL : &resource->limits[7]; in ipa_resource_config_src() [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_link_bw.c | 47 * intel_link_bw_init_limits - initialize BW limits 49 * @limits: link BW limits 51 * Initialize @limits. 54 struct intel_link_bw_limits *limits) in intel_link_bw_init_limits() argument 59 limits->link_dsc_pipes = 0; in intel_link_bw_init_limits() 60 limits->bpp_limit_reached_pipes = 0; in intel_link_bw_init_limits() 69 limits->max_bpp_x16[pipe] = crtc_state->max_link_bpp_x16; in intel_link_bw_init_limits() 71 limits->link_dsc_pipes |= BIT(pipe); in intel_link_bw_init_limits() 73 limits->max_bpp_x16[pipe] = INT_MAX; in intel_link_bw_init_limits() 77 limits->max_bpp_x16[pipe] = min(limits->max_bpp_x16[pipe], forced_bpp_x16); in intel_link_bw_init_limits() [all …]
|
| H A D | intel_dp_mst.c | 446 const struct link_config_limits *limits) in mst_stream_compute_link_config() argument 457 if (!intel_dp_get_connector_max_link_config(connector, limits, &max_link_config)) in mst_stream_compute_link_config() 468 limits->link.min_bpp_x16, in mst_stream_compute_link_config() 469 limits->link.max_bpp_x16, in mst_stream_compute_link_config() 476 const struct link_config_limits *limits) in mst_stream_dsc_compute_link_config() argument 482 crtc_state->pipe_bpp = limits->pipe.max_bpp; in mst_stream_dsc_compute_link_config() 486 FXP_Q4_ARGS(limits->link.min_bpp_x16), FXP_Q4_ARGS(limits->link.max_bpp_x16)); in mst_stream_dsc_compute_link_config() 494 if (!intel_dp_get_connector_max_link_config(connector, limits, &max_link_config)) in mst_stream_dsc_compute_link_config() 501 limits in mst_stream_dsc_compute_link_config() 515 get_connector_max_rate(const struct intel_connector * connector,const struct link_config_limits * limits) get_connector_max_rate() argument 531 hblank_expansion_quirk_needs_dsc(const struct intel_connector * connector,const struct intel_crtc_state * crtc_state,const struct link_config_limits * limits) hblank_expansion_quirk_needs_dsc() argument 560 adjust_limits_for_dsc_hblank_expansion_quirk(struct intel_dp * intel_dp,const struct intel_connector * connector,const struct intel_crtc_state * crtc_state,struct link_config_limits * limits,bool dsc) adjust_limits_for_dsc_hblank_expansion_quirk() argument 621 mst_stream_compute_config_limits(struct intel_dp * intel_dp,struct drm_connector_state * conn_state,struct intel_crtc_state * crtc_state,bool dsc,struct link_config_limits * limits) mst_stream_compute_config_limits() argument 649 struct link_config_limits limits; mst_stream_compute_link_for_joined_pipes() local 870 intel_dp_mst_check_dsc_change(struct intel_atomic_state * state,struct drm_dp_mst_topology_mgr * mst_mgr,struct intel_link_bw_limits * limits) intel_dp_mst_check_dsc_change() argument 906 intel_dp_mst_check_bw(struct intel_atomic_state * state,struct drm_dp_mst_topology_mgr * mst_mgr,struct drm_dp_mst_topology_state * mst_state,struct intel_link_bw_limits * limits) intel_dp_mst_check_bw() argument 943 intel_dp_mst_atomic_check_link(struct intel_atomic_state * state,struct intel_link_bw_limits * limits) intel_dp_mst_atomic_check_link() argument [all...] |
| H A D | intel_dp_link_caps.c | 173 * User set maximum limits. These limits constrain the currently 471 * maximum link limits, and further narrowing them by removing any disabled 686 * intel_dp_link_caps_get_max_limits - get the current maximum link limits 688 * @max_link_limits: returned maximum link limits 690 * Return the current maximum rate and lane count limits in 693 * These limits constrain the set of allowed configurations. 695 * The limits are set to the maximum common supported values after 698 * parameters are independent limits, so the pair does not necessarily 732 * intel_dp_link_caps_set_max_limits - set the current maximum link limits 734 * @max_link_limits: new maximum link limits [all …]
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_main.c | 168 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim() 196 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim() 197 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim() 198 mdev->limits.mtu_cap = dev_lim->max_mtu; in mthca_dev_lim() 199 mdev->limits.gid_table_len = dev_lim->max_gids; in mthca_dev_lim() 200 mdev->limits.pkey_table_len = dev_lim->max_pkeys; in mthca_dev_lim() 201 mdev->limits.local_ca_ack_delay = dev_lim->local_ca_ack_delay; in mthca_dev_lim() 207 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim() 214 mdev->limits.max_wqes = dev_lim->max_qp_sz; in mthca_dev_lim() 215 mdev->limits.max_qp_init_rdma = dev_lim->max_requester_per_qp; in mthca_dev_lim() [all …]
|
| H A D | mthca_profile.c | 94 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile() 173 dev->limits.num_qps = profile[i].num; in mthca_make_profile() 178 dev->limits.num_eecs = profile[i].num; in mthca_make_profile() 183 dev->limits.num_srqs = profile[i].num; in mthca_make_profile() 188 dev->limits.num_cqs = profile[i].num; in mthca_make_profile() 199 dev->limits.num_eqs = profile[i].num; in mthca_make_profile() 212 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile() 213 dev->limits.num_amgms = profile[i].num >> 1; in mthca_make_profile() 220 dev->limits.num_mpts = profile[i].num; in mthca_make_profile() 226 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile() [all …]
|
| H A D | mthca_mr.c | 220 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt() 266 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt() 319 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg() 338 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg() 341 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg() 474 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc() 488 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc() 555 (dev->limits.num_mpts - 1)); in mthca_free_mr() 569 dev->limits.num_mpts, in mthca_init_mr_table() 570 ~0, dev->limits.reserved_mrws); in mthca_init_mr_table() [all …]
|
| H A D | mthca_srq.c | 215 if (attr->max_wr > dev->limits.max_srq_wqes || in mthca_alloc_srq() 216 attr->max_sge > dev->limits.max_srq_sge) in mthca_alloc_srq() 232 if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) in mthca_alloc_srq() 285 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq() 355 srq->srqn & (dev->limits.num_srqs - 1)); in mthca_free_srq() 437 srq = mthca_array_get(&dev->srq_table.srq, srqn & (dev->limits.num_srqs - 1)); in mthca_srq_event() 645 return dev->limits.max_sg; in mthca_max_srq_sge() 661 return min_t(int, dev->limits.max_sg, in mthca_max_srq_sge() 662 ((1 << (fls(dev->limits.max_desc_sz) - 1)) - in mthca_max_srq_sge() 677 dev->limits.num_srqs, in mthca_init_srq_table() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-axi-clkgen.c | 65 struct axi_clkgen_limits limits; member 131 static void axi_clkgen_calc_params(const struct axi_clkgen_limits *limits, in axi_clkgen_calc_params() argument 150 d_min = max(DIV_ROUND_UP(fin, limits->fpfd_max), 1); in axi_clkgen_calc_params() 151 d_max = min(fin / limits->fpfd_min, 80); in axi_clkgen_calc_params() 154 fvco_min_fract = limits->fvco_min << fract_shift; in axi_clkgen_calc_params() 155 fvco_max_fract = limits->fvco_max << fract_shift; in axi_clkgen_calc_params() 349 const struct axi_clkgen_limits *limits = &axi_clkgen->limits; in axi_clkgen_set_rate() local 357 axi_clkgen_calc_params(limits, parent_rate, rate, &d, &m, &dout); in axi_clkgen_set_rate() 398 const struct axi_clkgen_limits *limits = &axi_clkgen->limits; in axi_clkgen_determine_rate() local 402 axi_clkgen_calc_params(limits, req->best_parent_rate, req->rate, in axi_clkgen_determine_rate() [all …]
|
| /linux/drivers/accel/ivpu/ |
| H A D | ivpu_drv.c | 114 struct ivpu_user_limits *limits; in ivpu_user_limits_get() 116 limits = kzalloc_obj(*limits); in ivpu_user_limits_get() 117 if (!limits) in ivpu_user_limits_get() 120 kref_init(&limits->ref); in ivpu_user_limits_release() 121 atomic_set(&limits->db_count, 0); in ivpu_user_limits_release() 122 limits->vdev = vdev; in ivpu_user_limits_release() local 123 limits->uid = uid; in ivpu_user_limits_release() 127 limits->max_ctx_count = ivpu_get_context_count(vdev); in ivpu_user_limits_release() 128 limits in ivpu_user_limits_release() 72 struct ivpu_user_limits *limits; ivpu_user_limits_alloc() local 99 struct ivpu_user_limits *limits; ivpu_user_limits_get() local 131 ivpu_user_limits_put(struct ivpu_device * vdev,struct ivpu_user_limits * limits) ivpu_user_limits_put() argument 302 struct ivpu_user_limits *limits; ivpu_open() local [all...] |
| /linux/include/linux/ |
| H A D | blkdev.h | 364 * Flags automatically inherited when stacking limits. 415 /* atomic write limits */ 540 struct queue_limits limits; 618 * Protects queue limits and also sysfs attribute read_ahead_kb. 698 #define blk_queue_rot(q) ((q)->limits.features & BLK_FEAT_ROTATIONAL) 699 #define blk_queue_io_stat(q) ((q)->limits.features & BLK_FEAT_IO_STAT) 701 ((q)->limits.flags & BLK_FLAG_IOSTATS_PASSTHROUGH) 702 #define blk_queue_dax(q) ((q)->limits.features & BLK_FEAT_DAX) 703 #define blk_queue_pci_p2pdma(q) ((q)->limits.features & BLK_FEAT_PCI_P2PDMA) 719 ((q)->limits 537 struct queue_limits limits; global() member 1760 blk_atomic_write_start_sect_aligned(sector_t sector,struct queue_limits * limits) blk_atomic_write_start_sect_aligned() argument 1771 struct queue_limits *limits = &bd_queue->limits; bdev_can_atomic_write() local [all...] |
| /linux/security/apparmor/include/ |
| H A D | resource.h | 5 * This file contains AppArmor resource limits function definitions. 22 * @mask: which hard limits to set 23 * @limits: rlimit values that override task limits 26 * limits specified in @mask will be controlled by apparmor. 30 struct rlimit limits[RLIM_NLIMITS]; member
|
| /linux/block/ |
| H A D | blk-settings.c | 31 * blk_set_stacking_limits - set default limits for stacking devices 34 * Prepare queue limits for applying limits from underlying devices using 47 /* Inherit limits from component devices */ in blk_set_stacking_limits() 285 /* UINT_MAX indicates stacked limits in initial state */ in blk_validate_atomic_write_limits() 343 * Check that the limits in lim are valid, initialize defaults for unset 469 * might need to move out of stacking limits since we have immutable in blk_validate_limits() 498 * to set the limits. Once the transition is finished the check in blk_validate_limits() 518 /* atomics limits depend on integrity limits */ in blk_validate_limits() [all...] |
| H A D | blk.h | 22 * controlled by the block device driver, usually based on hardware limits. 234 return min(q->limits.max_discard_sectors, in blk_queue_get_max_sectors() 238 return min(q->limits.max_secure_erase_sectors, in blk_queue_get_max_sectors() 242 return q->limits.max_write_zeroes_sectors; in blk_queue_get_max_sectors() 245 return q->limits.atomic_write_max_sectors; in blk_queue_get_max_sectors() 247 return q->limits.max_sectors; in blk_queue_get_max_sectors() 281 return bvec_gap_to_prev(&req->q->limits, in integrity_req_gap_back_merge() 292 return bvec_gap_to_prev(&req->q->limits, in integrity_req_gap_front_merge() 349 * Plug flush limits 417 * __bio_split_to_limits - split a bio to fit the queue limits [all...] |
| /linux/Documentation/admin-guide/sysctl/ |
| H A D | user.rst | 15 limits on the number of namespaces and other objects that have 16 per user per user namespace limits. 18 The primary purpose of these limits is to stop programs that 21 intention that the defaults of these limits are set high enough that 22 no program in normal operation should run into these limits. 31 limits in the user namespaces of those users. 34 user namespace does not allow a user to escape their current limits.
|
| /linux/drivers/mfd/ |
| H A D | max14577.c | 42 * @limits: constraints for charger, matching the MBCICHWRC register 53 * - is always between <limits.min, limits.max>; 59 * is outside of given charger limits) and 'dst' is not set. 61 int maxim_charger_calc_reg_current(const struct maxim_charger_current *limits, in maxim_charger_calc_reg_current() argument 69 if (min_ua > limits->max || max_ua < limits->min) in maxim_charger_calc_reg_current() 72 if (max_ua < limits->high_start) { in maxim_charger_calc_reg_current() 81 /* max_ua is in range: <high_start, infinite>, cut it to limits.max */ in maxim_charger_calc_reg_current() 82 max_ua = min(limits->max, max_ua); in maxim_charger_calc_reg_current() 83 max_ua -= limits->high_start; in maxim_charger_calc_reg_current() 86 * - max_ua >= limits.high_start in maxim_charger_calc_reg_current() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | therm_adt746x.c | 80 u8 limits[3]; member 216 " limits: %d,%d,%d;" in display_stats() 219 th->limits[0], th->limits[1], th->limits[2], in display_stats() 237 int var = th->temps[i] - th->limits[i]; in update_fans_speed() 314 th->limits[i] = default_limits_chip[i] + limit_adjust; in set_limit() 315 write_reg(th, LIMIT_REG[i], th->limits[i]); in set_limit() 317 /* set our limits to normal */ in set_limit() 318 th->limits[i] = default_limits_local[i] + limit_adjust; in set_limit() 357 printk(KERN_INFO "Adjusting limits by %d degrees\n", val); \ 378 BUILD_SHOW_FUNC_INT(sensor1_limit, th->limits[1]) [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | lm77.rst | 27 The LM77 implements 3 limits: low (temp1_min), high (temp1_max) and 29 applies to all 3 limits. The relative difference is stored in a single 31 the limit and its hysteresis is always the same for all 3 limits. 44 hysteresis applies automatically to the low and high limits. 45 * The limits should be set before the hysteresis.
|
| /linux/drivers/clk/sophgo/ |
| H A D | clk-sg2044-pll.c | 73 const struct sg2044_pll_limit *limits; member 165 static int sg2042_pll_compute_postdiv(const struct sg2044_pll_limit *limits, in sg2042_pll_compute_postdiv() argument 177 for_each_pll_limit_range(div2, &limits[PLL_LIMIT_POSTDIV2]) { in sg2042_pll_compute_postdiv() 178 for_each_pll_limit_range(div1, &limits[PLL_LIMIT_POSTDIV1]) { in sg2042_pll_compute_postdiv() 207 static int sg2044_compute_pll_setting(const struct sg2044_pll_limit *limits, in sg2044_compute_pll_setting() argument 217 for_each_pll_limit_range(fbdiv, &limits[PLL_LIMIT_FBDIV]) { in sg2044_compute_pll_setting() 218 for_each_pll_limit_range(refdiv, &limits[PLL_LIMIT_REFDIV]) { in sg2044_compute_pll_setting() 221 if (!sg2044_clk_fit_limit(vco, &limits[PLL_LIMIT_FOUTVCO])) in sg2044_compute_pll_setting() 224 ret = sg2042_pll_compute_postdiv(limits, in sg2044_compute_pll_setting() 268 target = clamp(req->rate, pll->pll.limits[PLL_LIMIT_FOUT].min, in sg2044_pll_determine_rate() [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | intel_ips.c | 246 /* Per-SKU limits */ 321 struct ips_mcp_limits *limits; member 400 * as low as the platform limits will allow (though we could go lower there 590 * mcp_exceeded - check whether we're outside our thermal & power limits 620 * cpu_exceeded - check whether a CPU core is outside its limits 636 if (avg > (ips->limits->core_temp_limit * 100)) in cpu_exceeded() 662 if (ips->mch_avg_temp > (ips->limits->mch_temp_limit * 100)) in mch_exceeded() 672 * verify_limits - verify BIOS provided limits 675 * BIOS can optionally provide non-default limits for power and temp. Check 681 if (ips->mcp_power_limit < ips->limits->mcp_power_limit || in verify_limits() [all …]
|
| H A D | asus-armoury.c | 862 * @limits: Pointer to the power_limits structure containing limit values 865 * It returns false if limits is NULL or if the corresponding limit value is zero. 869 static bool has_valid_limit(const char *name, const struct power_limits *limits) in has_valid_limit() argument 873 if (!limits) in has_valid_limit() 877 limit_value = limits->ppt_pl1_spl_max; in has_valid_limit() 879 limit_value = limits->ppt_pl2_sppt_max; in has_valid_limit() 881 limit_value = limits->ppt_pl3_fppt_max; in has_valid_limit() 883 limit_value = limits->ppt_apu_sppt_max; in has_valid_limit() 885 limit_value = limits->ppt_platform_sppt_max; in has_valid_limit() 887 limit_value = limits->nv_dynamic_boost_max; in has_valid_limit() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | dqblk_xfs.h | 37 #define Q_XGETQUOTA XQM_CMD(3) /* get disk limits and usage */ 38 #define Q_XSETQLIM XQM_CMD(4) /* set disk limits */ 43 #define Q_XGETNEXTQUOTA XQM_CMD(9) /* get disk limits and usage >= ID */ 64 __s32 d_itimer; /* Zero if within inode limits. If 96 * automatically started and stopped. Superusers timer values set the limits 109 * below the soft limit). Superusers warning values set the warning limits 138 #define FS_QUOTA_UDQ_ENFD (1<<1) /* user quota limits enforcement */ 140 #define FS_QUOTA_GDQ_ENFD (1<<3) /* group quota limits enforcement */ 142 #define FS_QUOTA_PDQ_ENFD (1<<5) /* project quota limits enforcement */
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | selection-api-configuration.rst | 10 settings and hardware limits. 17 the source and the sink may have arbitrary upper and lower size limits. 50 The composing targets refer to a memory buffer. The limits of composing 61 to the bounding limits. Moreover, the driver can perform other 90 to be inserted into a video signal or graphical screen. The limits of 112 driver must adjust the area to fit to the bounding limits. Moreover, the
|
| /linux/mm/ |
| H A D | shmem_quota.c | 8 * can lose valuable information, user provided limits, because there is 40 * before the soft limits are treated as hard limits (usually resulting 68 * set limits in shmem_read_file_info() 166 * Load dquot with limits from existing entry, or create the new entry if in shmem_acquire_dquot() 219 /* Load the stored limits from the tree */ in shmem_acquire_dquot() 266 * Store limits from dquot in the tree unless it's fake. If it is fake in shmem_release_dquot() 308 /* Store the limits in the tree */ in shmem_release_dquot()
|