/linux-4.19.296/drivers/regulator/ |
D | max8973-regulator.c | 174 struct max8973_chip *max = rdev_get_drvdata(rdev); in max8973_dcdc_get_voltage_sel() local 178 ret = regmap_read(max->regmap, max->curr_vout_reg, &data); in max8973_dcdc_get_voltage_sel() 180 dev_err(max->dev, "register %d read failed, err = %d\n", in max8973_dcdc_get_voltage_sel() 181 max->curr_vout_reg, ret); in max8973_dcdc_get_voltage_sel() 190 struct max8973_chip *max = rdev_get_drvdata(rdev); in max8973_dcdc_set_voltage_sel() local 193 int vout_reg = max->curr_vout_reg; in max8973_dcdc_set_voltage_sel() 194 int gpio_val = max->curr_gpio_val; in max8973_dcdc_set_voltage_sel() 200 if (gpio_is_valid(max->dvs_gpio)) in max8973_dcdc_set_voltage_sel() 201 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel() 205 ret = regmap_update_bits(max->regmap, vout_reg, in max8973_dcdc_set_voltage_sel() [all …]
|
D | da903x.c | 313 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 320 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 325 .max_uV = (max) * 1000, \ 333 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument 340 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 345 .max_uV = (max) * 1000, \ 355 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 356 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 358 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 359 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit) [all …]
|
/linux-4.19.296/drivers/iio/pressure/ |
D | abp060mg.c | 44 int max; member 49 [ABP006KG] = { .min = 0, .max = 6000 }, 50 [ABP010KG] = { .min = 0, .max = 10000 }, 51 [ABP016KG] = { .min = 0, .max = 16000 }, 52 [ABP025KG] = { .min = 0, .max = 25000 }, 53 [ABP040KG] = { .min = 0, .max = 40000 }, 54 [ABP060KG] = { .min = 0, .max = 60000 }, 55 [ABP100KG] = { .min = 0, .max = 100000 }, 56 [ABP160KG] = { .min = 0, .max = 160000 }, 57 [ABP250KG] = { .min = 0, .max = 250000 }, [all …]
|
/linux-4.19.296/fs/cachefiles/ |
D | key.c | 42 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local 58 max = keylen - 2; in cachefiles_cook_key() 59 max += 2; /* two base64'd length chars on the front */ in cachefiles_cook_key() 60 max += 5; /* @checksum/M */ in cachefiles_cook_key() 61 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key() 64 max += 1; /* NUL on end */ in cachefiles_cook_key() 69 max = keylen * 4; in cachefiles_cook_key() 70 max += 5; /* @checksum/M */ in cachefiles_cook_key() 71 max += 3 * 2; /* maximum number of segment dividers (".../M") in cachefiles_cook_key() 74 max += 1; /* NUL on end */ in cachefiles_cook_key() [all …]
|
/linux-4.19.296/lib/ |
D | strncpy_from_user.c | 27 unsigned long count, unsigned long max) in do_strncpy_from_user() argument 35 while (max >= sizeof(unsigned long)) { in do_strncpy_from_user() 48 max -= sizeof(unsigned long); in do_strncpy_from_user() 52 while (max) { in do_strncpy_from_user() 60 max--; in do_strncpy_from_user() 106 unsigned long max = max_addr - src_addr; in strncpy_from_user() local 113 if (max > count) in strncpy_from_user() 114 max = count; in strncpy_from_user() 118 if (user_access_begin(VERIFY_READ, src, max)) { in strncpy_from_user() 119 retval = do_strncpy_from_user(dst, src, count, max); in strncpy_from_user()
|
D | strnlen_user.c | 28 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) in do_strnlen_user() argument 40 max += align; in do_strnlen_user() 54 if (unlikely(max <= sizeof(unsigned long))) in do_strnlen_user() 56 max -= sizeof(unsigned long); in do_strnlen_user() 107 unsigned long max = max_addr - src_addr; in strnlen_user() local 114 if (max > count) in strnlen_user() 115 max = count; in strnlen_user() 117 if (user_access_begin(VERIFY_READ, str, max)) { in strnlen_user() 118 retval = do_strnlen_user(str, count, max); in strnlen_user()
|
/linux-4.19.296/fs/xfs/ |
D | xfs_sysctl.c | 64 .extra2 = &xfs_params.sgid_inherit.max 73 .extra2 = &xfs_params.symlink_mode.max 82 .extra2 = &xfs_params.panic_mask.max 92 .extra2 = &xfs_params.error_level.max 101 .extra2 = &xfs_params.syncd_timer.max 110 .extra2 = &xfs_params.inherit_sync.max 119 .extra2 = &xfs_params.inherit_nodump.max 128 .extra2 = &xfs_params.inherit_noatim.max 137 .extra2 = &xfs_params.inherit_nosym.max 146 .extra2 = &xfs_params.rotorstep.max [all …]
|
/linux-4.19.296/drivers/cpufreq/ |
D | s3c2410-cpufreq.c | 53 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 63 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 71 if (pclk > cfg->max.pclk) { in s3c2410_cpufreq_calcdivs() 86 .max = { 140 s3c2410_cpufreq_info.max.fclk = 266000000; in s3c2410a_cpufreq_add() 141 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add() 142 s3c2410_cpufreq_info.max.pclk = 66500000; in s3c2410a_cpufreq_add()
|
/linux-4.19.296/include/trace/events/ |
D | regulator.h | 79 TP_PROTO(const char *name, int min, int max), 81 TP_ARGS(name, min, max), 86 __field( int, max ) 92 __entry->max = max; 96 (int)__entry->min, (int)__entry->max) 101 TP_PROTO(const char *name, int min, int max), 103 TP_ARGS(name, min, max)
|
D | wbt.h | 40 __entry->rmax = stat[0].max; 44 __entry->wmax = stat[1].max; 93 unsigned int normal, unsigned int max), 95 TP_ARGS(bdi, msg, step, window, bg, normal, max), 104 __field(unsigned int, max) 115 __entry->max = max; 120 __entry->bg, __entry->normal, __entry->max)
|
/linux-4.19.296/drivers/bus/ |
D | qcom-ebi2.c | 168 u32 max; member 176 .max = 15, 182 .max = 15, 188 .max = 255, 194 .max = 255, 200 .max = 15, 206 .max = 15, 212 .max = 1, /* boolean prop */ 218 .max = 3, 224 .max = 15, [all …]
|
/linux-4.19.296/drivers/clk/sunxi-ng/ |
D | ccu_mult.c | 17 unsigned long mult, min, max; member 29 if (_mult > mult->max) in ccu_mult_find_best() 30 _mult = mult->max; in ccu_mult_find_best() 46 if (cm->mult.max) in ccu_mult_round_rate() 47 _cm.max = cm->mult.max; in ccu_mult_round_rate() 49 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_round_rate() 128 if (cm->mult.max) in ccu_mult_set_rate() 129 _cm.max = cm->mult.max; in ccu_mult_set_rate() 131 _cm.max = (1 << cm->mult.width) + cm->mult.offset - 1; in ccu_mult_set_rate()
|
/linux-4.19.296/lib/zlib_inflate/ |
D | inftrees.c | 28 unsigned min, max; /* minimum and maximum code lengths */ in zlib_inflate_table() local 100 for (max = MAXBITS; max >= 1; max--) in zlib_inflate_table() 101 if (count[max] != 0) break; in zlib_inflate_table() 102 if (root > max) root = max; in zlib_inflate_table() 103 if (max == 0) { /* no symbols to code at all */ in zlib_inflate_table() 123 if (left > 0 && (type == CODES || max != 1)) in zlib_inflate_table() 241 if (len == max) break; in zlib_inflate_table() 257 while (curr + drop < max) { in zlib_inflate_table()
|
/linux-4.19.296/include/linux/ |
D | prime_numbers.h | 21 #define for_each_prime_number(prime, max) \ argument 22 for_each_prime_number_from((prime), 2, (max)) 35 #define for_each_prime_number_from(prime, from, max) \ argument 36 for (prime = (from); prime <= (max); prime = next_prime_number(prime))
|
D | cpufreq.h | 62 unsigned int max; /* in kHz */ member 79 unsigned int max; /* in kHz */ member 387 unsigned int min, unsigned int max) in cpufreq_verify_within_limits() argument 391 if (policy->max < min) in cpufreq_verify_within_limits() 392 policy->max = min; in cpufreq_verify_within_limits() 393 if (policy->min > max) in cpufreq_verify_within_limits() 394 policy->min = max; in cpufreq_verify_within_limits() 395 if (policy->max > max) in cpufreq_verify_within_limits() 396 policy->max = max; in cpufreq_verify_within_limits() 397 if (policy->min > policy->max) in cpufreq_verify_within_limits() [all …]
|
D | uwb.h | 766 s8 min, max; member 781 s8 min, max; in stats_add_sample() local 786 max = -128; in stats_add_sample() 790 max = stats->max; in stats_add_sample() 796 else if (sample > max) in stats_add_sample() 797 max = sample; in stats_add_sample() 801 stats->max = max; in stats_add_sample() 812 int min, max, avg; in stats_show() local 815 min = max = avg = 0; in stats_show() 818 max = stats->max; in stats_show() [all …]
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | dvb-pll.c | 63 u32 max; member 84 .max = 858 * MHz, 106 .max = 896 * MHz, 130 .max = 900 * MHz, 148 .max = 862 * MHz, 164 .max = 862 * MHz, 186 .max = 858 * MHz, 200 .max = 858 * MHz, 224 .max = 858 * MHz, 258 .max = 858 * MHz, [all …]
|
/linux-4.19.296/drivers/media/rc/ |
D | rc-ir-raw.c | 318 int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max, in ir_raw_gen_manchester() argument 329 if (!max--) in ir_raw_gen_manchester() 333 if (!max--) in ir_raw_gen_manchester() 351 if (!max--) in ir_raw_gen_manchester() 357 if (!max--) in ir_raw_gen_manchester() 367 else if (!max--) in ir_raw_gen_manchester() 400 int ir_raw_gen_pd(struct ir_raw_event **ev, unsigned int max, in ir_raw_gen_pd() argument 409 ret = ir_raw_gen_pulse_space(ev, &max, timings->header_pulse, in ir_raw_gen_pd() 418 ret = ir_raw_gen_pulse_space(ev, &max, in ir_raw_gen_pd() 427 ret = ir_raw_gen_pulse_space(ev, &max, in ir_raw_gen_pd() [all …]
|
D | rc-loopback.c | 86 static int loop_set_rx_carrier_range(struct rc_dev *dev, u32 min, u32 max) in loop_set_rx_carrier_range() argument 90 if (min < 1 || min > max) { in loop_set_rx_carrier_range() 91 dprintk("invalid rx carrier range %u to %u\n", min, max); in loop_set_rx_carrier_range() 95 dprintk("setting rx carrier range %u to %u\n", min, max); in loop_set_rx_carrier_range() 97 lodev->rxcarriermax = max; in loop_set_rx_carrier_range() 179 static const unsigned int max = 512; in loop_set_wakeup_filter() local 189 raw = kmalloc_array(max, sizeof(*raw), GFP_KERNEL); in loop_set_wakeup_filter() 193 ret = ir_raw_encode_scancode(dev->wakeup_protocol, sc->data, raw, max); in loop_set_wakeup_filter() 196 ret = max; in loop_set_wakeup_filter()
|
D | rc-core-priv.h | 39 struct ir_raw_event *events, unsigned int max); 207 int ir_raw_gen_manchester(struct ir_raw_event **ev, unsigned int max, 225 unsigned int *max, in ir_raw_gen_pulse_space() argument 229 if (!*max) in ir_raw_gen_pulse_space() 232 if (!--*max) in ir_raw_gen_pulse_space() 235 --*max; in ir_raw_gen_pulse_space() 259 int ir_raw_gen_pd(struct ir_raw_event **ev, unsigned int max, 279 int ir_raw_gen_pl(struct ir_raw_event **ev, unsigned int max,
|
/linux-4.19.296/include/sound/ |
D | pcm_params.h | 232 i->max = UINT_MAX; in snd_interval_any() 245 return (i->min > i->max || in snd_interval_checkempty() 246 (i->min == i->max && (i->openmin || i->openmax))); in snd_interval_checkempty() 256 return (i->min == i->max || in snd_interval_single() 257 (i->min + 1 == i->max && (i->openmin || i->openmax))); in snd_interval_single() 263 return i->max; in snd_interval_value() 275 v = i->max; in snd_interval_max() 284 i->max < val || (i->max == val && i->openmax))); in snd_interval_test() 296 if (i->openmin && i->openmax && i->min == i->max) in snd_interval_setinteger() 309 i1->max == i2->max && i1->openmax == i2->openmax; in snd_interval_eq()
|
/linux-4.19.296/drivers/irqchip/ |
D | irq-crossbar.c | 201 u32 max = 0, entry, reg_size; in crossbar_of_init() local 223 of_property_read_u32(node, "ti,max-irqs", &max); in crossbar_of_init() 224 if (!max) { in crossbar_of_init() 229 cb->irq_map = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init() 233 cb->int_max = max; in crossbar_of_init() 235 for (i = 0; i < max; i++) in crossbar_of_init() 247 if (entry >= max) { in crossbar_of_init() 265 if (entry >= max) { in crossbar_of_init() 275 cb->register_offsets = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init() 302 for (i = 0; i < max; i++) { in crossbar_of_init() [all …]
|
/linux-4.19.296/drivers/hid/ |
D | hid-microsoft.c | 51 #define ms_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 54 unsigned long **bit, int *max) in ms_ergonomy_kb_quirk() argument 88 hid_map_usage_clear(hi, usage, bit, max, EV_REL, REL_WHEEL); in ms_ergonomy_kb_quirk() 116 unsigned long **bit, int *max) in ms_presenter_8k_quirk() argument 135 struct hid_usage *usage, unsigned long **bit, int *max) in ms_surface_dial_quirk() argument 160 unsigned long **bit, int *max) in ms_input_mapping() argument 165 int ret = ms_ergonomy_kb_quirk(hi, usage, bit, max); in ms_input_mapping() 171 ms_presenter_8k_quirk(hi, usage, bit, max)) in ms_input_mapping() 175 int ret = ms_surface_dial_quirk(hi, field, usage, bit, max); in ms_input_mapping() 186 unsigned long **bit, int *max) in ms_input_mapped() argument
|
/linux-4.19.296/include/asm-generic/ |
D | pci_iomap.h | 13 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 14 extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max); 32 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap() argument 37 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap_wc() argument
|
/linux-4.19.296/fs/ceph/ |
D | quota.c | 175 u64 max, rvalue; in check_quota_exceeded() local 198 max = ci->i_max_files; in check_quota_exceeded() 201 max = ci->i_max_bytes; in check_quota_exceeded() 207 exceeded = (max && (rvalue >= max)); in check_quota_exceeded() 210 exceeded = (max && (rvalue + delta > max)); in check_quota_exceeded() 213 if (max) { in check_quota_exceeded() 214 if (rvalue >= max) in check_quota_exceeded() 222 (((max - rvalue) >> 4) < delta); in check_quota_exceeded()
|