/linux/drivers/power/supply/ |
H A D | pcf50633-charger.c | 36 int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma) in pcf50633_mbc_usb_curlim_set() argument 44 if (ma >= 1000) { in pcf50633_mbc_usb_curlim_set() 46 ma = 1000; in pcf50633_mbc_usb_curlim_set() 47 } else if (ma >= 500) { in pcf50633_mbc_usb_curlim_set() 49 ma = 500; in pcf50633_mbc_usb_curlim_set() 50 } else if (ma >= 100) { in pcf50633_mbc_usb_curlim_set() 52 ma = 100; in pcf50633_mbc_usb_curlim_set() 55 ma = 0; in pcf50633_mbc_usb_curlim_set() 61 dev_err(pcf->dev, "error setting usb curlim to %d mA\n", ma); in pcf50633_mbc_usb_curlim_set() 63 dev_info(pcf->dev, "usb curlim to %d mA\n", ma); in pcf50633_mbc_usb_curlim_set() [all …]
|
H A D | axp288_charger.c | 41 #define VBUS_ISPOUT_CUR_LIM_900MA 0x0 /* 900mA */ 42 #define VBUS_ISPOUT_CUR_LIM_1500MA 0x1 /* 1500mA */ 43 #define VBUS_ISPOUT_CUR_LIM_2000MA 0x2 /* 2000mA */ 44 #define VBUS_ISPOUT_CUR_NO_LIM 0x3 /* 2500mA */ 54 #define CHRG_CCCV_CC_OFFSET 200 /* 200mA */ 55 #define CHRG_CCCV_CC_LSB_RES 200 /* 200mA */ 79 #define CHRG_VBUS_ILIM_100MA 0x0 /* 100mA */ 80 #define CHRG_VBUS_ILIM_500MA 0x1 /* 500mA */ 81 #define CHRG_VBUS_ILIM_900MA 0x2 /* 900mA */ 82 #define CHRG_VBUS_ILIM_1500MA 0x3 /* 1500mA */ [all …]
|
H A D | sc2731_charger.c | 46 /* Default current definition (unit is mA) */ 120 /* Calculate the step value, each step is 50 mA */ in sc2731_charger_set_current() 123 /* Set pre-charge current as 450 mA */ in sc2731_charger_set_current() 218 ret = sc2731_charger_set_current(info, val->intval / 1000); in sc2731_charger_usb_set_property() 225 val->intval / 1000); in sc2731_charger_usb_set_property() 264 val->intval = cur * 1000; in sc2731_charger_usb_get_property() 276 val->intval = cur * 1000; in sc2731_charger_usb_get_property() 387 * default charge termination current to 120 mA, and default in sc2731_charger_hw_init() 393 term_currrent = bat_info->charge_term_current_ua / 1000; in sc2731_charger_hw_init() 402 term_voltage = bat_info->constant_charge_voltage_max_uv / 1000; in sc2731_charger_hw_init()
|
H A D | adp5061.c | 82 #define ADP5061_ICHG_MAX 1300 // mA 120 700, 750, 800, 850, 900, 950, 1000, 1050, 1100, 1200, 1300, 132 800, 900, 1000, 1200, 1500, 1800, 2100, 186 val->intval = adp5061_in_current_lim[mode] * 1000; in adp5061_get_input_current_limit() 195 /* Convert from uA to mA */ in adp5061_set_input_current_limit() 196 val /= 1000; in adp5061_set_input_current_limit() 213 val /= 1000; in adp5061_set_min_voltage() 236 val->intval = adp5061_vmin[regval] * 1000; in adp5061_get_min_voltage() 252 val->intval = adp5061_const_chg_vmax[mode] * 1000; in adp5061_get_chg_volt_lim() 271 val->intval = adp5061_vmax[regval] * 1000; in adp5061_get_max_voltage() [all …]
|
H A D | axp20x_usb_power.c | 228 &val->intval, 1000); in axp20x_usb_power_get_property() 256 * IIO framework gives mA but Power Supply framework in axp20x_usb_power_get_property() 260 &val->intval, 1000); in axp20x_usb_power_get_property() 272 val->intval = ret * 375; /* 1 step = 0.375 mA */ in axp20x_usb_power_get_property() 351 /* 50ma step size with 100ma offset. */ in axp717_usb_power_get_property() 380 &val->intval, 1000); in axp717_usb_power_get_property() 392 val->intval = (ret % AXP717_ADC_DATA_MASK) * 1000; in axp717_usb_power_get_property() 437 /* step size of 80ma with 3.88v offset. */ in axp717_usb_power_set_voltage_min() 489 /* Minimum value of 100mA and maximum value of 3.25A*/ in axp717_usb_power_set_input_current_limit() 500 /* Minimum value of 100mA with step size of 50mA. */ in axp717_usb_power_set_input_current_limit()
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cs35l34.txt | 18 in nH and they can be values of 1000nH, 1100nH, 1200nH, 1500nH, and 2200nH. 28 - cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The 29 range starts at 1200mA and goes to a maximum of 3840mA with increments of 30 80mA. The default value is 2480mA. 60 cirrus,boost-ind-nanohenry = <1000>; /* 1uH */
|
H A D | cirrus,cs35l41.yaml | 44 Boost-converter peak current limit in mA. 46 Range starts at 1600 mA and goes to a maximum of 4500 mA with increments 47 of 50 mA. See section 4.3.6 of the datasheet for details. 56 values include 1000, 1200, 1500 and 2200. 58 minimum: 1000 206 cirrus,boost-ind-nanohenry = <1000>;
|
H A D | cs35l36.txt | 18 - cirrus,boost-peak-milliamp : Boost-converter peak current limit in mA. 20 Range starts at 1600mA and goes to a maximum of 4500mA with increments of 21 50mA. 28 1000 = 1uH (Default) 71 7 = 1000ms 147 cirrus,boost-ind-nanohenry = <1000>;
|
/linux/include/linux/mfd/ |
H A D | adp5520.h | 239 * Blacklight current 0..30mA 244 * L2 comparator current 0..1000uA 246 #define ADP5520_L2_COMP_CURR_uA(I) ((I * 255) / 1000) 260 u8 l1_daylight_max; /* use BL_CUR_mA(I) 0 <= I <= 30 mA */ 261 u8 l1_daylight_dim; /* typ = 0, use BL_CUR_mA(I) 0 <= I <= 30 mA */ 262 u8 l2_office_max; /* use BL_CUR_mA(I) 0 <= I <= 30 mA */ 263 u8 l2_office_dim; /* typ = 0, use BL_CUR_mA(I) 0 <= I <= 30 mA */ 264 u8 l3_dark_max; /* use BL_CUR_mA(I) 0 <= I <= 30 mA */ 265 u8 l3_dark_dim; /* typ = 0, use BL_CUR_mA(I) 0 <= I <= 30 mA */ 266 u8 l2_trip; /* use L2_COMP_CURR_uA(I) 0 <= I <= 1000 uA */ [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | ti,lp8727.yaml | 53 0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA, 54 6 = 700mA, 7 = 800mA, 8 = 900mA, 9 = 1000mA 76 /* AC charger: 5% EOC and 500mA charging current */ 83 /* USB charger: 10% EOC and 400mA charging current */
|
/linux/drivers/iio/dac/ |
H A D | ad5758.c | 130 * 1000: 0 mA to 20 mA current range 131 * 1001: 0 mA to 24 mA current range 132 * 1010: 4 mA to 20 mA current range 133 * 1011: ±20 mA current range 134 * 1100: ±24 mA current range 135 * 1101: -1 mA to +22 mA current range 170 { AD5758_RANGE_MINUS_1mA_PLUS_22mA, -1000, 22000 }, 175 1000, 512, 256, 128, 64, 16 274 usleep_range(100, 1000); in ad5758_wait_for_task_complete() 311 usleep_range(100, 1000); in ad5758_soft_reset() [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | mediatek,mt8183-pinctrl.yaml | 114 enum: [125, 250, 500, 1000] 122 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they 123 can support 0.125/0.25/0.5/1mA adjustment. If we enable specific 126 When E1=0/E0=0, the strength is 0.125mA. 127 When E1=0/E0=1, the strength is 0.25mA. 128 When E1=1/E0=0, the strength is 0.5mA. 129 When E1=1/E0=1, the strength is 1mA. 225 drive-strength-microamp = <1000>;
|
H A D | mediatek,mt8365-pinctrl.yaml | 118 enum: [125, 250, 500, 1000] 126 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they 127 can support 0.125/0.25/0.5/1mA adjustment. If we enable specific 130 When E1=0/E0=0, the strength is 0.125mA. 131 When E1=0/E0=1, the strength is 0.25mA. 132 When E1=1/E0=0, the strength is 0.5mA. 133 When E1=1/E0=1, the strength is 1mA. 212 pio: pinctrl@1000b000 {
|
/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74115.yaml | 195 When not present, the DAC short-circuit current limit is 32mA in 196 either source or sink for VOUT and 4mA sink for IOUT. 197 When present, the limit is 16mA in either source or sink for VOUT, 198 1mA sink for IOUT. 212 enum: [250, 500, 750, 1000] 222 enum: [0, 50, 500, 1000, 10000] 237 enum: [0, 50, 500, 1000, 10000] 252 enum: [0, 1000, 10000]
|
/linux/drivers/phy/mediatek/ |
H A D | phy-mtk-hdmi-mt8195.c | 313 * data channel bias 24mA, clock channel bias 20mA in mtk_hdmi_pll_drv_setting() 316 * data channel 20mA, clock channel 16mA in mtk_hdmi_pll_drv_setting() 318 * data channel & clock channel bias 10mA in mtk_hdmi_pll_drv_setting() 323 data_channel_bias = 0x3c; /* 24mA */ in mtk_hdmi_pll_drv_setting() 324 clk_channel_bias = 0x34; /* 20mA */ in mtk_hdmi_pll_drv_setting() 327 } else if (((u64)pixel_clk * 1000) >= 74175 * MEGA && pixel_clk <= 300 * MEGA) { in mtk_hdmi_pll_drv_setting() 328 data_channel_bias = 0x34; /* 20mA */ in mtk_hdmi_pll_drv_setting() 329 clk_channel_bias = 0x2c; /* 16mA */ in mtk_hdmi_pll_drv_setting() 332 } else if (pixel_clk >= 27 * MEGA && ((u64)pixel_clk * 1000) < 74175 * MEGA) { in mtk_hdmi_pll_drv_setting() 333 data_channel_bias = 0x14; /* 10mA */ in mtk_hdmi_pll_drv_setting() [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-stm32-usbphyc.yaml | 96 enum: [ 1000, 2000 ] 129 - <0> = 18.87 mA target current / nominal + 0% 130 - <1> = 19.165 mA target current / nominal + 1.56% 131 - <2> = 19.46 mA target current / nominal + 3.12% 132 - <3> = 19.755 mA target current / nominal + 4.68% 133 - <4> = 20.05 mA target current / nominal + 6.24% 134 - <5> = 20.345 mA target current / nominal + 7.8% 135 - <6> = 20.64 mA target current / nominal + 9.36% 136 - <7> = 20.935 mA target current / nominal + 10.92% 137 - <8> = 21.23 mA target current / nominal + 12.48% [all …]
|
/linux/drivers/hwmon/ |
H A D | ina238.c | 87 * shunt = 0x4000 / (819.2 * 10^6) / 0.001 = 20000 uOhms (with 1mA/lsb) 89 * Current (mA) = register value * 20000 / rshunt / 4 * gain 201 (1000 * (4 - data->gain + 1)); in ina238_read_in() 203 *val = (regval * INA238_BUS_VOLTAGE_LSB) / 1000; in ina238_read_in() 228 regval = (regval * 1000 * (4 - data->gain + 1)) / in ina238_write_in() 245 regval = (regval * 1000) / INA238_BUS_VOLTAGE_LSB; in ina238_write_in() 275 /* Signed register, fixed 1mA current lsb. result in mA */ in ina238_read_current() 299 /* Fixed 1mA lsb, scaled by 1000000 to have result in uW */ in ina238_read_power() 300 power = div_u64(regval * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power() 314 power = div_u64((regval << 8) * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power() [all …]
|
H A D | ltc4215.c | 85 voltage = regval * 151 / 1000; in ltc4215_get_voltage() 96 voltage = regval * 482 * 125 / 1000; in ltc4215_get_voltage() 107 /* Return the current from the sense resistor in mA */ 120 * the following: X uV / Y mOhm == Z mA in ltc4215_get_current() 159 /* current in mA * voltage in mV == power in uW */ in ltc4215_power_show()
|
H A D | ltc2945.c | 70 * @shunt_resistor: shunt resistor value in micro ohms (1000 by default) 82 /* Return the value from the given register in uW, mV, or mA */ 127 val *= 1000; 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() 199 val = DIV_ROUND_CLOSEST_ULL(val, 625 * 1000); in ltc2945_val_to_reg() 205 val = DIV_ROUND_CLOSEST_ULL(val, 25 * 1000) * 2; in ltc2945_val_to_reg() 230 /* 25 uV resolution. Convert to mA. */ in ltc2945_val_to_reg() 233 val = DIV_ROUND_CLOSEST_ULL(val, 25 * 1000); in ltc2945_val_to_reg() 496 data->shunt_resistor = 1000; in ltc2945_probe()
|
/linux/Documentation/translations/it_IT/process/ |
H A D | 1.Intro.rst | 68 Il kernel Linux, ha oltre 8 milioni di linee di codice e ben oltre 1000 91 libero. Ma, anzi, il kernel è persino più aperto rispetto a molti altri 93 coinvolgere 1000 sviluppatori che lavorano per più di 100 differenti aziende 97 difficile. Ma, ciononostante, diversi potenziali contributori hanno trovato 106 intimidatorio e strano ai nuovi sviluppatori, ma ha dietro di se buone ragioni 114 queste esperienze spiacevoli. C'è molto materiale qui, ma lo sforzo della 162 alta qualità. Ma una delle conseguenze di questa politica è che qualsiasi 189 "reclamano da bordo campo" sono ascoltati, ma gli sviluppatori attivi 222 esclusivamente da un giudice. Ma l'incertezza che perseguita quei moduli 249 Ma anche questi prodotti, hanno una vita commerciale limitata, dopo la quale [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad5755.yaml | 86 4: 4 mA to 20 mA current range. 87 5: 0 mA to 20 mA current range. 88 6: 0 mA to 24 mA current range. 108 - enum: [64000, 32000, 16000, 8000, 4000, 2000, 1000, 500, 250, 125, 64, 32, 16, 8, 4, 0]
|
/linux/fs/hostfs/ |
H A D | hostfs_user.c | 200 int err, ma; in set_attr() local 240 ma = (HOSTFS_ATTR_ATIME_SET | HOSTFS_ATTR_MTIME_SET); in set_attr() 241 if (attrs->ia_valid & ma) { in set_attr() 247 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr() 249 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr() 253 times[0].tv_usec = attrs->ia_atime.tv_nsec / 1000; in set_attr() 257 times[1].tv_usec = attrs->ia_mtime.tv_nsec / 1000; in set_attr()
|
/linux/drivers/iio/adc/ |
H A D | ina2xx-adc.c | 55 #define INA219_DEFAULT_PGA 125 /* 1000/8 */ 235 /* processed (mV) = raw * lsb (uV) / 1000 */ in ina2xx_read_raw() 237 *val2 = 1000; in ina2xx_read_raw() 242 * processed (mA) = raw * current_lsb (mA) in ina2xx_read_raw() 243 * current_lsb (mA) = shunt_voltage_lsb (nV) / in ina2xx_read_raw() 253 * power_lsb (mW) = power_lsb_factor (mW/mA) * in ina2xx_read_raw() 254 * current_lsb (mA) in ina2xx_read_raw() 267 *val2 = 1000; in ina2xx_read_raw() 427 static const int ina219_vshunt_gain_tab[] = { 125, 250, 500, 1000 }; 429 125, 1000, 250, 1000, 500, 1000, 1000, 1000 }; [all …]
|
/linux/include/linux/usb/ |
H A D | pd.h | 233 #define PDO_FIXED_CURR_SHIFT 0 /* 10mA units */ 236 #define PDO_FIXED_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_FIXED_CURR_SHIFT) argument 238 #define PDO_FIXED(mv, ma, flags) \ argument 240 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma)) 258 #define PDO_VAR_MAX_CURR_SHIFT 0 /* 10mA units */ 262 #define PDO_VAR_MAX_CURR(ma) ((((ma) / 10) & PDO_CURR_MASK) << PDO_VAR_MAX_CURR_SHIFT) argument 279 #define PDO_PPS_APDO_MAX_CURR_SHIFT 0 /* 50mA units */ 288 #define PDO_PPS_APDO_MAX_CURR(ma) \ argument 289 ((((ma) / 50) & PDO_PPS_APDO_CURR_MASK) << PDO_PPS_APDO_MAX_CURR_SHIFT) 365 #define PDO_FIXED_OP_CURR(ma) ((((ma) / 10) & RDO_CURR_MASK) << RDO_FIXED_OP_CURR_SHIFT) argument [all …]
|
/linux/drivers/leds/flash/ |
H A D | leds-rt8515.c | 37 /* We can provide 15-700 mA out to the LED */ 259 max_ma = (5500 * 1000) / res; in rt8515_determine_max_intensity() 262 * Formula is ((ua / 1000) / max_ma) * 100, then simplified in rt8515_determine_max_intensity() 267 "current restricted from %u to %u mA, max intensity %d/100\n", in rt8515_determine_max_intensity() 268 max_ma, (ua / 1000), max_intensity); in rt8515_determine_max_intensity() 271 dev_info(rt->dev, "max intensity %d/%d = %d mA\n", in rt8515_determine_max_intensity()
|