/linux-master/drivers/input/keyboard/ |
H A D | adc-keys.c | 20 u32 voltage; member in struct:adc_keys_button 45 diff = abs(st->map[i].voltage - value); 85 &map[i].voltage)) { 86 dev_err(dev, "Key with invalid or missing voltage\n"); 90 map[i].voltage /= 1000; 137 dev_err(dev, "Invalid or missing keyup voltage\n");
|
/linux-master/sound/soc/img/ |
H A D | pistachio-internal-dac.c | 146 int ret, voltage; local 173 voltage = regulator_get_voltage(dac->supply); 175 switch (voltage) { 183 dev_err(dev, "invalid voltage: %d\n", voltage);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | sharpsl_pm.h | 55 int voltage; member in struct:battery_thresh
|
/linux-master/drivers/firmware/arm_scmi/ |
H A D | Makefile | 13 scmi-protocols-y = base.o clock.o perf.o power.o reset.o sensors.o system.o voltage.o powercap.o
|
/linux-master/drivers/misc/cardreader/ |
H A D | rtl8411.c | 184 static int rtl8411_do_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage, argument 191 if (voltage == OUTPUT_3V3) { 197 } else if (voltage == OUTPUT_1V8) { 210 static int rtl8411_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 212 return rtl8411_do_switch_output_voltage(pcr, voltage, 216 static int rtl8402_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 218 return rtl8411_do_switch_output_voltage(pcr, voltage,
|
H A D | rts5229.c | 135 static int rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 139 if (voltage == OUTPUT_3V3) { 147 } else if (voltage == OUTPUT_1V8) {
|
H A D | rts5209.c | 153 static int rts5209_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 157 if (voltage == OUTPUT_3V3) { 165 } else if (voltage == OUTPUT_1V8) {
|
/linux-master/drivers/input/misc/ |
H A D | drv260x.c | 180 * @overdrive_voltage: The over drive voltage of the actuator 203 * and v is the rated or overdriver voltage of the actuator 205 static int drv260x_calculate_voltage(unsigned int voltage) argument 207 return (voltage * 255 / 5600); 426 u32 voltage; local 472 error = device_property_read_u32(dev, "vib-rated-mv", &voltage); 474 drv260x_calculate_voltage(voltage); 476 error = device_property_read_u32(dev, "vib-overdrive-mv", &voltage); 478 drv260x_calculate_voltage(voltage);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gm20b.c | 136 /* safe frequency we can use at minimum voltage */ 183 * Determine DFS_COEFF for the requested voltage. Always select external 184 * calibration override equal to the voltage, and set maximum detection 186 * voltage increases). 198 /* coeff = slope * voltage + offset */ 476 clk->new_uv = volt->vid[cstate->voltage].uv; 485 * Compute PLL parameters that are always safe for the current voltage 586 * 1. If voltage is increasing: 592 * 2. If voltage is decreasing: 598 * i.e., it is low enough to be safe at any voltage i [all...] |
H A D | base.c | 84 int voltage; local 105 voltage = nvkm_volt_map(volt, cstate->voltage, temp); 106 if (voltage < 0) 108 return voltage <= min(max_volt, volt->max_uv); 187 ret = nvkm_volt_set_id(volt, cstate->voltage, 188 pstate->base.voltage, clk->temp, +1); 190 nvkm_error(subdev, "failed to raise voltage: %d\n", ret); 202 ret = nvkm_volt_set_id(volt, cstate->voltage, 203 pstate->base.voltage, cl [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/ |
H A D | vg_clk_mgr.c | 496 .voltage = 0, 503 .voltage = 0, 510 .voltage = 0, 517 .voltage = 0, 544 unsigned int voltage) 551 if (clock_table->SocVoltage[i] == voltage) 591 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[j].voltage; 592 bw_params->clk_table.entries[i].dcfclk_mhz = find_dcfclk_for_voltage(clock_table, clock_table->DfPstateTable[j].voltage); 596 bw_params->clk_table.entries[i].voltage 543 find_dcfclk_for_voltage(const struct vg_dpm_clocks *clock_table, unsigned int voltage) argument [all...] |
/linux-master/drivers/media/firewire/ |
H A D | firedtv.h | 98 enum fe_sec_voltage voltage; member in struct:firedtv 118 int avc_lnb_control(struct firedtv *fdtv, char voltage, char burst,
|
H A D | firedtv-fe.c | 74 enum fe_sec_voltage voltage) 78 fdtv->voltage = voltage; 73 fdtv_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-f300.c | 137 int f300_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument 145 switch (voltage) {
|
/linux-master/drivers/regulator/ |
H A D | tps6524x-regulator.c | 132 struct field enable, voltage, ilimsel; member in struct:supply_info 383 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK, 394 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK, 405 .voltage = __MK_FIELD(REG_DCDC_SET, DCDC_VDCDC_MASK, 416 .voltage = __MK_FIELD(REG_LDO_SET, LDO_VSEL_MASK, 429 .voltage = __MK_FIELD(REG_LDO_SET, LDO_VSEL_MASK, 467 return write_field(hw, &info->voltage, selector); 482 ret = read_field(hw, &info->voltage);
|
H A D | internal.h | 38 * @voltage - a voltage array for each state of runtime, i.e.: 54 struct regulator_voltage voltage[REGULATOR_STATES_NUM]; member in struct:regulator
|
H A D | max8649.c | 62 int voltage, rate, ret; local 65 /* get voltage */ 70 voltage = regulator_list_voltage_linear(rdev, (unsigned char)val); 79 return DIV_ROUND_UP(voltage, rate); 270 MODULE_DESCRIPTION("MAXIM 8649 voltage regulator driver");
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atombios.h | 181 u16 voltage_id, u16 *voltage); 183 u16 *voltage,
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | lnbp21.c | 31 enum fe_sec_voltage voltage) 40 switch(voltage) { 30 lnbp21_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/arch/arm/mach-omap2/ |
H A D | voltage.h | 16 #include <linux/platform_data/voltage-omap.h> 32 * struct omap_vfsm_instance - per-voltage manager FSM register/bitfield 47 * struct voltagedomain - omap voltage domain global structure. 48 * @name: Name of the voltage domain which can be used as a unique identifier. 49 * @scalable: Whether or not this voltage domain is scalable 50 * @node: list_head linking all voltage domains 57 * @scale: function used to scale the voltage of the voltagedomain 58 * @nominal_volt: current nominal voltage for this voltage domain 59 * @volt_data: voltage tabl [all...] |
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomctrl.h | 165 uint16_t us_max_nb_voltage; /* high NB voltage, calculated using current VDDNB (D24F2xDC) and VDDNB offset fuse; */ 166 uint16_t us_min_nb_voltage; /* low NB voltage, calculated using current VDDNB (D24F2xDC) and VDDNB offset fuse; */ 167 uint16_t us_bootup_nb_voltage; /* boot up NB voltage */ 294 extern int atomctrl_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage); 295 extern int atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, uint16_t virtual_voltage_id, uint16_t *voltage); 320 uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage, uint16_t dpm_level, bool debug); 325 uint32_t sclk, uint16_t virtual_voltage_Id, uint32_t *voltage);
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | rv770_dpm.h | 98 /* voltage */ 219 RV770_SMC_VOLTAGE_VALUE *voltage); 221 RV770_SMC_VOLTAGE_VALUE *voltage); 225 RV770_SMC_VOLTAGE_VALUE *voltage);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | volt.c | 145 info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; 149 info->voltage = nvbios_rd08(bios, volt + 0x00) * 10000; 155 info->voltage = nvbios_rd32(bios, volt) & 0x001fffff;
|
/linux-master/drivers/power/supply/ |
H A D | ipaq_micro_battery.c | 44 unsigned int voltage; member in struct:micro_battery 70 * byte 2: voltage LSB 71 * byte 3: voltage MSB 77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + 167 val->intval = mb->voltage;
|
/linux-master/drivers/platform/surface/ |
H A D | surface3_power.c | 274 int rate, capacity, voltage, state; local 285 voltage = i2c_smbus_read_word_data(client, MSHW0011_BAT0_REG_VOLTAGE); 286 if (voltage < 0) 287 return voltage; 300 bst->battery_present_voltage = voltage;
|