Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/block/
A Dblk-settings.c41 lim->virt_boundary_mask = 0; in blk_set_default_limits()
43 lim->max_sectors = lim->max_hw_sectors = BLK_SAFE_MAX_SECTORS; in blk_set_default_limits()
44 lim->max_user_sectors = lim->max_dev_sectors = 0; in blk_set_default_limits()
45 lim->chunk_sectors = 0; in blk_set_default_limits()
52 lim->discard_alignment = 0; in blk_set_default_limits()
54 lim->logical_block_size = lim->physical_block_size = lim->io_min = 512; in blk_set_default_limits()
56 lim->alignment_offset = 0; in blk_set_default_limits()
57 lim->io_opt = 0; in blk_set_default_limits()
58 lim->misaligned = 0; in blk_set_default_limits()
61 lim->dma_alignment = 511; in blk_set_default_limits()
[all …]
A Dblk-merge.c109 const struct queue_limits *lim, in bio_split_discard() argument
122 min(lim->max_discard_sectors, bio_allowed_max_sectors(lim)); in bio_split_discard()
150 const struct queue_limits *lim, in bio_split_write_zeroes() argument
154 if (!lim->max_write_zeroes_sectors) in bio_split_write_zeroes()
170 const struct queue_limits *lim) in get_max_io_size() argument
176 if (lim->chunk_sectors) { in get_max_io_size()
179 lim->chunk_sectors)); in get_max_io_size()
294 if (nsegs < lim->max_segments && in bio_split_rw()
301 lim->max_segments, max_bytes)) in bio_split_rw()
355 const struct queue_limits *lim, in __bio_split_to_limits() argument
[all …]
A Dblk.h102 static inline bool __bvec_gap_to_prev(const struct queue_limits *lim, in __bvec_gap_to_prev() argument
105 return (offset & lim->virt_boundary_mask) || in __bvec_gap_to_prev()
106 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev()
113 static inline bool bvec_gap_to_prev(const struct queue_limits *lim, in bvec_gap_to_prev() argument
116 if (!lim->virt_boundary_mask) in bvec_gap_to_prev()
118 return __bvec_gap_to_prev(lim, bprv, offset); in bvec_gap_to_prev()
303 const struct queue_limits *lim) in bio_may_exceed_limits() argument
322 return lim->chunk_sectors || bio->bi_vcnt != 1 || in bio_may_exceed_limits()
327 const struct queue_limits *lim,
338 void blk_set_default_limits(struct queue_limits *lim);
/linux-6.3-rc2/drivers/media/i2c/
A Dccs-pll.c161 lim_fr = &lim->op_fr; in check_fr_bounds()
164 lim_fr = &lim->vt_fr; in check_fr_bounds()
204 lim_bk = &lim->op_bk; in check_bk_bounds()
207 lim_bk = &lim->vt_bk; in check_bk_bounds()
471 if (lim->min_line_length_pck_bin > lim->min_line_length_pck in ccs_pll_calculate_vt()
512 max_vt_div = lim->vt_bk.max_sys_clk_div * lim->vt_bk.max_pix_clk_div; in ccs_pll_calculate_vt()
725 op_lim_fr = &lim->op_fr; in ccs_pll_calculate()
726 op_lim_bk = &lim->op_bk; in ccs_pll_calculate()
735 op_lim_fr = &lim->vt_fr; in ccs_pll_calculate()
736 op_lim_bk = &lim->vt_bk; in ccs_pll_calculate()
[all …]
/linux-6.3-rc2/tools/lib/
A 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.3-rc2/tools/include/nolibc/
A Dstdlib.h252 unsigned long lim; in utoa_r() local
258 for (dig = 0, lim = 1; dig < pos; dig++) in utoa_r()
259 lim *= 10; in utoa_r()
261 if (digits || in >= lim || !pos) { in utoa_r()
262 for (dig = 0; in >= lim; dig++) in utoa_r()
263 in -= lim; in utoa_r()
388 unsigned long long lim; in u64toa_r() local
395 lim *= 10; in u64toa_r()
397 if (digits || in >= lim || !pos) { in u64toa_r()
398 for (dig = 0; in >= lim; dig++) in u64toa_r()
[all …]
/linux-6.3-rc2/arch/um/os-Linux/
A 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()
A 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.3-rc2/lib/
A Dbitmap.c52 for (k = 0; k < lim; ++k) in __bitmap_equal()
72 for (k = 0; k < lim; ++k) { in __bitmap_or_equal()
87 for (k = 0; k < lim; ++k) in __bitmap_complement()
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()
125 if (off + k == lim - 1) in __bitmap_shift_right()
247 for (k = 0; k < lim; k++) in __bitmap_and()
285 for (k = 0; k < lim; k++) in __bitmap_andnot()
310 for (k = 0; k < lim; ++k) in __bitmap_intersects()
[all …]
/linux-6.3-rc2/drivers/pps/generators/
A 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.3-rc2/drivers/edac/
A Damd64_edac.h136 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7))
137 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7))
312 struct reg_pair lim; member
429 u64 lim = (((u64)pvt->ranges[i].lim.lo & 0xffff0000) << 8) | 0x00ffffff; in get_dram_limit() local
432 return lim; in get_dram_limit()
434 return (((u64)pvt->ranges[i].lim.hi & 0x000000ff) << 40) | lim; in get_dram_limit()
/linux-6.3-rc2/drivers/scsi/
A 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()
A 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()
A 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.3-rc2/tools/testing/selftests/mm/
A 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.3-rc2/drivers/regulator/
A 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()
A 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()
A 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.3-rc2/include/linux/
A Dbcm47xx_nvram.h15 int bcm47xx_nvram_init_from_mem(u32 base, u32 lim);
29 static inline int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) in bcm47xx_nvram_init_from_mem() argument
/linux-6.3-rc2/drivers/media/usb/pvrusb2/
A 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.3-rc2/drivers/firmware/broadcom/
A Dbcm47xx_nvram.c138 int bcm47xx_nvram_init_from_mem(u32 base, u32 lim) in bcm47xx_nvram_init_from_mem() argument
143 iobase = ioremap(base, lim); in bcm47xx_nvram_init_from_mem()
147 err = bcm47xx_nvram_find_and_copy(iobase, lim); in bcm47xx_nvram_init_from_mem()
/linux-6.3-rc2/drivers/block/aoe/
A 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.3-rc2/drivers/firmware/efi/libstub/
A Dprintk.c78 size_t pos = 0, lim = ARRAY_SIZE(buf); in efi_puts() local
97 if (*s8 == '\0' || pos >= lim - 2) { in efi_puts()
/linux-6.3-rc2/Documentation/driver-api/media/drivers/ccs/
A Dmk-ccs-regs308 my ($lim, $offset) = split /,/, $d->[0];
310 $reg_formula .= " + (($arg) < $lim ? ($arg)$times : $offset + (($arg) - $lim)$times)";
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/
A 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()

Completed in 50 milliseconds

123