Home
last modified time | relevance | path

Searched refs:lim (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.1.9/block/
Dblk-settings.c34 void blk_set_default_limits(struct queue_limits *lim) in blk_set_default_limits() argument
36 lim->max_segments = BLK_MAX_SEGMENTS; in blk_set_default_limits()
37 lim->max_discard_segments = 1; in blk_set_default_limits()
38 lim->max_integrity_segments = 0; in blk_set_default_limits()
39 lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; in blk_set_default_limits()
40 lim->virt_boundary_mask = 0; in blk_set_default_limits()
41 lim->max_segment_size = BLK_MAX_SEGMENT_SIZE; in blk_set_default_limits()
42 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
43 lim->max_dev_sectors = 0; in blk_set_default_limits()
44 lim->chunk_sectors = 0; in blk_set_default_limits()
[all …]
Dblk-merge.c103 static unsigned int bio_allowed_max_sectors(struct queue_limits *lim) in bio_allowed_max_sectors() argument
105 return round_down(UINT_MAX, lim->logical_block_size) >> SECTOR_SHIFT; in bio_allowed_max_sectors()
108 static struct bio *bio_split_discard(struct bio *bio, struct queue_limits *lim, in bio_split_discard() argument
118 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard()
121 min(lim->max_discard_sectors, bio_allowed_max_sectors(lim)); in bio_split_discard()
139 ((lim->discard_alignment >> 9) % granularity); in bio_split_discard()
149 struct queue_limits *lim, unsigned *nsegs, struct bio_set *bs) in bio_split_write_zeroes() argument
152 if (!lim->max_write_zeroes_sectors) in bio_split_write_zeroes()
154 if (bio_sectors(bio) <= lim->max_write_zeroes_sectors) in bio_split_write_zeroes()
156 return bio_split(bio, lim->max_write_zeroes_sectors, GFP_NOIO, bs); in bio_split_write_zeroes()
[all …]
Dblk.h107 static inline bool __bvec_gap_to_prev(struct queue_limits *lim, in __bvec_gap_to_prev() argument
110 return (offset & lim->virt_boundary_mask) || in __bvec_gap_to_prev()
111 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev()
118 static inline bool bvec_gap_to_prev(struct queue_limits *lim, in bvec_gap_to_prev() argument
121 if (!lim->virt_boundary_mask) in bvec_gap_to_prev()
123 return __bvec_gap_to_prev(lim, bprv, offset); in bvec_gap_to_prev()
300 struct queue_limits *lim) in bio_may_exceed_limits() argument
319 return lim->chunk_sectors || bio->bi_vcnt != 1 || in bio_may_exceed_limits()
323 struct bio *__bio_split_to_limits(struct bio *bio, struct queue_limits *lim,
334 void blk_set_default_limits(struct queue_limits *lim);
/linux-6.1.9/drivers/media/i2c/
Dccs-pll.c152 const struct ccs_pll_limits *lim, in check_fr_bounds() argument
161 lim_fr = &lim->op_fr; in check_fr_bounds()
164 lim_fr = &lim->vt_fr; in check_fr_bounds()
192 const struct ccs_pll_limits *lim, in check_bk_bounds() argument
204 lim_bk = &lim->op_bk; in check_bk_bounds()
207 lim_bk = &lim->vt_bk; in check_bk_bounds()
251 ccs_pll_find_vt_sys_div(struct device *dev, const struct ccs_pll_limits *lim, in ccs_pll_find_vt_sys_div() argument
260 *min_sys_div = lim->vt_bk.min_sys_clk_div; in ccs_pll_find_vt_sys_div()
264 lim->vt_bk.max_pix_clk_div)); in ccs_pll_find_vt_sys_div()
268 / lim->vt_bk.max_sys_clk_freq_hz); in ccs_pll_find_vt_sys_div()
[all …]
/linux-6.1.9/tools/lib/
Dbitmap.c10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local
12 for (k = 0; k < lim; k++) in __bitmap_weight()
64 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and() local
67 for (k = 0; k < lim; k++) in __bitmap_and()
78 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local
79 for (k = 0; k < lim; ++k) in __bitmap_equal()
93 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects() local
94 for (k = 0; k < lim; ++k) in __bitmap_intersects()
/linux-6.1.9/tools/include/nolibc/
Dstdlib.h225 unsigned long lim; in utoa_r() local
231 for (dig = 0, lim = 1; dig < pos; dig++) in utoa_r()
232 lim *= 10; in utoa_r()
234 if (digits || in >= lim || !pos) { in utoa_r()
235 for (dig = 0; in >= lim; dig++) in utoa_r()
236 in -= lim; in utoa_r()
361 unsigned long long lim; in u64toa_r() local
367 for (dig = 0, lim = 1; dig < pos; dig++) in u64toa_r()
368 lim *= 10; in u64toa_r()
370 if (digits || in >= lim || !pos) { in u64toa_r()
[all …]
/linux-6.1.9/drivers/dma/dw-edma/
Ddw-edma-v0-debugfs.c47 } lim[2][EDMA_V0_MAX_NR_CH]; variable
65 if (lim[0][ch].start >= reg && reg < lim[0][ch].end) { in dw_edma_debugfs_u32_get()
66 ptr += (reg - lim[0][ch].start); in dw_edma_debugfs_u32_get()
71 if (lim[1][ch].start >= reg && reg < lim[1][ch].end) { in dw_edma_debugfs_u32_get()
72 ptr += (reg - lim[1][ch].start); in dw_edma_debugfs_u32_get()
191 lim[0][i].start = &regs->type.unroll.ch[i].wr; in dw_edma_debugfs_regs_wr()
192 lim[0][i].end = &regs->type.unroll.ch[i].padding_1[0]; in dw_edma_debugfs_regs_wr()
260 lim[1][i].start = &regs->type.unroll.ch[i].rd; in dw_edma_debugfs_regs_rd()
261 lim[1][i].end = &regs->type.unroll.ch[i].padding_2[0]; in dw_edma_debugfs_regs_rd()
/linux-6.1.9/arch/um/os-Linux/
Dmain.c28 struct rlimit lim; in set_stklim() local
30 if (getrlimit(RLIMIT_STACK, &lim) < 0) { in set_stklim()
34 if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { in set_stklim()
35 lim.rlim_cur = STACKSIZE; in set_stklim()
36 if (setrlimit(RLIMIT_STACK, &lim) < 0) { in set_stklim()
Dstart_up.c303 struct rlimit lim; in check_coredump_limit() local
304 int err = getrlimit(RLIMIT_CORE, &lim); in check_coredump_limit()
312 if (lim.rlim_cur == RLIM_INFINITY) in check_coredump_limit()
315 os_info("%llu\n", (unsigned long long)lim.rlim_cur); in check_coredump_limit()
318 if (lim.rlim_max == RLIM_INFINITY) in check_coredump_limit()
321 os_info("%llu\n", (unsigned long long)lim.rlim_max); in check_coredump_limit()
/linux-6.1.9/lib/
Dbitmap.c51 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local
52 for (k = 0; k < lim; ++k) in __bitmap_equal()
69 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() local
72 for (k = 0; k < lim; ++k) { in __bitmap_or_equal()
86 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local
87 for (k = 0; k < lim; ++k) in __bitmap_complement()
106 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local
109 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
116 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
120 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
[all …]
/linux-6.1.9/drivers/pps/generators/
Dpps_gen_parport.c60 long lim, delta; in hrtimer_event() local
78 lim = NSEC_PER_SEC - send_delay - dev->port_write_time; in hrtimer_event()
81 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { in hrtimer_event()
91 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
98 lim = NSEC_PER_SEC - dev->port_write_time; in hrtimer_event()
101 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
/linux-6.1.9/drivers/edac/
Damd64_edac.h152 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7))
153 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7))
330 struct reg_pair lim; member
448 u64 lim = (((u64)pvt->ranges[i].lim.lo & 0xffff0000) << 8) | 0x00ffffff; in get_dram_limit() local
451 return lim; in get_dram_limit()
453 return (((u64)pvt->ranges[i].lim.hi & 0x000000ff) << 40) | lim; in get_dram_limit()
/linux-6.1.9/drivers/scsi/
Dsun3x_esp.c87 int lim; in sun3x_esp_dma_drain() local
95 lim = 1000; in sun3x_esp_dma_drain()
97 if (--lim == 0) { in sun3x_esp_dma_drain()
109 int lim; in sun3x_esp_dma_invalidate() local
111 lim = 1000; in sun3x_esp_dma_invalidate()
113 if (--lim == 0) { in sun3x_esp_dma_invalidate()
Dsun_esp.c224 int can_do_sbus64, lim; in sbus_esp_reset_dma() local
264 lim = 1000; in sbus_esp_reset_dma()
266 if (--lim == 0) { in sbus_esp_reset_dma()
323 int lim; in sbus_esp_dma_drain() local
335 lim = 1000; in sbus_esp_dma_drain()
337 if (--lim == 0) { in sbus_esp_dma_drain()
365 int lim; in sbus_esp_dma_invalidate() local
367 lim = 1000; in sbus_esp_dma_invalidate()
369 if (--lim == 0) { in sbus_esp_dma_invalidate()
Dam53c974.c142 int lim = 1000; in pci_esp_dma_drain() local
150 while (--lim > 0) { in pci_esp_dma_drain()
164 lim = 1000; in pci_esp_dma_drain()
167 if (--lim == 0) in pci_esp_dma_drain()
172 esp_dma_log("DMA blast done (%d tries, %d bytes left)\n", lim, resid); in pci_esp_dma_drain()
/linux-6.1.9/tools/testing/selftests/vm/
Dcompaction_test.c163 struct rlimit lim; in main() local
178 lim.rlim_cur = RLIM_INFINITY; in main()
179 lim.rlim_max = RLIM_INFINITY; in main()
180 if (setrlimit(RLIMIT_MEMLOCK, &lim)) { in main()
/linux-6.1.9/drivers/regulator/
Dqcom-labibb-regulator.c310 static int qcom_labibb_set_ocp(struct regulator_dev *rdev, int lim, in qcom_labibb_set_ocp() argument
322 if (lim || severity != REGULATOR_SEVERITY_PROT || !enable) in qcom_labibb_set_ocp()
565 struct labibb_current_limits *lim = &vreg->uA_limits; in qcom_labibb_set_current_limit() local
569 if (min_uA < lim->uA_min || max_uA < lim->uA_min) in qcom_labibb_set_current_limit()
573 int uA_limit = (lim->uA_step * i) + lim->uA_min; in qcom_labibb_set_current_limit()
587 mask = desc->csel_mask | lim->ovr_val; in qcom_labibb_set_current_limit()
589 val = (u32)sel | lim->ovr_val; in qcom_labibb_set_current_limit()
599 struct labibb_current_limits *lim = &vreg->uA_limits; in qcom_labibb_get_current_limit() local
608 return (cur_step * lim->uA_step) + lim->uA_min; in qcom_labibb_get_current_limit()
Drt5759-regulator.c147 static int rt5759_set_otp(struct regulator_dev *rdev, int lim, int severity, in rt5759_set_otp() argument
161 if (lim == 0) in rt5759_set_otp()
162 lim = 150; in rt5759_set_otp()
165 if (lim <= otp_lvl[i]) in rt5759_set_otp()
Dbd9576-regulator.c217 struct regmap *regmap, int reg, int mask, int lim) in bd9576_set_limit() argument
223 if (lim) { in bd9576_set_limit()
226 lim, &sel, &found); in bd9576_set_limit()
233 lim); in bd9576_set_limit()
465 static int bd9576_set_tw(struct regulator_dev *rdev, int lim, int severity, in bd9576_set_tw() argument
476 if (lim) in bd9576_set_tw()
/linux-6.1.9/include/linux/
Dbcm47xx_nvram.h14 int bcm47xx_nvram_init_from_mem(u32 base, u32 lim);
23 static inline int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) in bcm47xx_nvram_init_from_mem() argument
/linux-6.1.9/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.c22 int lim; in pvr2_ctrl_range_check() local
23 lim = cptr->info->def.type_int.min_value; in pvr2_ctrl_range_check()
25 cptr->info->get_min_value(cptr,&lim); in pvr2_ctrl_range_check()
27 if (val < lim) return -ERANGE; in pvr2_ctrl_range_check()
28 lim = cptr->info->def.type_int.max_value; in pvr2_ctrl_range_check()
30 cptr->info->get_max_value(cptr,&lim); in pvr2_ctrl_range_check()
32 if (val > lim) return -ERANGE; in pvr2_ctrl_range_check()
/linux-6.1.9/drivers/firmware/broadcom/
Dbcm47xx_nvram.c120 int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) in bcm47xx_nvram_init_from_mem() argument
125 iobase = ioremap(base, lim); in bcm47xx_nvram_init_from_mem()
129 err = bcm47xx_nvram_find_and_copy(iobase, lim); in bcm47xx_nvram_init_from_mem()
/linux-6.1.9/drivers/block/aoe/
Daoedev.c246 size_t lim; in user_req() local
251 lim = sizeof(d->gd->disk_name); in user_req()
252 lim -= p - d->gd->disk_name; in user_req()
253 if (slen < lim) in user_req()
254 lim = slen; in user_req()
256 return !strncmp(s, p, lim); in user_req()
/linux-6.1.9/Documentation/driver-api/media/drivers/ccs/
Dmk-ccs-regs308 my ($lim, $offset) = split /,/, $d->[0];
310 $reg_formula .= " + (($arg) < $lim ? ($arg)$times : $offset + (($arg) - $lim)$times)";
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/
Dfimc-core.c870 struct fimc_pix_limit *lim; in fimc_parse_dt() local
877 v = devm_kzalloc(dev, sizeof(*v) + sizeof(*lim), GFP_KERNEL); in fimc_parse_dt()
890 lim = (struct fimc_pix_limit *)&v[1]; in fimc_parse_dt()
892 lim->scaler_en_w = args[0]; in fimc_parse_dt()
893 lim->scaler_dis_w = args[1]; in fimc_parse_dt()
894 lim->out_rot_en_w = args[2]; in fimc_parse_dt()
895 lim->out_rot_dis_w = args[3]; in fimc_parse_dt()
896 v->pix_limit = lim; in fimc_parse_dt()

123