Searched refs:voltage (Results 76 - 100 of 251) sorted by relevance

1234567891011

/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu_helper.c390 struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage)
401 /* find first voltage equal or bigger than requested */
402 if (lookup_table->entries[i].us_vdd >= voltage)
405 /* voltage is bigger than max voltage in the table */
410 uint32_t voltage)
421 /* find first voltage bigger than requested */
422 if (voltage_table->entries[i].value >= voltage)
426 /* voltage is bigger than max voltage i
389 phm_get_voltage_index( struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage) argument
409 phm_get_voltage_id(pp_atomctrl_voltage_table *voltage_table, uint32_t voltage) argument
582 phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint32_t sclk, uint16_t id, uint16_t *voltage) argument
[all...]
H A Dsmu_helper.h84 uint32_t voltage);
85 extern uint8_t phm_get_voltage_index(struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage);
95 uint32_t sclk, uint16_t id, uint16_t *voltage);
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_atombios.c2138 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE;
2154 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2156 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio =
2160 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high =
2163 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high =
2166 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2168 rdev->pm.power_state[state_index].clock_info[0].voltage.vddc_id =
2190 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2192 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio =
2196 rdev->pm.power_state[state_index].clock_info[0].voltage
3144 radeon_atom_get_max_vddc(struct radeon_device *rdev, u8 voltage_type, u16 voltage_id, u16 *voltage) argument
3183 radeon_atom_get_leakage_vddc_based_on_leakage_idx(struct radeon_device *rdev, u16 *voltage, u16 leakage_idx) argument
3310 radeon_atom_get_voltage_evv(struct radeon_device *rdev, u16 virtual_voltage_id, u16 *voltage) argument
[all...]
/linux-master/drivers/hid/
H A Dhid-logitech-hidpp.c156 int voltage; member in struct:hidpp_battery
1373 /* 0x1001: Battery voltage */
1382 static int hidpp20_battery_map_status_voltage(u8 data[3], int *voltage, argument
1420 *voltage = get_unaligned_be16(data);
1427 int *status, int *voltage,
1448 *status = hidpp20_battery_map_status_voltage(params, voltage,
1454 static int hidpp20_map_battery_capacity(struct hid_device *hid_dev, int voltage) argument
1456 /* NB: This voltage curve doesn't necessarily map perfectly to all
1476 if (unlikely(voltage < 3500 || voltage >
1425 hidpp20_battery_get_battery_voltage(struct hidpp_device *hidpp, u8 feature_index, int *status, int *voltage, int *level, int *charge_type) argument
1493 int status, voltage, level, charge_type; local
1525 int status, voltage, level, charge_type; local
1856 hidpp20_map_adc_measurement_1f20_capacity(struct hid_device *hid_dev, int voltage) argument
1896 hidpp20_map_adc_measurement_1f20(u8 data[3], int *voltage) argument
1928 hidpp20_get_adc_measurement_1f20(struct hidpp_device *hidpp, u8 feature_index, int *status, int *voltage) argument
1983 int status, voltage; local
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr.c579 .voltage = 0,
586 .voltage = 0,
593 .voltage = 0,
600 .voltage = 0,
613 static unsigned int find_socclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage) argument
618 if (clock_table->SocClocks[i].Vol == voltage)
626 static unsigned int find_dcfclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage) argument
631 if (clock_table->DcfClocks[i].Vol == voltage)
667 bw_params->clk_table.entries[i].voltage = clock_table->FClocks[j].Vol;
670 bw_params->clk_table.entries[i].voltage);
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/
H A Ddcn315_clk_mgr.c258 .voltage = 0,
266 .voltage = 1,
274 .voltage = 2,
282 .voltage = 3,
290 .voltage = 4,
513 bw_params->clk_table.entries[i].voltage = clock_table->SocVoltage[i];
525 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[0].Voltage;
530 bw_params->clk_table.entries[i-1].voltage = clock_table->SocVoltage[clock_table->NumSocClkLevelsEnabled - 1];
544 bw_params->clk_table.entries[i].voltage = def_max.voltage;
[all...]
/linux-master/drivers/hwmon/
H A Dmax6650.c364 u32 voltage; local
369 &voltage))
370 voltage = fan_voltage;
372 voltage /= 1000000; /* Microvolts to volts */
383 switch (voltage) {
393 dev_err(dev, "illegal value for fan_voltage (%d)\n", voltage);
422 dev_info(dev, "Fan voltage: %dV, prescaler: %d.\n",
H A Dsmpro-hwmon.c132 static const struct smpro_sensor voltage[] = { variable in typeref:struct:smpro_sensor
239 ret = regmap_read(hwmon->regmap, voltage[channel].reg, &value);
327 *str = voltage[channel].label;
H A Dnct7802.c309 if (index == 0) { /* voltage */
336 unsigned long voltage)
341 voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]);
342 voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]);
347 voltage & 0xff);
352 0x0300 >> shift, (voltage & 0x0300) >> shift);
363 int voltage; local
365 voltage
335 nct7802_write_voltage(struct nct7802_data *data, int nr, int index, unsigned long voltage) argument
[all...]
/linux-master/drivers/cpufreq/
H A De_powersaver.c125 /* Set new multiplier and voltage */
142 /* Print voltage and multiplier */
145 pr_info("Current voltage = %dmV\n", current_voltage * 16 + 700);
185 int k, step, voltage; local
240 /* Print voltage and multiplier */
243 pr_info("Current voltage = %dmV\n", current_voltage * 16 + 700);
249 pr_info("Highest voltage = %dmV\n", max_voltage * 16 + 700);
253 pr_info("Lowest voltage = %dmV\n", min_voltage * 16 + 700);
278 pr_info("Your processor is running at different voltage then its maximum. Aborting.\n");
303 /* Allow user to set lower maximum voltage the
[all...]
/linux-master/drivers/media/pci/ddbridge/
H A Dddbridge.h171 enum fe_sec_voltage voltage; member in struct:ddb_dvb
175 enum fe_sec_voltage voltage);
283 u32 voltage[4]; member in struct:ddb_lnb
/linux-master/drivers/media/pci/bt8xx/
H A Ddst_common.h107 enum fe_sec_voltage voltage; member in struct:dst_state
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
H A Ddcn301_smu.h34 uint32_t voltage; member in struct:__anon155
52 uint16_t Vid; // min voltage in SVI2 VID
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dclk.h57 u8 voltage; member in struct:nvkm_cstate
/linux-master/drivers/regulator/
H A Dmax8907-regulator.c63 #define REG_FIXED(ids, supply, voltage) \
72 .min_uV = (voltage), \
75 #define REG_OUT5V(ids, supply, base, voltage) \
84 .min_uV = (voltage), \
H A Dcore.c488 /* Platform voltage constraint check */
495 rdev_err(rdev, "voltage operation not allowed\n");
505 rdev_err(rdev, "unsupportable voltage range: %d-%duV\n",
519 /* Make sure we select a voltage that suits the needs of all
527 struct regulator_voltage *voltage; local
530 voltage = &regulator->voltage[state];
535 if (!voltage->min_uV && !voltage->max_uV)
538 if (*max_uV > voltage
3761 struct regulator_voltage *voltage = &regulator->voltage[state]; local
4229 struct regulator_voltage *voltage; local
4302 int voltage; local
4407 struct regulator_voltage *voltage = &regulator->voltage[PM_SUSPEND_ON]; local
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dtda8083.c188 enum fe_sec_voltage voltage)
190 switch (voltage) {
395 enum fe_sec_voltage voltage)
399 tda8083_set_voltage (state, voltage);
187 tda8083_set_voltage(struct tda8083_state *state, enum fe_sec_voltage voltage) argument
394 tda8083_diseqc_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
H A Disl6421.c31 enum fe_sec_voltage voltage)
54 switch(voltage) {
30 isl6421_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
H A Disl6423.c136 enum fe_sec_voltage voltage)
143 switch (voltage) {
135 isl6423_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
/linux-master/drivers/usb/typec/
H A Drt1719.c100 u32 voltage; member in struct:rt1719_data
282 data->voltage = volt * 1000;
302 data->voltage = data->max_current = data->op_current = 0;
313 u32 voltage, max_current, op_current; local
332 voltage = pdo_fixed_voltage(data->spdos[data->spdo_sel - 1]);
335 switch (voltage) {
358 data->voltage = voltage * 1000;
536 val->intval = data->voltage;
/linux-master/drivers/misc/cardreader/
H A Drts5249.c24 static void rts5249_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
40 if (voltage == OUTPUT_3V3) {
435 static int rtsx_base_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
440 switch (voltage) {
463 pcr_dbg(pcr, "unknown output voltage %d\n", voltage);
469 rts5249_fill_driving(pcr, voltage);
740 static int rts525a_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
742 switch (voltage) {
759 rts5249_fill_driving(pcr, voltage);
[all...]
H A Drts5260.c27 static void rts5260_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument
43 if (voltage == OUTPUT_3V3) {
220 static int rts5260_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument
222 switch (voltage) {
243 rts5260_fill_driving(pcr, voltage);
/linux-master/drivers/media/pci/cx88/
H A Dcx88-dvb.c446 enum fe_sec_voltage voltage)
451 if (voltage == SEC_VOLTAGE_OFF)
457 return core->prev_set_voltage(fe, voltage);
462 enum fe_sec_voltage voltage)
467 if (voltage == SEC_VOLTAGE_OFF) {
473 return core->prev_set_voltage(fe, voltage);
478 enum fe_sec_voltage voltage)
484 switch (voltage) {
497 return core->prev_set_voltage(fe, voltage);
502 enum fe_sec_voltage voltage)
445 kworld_dvbs_100_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
461 geniatech_dvbs_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
477 tevii_dvbs_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
501 vp1027_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
908 samsung_smt_7020_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
[all...]
/linux-master/arch/arm/mach-omap2/
H A Dsram242x.S41 /* voltage shift down */
42 mov r9, #0x1 @ set up for L1 voltage call
43 bl voltage_shift @ go drop voltage
61 /* voltage shift up */
62 mov r9, #0x0 @ shift back to L0-voltage
63 bl voltage_shift @ go raise voltage
93 * shift up or down voltage, use R9 as input to tell level.
148 blne voltage_shift_c @ adjust voltage
188 * shift up or down voltage, use R9 as input to tell level.
H A Dsram243x.S41 /* voltage shift down */
42 mov r9, #0x1 @ set up for L1 voltage call
43 bl voltage_shift @ go drop voltage
61 /* voltage shift up */
62 mov r9, #0x0 @ shift back to L0-voltage
63 bl voltage_shift @ go raise voltage
93 * shift up or down voltage, use R9 as input to tell level.
148 blne voltage_shift_c @ adjust voltage
188 * shift up or down voltage, use R9 as input to tell level.

Completed in 471 milliseconds

1234567891011