Home
last modified time | relevance | path

Searched refs:limits (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/linux/drivers/net/ipa/
H A Dipa_resource.c50 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()
122 &resource->limits[6], ylimits); in ipa_resource_config_src()
[all …]
/linux/drivers/clk/renesas/
H A Drzv2h-cpg-lib.c34 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()
118 if (pll_k < limits->k.min || in rzv2h_cpg_get_pll_pars()
119 pll_k > limits->k.max) in rzv2h_cpg_get_pll_pars()
[all …]
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_main.c168 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 Dmthca_profile.c94 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 Dmthca_mr.c220 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 Dmthca_srq.c215 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 …]
H A Dmthca_uar.c59 dev->limits.num_uars, in mthca_init_uar_table()
60 dev->limits.num_uars - 1, in mthca_init_uar_table()
61 dev->limits.reserved_uars + 1); in mthca_init_uar_table()
H A Dmthca_qp.c245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
317 param.port_width = dev->limits.port_width_cap; in init_port()
318 param.vl_cap = dev->limits.vl_cap; in init_port()
319 param.mtu_cap = dev->limits.mtu_cap; in init_port()
320 param.gid_cap = dev->limits.gid_table_len; in init_port()
321 param.pkey_cap = dev->limits.pkey_table_len; in init_port()
405 if (port_num == 0 || port_num > dev->limits.num_ports) in to_rdma_ah_attr()
423 (dev->limits.gid_table_len - 1), in to_rdma_ah_attr()
533 if (grh->sgid_index >= dev->limits.gid_table_len) { in mthca_path_set()
536 dev->limits.gid_table_len - 1); in mthca_path_set()
[all …]
H A Dmthca_mcg.c205 BUG_ON(index < dev->limits.num_mgms); in mthca_multicast_attach()
285 BUG_ON(amgm_index_to_free < dev->limits.num_mgms); in mthca_multicast_detach()
304 BUG_ON(index < dev->limits.num_mgms); in mthca_multicast_detach()
318 int table_size = dev->limits.num_mgms + dev->limits.num_amgms; in mthca_init_mcg_table()
323 dev->limits.num_mgms); in mthca_init_mcg_table()
/linux/drivers/clk/
H A Dclk-axi-clkgen.c65 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/gpu/drm/i915/display/
H A Dintel_link_bw.c54 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()
102 struct intel_link_bw_limits *limits, in __intel_link_bw_reduce_bpp() argument
116 if (limits->bpp_limit_reached_pipes & BIT(crtc->pipe)) in __intel_link_bw_reduce_bpp()
148 limits->max_bpp_x16[max_bpp_pipe] = max_bpp_x16 - 1; in __intel_link_bw_reduce_bpp()
[all …]
H A Dintel_dp_mst.c446 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->link.min_bpp_x16, in mst_stream_dsc_compute_link_config()
502 limits->link.max_bpp_x16, in mst_stream_dsc_compute_link_config()
[all …]
H A Dintel_dp.c1711 const struct link_config_limits *limits) in intel_dp_compute_link_config_wide() argument
1721 for (bpp = fxp_q4_to_int(limits->link.max_bpp_x16); in intel_dp_compute_link_config_wide()
1722 bpp >= fxp_q4_to_int(limits->link.min_bpp_x16); in intel_dp_compute_link_config_wide()
1729 intel_dp_link_caps_iter_start(&iter, link_caps, order, limits->link_config_filter); in intel_dp_compute_link_config_wide()
1951 const struct link_config_limits *limits, in dsc_compute_link_config() argument
1963 intel_dp_link_caps_iter_start(&iter, link_caps, order, limits->link_config_filter); in dsc_compute_link_config()
2214 const struct link_config_limits *limits, in dsc_compute_compressed_bpp() argument
2223 min_bpp_x16 = limits->link.min_bpp_x16; in dsc_compute_compressed_bpp()
2224 max_bpp_x16 = limits->link.max_bpp_x16; in dsc_compute_compressed_bpp()
2238 if (!intel_dp_get_connector_max_link_config(connector, limits, &max_link_config)) in dsc_compute_compressed_bpp()
[all …]
/linux/include/linux/
H A Dblkdev.h537 struct queue_limits limits; member
695 #define blk_queue_rot(q) ((q)->limits.features & BLK_FEAT_ROTATIONAL)
696 #define blk_queue_io_stat(q) ((q)->limits.features & BLK_FEAT_IO_STAT)
698 ((q)->limits.flags & BLK_FLAG_IOSTATS_PASSTHROUGH)
699 #define blk_queue_dax(q) ((q)->limits.features & BLK_FEAT_DAX)
700 #define blk_queue_pci_p2pdma(q) ((q)->limits.features & BLK_FEAT_PCI_P2PDMA)
716 ((q)->limits.features & BLK_FEAT_SKIP_TAGSET_QUIESCE)
753 (q->limits.features & BLK_FEAT_ZONED); in blk_queue_is_zoned()
760 return sector >> ilog2(disk->queue->limits.chunk_sectors); in disk_zone_no()
765 return bdev->bd_disk->queue->limits.max_open_zones; in bdev_max_open_zones()
[all …]
/linux/drivers/accel/ivpu/
H A Divpu_drv.c72 struct ivpu_user_limits *limits; in ivpu_user_limits_alloc() local
74 limits = kzalloc_obj(*limits); in ivpu_user_limits_alloc()
75 if (!limits) in ivpu_user_limits_alloc()
78 kref_init(&limits->ref); in ivpu_user_limits_alloc()
79 atomic_set(&limits->db_count, 0); in ivpu_user_limits_alloc()
80 limits->vdev = vdev; in ivpu_user_limits_alloc()
81 limits->uid = uid; in ivpu_user_limits_alloc()
85 limits->max_ctx_count = ivpu_get_context_count(vdev); in ivpu_user_limits_alloc()
86 limits->max_db_count = ivpu_get_doorbell_count(vdev); in ivpu_user_limits_alloc()
88 limits->max_ctx_count = ivpu_get_context_count(vdev) / 2; in ivpu_user_limits_alloc()
[all …]
/linux/drivers/macintosh/
H A Dtherm_adt746x.c80 u8 limits[3]; member
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()
318 th->limits[i] = default_limits_local[i] + limit_adjust; in set_limit()
378 BUILD_SHOW_FUNC_INT(sensor1_limit, th->limits[1])
379 BUILD_SHOW_FUNC_INT(sensor2_limit, th->limits[2])
535 th->initial_limits[2], th->limits[0], th->limits[1], in probe_thermostat()
536 th->limits[2]); in probe_thermostat()
[all …]
/linux/drivers/clk/sophgo/
H A Dclk-sg2044-pll.c73 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/Documentation/admin-guide/sysctl/
H A Duser.rst15 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/Documentation/hwmon/
H A Dlm77.rst27 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/platform/x86/
H A Dintel_ips.c321 struct ips_mcp_limits *limits; member
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()
681 if (ips->mcp_power_limit < ips->limits->mcp_power_limit || in verify_limits()
683 ips->mcp_power_limit = ips->limits->mcp_power_limit; in verify_limits()
685 if (ips->mcp_temp_limit < ips->limits->core_temp_limit || in verify_limits()
686 ips->mcp_temp_limit < ips->limits->mch_temp_limit || in verify_limits()
688 ips->mcp_temp_limit = min(ips->limits->core_temp_limit, in verify_limits()
689 ips->limits->mch_temp_limit); in verify_limits()
1285 struct ips_mcp_limits *limits = NULL; in ips_detect_cpu() local
[all …]
H A Dasus-armoury.c869 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()
889 limit_value = limits->nv_temp_target_max; in has_valid_limit()
892 limit_value = limits->nv_tgp_max; in has_valid_limit()
[all …]
/linux/drivers/md/
H A Ddm-inlinecrypt.c583 struct queue_limits *limits) in inlinecrypt_io_hints() argument
588 limits->logical_block_size = in inlinecrypt_io_hints()
589 max_t(unsigned int, limits->logical_block_size, sector_size); in inlinecrypt_io_hints()
590 limits->physical_block_size = in inlinecrypt_io_hints()
591 max_t(unsigned int, limits->physical_block_size, sector_size); in inlinecrypt_io_hints()
592 limits->io_min = max_t(unsigned int, limits->io_min, sector_size); in inlinecrypt_io_hints()
593 limits->dma_alignment = limits->logical_block_size - 1; in inlinecrypt_io_hints()
/linux/include/linux/clk/
H A Drenesas.h193 bool rzv2h_cpg_get_pll_pars(const struct rzv2h_pll_limits *limits,
196 bool rzv2h_cpg_get_pll_divs_pars(const struct rzv2h_pll_limits *limits,
200 static inline bool rzv2h_cpg_get_pll_pars(const struct rzv2h_pll_limits *limits, in rzv2h_cpg_get_pll_pars() argument
207 static inline bool rzv2h_cpg_get_pll_divs_pars(const struct rzv2h_pll_limits *limits, in rzv2h_cpg_get_pll_divs_pars() argument
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c384 ATOM_PPLIB_VCE_Clock_Voltage_Limit_Table *limits = in amdgpu_parse_extended_power_table() local
394 1 + (limits->numEntries * sizeof(ATOM_PPLIB_VCE_Clock_Voltage_Limit_Record))); in amdgpu_parse_extended_power_table()
398 u32 size = limits->numEntries * in amdgpu_parse_extended_power_table()
405 limits->numEntries; in amdgpu_parse_extended_power_table()
406 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
408 for (i = 0; i < limits->numEntries; i++) { in amdgpu_parse_extended_power_table()
445 ATOM_PPLIB_UVD_Clock_Voltage_Limit_Table *limits = in amdgpu_parse_extended_power_table() local
451 u32 size = limits->numEntries * in amdgpu_parse_extended_power_table()
458 limits->numEntries; in amdgpu_parse_extended_power_table()
459 entry = &limits->entries[0]; in amdgpu_parse_extended_power_table()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_offload.c393 if (!sa_entry->limits.soft_limit_hit && in mlx5e_ipsec_handle_limits()
394 sa_entry->limits.round == attrs->lft.numb_rounds_soft) { in mlx5e_ipsec_handle_limits()
395 sa_entry->limits.soft_limit_hit = true; in mlx5e_ipsec_handle_limits()
399 if (sa_entry->limits.round == attrs->lft.numb_rounds_hard) in mlx5e_ipsec_handle_limits()
416 sa_entry->limits.fix_limit = true; in mlx5e_ipsec_handle_limits()
420 sa_entry->limits.fix_limit = true; in mlx5e_ipsec_handle_limits()
424 if (sa_entry->limits.round == attrs->lft.numb_rounds_hard) { in mlx5e_ipsec_handle_limits()
431 sa_entry->limits.round++; in mlx5e_ipsec_handle_limits()
432 if (sa_entry->limits.round == attrs->lft.numb_rounds_soft) in mlx5e_ipsec_handle_limits()
435 if (sa_entry->limits.fix_limit) { in mlx5e_ipsec_handle_limits()
[all …]

12345678910>>...14