/drivers/regulator/ |
D | max8973-regulator.c | 161 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/ |
D | ipa_data-v3.1.c | 190 .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 …]
|
D | ipa_data-v3.5.1.c | 182 .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 …]
|
D | ipa_data-v4.9.c | 176 .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 …]
|
D | ipa_data-v4.5.c | 184 .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/ |
D | abp060mg.c | 35 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/ |
D | sama5d2.c | 13 .output = { .min = 124000000, .max = 166000000 }, 22 { .min = 600000000, .max = 1200000000 }, 26 .input = { .min = 12000000, .max = 24000000 }, 60 { .n = "macb0_clk", .id = 5, .r = { .min = 0, .max = 83000000 }, }, 61 { .n = "tdes_clk", .id = 11, .r = { .min = 0, .max = 83000000 }, }, 64 { .n = "pioA_clk", .id = 18, .r = { .min = 0, .max = 83000000 }, }, 65 { .n = "flx0_clk", .id = 19, .r = { .min = 0, .max = 83000000 }, }, 66 { .n = "flx1_clk", .id = 20, .r = { .min = 0, .max = 83000000 }, }, 67 { .n = "flx2_clk", .id = 21, .r = { .min = 0, .max = 83000000 }, }, 68 { .n = "flx3_clk", .id = 22, .r = { .min = 0, .max = 83000000 }, }, [all …]
|
D | sama7g5.c | 99 { .min = 2343750, .max = 1000000002 }, 104 { .min = 2343750, .max = 1200000000 }, 109 .input = { .min = 12000000, .max = 50000000 }, 116 .input = { .min = 12000000, .max = 50000000 }, 400 { .n = "asrc_clk", .p = "mck1", .id = 30, .r = { .max = 200000000, }, }, 402 { .n = "csi_clk", .p = "mck3", .id = 33, .r = { .max = 266000000, }, .chgp = 1, }, 403 { .n = "csi2dc_clk", .p = "mck3", .id = 34, .r = { .max = 266000000, }, .chgp = 1, }, 420 { .n = "isc_clk", .p = "mck3", .id = 56, .r = { .max = 266000000, }, .chgp = 1, }, 421 { .n = "i2smcc0_clk", .p = "mck1", .id = 57, .r = { .max = 200000000, }, }, 422 { .n = "i2smcc1_clk", .p = "mck1", .id = 58, .r = { .max = 200000000, }, }, [all …]
|
D | sama5d3.c | 13 .output = { .min = 0, .max = 166000000 }, 22 { .min = 400000000, .max = 1000000000 }, 26 .input = { .min = 8000000, .max = 50000000 }, 67 { .n = "usart0_clk", .id = 12, .r = { .min = 0, .max = 83000000 }, }, 68 { .n = "usart1_clk", .id = 13, .r = { .min = 0, .max = 83000000 }, }, 69 { .n = "usart2_clk", .id = 14, .r = { .min = 0, .max = 83000000 }, }, 70 { .n = "usart3_clk", .id = 15, .r = { .min = 0, .max = 83000000 }, }, 71 { .n = "uart0_clk", .id = 16, .r = { .min = 0, .max = 83000000 }, }, 72 { .n = "uart1_clk", .id = 17, .r = { .min = 0, .max = 83000000 }, }, 73 { .n = "twi0_clk", .id = 18, .r = { .min = 0, .max = 41500000 }, }, [all …]
|
D | at91sam9260.c | 38 .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/ |
D | intel_dpll.c | 29 int min, max; member 38 .dot = { .min = 25000, .max = 350000 }, 39 .vco = { .min = 908000, .max = 1512000 }, 40 .n = { .min = 2, .max = 16 }, 41 .m = { .min = 96, .max = 140 }, 42 .m1 = { .min = 18, .max = 26 }, 43 .m2 = { .min = 6, .max = 16 }, 44 .p = { .min = 4, .max = 128 }, 45 .p1 = { .min = 2, .max = 33 }, 51 .dot = { .min = 25000, .max = 350000 }, [all …]
|
/drivers/macintosh/ |
D | windfarm_max6690_sensor.c | 36 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() 67 struct wf_6690_sensor *max; in wf_max6690_probe() local 89 max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); in wf_max6690_probe() 90 if (max == NULL) { in wf_max6690_probe() 96 max->i2c = client; in wf_max6690_probe() 97 max->sens.name = name; in wf_max6690_probe() [all …]
|
D | windfarm_fcu_controls.c | 66 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/ |
D | cdv_intel_display.c | 36 .dot = {.min = 20000, .max = 115500}, 37 .vco = {.min = 1800000, .max = 3600000}, 38 .n = {.min = 2, .max = 6}, 39 .m = {.min = 60, .max = 160}, 40 .m1 = {.min = 0, .max = 0}, 41 .m2 = {.min = 58, .max = 158}, 42 .p = {.min = 28, .max = 140}, 43 .p1 = {.min = 2, .max = 10}, 48 .dot = {.min = 20000, .max = 115500}, 49 .vco = {.min = 1800000, .max = 3600000}, [all …]
|
/drivers/net/ethernet/sfc/ |
D | bitfield.h | 123 #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/siena/ |
D | bitfield.h | 123 #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/falcon/ |
D | bitfield.h | 123 #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/ |
D | clk-starfive-jh7100.h | 26 u32 max; member 33 .max = JH7100_CLK_ENABLE, \ 40 .max = _max, \ 47 .max = JH7100_CLK_ENABLE | (_max), \ 54 .max = JH7100_CLK_FRAC_MAX, \ 61 .max = ((_nparents) - 1) << JH7100_CLK_MUX_SHIFT, \ 68 .max = JH7100_CLK_ENABLE | \ 76 .max = (((_nparents) - 1) << JH7100_CLK_MUX_SHIFT) | (_max), \ 83 .max = JH7100_CLK_ENABLE | \ 91 .max = JH7100_CLK_INVERT, \ [all …]
|
/drivers/crypto/ |
D | atmel-sha204a.c | 37 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/ |
D | ixgbe_dcb.c | 22 __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/bus/ |
D | qcom-ebi2.c | 164 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 …]
|
D | intel-ixp4xx-eb.c | 86 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/ |
D | selftest_rps.c | 405 int min, max; in live_rps_control() local 460 max = rps_set_check(rps, limit); in live_rps_control() 475 min, max, ktime_to_ns(min_dt), ktime_to_ns(max_dt)); in live_rps_control() 636 } min, max; in live_rps_frequency_cs() local 676 max.freq = rps->max_freq; in live_rps_frequency_cs() 677 max.count = measure_cs_frequency_at(rps, engine, &max.freq); in live_rps_frequency_cs() 682 max.count, intel_gpu_freq(rps, max.freq), in live_rps_frequency_cs() 683 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_cs() 684 max.freq * min.count)); in live_rps_frequency_cs() 686 if (!scaled_within(max.freq * min.count, in live_rps_frequency_cs() [all …]
|
/drivers/cpufreq/ |
D | s3c2410-cpufreq.c | 50 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs() 57 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 60 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs() 65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs() 68 if (pclk > cfg->max.pclk) { in s3c2410_cpufreq_calcdivs() 83 .max = { 137 s3c2410_cpufreq_info.max.fclk = 266000000; in s3c2410a_cpufreq_add() 138 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add() 139 s3c2410_cpufreq_info.max.pclk = 66500000; in s3c2410a_cpufreq_add()
|
/drivers/media/platform/st/sti/bdisp/ |
D | bdisp-hw.c | 45 u16 max; /* Filter max scale factor (6.10 fixed point) */ member 53 .max = 921, 67 .max = 1024, 81 .max = 1126, 95 .max = 1228, 109 .max = 1331, 123 .max = 1433, 137 .max = 1536, 151 .max = 2048, 165 .max = 3072, [all …]
|