/linux-master/include/linux/ |
H A D | devfreq_cooling.h | 39 unsigned long freq, unsigned long voltage);
|
H A D | pmu.h | 71 unsigned int voltage; /* voltage */ member in struct:pmu_battery_info
|
/linux-master/drivers/soc/samsung/ |
H A D | exynos-asv.h | 43 int level, unsigned int voltage);
|
/linux-master/drivers/regulator/ |
H A D | pwm-regulator.c | 156 unsigned int voltage; local 167 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); 168 if (voltage < min(max_uV_duty, min_uV_duty) || 169 voltage > max(max_uV_duty, min_uV_duty)) 178 voltage = min_uV_duty - voltage; 181 voltage = voltage - min_uV_duty; 185 voltage = DIV_ROUND_CLOSEST_ULL((u64)voltage * diff_u [all...] |
H A D | max20411-regulator.c | 39 int voltage, rate, ret; local 42 /* get voltage */ 48 voltage = regulator_list_voltage_linear(rdev, val); 58 return DIV_ROUND_UP(voltage, rate); 82 * voltage = 0.24375V + selector * 6.25mV
|
H A D | helpers.c | 304 * @min_uV: Lower bound for voltage 305 * @max_uV: Upper bound for voltage 309 * voltage by calling list_voltage() until it gets something in bounds 319 /* Find the smallest voltage that falls within the specified 341 * regulator_map_voltage_ascend - map_voltage() for ascendant voltage list 344 * @min_uV: Lower bound for voltage 345 * @max_uV: Upper bound for voltage 347 * Drivers that have ascendant voltage list can use this as their 375 * @min_uV: Lower bound for voltage 376 * @max_uV: Upper bound for voltage 384 int ret, voltage; local 434 int voltage, i; local 481 int voltage, i; local [all...] |
/linux-master/arch/m68k/amiga/ |
H A D | pcmcia.c | 23 /* gayle config byte for program voltage and access speed */ 68 void pcmcia_program_voltage(int voltage) argument 72 switch (voltage) {
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk20a.c | 370 .voltage = 0, 376 .voltage = 1, 382 .voltage = 2, 388 .voltage = 3, 394 .voltage = 4, 400 .voltage = 5, 406 .voltage = 6, 412 .voltage = 7, 418 .voltage = 8, 424 .voltage [all...] |
/linux-master/drivers/misc/cardreader/ |
H A D | rts5227.c | 25 static void rts5227_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument 41 if (voltage == OUTPUT_3V3) { 245 static int rts5227_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 249 if (voltage == OUTPUT_3V3) { 253 } else if (voltage == OUTPUT_1V8) { 266 rts5227_fill_driving(pcr, voltage); 397 static int rts522a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 401 if (voltage == OUTPUT_3V3) { 405 } else if (voltage == OUTPUT_1V8) { 418 rts5227_fill_driving(pcr, voltage); [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | rs600.c | 232 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; local 236 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) { 238 tmp = RREG32(voltage->gpio.reg); 239 if (voltage->active_high) 240 tmp |= voltage->gpio.mask; 242 tmp &= ~(voltage->gpio.mask); 243 WREG32(voltage->gpio.reg, tmp); 244 if (voltage [all...] |
H A D | btc_dpm.h | 51 u32 clock, u16 max_voltage, u16 *voltage);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | perf.c | 109 info->voltage = nvbios_rd08(bios, perf + 0x38); 115 info->voltage = nvbios_rd08(bios, perf + 0x05); 131 info->voltage = nvbios_rd08(bios, perf + 0x05); 141 info->voltage = nvbios_rd08(bios, perf + 0x07); 149 info->voltage = nvbios_rd08(bios, perf + 0x02);
|
/linux-master/drivers/power/supply/ |
H A D | cpcap-charger.c | 48 #define CPCAP_REG_CRM_VCHRG3 BIT(7) /* Charge voltage bits */ 142 int voltage; member in struct:cpcap_charger_ddata 221 val->intval = ddata->voltage; 247 static int cpcap_charger_match_voltage(int voltage) argument 249 switch (voltage) { 275 int voltage = ddata->voltage; local 284 voltage = prop.intval; 289 return voltage; 317 int voltage, batvol local 568 cpcap_charger_voltage_to_regval(int voltage) argument [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | lnbh29.c | 70 "LNBH29 voltage in failure state, status reg 0x%x\n", 79 enum fe_sec_voltage voltage) 91 switch (voltage) { 119 if (voltage == SEC_VOLTAGE_OFF) 78 lnbh29_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
H A D | lnbh25.c | 74 "%s(): voltage in failure state, status reg 0x%x\n", 82 enum fe_sec_voltage voltage) 95 switch (voltage) { 124 if (voltage != SEC_VOLTAGE_OFF) { 81 lnbh25_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
H A D | isl6405.c | 30 enum fe_sec_voltage voltage) 39 switch (voltage) { 53 switch (voltage) { 29 isl6405_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/drivers/mfd/ |
H A D | tps65911-comparator.c | 23 /* Comparator 1 voltage selection table in millivolts */ 53 static int comp_threshold_set(struct tps65910 *tps65910, int id, int voltage) argument 62 if (curr_voltage >= voltage) 64 else if (curr_voltage < voltage)
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | vp702x-fe.c | 25 enum fe_sec_voltage voltage; member in struct:vp702x_fe_state 168 if (st->voltage == SEC_VOLTAGE_18) 285 enum fe_sec_voltage voltage) 292 st->voltage = voltage; 294 if (voltage != SEC_VOLTAGE_OFF) 284 vp702x_fe_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/drivers/input/keyboard/ |
H A D | sun4i-lradc-keys.c | 91 u32 voltage; member in struct:sun4i_lradc_keymap 112 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; local 128 voltage = val * lradc->vref / 63; 131 diff = abs(lradc->chan0_map[i].voltage - voltage); 237 error = of_property_read_u32(pp, "voltage", &map->voltage); 239 dev_err(dev, "%pOFn: Inval voltage prop\n", pp);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | sharpsl_pm.c | 179 static int get_percentage(int voltage) argument 190 while (i > 0 && (voltage > thresh[i].voltage)) 196 static int get_apm_status(int voltage) argument 208 if (voltage >= high_thresh) 210 if (voltage >= low_thresh) 222 int voltage, percent, apm_status, i; local 235 voltage = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT); 236 if (voltage > 0) 239 if (voltage < [all...] |
/linux-master/drivers/thermal/ |
H A D | devfreq_cooling.c | 151 unsigned long voltage; local 164 voltage = dev_pm_opp_get_voltage(opp) / 1000; /* mV */ 167 if (voltage == 0) { 169 "Failed to get voltage for frequency %lu\n", 173 return voltage; 199 unsigned long voltage; local 209 voltage = get_voltage(df, freq); 210 if (voltage == 0) { 215 res = dfc->power_ops->get_real_power(df, power, freq, voltage);
|
/linux-master/drivers/hwmon/ |
H A D | adt7475.c | 206 u8 bypass_attn; /* Bypass voltage attenuator */ 211 u16 voltage[3][7]; member in struct:adt7475_data 279 /* Scaling factors for voltage inputs, taken from the ADT7490 datasheet */ 347 val = data->voltage[sattr->nr][sattr->index]; 369 data->voltage[sattr->nr][sattr->index] = 390 data->voltage[sattr->nr][sattr->index] >> 2); 1093 static SENSOR_DEVICE_ATTR_2_RO(in0_input, voltage, INPUT, 0); 1094 static SENSOR_DEVICE_ATTR_2_RW(in0_max, voltage, MAX, 0); 1095 static SENSOR_DEVICE_ATTR_2_RW(in0_min, voltage, MIN, 0); 1096 static SENSOR_DEVICE_ATTR_2_RO(in0_alarm, voltage, ALAR [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | amipcmcia.h | 22 void pcmcia_program_voltage(int voltage);
|
/linux-master/arch/arm/mach-omap2/ |
H A D | vp.h | 83 * @voltage: PRM_VP*_VOLTAGE reg offset from PRM start 96 u8 voltage; member in struct:omap_vp_instance
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | perf.h | 10 u8 voltage; member in struct:nvbios_perfE
|