/linux-6.6.21/block/ |
D | blk-settings.c | 35 void blk_set_default_limits(struct queue_limits *lim) in blk_set_default_limits() argument 37 lim->max_segments = BLK_MAX_SEGMENTS; in blk_set_default_limits() 38 lim->max_discard_segments = 1; in blk_set_default_limits() 39 lim->max_integrity_segments = 0; in blk_set_default_limits() 40 lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK; in blk_set_default_limits() 41 lim->virt_boundary_mask = 0; in blk_set_default_limits() 42 lim->max_segment_size = BLK_MAX_SEGMENT_SIZE; 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() [all …]
|
D | blk-merge.c | 103 static unsigned int bio_allowed_max_sectors(const 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() 109 const struct queue_limits *lim, in bio_split_discard() argument 119 granularity = max(lim->discard_granularity >> 9, 1U); in bio_split_discard() 122 min(lim->max_discard_sectors, bio_allowed_max_sectors(lim)); in bio_split_discard() 140 ((lim->discard_alignment >> 9) % granularity); 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() 156 if (bio_sectors(bio) <= lim->max_write_zeroes_sectors) in bio_split_write_zeroes() 158 return bio_split(bio, lim->max_write_zeroes_sectors, GFP_NOIO, bs); in bio_split_write_zeroes() [all …]
|
D | blk.h | 105 static inline bool __bvec_gap_to_prev(const struct queue_limits *lim, in __bvec_gap_to_prev() argument 108 return (offset & lim->virt_boundary_mask) || in __bvec_gap_to_prev() 109 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev() 116 static inline bool bvec_gap_to_prev(const struct queue_limits *lim, in bvec_gap_to_prev() argument 119 if (!lim->virt_boundary_mask) in bvec_gap_to_prev() 121 return __bvec_gap_to_prev(lim, bprv, offset); in bvec_gap_to_prev() 297 const struct queue_limits *lim) in bio_may_exceed_limits() argument 316 return lim->chunk_sectors || bio->bi_vcnt != 1 || in bio_may_exceed_limits() 321 const struct queue_limits *lim, 332 void blk_set_default_limits(struct queue_limits *lim);
|
/linux-6.6.21/drivers/media/i2c/ |
D | ccs-pll.c | 152 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.6.21/tools/lib/ |
D | bitmap.c | 10 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.6.21/tools/include/nolibc/ |
D | stdlib.h | 244 unsigned long lim; in utoa_r() local 250 for (dig = 0, lim = 1; dig < pos; dig++) in utoa_r() 251 lim *= 10; in utoa_r() 253 if (digits || in >= lim || !pos) { in utoa_r() 254 for (dig = 0; in >= lim; dig++) in utoa_r() 255 in -= lim; in utoa_r() 380 unsigned long long lim; in u64toa_r() local 386 for (dig = 0, lim = 1; dig < pos; dig++) in u64toa_r() 387 lim *= 10; in u64toa_r() 389 if (digits || in >= lim || !pos) { in u64toa_r() [all …]
|
/linux-6.6.21/arch/um/os-Linux/ |
D | main.c | 28 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()
|
D | start_up.c | 303 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.6.21/lib/ |
D | bitmap.c | 51 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.6.21/drivers/pps/generators/ |
D | pps_gen_parport.c | 60 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.6.21/drivers/edac/ |
D | amd64_edac.h | 136 #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)) 293 struct reg_pair lim; member 426 u64 lim = (((u64)pvt->ranges[i].lim.lo & 0xffff0000) << 8) | 0x00ffffff; in get_dram_limit() local 429 return lim; in get_dram_limit() 431 return (((u64)pvt->ranges[i].lim.hi & 0x000000ff) << 40) | lim; in get_dram_limit()
|
/linux-6.6.21/drivers/scsi/ |
D | sun3x_esp.c | 87 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()
|
D | sun_esp.c | 225 int can_do_sbus64, lim; in sbus_esp_reset_dma() local 265 lim = 1000; in sbus_esp_reset_dma() 267 if (--lim == 0) { in sbus_esp_reset_dma() 324 int lim; in sbus_esp_dma_drain() local 336 lim = 1000; in sbus_esp_dma_drain() 338 if (--lim == 0) { in sbus_esp_dma_drain() 366 int lim; in sbus_esp_dma_invalidate() local 368 lim = 1000; in sbus_esp_dma_invalidate() 370 if (--lim == 0) { in sbus_esp_dma_invalidate()
|
D | am53c974.c | 142 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.6.21/tools/testing/selftests/mm/ |
D | compaction_test.c | 163 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.6.21/drivers/regulator/ |
D | qcom-labibb-regulator.c | 310 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()
|
D | rt5759-regulator.c | 147 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()
|
/linux-6.6.21/include/linux/ |
D | bcm47xx_nvram.h | 15 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.6.21/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 22 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.6.21/drivers/firmware/broadcom/ |
D | bcm47xx_nvram.c | 138 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.6.21/drivers/block/aoe/ |
D | aoedev.c | 246 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.6.21/drivers/firmware/efi/libstub/ |
D | printk.c | 78 size_t pos = 0, lim = ARRAY_SIZE(buf); in efi_puts() local 97 if (*s8 == '\0' || pos >= lim - 2) { in efi_puts()
|
/linux-6.6.21/Documentation/driver-api/media/drivers/ccs/ |
D | mk-ccs-regs | 308 my ($lim, $offset) = split /,/, $d->[0]; 310 $reg_formula .= " + (($arg) < $lim ? ($arg)$times : $offset + (($arg) - $lim)$times)";
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_vdsc_regs.h | 250 #define DSC_RC_QUANT_INC_LIMIT1(lim) ((lim) << 8) argument 251 #define DSC_RC_QUANT_INC_LIMIT0(lim) ((lim) << 0) argument
|
/linux-6.6.21/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-core.c | 869 struct fimc_pix_limit *lim; in fimc_parse_dt() local 876 v = devm_kzalloc(dev, sizeof(*v) + sizeof(*lim), GFP_KERNEL); in fimc_parse_dt() 889 lim = (struct fimc_pix_limit *)&v[1]; in fimc_parse_dt() 891 lim->scaler_en_w = args[0]; in fimc_parse_dt() 892 lim->scaler_dis_w = args[1]; in fimc_parse_dt() 893 lim->out_rot_en_w = args[2]; in fimc_parse_dt() 894 lim->out_rot_dis_w = args[3]; in fimc_parse_dt() 895 v->pix_limit = lim; in fimc_parse_dt()
|