Home
last modified time | relevance | path

Searched +full:25 +full:mv (Results 1 – 25 of 127) sorted by relevance

123456

/linux-6.12.1/drivers/hwmon/
Dltc2945.c82 /* Return the value from the given register in uW, mV, or mA */
121 /* 25 mV * 25 uV = 0.625 uV resolution. */ in ltc2945_reg_to_val()
124 /* 0.5 mV * 25 uV = 0.0125 uV resolution. */ in ltc2945_reg_to_val()
125 val = (val * 25LL) >> 1; in ltc2945_reg_to_val()
141 /* 25 mV resolution. Convert to mV. */ in ltc2945_reg_to_val()
142 val *= 25; in ltc2945_reg_to_val()
149 /* 0.5mV resolution. Convert to mV. */ in ltc2945_reg_to_val()
157 /* 25 uV resolution. Convert to mA. */ in ltc2945_reg_to_val()
158 val *= 25 * 1000; in ltc2945_reg_to_val()
196 /* 25 mV * 25 uV = 0.625 uV resolution. */ in ltc2945_val_to_reg()
[all …]
Dhwmon-vid.c40 * This corresponds to an arbitrary VRM code of 25 in the functions below.
66 * Returned value is in mV to avoid floating point in the kernel.
67 * Some VID have some bits in uV scale, this is rounded to mV.
76 /* compute in uV, round to mV */ in vid_from_reg()
89 /* compute in uV, round to mV */ in vid_from_reg()
100 case 25: /* AMD NPT 0Fh */ in vid_from_reg()
102 return (val < 32) ? 1550 - 25 * val in vid_from_reg()
103 : 775 - (25 * (val - 31)) / 2; in vid_from_reg()
115 1850 - val * 25; in vid_from_reg()
119 return (val & 0x10 ? 25 : 0) + in vid_from_reg()
[all …]
Dltc4151.c87 /* Return the voltage from the given register in mV */
96 /* 500uV resolution. Convert to mV. */ in ltc4151_get_value()
107 /* 25 mV per increment */ in ltc4151_get_value()
108 val = val * 25; in ltc4151_get_value()
Dmc13783-adc.c83 * to fit the input range of the ADC. unit = 2.25mV = 9/4 mV. in mc13783_adc_bp_show()
102 * is worth 9/4 mV. in mc13783_adc_gp_show()
146 * Die Temperature Read Out Code at 25C 680 in mc13783_adc_temp_show()
153 * Die Temperature Read Out Code at 25C 282 in mc13783_adc_temp_show()
Datxp1.c104 vcore /= 25; in cpu0_vid_store()
105 vcore *= 25; in cpu0_vid_store()
127 dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); in cpu0_vid_store()
129 /* Write every 25 mV step to increase stability */ in cpu0_vid_store()
/linux-6.12.1/include/linux/usb/
Dpd.h227 #define PDO_FIXED_DATA_SWAP BIT(25) /* Data role swap supported */
232 #define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */
235 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument
238 #define PDO_FIXED(mv, ma, flags) \ argument
240 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
242 #define VSAFE5V 5000 /* mv units */
244 #define PDO_BATT_MAX_VOLT_SHIFT 20 /* 50mV units */
245 #define PDO_BATT_MIN_VOLT_SHIFT 10 /* 50mV units */
248 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument
249 #define PDO_BATT_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MAX_VOLT_SHIFT) argument
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dti,tps65086.yaml60 ti,regulator-step-size-25mv:
63 Set this if the regulator is factory set with a 25mv step voltage
119 ti,regulator-step-size-25mv;
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-vp9.c43 { 58, 50, 25, 139, 115, 232, 39, 52, 118 }, /*left = d135*/
68 { 55, 25, 21, 118, 95, 215, 38, 39, 66 }, /*left = d207*/
69 { 51, 38, 25, 113, 58, 164, 70, 93, 97 }, /*left = d63 */
92 { 37, 49, 25, 129, 168, 164, 41, 54, 148 }, /*left = tm */
96 { 47, 25, 17, 175, 222, 220, 24, 30, 86 }, /*left = h */
100 { 51, 25, 15, 136, 129, 202, 38, 35, 139 }, /*left = d153*/
108 { 56, 25, 33, 105, 112, 187, 95, 177, 129 }, /*left = d45 */
161 { 115, 9, 28, 141, 161, 167, 21, 25, 193 }, /* y = d153 */
238 { 25, 99, 155 },
280 { 12, 25, 76 },
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
Dsmu11_driver_if_arcturus.h84 #define FEATURE_TEMP_DEPENDENT_VMIN_BIT 25
442 XGMI_LINK_RATE_25 = 25, // 25Gbps
497 uint16_t UlvVoltageOffsetGfx; // In mV(Q2)
504 uint16_t MinVoltageGfx; // In mV(Q2) Minimum Voltage ("Vmin") of VDD_GFX
505 uint16_t MinVoltageSoc; // In mV(Q2) Minimum Voltage ("Vmin") of VDD_SOC
506 uint16_t MaxVoltageGfx; // In mV(Q2) Maximum Voltage allowable of VDD_GFX
507 uint16_t MaxVoltageSoc; // In mV(Q2) Maximum Voltage allowable of VDD_SOC
526 uint16_t Mp0DpmVoltage [NUM_MP0CLK_DPM_LEVELS]; // mV(Q2)
583 uint16_t DcTol[AVFS_VOLTAGE_COUNT]; // mV Q2
588 uint16_t DcBtcMin[AVFS_VOLTAGE_COUNT]; // mV Q2
[all …]
Dsmu13_driver_if_aldebaran.h63 #define FEATURE_DF_CSTATE 25
292 uint16_t MaxVoltageGfx; // In mV(Q2) Maximum Voltage allowable of VDD_GFX
293 uint16_t MaxVoltageSoc; // In mV(Q2) Maximum Voltage allowable of VDD_SOC
342 int16_t GFX_Guardband_Voltage_Cold[8]; // mV [signed]
343 int16_t GFX_Guardband_Voltage_Mid[8]; // mV [signed]
344 int16_t GFX_Guardband_Voltage_Hot[8]; // mV [signed]
347 int16_t SOC_Guardband_Voltage_Cold[8]; // mV [signed]
348 int16_t SOC_Guardband_Voltage_Mid[8]; // mV [signed]
349 int16_t SOC_Guardband_Voltage_Hot[8]; // mV [signed]
353 int16_t DcBtcMin; // mV [signed]
[all …]
Dsmu11_driver_if_sienna_cichlid.h104 #define FEATURE_TDC_BIT 25
537 XGMI_LINK_RATE_25 = 25, // 25Gbps
633 uint16_t SmnclkDpmVoltage [NUM_SMNCLK_DPM_LEVELS]; // mV(Q2)
636 uint16_t PerPartDroopVsetGfxDfll[NUM_PIECE_WISE_LINEAR_DROOP_MODEL_VF_POINTS]; //In mV(Q2)
646 uint16_t UlvVoltageOffsetSoc; // In mV(Q2)
647 uint16_t UlvVoltageOffsetGfx; // In mV(Q2)
649 uint16_t MinVoltageUlvGfx; // In mV(Q2) Minimum Voltage ("Vmin") of VDD_GFX in ULV mode
650 uint16_t MinVoltageUlvSoc; // In mV(Q2) Minimum Voltage ("Vmin") of VDD_SOC in ULV mode
652 uint16_t SocLIVmin; // In mV(Q2) Long Idle Vmin (deep ULV), for VDD_SOC
659 uint16_t MinVoltageGfx; // In mV(Q2) Minimum Voltage ("Vmin") of VDD_GFX
[all …]
/linux-6.12.1/drivers/regulator/
Dpca9450-regulator.c62 * 00: 25mV/1usec
63 * 01: 25mV/2usec
64 * 10: 25mV/4usec
65 * 11: 25mV/8usec
103 * 0.60 to 2.1875V (12.5mV step)
111 * 0.65 to 2.2375V (12.5mV step)
119 * 0.6V to 3.4V (25mV step)
137 * 0.8 to 1.15V (50mV step)
145 * 0.8 to 3.3V (100mV step)
154 * 1.8 to 3.3V (100mV step)
/linux-6.12.1/Documentation/hwmon/
Dvt1211.rst82 Voltages are sampled by an 8-bit ADC with a LSB of ~10mV. The supported input
98 +2.5V 2K 10K 1.2 2083 mV
99 VccP --- --- 1.0 1400 mV [1]_
100 +5V 14K 10K 2.4 2083 mV
101 +12V 47K 10K 5.7 2105 mV
102 +3.3V (int) 2K 3.4K 1.588 3300 mV [2]_
103 +3.3V (ext) 6.8K 10K 1.68 1964 mV
157 Vpin = 2200 * Rth / (Rs + Rth) (2200 is the ADC max limit of 2200 mV)
162 Rth = Ro * exp(B * (1 / T - 1 / To)) (To is 298.15K (25C) and Ro is the
163 nominal resistance at 25C)
/linux-6.12.1/include/dt-bindings/usb/
Dpd.h25 #define PDO_FIXED_DATA_SWAP (1 << 25) /* Data role swap supported */
26 #define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */
29 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument
32 #define PDO_FIXED(mv, ma, flags) \ argument
34 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
36 #define VSAFE5V 5000 /* mv units */
38 #define PDO_BATT_MAX_VOLT_SHIFT 20 /* 50mV units */
39 #define PDO_BATT_MIN_VOLT_SHIFT 10 /* 50mV units */
42 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument
43 #define PDO_BATT_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MAX_VOLT_SHIFT) argument
[all …]
/linux-6.12.1/fs/bcachefs/
Dmean_and_variance_test.c100 struct mean_and_variance mv = {}; in do_mean_and_variance_test() local
104 mean_and_variance_update(&mv, initial_value); in do_mean_and_variance_test()
107 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(mv), initial_value); in do_mean_and_variance_test()
108 KUNIT_EXPECT_EQ(test, mean_and_variance_get_stddev(mv), 0); in do_mean_and_variance_test()
114 mean_and_variance_update(&mv, data[i]); in do_mean_and_variance_test()
117 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(mv), mean[i]); in do_mean_and_variance_test()
118 KUNIT_EXPECT_EQ(test, mean_and_variance_get_stddev(mv), stddev[i]); in do_mean_and_variance_test()
123 KUNIT_EXPECT_EQ(test, mv.n, initial_n + n); in do_mean_and_variance_test()
131 s64 stddev[] = { 32, 29, 28, 27, 26, 25, 24 }; in mean_and_variance_test_1()
/linux-6.12.1/arch/arm/mach-omap2/
Dboard-n8x0.c74 .min_power = 25, /* x2 = 50 mA drawn from VBUS as peripheral */
166 int mV; in n8x0_mmc_set_power_menelaus() local
179 mV = 3100; in n8x0_mmc_set_power_menelaus()
182 mV = 3000; in n8x0_mmc_set_power_menelaus()
185 mV = 2800; in n8x0_mmc_set_power_menelaus()
188 mV = 1850; in n8x0_mmc_set_power_menelaus()
193 return menelaus_set_vmmc(mV); in n8x0_mmc_set_power_menelaus()
200 mV = 3300; in n8x0_mmc_set_power_menelaus()
204 mV = 3000; in n8x0_mmc_set_power_menelaus()
208 mV = 2800; in n8x0_mmc_set_power_menelaus()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dsgtl5000.h273 #define SGTL5000_ANA_GND_BASE 800 /* mv */
274 #define SGTL5000_ANA_GND_STP 25 /*mv */
311 #define SGTL5000_LINE_OUT_GND_BASE 800 /* mv */
312 #define SGTL5000_LINE_OUT_GND_STP 25
/linux-6.12.1/drivers/power/supply/
Dda9150-charger.c57 /* Read processed value - mV units */ in da9150_charger_vbus_voltage_now()
261 /* Value starts at 2500 mV, 50 mV increments, presented in uV */ in da9150_charger_battery_voltage_min()
272 /* Read processed value - mV units */ in da9150_charger_battery_voltage_now()
289 /* 25mA increments */ in da9150_charger_battery_current_max()
302 /* Value starts at 3650 mV, 25 mV increments, presented in uV */ in da9150_charger_battery_voltage_max()
/linux-6.12.1/drivers/usb/typec/tcpm/
Dmaxim_contaminant.c28 #define FLADC_1uA_LSB_MV 25
114 int mv; in max_contaminant_read_resistance_kohm() local
136 mv = max_contaminant_read_adc_mv(chip, channel, sleep_msec, raw, true); in max_contaminant_read_resistance_kohm()
137 if (mv < 0) in max_contaminant_read_resistance_kohm()
145 return mv; in max_contaminant_read_resistance_kohm()
158 mv = max_contaminant_read_adc_mv(chip, channel, sleep_msec, raw, true); in max_contaminant_read_resistance_kohm()
159 if (mv < 0) in max_contaminant_read_resistance_kohm()
171 return mv; in max_contaminant_read_resistance_kohm()
/linux-6.12.1/drivers/scsi/
Dch.c711 struct changer_move mv; in ch_ioctl() local
713 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
716 if (0 != ch_checkrange(ch, mv.cm_fromtype, mv.cm_fromunit) || in ch_ioctl()
717 0 != ch_checkrange(ch, mv.cm_totype, mv.cm_tounit )) { in ch_ioctl()
724 ch->firsts[mv.cm_fromtype] + mv.cm_fromunit, in ch_ioctl()
725 ch->firsts[mv.cm_totype] + mv.cm_tounit, in ch_ioctl()
726 mv.cm_flags & CM_INVERT); in ch_ioctl()
733 struct changer_exchange mv; in ch_ioctl() local
735 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
738 if (0 != ch_checkrange(ch, mv.ce_srctype, mv.ce_srcunit ) || in ch_ioctl()
[all …]
/linux-6.12.1/drivers/staging/fbtft/
Dfb_hx8353d.c55 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, in init_display()
78 #define mv BIT(5) macro
96 my | mv | (par->bgr << 3)); in set_var()
104 mx | mv | (par->bgr << 3)); in set_var()
/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c774 cmd->rsp.arg[0] |= (1 << 25); in qlcnic_sriov_pf_channel_cfg_cmd()
784 cmd->rsp.arg[0] |= (2 << 25); in qlcnic_sriov_pf_channel_cfg_cmd()
793 struct qlcnic_macvlan_mbx mv; in qlcnic_sriov_cfg_vf_def_mac() local
825 mv.vlan = vlan; in qlcnic_sriov_cfg_vf_def_mac()
826 mv.mac_addr0 = addr[0]; in qlcnic_sriov_cfg_vf_def_mac()
827 mv.mac_addr1 = addr[1]; in qlcnic_sriov_cfg_vf_def_mac()
828 mv.mac_addr2 = addr[2]; in qlcnic_sriov_cfg_vf_def_mac()
829 mv.mac_addr3 = addr[3]; in qlcnic_sriov_cfg_vf_def_mac()
830 mv.mac_addr4 = addr[4]; in qlcnic_sriov_cfg_vf_def_mac()
831 mv.mac_addr5 = addr[5]; in qlcnic_sriov_cfg_vf_def_mac()
[all …]
/linux-6.12.1/drivers/iio/accel/
Dadis16201.c116 /* Voltage base units are mV hence 1.22 mV */ in adis16201_read_raw()
120 /* Voltage base units are mV hence 0.61 mV */ in adis16201_read_raw()
149 * is 25 degrees and the scale factor per milli in adis16201_read_raw()
/linux-6.12.1/include/linux/
Dhwmon-vid.h18 val is in mV to avoid floating point in the kernel.
27 ((18499 - val * 10) / 25 + 5) / 10 : -1); in vid_to_reg()
/linux-6.12.1/drivers/iio/adc/
Dvf610_adc.c96 /* V at 25°C of 696 mV */
98 /* V at 25°C of 699 mV */
181 static const u32 vf610_lst_adder[] = { 3, 5, 7, 9, 13, 17, 21, 25 };
224 * BCT (Base Conversion Time): fixed to 25 ADCK cycles for 12 bit mode in vf610_adc_calculate_rates()
225 * LSTAdder(Long Sample Time): 3, 5, 7, 9, 13, 17, 21, 25 ADCK cycles in vf610_adc_calculate_rates()
230 (25 + vf610_lst_adder[adc_feature->lst_adder_index])); in vf610_adc_calculate_rates()
662 * Using the typical sensor slope of 1.84 mV/°C in vf610_read_sample()
663 * and VREFH_ADC at 3.3V, V at 25°C of 699 mV in vf610_read_sample()

123456