Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 1297) sorted by relevance

12345678910>>...52

/drivers/net/ethernet/sfc/
Dbitfield.h126 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
127 ((low) > (max) || (high) < (min) ? 0 : \
128 (low) > (min) ? \
129 (native_element) >> ((low) - (min)) : \
130 (native_element) << ((min) - (low)))
136 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
137 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
143 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
144 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
245 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
[all …]
/drivers/memory/
Dof_memory.c34 struct lpddr2_min_tck *min; in of_get_min_tck() local
36 min = devm_kzalloc(dev, sizeof(*min), GFP_KERNEL); in of_get_min_tck()
37 if (!min) in of_get_min_tck()
40 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck()
41 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck()
42 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck()
43 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck()
44 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck()
45 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck()
46 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck()
[all …]
/drivers/gpu/drm/gma500/
Dcdv_intel_display.c46 .dot = {.min = 20000, .max = 115500},
47 .vco = {.min = 1800000, .max = 3600000},
48 .n = {.min = 2, .max = 6},
49 .m = {.min = 60, .max = 160},
50 .m1 = {.min = 0, .max = 0},
51 .m2 = {.min = 58, .max = 158},
52 .p = {.min = 28, .max = 140},
53 .p1 = {.min = 2, .max = 10},
58 .dot = {.min = 20000, .max = 115500},
59 .vco = {.min = 1800000, .max = 3600000},
[all …]
Dmdfld_intel_display.c35 int min, max; member
526 .dot = {.min = MDFLD_DOT_MIN, .max = MDFLD_DOT_MAX},
527 .m = {.min = MDFLD_DPLL_M_MIN_19, .max = MDFLD_DPLL_M_MAX_19},
528 .p1 = {.min = MDFLD_DPLL_P1_MIN_19, .max = MDFLD_DPLL_P1_MAX_19},
531 .dot = {.min = MDFLD_DOT_MIN, .max = MDFLD_DOT_MAX},
532 .m = {.min = MDFLD_DPLL_M_MIN_25, .max = MDFLD_DPLL_M_MAX_25},
533 .p1 = {.min = MDFLD_DPLL_P1_MIN_25, .max = MDFLD_DPLL_P1_MAX_25},
536 .dot = {.min = MDFLD_DOT_MIN, .max = MDFLD_DOT_MAX},
537 .m = {.min = MDFLD_DPLL_M_MIN_83, .max = MDFLD_DPLL_M_MAX_83},
538 .p1 = {.min = MDFLD_DPLL_P1_MIN_83, .max = MDFLD_DPLL_P1_MAX_83},
[all …]
Doaktrail_crtc.c56 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
57 .m = {.min = MRST_M_MIN_100L, .max = MRST_M_MAX_100L},
58 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
62 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
63 .m = {.min = MRST_M_MIN_83, .max = MRST_M_MAX_83},
64 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_0},
68 .dot = {.min = MRST_DOT_MIN, .max = MRST_DOT_MAX},
69 .m = {.min = MRST_M_MIN_100, .max = MRST_M_MAX_100},
70 .p1 = {.min = MRST_P1_MIN, .max = MRST_P1_MAX_1},
74 .vco = {.min = 1400000, .max = 2800000},
[all …]
Dpsb_intel_display.c36 .dot = {.min = 20000, .max = 400000},
37 .vco = {.min = 1400000, .max = 2800000},
38 .n = {.min = 1, .max = 6},
39 .m = {.min = 70, .max = 120},
40 .m1 = {.min = 8, .max = 18},
41 .m2 = {.min = 3, .max = 7},
42 .p = {.min = 5, .max = 80},
43 .p1 = {.min = 1, .max = 8},
48 .dot = {.min = 20000, .max = 400000},
49 .vco = {.min = 1400000, .max = 2800000},
[all …]
/drivers/macintosh/
Dwindfarm_fcu_controls.c67 s32 min, max, target; member
152 if (value < fan->min) in wf_fcu_fan_set_rpm()
153 value = fan->min; in wf_fcu_fan_set_rpm()
209 if (value < fan->min) in wf_fcu_fan_set_pwm()
210 value = fan->min; in wf_fcu_fan_set_pwm()
257 return fan->min; in wf_fcu_fan_min()
296 pump_max = min(pump_max, tmp[1]); in wf_fcu_get_pump_minmax()
300 pump_max = min(pump_max, tmp[3]); in wf_fcu_get_pump_minmax()
313 fan->min = pump_min; in wf_fcu_get_pump_minmax()
327 fan->min = 2400 >> pv->rpm_shift; in wf_fcu_get_rpmfan_minmax()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fifo.c100 uint32_t min; in vmw_fifo_init() local
128 min = 4; in vmw_fifo_init()
130 min = vmw_read(dev_priv, SVGA_REG_MEM_REGS); in vmw_fifo_init()
131 min <<= 2; in vmw_fifo_init()
133 if (min < PAGE_SIZE) in vmw_fifo_init()
134 min = PAGE_SIZE; in vmw_fifo_init()
136 iowrite32(min, fifo_mem + SVGA_FIFO_MIN); in vmw_fifo_init()
139 iowrite32(min, fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_init()
140 iowrite32(min, fifo_mem + SVGA_FIFO_STOP); in vmw_fifo_init()
147 min = ioread32(fifo_mem + SVGA_FIFO_MIN); in vmw_fifo_init()
[all …]
/drivers/media/dvb-frontends/
Ddvb-pll.c61 u32 min; member
82 .min = 177000000,
104 .min = 177000000,
128 .min = 185000000,
146 .min = 174000000,
162 .min = 174000000,
184 .min = 44250000,
198 .min = 44250000,
222 .min = 44250000,
256 .min = 44250000,
[all …]
/drivers/hwmon/
Demc6w201.c52 enum subfeature { input, min, max }; enumerator
148 data->in[min][nr] = in emc6w201_update_device()
160 data->temp[min][nr] = in emc6w201_update_device()
172 data->fan[min][nr] = in emc6w201_update_device()
219 reg = (sf == min) ? EMC6W201_REG_IN_LOW(nr) in set_in()
256 reg = (sf == min) ? EMC6W201_REG_TEMP_LOW(nr) in set_temp()
315 0, min);
320 1, min);
325 2, min);
330 3, min);
[all …]
/drivers/ata/
Dpata_at91.c56 int min; member
76 if (*value < range->min) { in adjust_smc_value()
77 remainder = range->min - *value; in adjust_smc_value()
78 *value = range->min; /* nearest valid value */ in adjust_smc_value()
80 } else if ((range->min <= *value) && (*value <= range->max)) in adjust_smc_value()
114 {.min = 0, .max = 31}, /* first range */ in calc_smc_vals()
115 {.min = 128, .max = 159} /* second range */ in calc_smc_vals()
118 {.min = 0, .max = 63}, /* first range */ in calc_smc_vals()
119 {.min = 256, .max = 319} /* second range */ in calc_smc_vals()
122 {.min = 0, .max = 127}, /* first range */ in calc_smc_vals()
[all …]
/drivers/rtc/
Drtc-ds1286.c222 unsigned char mon, day, hrs, min, sec; in ds1286_set_time() local
231 min = tm->tm_min; in ds1286_set_time()
245 min = bin2bcd(min); in ds1286_set_time()
259 ds1286_rtc_write(priv, min, RTC_MINUTES); in ds1286_set_time()
293 unsigned char hrs, min, sec; in ds1286_set_alarm() local
296 min = alm->time.tm_min; in ds1286_set_alarm()
302 if (min >= 60) in ds1286_set_alarm()
303 min = 0xff; in ds1286_set_alarm()
308 min = bin2bcd(min); in ds1286_set_alarm()
313 ds1286_rtc_write(priv, min, RTC_MINUTES_ALARM); in ds1286_set_alarm()
Drtc-m48t35.c31 u8 min; member
65 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
95 unsigned char mon, day, hrs, min, sec; in m48t35_set_time() local
103 min = tm->tm_min; in m48t35_set_time()
120 min = bin2bcd(min); in m48t35_set_time()
133 writeb(min, &priv->reg->min); in m48t35_set_time()
/drivers/video/fbdev/geode/
Dvideo_cs5530.c77 long min, diff; in cs5530_set_dclk_frequency() local
81 min = cs5530_pll_table[0].pixclock - info->var.pixclock; in cs5530_set_dclk_frequency()
82 if (min < 0) min = -min; in cs5530_set_dclk_frequency()
86 if (diff < min) { in cs5530_set_dclk_frequency()
87 min = diff; in cs5530_set_dclk_frequency()
/drivers/iio/dac/
Dad5421.c280 unsigned int *min, unsigned int *max) in ad5421_get_current_min_max() argument
286 *min = 4000; in ad5421_get_current_min_max()
290 *min = 3800; in ad5421_get_current_min_max()
294 *min = 3200; in ad5421_get_current_min_max()
298 *min = 0; in ad5421_get_current_min_max()
306 unsigned int min, max; in ad5421_get_offset() local
308 ad5421_get_current_min_max(st, &min, &max); in ad5421_get_offset()
309 return (min * (1 << 16)) / (max - min); in ad5421_get_offset()
316 unsigned int min, max; in ad5421_read_raw() local
330 ad5421_get_current_min_max(st, &min, &max); in ad5421_read_raw()
[all …]
/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_string.c227 unsigned min, unsigned max) in cfs_str2num_check() argument
241 return (*num >= min && *num <= max); in cfs_str2num_check()
258 cfs_range_expr_parse(struct cfs_lstr *src, unsigned min, unsigned max, in cfs_range_expr_parse() argument
269 re->re_lo = min; in cfs_range_expr_parse()
276 &re->re_lo, min, max)) { in cfs_range_expr_parse()
287 &re->re_lo, min, max)) in cfs_range_expr_parse()
292 &re->re_hi, min, max)) { in cfs_range_expr_parse()
301 &re->re_hi, min, max)) in cfs_range_expr_parse()
306 &re->re_stride, min, max)) { in cfs_range_expr_parse()
417 cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, in cfs_expr_list_parse() argument
[all …]
/drivers/regulator/
Dda903x.c313 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
320 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \
322 .min_uV = (min) * 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, \
342 .min_uV = (min) * 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 …]
/drivers/cpufreq/
Dgx-suspmod.c353 tmp_freq = gx_validate_speed(policy->min, &tmp1, &tmp2); in cpufreq_gx_verify()
354 if (tmp_freq < policy->min) in cpufreq_gx_verify()
356 policy->min = tmp_freq; in cpufreq_gx_verify()
357 if (policy->min > policy->max) in cpufreq_gx_verify()
363 if (policy->max < policy->min) in cpufreq_gx_verify()
364 policy->max = policy->min; in cpufreq_gx_verify()
388 while (tmp_freq < policy->min) { in cpufreq_gx_target()
425 policy->min = maxfreq / max_duration; in cpufreq_gx_cpu_init()
427 policy->min = maxfreq / POLICY_MIN_DIV; in cpufreq_gx_cpu_init()
/drivers/media/rc/img-ir/
Dimg-ir-hw.c61 if (range->max < range->min) in img_ir_timing_preprocess()
62 range->max = range->min; in img_ir_timing_preprocess()
65 range->min = (range->min*unit)/1000; in img_ir_timing_preprocess()
96 if (!range->min) in img_ir_timing_defaults()
97 range->min = defaults->min; in img_ir_timing_defaults()
173 unsigned int min = in->min; in img_ir_timing_range_convert() local
176 min = min - (min*tolerance >> 7); in img_ir_timing_range_convert()
179 min = min*clock_hz / 1000000; in img_ir_timing_range_convert()
182 out->min = min >> shift; in img_ir_timing_range_convert()
204 hw_period.min = timing->pulse.min + timing->space.min; in img_ir_symbol_timing()
[all …]
/drivers/base/regmap/
Dregcache-rbtree.c404 unsigned int min, max; in regcache_rbtree_write() local
410 min = 0; in regcache_rbtree_write()
412 min = reg - max_dist; in regcache_rbtree_write()
424 if (base_reg <= max && top_reg >= min) { in regcache_rbtree_write()
425 new_base_reg = min(reg, base_reg); in regcache_rbtree_write()
456 static int regcache_rbtree_sync(struct regmap *map, unsigned int min, in regcache_rbtree_sync() argument
474 if (top_reg < min) in regcache_rbtree_sync()
477 if (min > base_reg) in regcache_rbtree_sync()
478 start = (min - base_reg) / map->reg_stride; in regcache_rbtree_sync()
497 static int regcache_rbtree_drop(struct regmap *map, unsigned int min, in regcache_rbtree_drop() argument
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dcapa.c299 unsigned int min; in capa_encrypt_id() local
311 min = ll_crypto_tfm_alg_min_keysize(tfm); in capa_encrypt_id()
312 if (keylen < min) { in capa_encrypt_id()
313 CERROR("keylen at least %d bits for aes\n", min * 8); in capa_encrypt_id()
318 rc = crypto_blkcipher_setkey(tfm, key, min); in capa_encrypt_id()
352 unsigned int min; in capa_decrypt_id() local
364 min = ll_crypto_tfm_alg_min_keysize(tfm); in capa_decrypt_id()
365 if (keylen < min) { in capa_decrypt_id()
366 CERROR("keylen at least %d bits for aes\n", min * 8); in capa_decrypt_id()
371 rc = crypto_blkcipher_setkey(tfm, key, min); in capa_decrypt_id()
/drivers/net/ethernet/intel/ixgb/
Dixgb_param.c189 int min; member
222 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
275 .arg = { .r = { .min = MIN_TXD, in ixgb_check_options()
294 .arg = { .r = { .min = MIN_RXD, in ixgb_check_options()
356 .arg = { .r = { .min = MIN_FCRTH, in ixgb_check_options()
375 .arg = { .r = { .min = MIN_FCRTL, in ixgb_check_options()
394 .arg = { .r = { .min = MIN_FCPAUSE, in ixgb_check_options()
424 .arg = { .r = { .min = MIN_RDTR, in ixgb_check_options()
441 .arg = { .r = { .min = MIN_TIDV, in ixgb_check_options()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_param.c109 int min; member
141 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
199 .arg = { .r = { .min = ATL1E_MIN_TX_DESC_CNT, in atl1e_check_options()
218 .arg = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE, in atl1e_check_options()
238 .arg = { .r = { .min = INT_MOD_MIN_CNT, in atl1e_check_options()
257 .arg = { .r = { .min = MEDIA_TYPE_AUTO_SENSOR, in atl1e_check_options()
/drivers/net/wireless/b43/
Dppr.c50 *rate = min(*rate, max); in b43_ppr_apply_max()
54 void b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min) in b43_ppr_apply_min() argument
60 *rate = max(*rate, min); in b43_ppr_apply_min()
91 maxpwr = min(sprom->core_pwr_info[0].maxpwr_2g, in b43_ppr_load_max_from_sprom()
99 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5gl, in b43_ppr_load_max_from_sprom()
107 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5g, in b43_ppr_load_max_from_sprom()
115 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5gh, in b43_ppr_load_max_from_sprom()
/drivers/power/
D88pm860x_battery.c534 int min, int max) in set_temp_threshold() argument
539 if (min <= 0) in set_temp_threshold()
542 data = (min << 8) / 1800; in set_temp_threshold()
544 dev_dbg(info->dev, "TEMP_HIGHTH : min: %d, 0x%x\n", min, data); in set_temp_threshold()
558 int min; in measure_temp() local
583 min = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000; in measure_temp()
585 set_temp_threshold(info, min, max); in measure_temp()
588 min = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000; in measure_temp()
590 set_temp_threshold(info, min, max); in measure_temp()
593 min = TBAT_NEG_10D * GPBIAS2_GPADC1_UA / 1000; in measure_temp()
[all …]

12345678910>>...52