Searched refs:voltage (Results 51 - 75 of 251) sorted by relevance

1234567891011

/linux-master/drivers/input/keyboard/
H A Dadc-keys.c20 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 Dpistachio-internal-dac.c146 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 Dsharpsl_pm.h55 int voltage; member in struct:battery_thresh
/linux-master/drivers/firmware/arm_scmi/
H A DMakefile13 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 Drtl8411.c184 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 Drts5229.c135 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 Drts5209.c153 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 Ddrv260x.c180 * @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 Dgm20b.c136 /* 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 Dbase.c84 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 Dvg_clk_mgr.c496 .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 Dfiredtv.h98 enum fe_sec_voltage voltage; member in struct:firedtv
118 int avc_lnb_control(struct firedtv *fdtv, char voltage, char burst,
H A Dfiredtv-fe.c74 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 Dcx23885-f300.c137 int f300_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
145 switch (voltage) {
/linux-master/drivers/regulator/
H A Dtps6524x-regulator.c132 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 Dinternal.h38 * @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 Dmax8649.c62 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 Damdgpu_atombios.h181 u16 voltage_id, u16 *voltage);
183 u16 *voltage,
/linux-master/drivers/media/dvb-frontends/
H A Dlnbp21.c31 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 Dvoltage.h16 #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 Dppatomctrl.h165 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 Drv770_dpm.h98 /* 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 Dvolt.c145 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 Dipaq_micro_battery.c44 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 Dsurface3_power.c274 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;

Completed in 243 milliseconds

1234567891011