Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 1902) sorted by relevance

12345678910>>...77

/drivers/regulator/
Dmax8973-regulator.c161 struct max8973_chip *max = rdev_get_drvdata(rdev); in max8973_dcdc_get_voltage_sel() local
165 ret = regmap_read(max->regmap, max->curr_vout_reg, &data); in max8973_dcdc_get_voltage_sel()
167 dev_err(max->dev, "register %d read failed, err = %d\n", in max8973_dcdc_get_voltage_sel()
168 max->curr_vout_reg, ret); in max8973_dcdc_get_voltage_sel()
177 struct max8973_chip *max = rdev_get_drvdata(rdev); in max8973_dcdc_set_voltage_sel() local
180 int vout_reg = max->curr_vout_reg; in max8973_dcdc_set_voltage_sel()
181 int gpio_val = max->curr_gpio_val; in max8973_dcdc_set_voltage_sel()
187 if (gpio_is_valid(max->dvs_gpio)) in max8973_dcdc_set_voltage_sel()
188 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel()
192 ret = regmap_update_bits(max->regmap, vout_reg, in max8973_dcdc_set_voltage_sel()
[all …]
/drivers/net/ipa/data/
Dipa_data-v3.1.c190 .min = 3, .max = 255,
193 .min = 3, .max = 255,
196 .min = 1, .max = 255,
199 .min = 1, .max = 255,
202 .min = 2, .max = 255,
207 .min = 0, .max = 255,
210 .min = 0, .max = 255,
213 .min = 0, .max = 255,
216 .min = 0, .max = 255,
219 .min = 0, .max = 255,
[all …]
Dipa_data-v5.0.c188 .min = 3, .max = 9,
191 .min = 4, .max = 10,
194 .min = 1, .max = 63,
197 .min = 0, .max = 63,
202 .min = 9, .max = 9,
205 .min = 12, .max = 12,
208 .min = 10, .max = 10,
213 .min = 9, .max = 9,
216 .min = 24, .max = 24,
219 .min = 20, .max = 20,
[all …]
Dipa_data-v3.5.1.c182 .min = 1, .max = 63,
185 .min = 1, .max = 63,
188 .min = 1, .max = 63,
193 .min = 10, .max = 10,
196 .min = 10, .max = 10,
199 .min = 8, .max = 8,
204 .min = 12, .max = 12,
207 .min = 14, .max = 14,
210 .min = 8, .max = 8,
215 .min = 0, .max = 63,
[all …]
Dipa_data-v4.9.c176 .min = 1, .max = 12,
179 .min = 1, .max = 1,
182 .min = 1, .max = 12,
187 .min = 20, .max = 20,
190 .min = 2, .max = 2,
193 .min = 3, .max = 3,
198 .min = 38, .max = 38,
201 .min = 4, .max = 4,
204 .min = 8, .max = 8,
209 .min = 0, .max = 4,
[all …]
Dipa_data-v4.5.c184 .min = 1, .max = 11,
187 .min = 1, .max = 63,
192 .min = 14, .max = 14,
195 .min = 3, .max = 3,
200 .min = 18, .max = 18,
203 .min = 8, .max = 8,
208 .min = 0, .max = 63,
211 .min = 0, .max = 63,
214 .min = 0, .max = 63,
217 .min = 0, .max = 63,
[all …]
/drivers/iio/pressure/
Dabp060mg.c35 int max; member
40 [ABP006KG] = { .min = 0, .max = 6000 },
41 [ABP010KG] = { .min = 0, .max = 10000 },
42 [ABP016KG] = { .min = 0, .max = 16000 },
43 [ABP025KG] = { .min = 0, .max = 25000 },
44 [ABP040KG] = { .min = 0, .max = 40000 },
45 [ABP060KG] = { .min = 0, .max = 60000 },
46 [ABP100KG] = { .min = 0, .max = 100000 },
47 [ABP160KG] = { .min = 0, .max = 160000 },
48 [ABP250KG] = { .min = 0, .max = 250000 },
[all …]
/drivers/clk/at91/
Dsama5d2.c13 .output = { .min = 124000000, .max = 166000000 },
22 { .min = 600000000, .max = 1200000000 },
26 .input = { .min = 12000000, .max = 24000000 },
65 { .n = "macb0_clk", .id = 5, .r = { .min = 0, .max = 83000000 }, },
66 { .n = "tdes_clk", .id = 11, .r = { .min = 0, .max = 83000000 }, },
69 { .n = "pioA_clk", .id = 18, .r = { .min = 0, .max = 83000000 }, },
70 { .n = "flx0_clk", .id = 19, .r = { .min = 0, .max = 83000000 }, },
71 { .n = "flx1_clk", .id = 20, .r = { .min = 0, .max = 83000000 }, },
72 { .n = "flx2_clk", .id = 21, .r = { .min = 0, .max = 83000000 }, },
73 { .n = "flx3_clk", .id = 22, .r = { .min = 0, .max = 83000000 }, },
[all …]
Dsama7g5.c111 { .min = 2343750, .max = 1000000002 },
116 { .min = 2343750, .max = 1200000000 },
121 .input = { .min = 12000000, .max = 50000000 },
128 .input = { .min = 12000000, .max = 50000000 },
482 { .n = "asrc_clk", .p = PCK_PARENT_HW_MCK1, .id = 30, .r = { .max = 200000000, }, },
484 { .n = "csi_clk", .p = PCK_PARENT_HW_MCK3, .id = 33, .r = { .max = 266000000, }, .chgp = 1, },
485 { .n = "csi2dc_clk", .p = PCK_PARENT_HW_MCK3, .id = 34, .r = { .max = 266000000, }, .chgp = 1, },
502 { .n = "isc_clk", .p = PCK_PARENT_HW_MCK3, .id = 56, .r = { .max = 266000000, }, .chgp = 1, },
503 { .n = "i2smcc0_clk", .p = PCK_PARENT_HW_MCK1, .id = 57, .r = { .max = 200000000, }, },
504 { .n = "i2smcc1_clk", .p = PCK_PARENT_HW_MCK1, .id = 58, .r = { .max = 200000000, }, },
[all …]
Dsama5d3.c13 .output = { .min = 0, .max = 166000000 },
22 { .min = 400000000, .max = 1000000000 },
26 .input = { .min = 8000000, .max = 50000000 },
73 { .n = "usart0_clk", .id = 12, .r = { .min = 0, .max = 83000000 }, },
74 { .n = "usart1_clk", .id = 13, .r = { .min = 0, .max = 83000000 }, },
75 { .n = "usart2_clk", .id = 14, .r = { .min = 0, .max = 83000000 }, },
76 { .n = "usart3_clk", .id = 15, .r = { .min = 0, .max = 83000000 }, },
77 { .n = "uart0_clk", .id = 16, .r = { .min = 0, .max = 83000000 }, },
78 { .n = "uart1_clk", .id = 17, .r = { .min = 0, .max = 83000000 }, },
79 { .n = "twi0_clk", .id = 18, .r = { .min = 0, .max = 41500000 }, },
[all …]
Dat91sam9260.c38 .output = { .min = 0, .max = 105000000 },
47 { .min = 80000000, .max = 160000000 },
48 { .min = 150000000, .max = 240000000 },
52 .input = { .min = 1000000, .max = 32000000 },
64 { .min = 70000000, .max = 130000000 },
68 .input = { .min = 1000000, .max = 5000000 },
125 .output = { .min = 0, .max = 133000000 },
134 { .min = 745000000, .max = 800000000 },
135 { .min = 695000000, .max = 750000000 },
136 { .min = 645000000, .max = 700000000 },
[all …]
/drivers/gpu/drm/i915/display/
Dintel_dpll.c32 int min, max; member
41 .dot = { .min = 25000, .max = 350000 },
42 .vco = { .min = 908000, .max = 1512000 },
43 .n = { .min = 2, .max = 16 },
44 .m = { .min = 96, .max = 140 },
45 .m1 = { .min = 18, .max = 26 },
46 .m2 = { .min = 6, .max = 16 },
47 .p = { .min = 4, .max = 128 },
48 .p1 = { .min = 2, .max = 33 },
54 .dot = { .min = 25000, .max = 350000 },
[all …]
/drivers/macintosh/
Dwindfarm_max6690_sensor.c36 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_get() local
39 if (max->i2c == NULL) in wf_max6690_get()
43 data = i2c_smbus_read_byte_data(max->i2c, MAX6690_EXTERNAL_TEMP); in wf_max6690_get()
52 struct wf_6690_sensor *max = wf_to_6690(sr); in wf_max6690_release() local
54 kfree(max); in wf_max6690_release()
66 struct wf_6690_sensor *max; in wf_max6690_probe() local
88 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); in wf_max6690_probe()
89 if (max == NULL) { in wf_max6690_probe()
95 max->i2c = client; in wf_max6690_probe()
96 max->sens.name = name; in wf_max6690_probe()
[all …]
Dwindfarm_fcu_controls.c66 s32 min, max, target; member
153 if (value > fan->max) in wf_fcu_fan_set_rpm()
154 value = fan->max; in wf_fcu_fan_set_rpm()
210 if (value > fan->max) in wf_fcu_fan_set_pwm()
211 value = fan->max; in wf_fcu_fan_set_pwm()
263 return fan->max; in wf_fcu_fan_max()
294 pump_min = max(pump_min, tmp[0]); in wf_fcu_get_pump_minmax()
298 pump_min = max(pump_min, tmp[2]); in wf_fcu_get_pump_minmax()
313 fan->max = pump_max; in wf_fcu_get_pump_minmax()
327 fan->max = 56000 >> pv->rpm_shift; in wf_fcu_get_rpmfan_minmax()
[all …]
/drivers/gpu/drm/gma500/
Dcdv_intel_display.c37 .dot = {.min = 20000, .max = 115500},
38 .vco = {.min = 1800000, .max = 3600000},
39 .n = {.min = 2, .max = 6},
40 .m = {.min = 60, .max = 160},
41 .m1 = {.min = 0, .max = 0},
42 .m2 = {.min = 58, .max = 158},
43 .p = {.min = 28, .max = 140},
44 .p1 = {.min = 2, .max = 10},
49 .dot = {.min = 20000, .max = 115500},
50 .vco = {.min = 1800000, .max = 3600000},
[all …]
/drivers/net/ethernet/sfc/siena/
Dbitfield.h123 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
124 ((low) > (max) || (high) < (min) ? 0 : \
133 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
134 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
140 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
141 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
242 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
243 (((low > max) || (high < min)) ? 0 : \
248 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ argument
249 (((low > max) || (high < min)) ? 0 : \
[all …]
/drivers/net/ethernet/sfc/
Dbitfield.h125 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
126 ((low) > (max) || (high) < (min) ? 0 : \
135 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
136 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
142 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
143 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
244 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
245 (((low > max) || (high < min)) ? 0 : \
250 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ argument
251 (((low > max) || (high < min)) ? 0 : \
[all …]
/drivers/net/ethernet/sfc/falcon/
Dbitfield.h123 #define EF4_EXTRACT_NATIVE(native_element, min, max, low, high) \ argument
124 ((low) > (max) || (high) < (min) ? 0 : \
133 #define EF4_EXTRACT64(element, min, max, low, high) \ argument
134 EF4_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
140 #define EF4_EXTRACT32(element, min, max, low, high) \ argument
141 EF4_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
242 #define EF4_INSERT_NATIVE64(min, max, low, high, value) \ argument
243 (((low > max) || (high < min)) ? 0 : \
248 #define EF4_INSERT_NATIVE32(min, max, low, high, value) \ argument
249 (((low > max) || (high < min)) ? 0 : \
[all …]
/drivers/clk/starfive/
Dclk-starfive-jh71x0.h28 u32 max; member
36 .max = JH71X0_CLK_ENABLE, \
44 .max = _max, \
52 .max = JH71X0_CLK_ENABLE | (_max), \
60 .max = JH71X0_CLK_FRAC_MAX, \
68 .max = ((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT, \
76 .max = JH71X0_CLK_ENABLE | \
85 .max = (((_nparents) - 1) << JH71X0_CLK_MUX_SHIFT) | (_max), \
93 .max = JH71X0_CLK_ENABLE | \
102 .max = JH71X0_CLK_INVERT, \
[all …]
/drivers/crypto/
Datmel-sha204a.c37 size_t max) in atmel_sha204a_rng_read_nonblocking() argument
50 max = min(sizeof(work_data->cmd.data), max); in atmel_sha204a_rng_read_nonblocking()
51 memcpy(data, &work_data->cmd.data, max); in atmel_sha204a_rng_read_nonblocking()
61 max = 0; in atmel_sha204a_rng_read_nonblocking()
67 return max; in atmel_sha204a_rng_read_nonblocking()
70 static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max, in atmel_sha204a_rng_read() argument
78 return atmel_sha204a_rng_read_nonblocking(rng, data, max); in atmel_sha204a_rng_read()
88 max = min(sizeof(cmd.data), max); in atmel_sha204a_rng_read()
89 memcpy(data, cmd.data, max); in atmel_sha204a_rng_read()
91 return max; in atmel_sha204a_rng_read()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c22 __u16 *max, int max_frame) in ixgbe_ieee_credits() argument
46 max[i] = bw[i] ? (bw[i] * MAX_CREDIT)/100 : min_credit; in ixgbe_ieee_credits()
183 void ixgbe_dcb_unpack_max(struct ixgbe_dcb_config *cfg, u16 *max) in ixgbe_dcb_unpack_max() argument
189 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max()
258 u16 max[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local
263 ixgbe_dcb_unpack_max(dcb_config, max); in ixgbe_dcb_hw_config()
270 return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max, in ixgbe_dcb_hw_config()
277 return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max, in ixgbe_dcb_hw_config()
305 __u16 refill[IEEE_8021QAZ_MAX_TCS], max[IEEE_8021QAZ_MAX_TCS]; in ixgbe_dcb_hw_ets() local
331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
[all …]
/drivers/base/regmap/
Dregcache-maple.c108 unsigned int max) in regcache_maple_drop() argument
111 MA_STATE(mas, mt, min, max); in regcache_maple_drop()
122 mas_for_each(&mas, entry, max) { in regcache_maple_drop()
144 if (mas.last > max) { in regcache_maple_drop()
145 upper_index = max + 1; in regcache_maple_drop()
148 upper = kmemdup(&entry[max - mas.index + 1], in regcache_maple_drop()
149 ((mas.last - max) * in regcache_maple_drop()
191 unsigned int min, unsigned int max) in regcache_maple_sync_block() argument
206 if (max - min > 1 && regmap_can_raw_write(map)) { in regcache_maple_sync_block()
207 buf = kmalloc(val_bytes * (max - min), map->alloc_flags); in regcache_maple_sync_block()
[all …]
/drivers/bus/
Dqcom-ebi2.c164 u32 max; member
172 .max = 15,
178 .max = 15,
184 .max = 255,
190 .max = 255,
196 .max = 15,
202 .max = 15,
208 .max = 1, /* boolean prop */
214 .max = 3,
220 .max = 15,
[all …]
Dintel-ixp4xx-eb.c86 u32 max; member
94 .max = 3,
100 .max = 3,
106 .max = 15,
112 .max = 3,
118 .max = 15,
124 .max = 1,
129 .max = 1,
134 .max = 1,
139 .max = 1,
[all …]
/drivers/gpu/drm/i915/gt/
Dselftest_rps.c406 int min, max; in live_rps_control() local
461 max = rps_set_check(rps, limit); in live_rps_control()
476 min, max, ktime_to_ns(min_dt), ktime_to_ns(max_dt)); in live_rps_control()
637 } min, max; in live_rps_frequency_cs() local
675 max.freq = rps->max_freq; in live_rps_frequency_cs()
676 max.count = measure_cs_frequency_at(rps, engine, &max.freq); in live_rps_frequency_cs()
681 max.count, intel_gpu_freq(rps, max.freq), in live_rps_frequency_cs()
682 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_cs()
683 max.freq * min.count)); in live_rps_frequency_cs()
685 if (!scaled_within(max.freq * min.count, in live_rps_frequency_cs()
[all …]

12345678910>>...77