Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-5.10/drivers/media/i2c/
Daptina-pll.c17 const struct aptina_pll_limits *limits, in aptina_pll_calculate() argument
30 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate()
31 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate()
36 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate()
56 mf_min = DIV_ROUND_UP(limits->m_min, pll->m); in aptina_pll_calculate()
57 mf_min = max(mf_min, limits->out_clock_min / in aptina_pll_calculate()
58 (pll->ext_clock / limits->n_min * pll->m)); in aptina_pll_calculate()
59 mf_min = max(mf_min, limits->n_min * limits->p1_min / div); in aptina_pll_calculate()
60 mf_max = limits->m_max / pll->m; in aptina_pll_calculate()
61 mf_max = min(mf_max, limits->out_clock_max / in aptina_pll_calculate()
[all …]
Dsmiapp-pll.c78 const struct smiapp_pll_limits *limits, in check_all_bounds() argument
86 limits->min_pll_ip_freq_hz, in check_all_bounds()
87 limits->max_pll_ip_freq_hz, in check_all_bounds()
92 limits->min_pll_multiplier, limits->max_pll_multiplier, in check_all_bounds()
97 limits->min_pll_op_freq_hz, limits->max_pll_op_freq_hz, in check_all_bounds()
127 limits->vt.min_sys_clk_freq_hz, in check_all_bounds()
128 limits->vt.max_sys_clk_freq_hz, in check_all_bounds()
133 limits->vt.min_pix_clk_freq_hz, in check_all_bounds()
134 limits->vt.max_pix_clk_freq_hz, in check_all_bounds()
152 struct device *dev, const struct smiapp_pll_limits *limits, in __smiapp_pll_calculate() argument
[all …]
/kernel/linux/linux-5.10/block/
Dblk-settings.c116 q->limits.bounce_pfn = max(max_low_pfn, b_pfn); in blk_queue_bounce_limit()
120 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
125 q->limits.bounce_pfn = b_pfn; in blk_queue_bounce_limit()
151 struct queue_limits *limits = &q->limits; in blk_queue_max_hw_sectors() local
160 limits->max_hw_sectors = max_hw_sectors; in blk_queue_max_hw_sectors()
161 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
163 limits->max_sectors = max_sectors; in blk_queue_max_hw_sectors()
182 q->limits.chunk_sectors = chunk_sectors; in blk_queue_chunk_sectors()
194 q->limits.max_hw_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
195 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors()
[all …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dipa_data-sdm845.c147 .limits[0] = {
151 .limits[1] = {
158 .limits[0] = {
162 .limits[1] = {
169 .limits[0] = {
173 .limits[1] = {
180 .limits[0] = {
184 .limits[1] = {
191 .limits[0] = {
195 .limits[1] = {
[all …]
Dipa_data-sc7180.c135 .limits[0] = {
142 .limits[0] = {
149 .limits[0] = {
156 .limits[0] = {
163 .limits[0] = {
173 .limits[0] = {
180 .limits[0] = {
Dipa_main.c403 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
412 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid()
450 &resource->limits[0], &resource->limits[1]); in ipa_resource_config_src_01()
459 &resource->limits[2], &resource->limits[3]); in ipa_resource_config_src_23()
468 &resource->limits[0], &resource->limits[1]); in ipa_resource_config_dst_01()
477 &resource->limits[2], &resource->limits[3]); in ipa_resource_config_dst_23()
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dmptcp_join.sh423 ip netns exec $ns2 ./pm_nl_ctl limits 0 1
430 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
431 ip netns exec $ns2 ./pm_nl_ctl limits 0 1
438 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
439 ip netns exec $ns2 ./pm_nl_ctl limits 0 2
447 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
448 ip netns exec $ns2 ./pm_nl_ctl limits 0 2
463 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
464 ip netns exec $ns2 ./pm_nl_ctl limits 1 1
476 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
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 …]
Dmthca_profile.c96 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile()
175 dev->limits.num_qps = profile[i].num; in mthca_make_profile()
180 dev->limits.num_eecs = profile[i].num; in mthca_make_profile()
185 dev->limits.num_srqs = profile[i].num; in mthca_make_profile()
190 dev->limits.num_cqs = profile[i].num; in mthca_make_profile()
201 dev->limits.num_eqs = profile[i].num; in mthca_make_profile()
214 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile()
215 dev->limits.num_amgms = profile[i].num >> 1; in mthca_make_profile()
222 dev->limits.num_mpts = profile[i].num; in mthca_make_profile()
228 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile()
[all …]
Dmthca_mr.c223 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt()
269 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt()
322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
341 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg()
344 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg()
478 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc()
492 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc()
559 (dev->limits.num_mpts - 1)); in mthca_free_mr()
573 dev->limits.num_mpts, in mthca_init_mr_table()
574 ~0, dev->limits.reserved_mrws); in mthca_init_mr_table()
[all …]
Dmthca_provider.c97 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
98 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device()
99 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device()
100 props->max_send_sge = mdev->limits.max_sg; in mthca_query_device()
101 props->max_recv_sge = mdev->limits.max_sg; in mthca_query_device()
102 props->max_sge_rd = mdev->limits.max_sg; in mthca_query_device()
103 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device()
104 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device()
105 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; in mthca_query_device()
106 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device()
[all …]
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()
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 …]
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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c543 minfo->limits.pixel.vcomax = maxdac; in parse_pins1()
555 minfo->limits.pixel.vcomax = 220000; in default_pins1()
564 minfo->limits.pixel.vcomax = in parse_pins2()
565 minfo->limits.system.vcomax = (bd->pins[41] == 0xFF) ? 230000 : ((bd->pins[41] + 100) * 1000); in parse_pins2()
578 minfo->limits.pixel.vcomax = in default_pins2()
579 minfo->limits.system.vcomax = 230000; in default_pins2()
588 minfo->limits.pixel.vcomax = in parse_pins3()
589 minfo->limits.system.vcomax = (bd->pins[36] == 0xFF) ? 230000 : ((bd->pins[36] + 100) * 1000); in parse_pins3()
606 minfo->limits.pixel.vcomax = in default_pins3()
607 minfo->limits.system.vcomax = 230000; in default_pins3()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dblkdev.h506 struct queue_limits limits; member
722 return q->limits.zoned; in blk_queue_zoned_model()
739 return blk_queue_is_zoned(q) ? q->limits.chunk_sectors : 0; in blk_queue_zone_sectors()
753 return sector >> ilog2(q->limits.chunk_sectors); in blk_queue_zone_no()
1078 return min(q->limits.max_discard_sectors, in blk_queue_get_max_sectors()
1082 return q->limits.max_write_same_sectors; in blk_queue_get_max_sectors()
1085 return q->limits.max_write_zeroes_sectors; in blk_queue_get_max_sectors()
1087 return q->limits.max_sectors; in blk_queue_get_max_sectors()
1099 if (q->limits.chunk_sectors) in blk_max_size_offset()
1100 chunk_sectors = q->limits.chunk_sectors; in blk_max_size_offset()
[all …]
/kernel/linux/linux-5.10/drivers/macintosh/
Dtherm_adt746x.c79 u8 limits[3]; member
218 th->limits[0], th->limits[1], th->limits[2], in display_stats()
236 int var = th->temps[i] - th->limits[i]; in update_fans_speed()
313 th->limits[i] = default_limits_chip[i] + limit_adjust; in set_limit()
314 write_reg(th, LIMIT_REG[i], th->limits[i]); in set_limit()
317 th->limits[i] = default_limits_local[i] + limit_adjust; in set_limit()
377 BUILD_SHOW_FUNC_INT(sensor1_limit, th->limits[1])
378 BUILD_SHOW_FUNC_INT(sensor2_limit, th->limits[2])
534 th->initial_limits[2], th->limits[0], th->limits[1], in probe_thermostat()
535 th->limits[2]); in probe_thermostat()
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/sysctl/
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.
/kernel/linux/linux-5.10/Documentation/hwmon/
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.
Demc1403.rst61 The chips implement three limits for each sensor: low (tempX_min), high
63 hysteresis mechanism which applies to all limits. The relative difference
66 all three limits.
79 hysteresis applies automatically to all other limits.
80 * The limits should be set before the hysteresis.
/kernel/linux/linux-5.10/drivers/md/
Ddm-table.c246 struct queue_limits *limits = data; in device_area_is_invalid() local
251 limits->logical_block_size >> SECTOR_SHIFT; in device_area_is_invalid()
308 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
317 limits->logical_block_size, bdevname(bdev, b)); in device_area_is_invalid()
426 struct queue_limits *limits = data; in dm_set_device_limits() local
437 if (blk_stack_limits(limits, &q->limits, in dm_set_device_limits()
443 q->limits.physical_block_size, in dm_set_device_limits()
444 q->limits.logical_block_size, in dm_set_device_limits()
445 q->limits.alignment_offset, in dm_set_device_limits()
596 struct queue_limits *limits) in validate_hardware_logical_block_alignment() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c243 if (copy_to_user((void __user *)ptr, format->limits, in exynos_drm_ipp_get_limits_ioctl()
244 sizeof(*format->limits) * format->num_limits)) in exynos_drm_ipp_get_limits_ioctl()
429 static void __get_size_limit(const struct drm_exynos_ipp_limit *limits, in __get_size_limit() argument
433 const struct drm_exynos_ipp_limit *l = limits; in __get_size_limit()
438 for (l = limits; l - limits < num_limits; l++) { in __get_size_limit()
475 const struct drm_exynos_ipp_limit *limits, unsigned int num_limits, in exynos_drm_ipp_check_size_limits() argument
483 if (!limits) in exynos_drm_ipp_check_size_limits()
486 __get_size_limit(limits, num_limits, IPP_LIMIT_BUFFER, &l); in exynos_drm_ipp_check_size_limits()
495 __get_size_limit(limits, num_limits, id, &l); in exynos_drm_ipp_check_size_limits()
522 const struct drm_exynos_ipp_limit *limits, in exynos_drm_ipp_check_scale_limits() argument
[all …]
/kernel/linux/linux-5.10/drivers/regulator/
Dmax14577-regulator.c41 const struct maxim_charger_current *limits = in max14577_reg_get_current_limit() local
50 return limits->min; in max14577_reg_get_current_limit()
54 return limits->high_start + reg_data * limits->high_step; in max14577_reg_get_current_limit()
63 const struct maxim_charger_current *limits = in max14577_reg_set_current_limit() local
69 ret = maxim_charger_calc_reg_current(limits, min_uA, max_uA, &reg_data); in max14577_reg_set_current_limit()
/kernel/linux/linux-5.10/drivers/media/i2c/smiapp/
Dsmiapp-quirk.c47 sensor->limits[limit] = val; in smiapp_replace_limit()
103 .limits = jt8ew9_limits,
215 .limits = jt8ev1_limits,
230 .limits = tcm8500md_limits,
/kernel/linux/linux-5.10/drivers/platform/x86/
Dintel_ips.c320 struct ips_mcp_limits *limits; member
631 if (avg > (ips->limits->core_temp_limit * 100)) in cpu_exceeded()
655 if (ips->mch_avg_temp > (ips->limits->mch_temp_limit * 100)) in mch_exceeded()
674 if (ips->mcp_power_limit < ips->limits->mcp_power_limit || in verify_limits()
676 ips->mcp_power_limit = ips->limits->mcp_power_limit; in verify_limits()
678 if (ips->mcp_temp_limit < ips->limits->core_temp_limit || in verify_limits()
679 ips->mcp_temp_limit < ips->limits->mch_temp_limit || in verify_limits()
681 ips->mcp_temp_limit = min(ips->limits->core_temp_limit, in verify_limits()
682 ips->limits->mch_temp_limit); in verify_limits()
1303 struct ips_mcp_limits *limits = NULL; in ips_detect_cpu() local
[all …]

12345678910>>...19