/linux-master/drivers/gpu/drm/radeon/ |
H A D | cypress_dpm.c | 404 u16 value, RV770_SMC_VOLTAGE_VALUE *voltage) 410 voltage->index = (u8)i; 411 voltage->value = cpu_to_be16(table->entries[i].value); 656 RV770_SMC_VOLTAGE_VALUE *voltage) 662 voltage->index = eg_pi->mvdd_high_index; 663 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); 668 voltage->index = eg_pi->mvdd_low_index; 669 voltage->value = cpu_to_be16(MVDD_LOW_VALUE); 671 voltage->index = eg_pi->mvdd_high_index; 672 voltage 402 cypress_populate_voltage_value(struct radeon_device *rdev, struct atom_voltage_table *table, u16 value, RV770_SMC_VOLTAGE_VALUE *voltage) argument 654 cypress_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, RV770_SMC_VOLTAGE_VALUE *voltage) argument 1226 cypress_populate_initial_mvdd_value(struct radeon_device *rdev, RV770_SMC_VOLTAGE_VALUE *voltage) argument [all...] |
H A D | r100.c | 359 * (voltage, pcie lanes, etc.) (r1xx-r4xx). 365 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; local 368 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) { 370 tmp = RREG32(voltage->gpio.reg); 371 if (voltage->active_high) 372 tmp |= voltage->gpio.mask; 374 tmp &= ~(voltage->gpio.mask); 375 WREG32(voltage [all...] |
H A D | radeon_combios.c | 2750 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_GPIO; 2752 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = 2755 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = 2757 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.valid = true; 2759 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.reg = 2762 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.mask = (1 << tmp); 2767 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.reg = 2770 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.mask = (1 << tmp); 2772 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.valid = false; 2777 rdev->pm.power_state[state_index].clock_info[0].voltage [all...] |
H A D | atombios_dp.c | 269 DRM_DEBUG_KMS("requested signal parameters: lane %d voltage %s pre_emph %s\n", 286 DRM_DEBUG_KMS("using signal parameters: voltage %s pre_emph %s\n", 669 u8 voltage; local 681 voltage = 0xff; 701 DRM_ERROR("clock recovery reached max voltage\n"); 705 if ((dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK) == voltage) { 714 voltage = dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK; 725 DRM_DEBUG_KMS("clock recovery at voltage %d pre-emphasis %d\n", 776 DRM_DEBUG_KMS("channel eq at voltage %d pre-emphasis %d\n",
|
/linux-master/drivers/misc/cardreader/ |
H A D | rts5261.c | 26 static void rts5261_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument 42 if (voltage == OUTPUT_3V3) { 201 static int rts5261_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 209 switch (voltage) { 239 rts5261_fill_driving(pcr, voltage);
|
H A D | rts5264.c | 25 static void rts5264_fill_driving(struct rtsx_pcr *pcr, u8 voltage) argument 41 if (voltage == OUTPUT_3V3) { 196 static int rts5264_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) argument 201 switch (voltage) { 223 rts5264_fill_driving(pcr, voltage);
|
/linux-master/drivers/media/common/b2c2/ |
H A D | flexcop-fe-tuner.c | 43 enum fe_sec_voltage voltage) 47 deb_tuner("polarity/voltage = %u\n", voltage); 50 switch (voltage) { 42 flexcop_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | si_dpm.c | 1835 u16 value, SISLANDS_SMC_VOLTAGE_VALUE *voltage); 1837 SISLANDS_SMC_VOLTAGE_VALUE *voltage, 2682 u16 voltage; local 2690 voltage = vddc_max - (vddc_step * j); 2694 voltage, 2720 u16 voltage; local 2725 voltage = vddc_max - (vddc_step * j); 2730 voltage, 3020 if (highest_leakage < si_pi->leakage_voltage.entries[i].voltage) 3021 highest_leakage = si_pi->leakage_voltage.entries[i].voltage; 3030 si_get_vce_clock_voltage(struct amdgpu_device *adev, u32 evclk, u32 ecclk, u16 *voltage) argument 3203 btc_find_voltage(struct atom_voltage_table *table, u16 voltage) argument 3262 btc_apply_voltage_dependency_rules(struct amdgpu_clock_voltage_dependency_table *table, u32 clock, u16 max_voltage, u16 *voltage) argument 4567 si_populate_voltage_value(struct amdgpu_device *adev, const struct atom_voltage_table *table, u16 value, SISLANDS_SMC_VOLTAGE_VALUE *voltage) argument 4587 si_populate_mvdd_value(struct amdgpu_device *adev, u32 mclk, SISLANDS_SMC_VOLTAGE_VALUE *voltage) argument 4604 si_get_std_voltage_value(struct amdgpu_device *adev, SISLANDS_SMC_VOLTAGE_VALUE *voltage, u16 *std_voltage) argument 4655 si_populate_std_voltage_value(struct amdgpu_device *adev, u16 value, u8 index, SISLANDS_SMC_VOLTAGE_VALUE *voltage) argument 4665 si_populate_phase_shedding_value(struct amdgpu_device *adev, const struct amdgpu_phase_shedding_limits_table *limits, u16 voltage, u32 sclk, u32 mclk, SISLANDS_SMC_VOLTAGE_VALUE *smc_voltage) argument 4811 si_populate_initial_mvdd_value(struct amdgpu_device *adev, struct SISLANDS_SMC_VOLTAGE_VALUE *voltage) argument [all...] |
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_frontend.c | 55 MODULE_PARM_DESC(dvb_powerdown_on_sleep, "0: do not power down, 1: turn LNB voltage off on sleep (default)"); 109 int voltage; member in struct:dvb_frontend_private 702 if (fe->ops.set_voltage && fepriv->voltage != -1) 703 fe->ops.set_voltage(fe, fepriv->voltage); 1028 c->voltage = SEC_VOLTAGE_OFF; 1390 tvp->u.data = c->voltage; 1944 c->voltage = data; 1946 (void *)c->voltage); 2592 fepriv->voltage = (long)parg; 2593 err = fe->ops.set_voltage(fe, fepriv->voltage); [all...] |
/linux-master/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965.c | 571 * il4965_get_voltage_compensation - Power supply voltage comp for txpower 573 * Determines power supply voltage compensation for txpower calculations. 575 * to compensate for difference between power supply voltage during 576 * factory measurements, vs. current power supply voltage. 578 * Voltage indication is higher for lower voltage. 579 * Lower voltage requires more gain (lower gain table idx). 1020 s16 voltage; local 1095 /* calculate tx gain adjustment based on power supply voltage */ 1096 voltage = le16_to_cpu(il->calib_info->voltage); [all...] |
/linux-master/drivers/power/supply/ |
H A D | bq25890_charger.c | 83 u8 vreg; /* regulation voltage */ 86 u8 sysvmin; /* minimum system voltage limit */ 87 u8 boostv; /* boost regulation voltage */ 93 u8 vclamp; /* IBAT compensation voltage limit */ 588 * battery voltage is below constant charge voltage. 617 * battery voltage is below constant charge voltage. 626 * This is ADC-sampled immediate charge voltage supplied 642 * This is user-configured constant charge voltage supplie 1061 int voltage, i, ret; local [all...] |
/linux-master/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomctrl.c | 541 * Returns true if the given voltage type is controlled by GPIO pins. 587 "Too many voltage entries!", 684 uint16_t *voltage, 1097 *voltage = (uint16_t)fV_NL.partial.real; 1107 * atomctrl_get_voltage_evv_on_sclk: gets voltage via call to ATOM COMMAND table. 1109 * @voltage_type: input: type of EVV voltage VDDC or VDDGFX 1113 * @virtual_voltage_Id: input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 1114 * @voltage: output: real voltage leve 679 atomctrl_calculate_voltage_evv_on_sclk( struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage, uint16_t dpm_level, bool debug) argument 1116 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) argument 1152 atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, uint16_t virtual_voltage_id, uint16_t *voltage) argument 1388 atomctrl_get_voltage_evv_on_sclk_ai(struct pp_hwmgr *hwmgr, uint8_t voltage_type, uint32_t sclk, uint16_t virtual_voltage_Id, uint32_t *voltage) argument [all...] |
/linux-master/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | vegam_smumgr.c | 461 /* Index into DpmTable.Smio. Drive bits from Smio entry to get this voltage level.*/ 602 uint32_t clock, SMU_VoltageLevel *voltage, uint32_t *mvdd) 608 *voltage = *mvdd = 0; 610 /* clock - voltage dependency table is empty table */ 617 *voltage |= (dep_table->entries[i].vddc * 620 *voltage |= (data->vbios_boot_state.vddci_bootup_value * 623 *voltage |= (dep_table->entries[i].vddci * 629 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; 639 *voltage |= 1 << PHASES_SHIFT; 645 *voltage | 600 vegam_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, uint32_t clock, SMU_VoltageLevel *voltage, uint32_t *mvdd) argument [all...] |
H A D | fiji_smumgr.c | 66 /* [FF, SS] type, [] 4 voltage ranges, and 354 uint32_t clock, uint32_t *voltage, uint32_t *mvdd) 359 *voltage = *mvdd = 0; 362 /* clock - voltage dependency table is empty table */ 369 *voltage |= (dep_table->entries[i].vddc * 372 *voltage |= (data->vbios_boot_state.vddci_bootup_value * 375 *voltage |= (dep_table->entries[i].vddci * 381 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; 391 *voltage |= 1 << PHASES_SHIFT; 397 *voltage | 352 fiji_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, struct phm_ppt_v1_clock_voltage_dependency_table *dep_table, uint32_t clock, uint32_t *voltage, uint32_t *mvdd) argument [all...] |
/linux-master/drivers/staging/media/av7110/ |
H A D | av7110.h | 285 enum fe_sec_voltage voltage);
|
/linux-master/drivers/media/pci/ttpci/ |
H A D | budget.c | 119 enum fe_sec_voltage voltage) 125 switch (voltage) { 145 enum fe_sec_voltage voltage) 149 return SetVoltage_Activy (budget, voltage); 118 SetVoltage_Activy(struct budget *budget, enum fe_sec_voltage voltage) argument 144 siemens_budget_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument
|
/linux-master/drivers/iio/dac/ |
H A D | ad3552r.c | 234 * voltage range 237 /* Manually set the offset voltage */ 885 int err, cnt = 0, voltage, delta = 100000; local 916 voltage = regulator_get_voltage(vref); 917 if (voltage > 2500000 + delta || voltage < 2500000 - delta) {
|
/linux-master/drivers/hwmon/ |
H A D | sht15.c | 65 * struct sht15_temppair - elements of voltage dependent temp calc 66 * @vdd: supply voltage in microvolts 74 /* Table 9 from datasheet - relates temperature calculation to supply voltage */ 139 * @nb: notifier block to handle notifications of voltage 141 * @supply_uv: local copy of supply voltage used to allow use of 887 * sht15_invalidate_voltage() - mark supply voltage invalid when notified by reg 889 * @event: voltage regulator state change event code 893 * to schedule an update of the supply voltage rather than getting it directly. 934 * query what the supply voltage actually is! 938 int voltage; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
H A D | dcn31_clk_mgr.c | 535 unsigned int voltage) 542 if (clock_table->SocVoltage[i] == voltage) { 545 clock_table->SocVoltage[i] < voltage) { 584 /* dispclk and dppclk can be max at any voltage, same number of levels for both */ 596 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[j].Voltage; 532 find_clk_for_voltage( const DpmClocks_t *clock_table, const uint32_t clocks[], unsigned int voltage) argument
|
/linux-master/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
H A D | dcn314_clk_mgr.c | 638 /* Dispclk and dppclk can be max at any voltage, same number of levels for both */ 674 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[min_pstate].Voltage; 690 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[max_pstate].Voltage; 718 bw_params->clk_table.entries[i].voltage = def_max.voltage;
|
/linux-master/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | clk_mgr.h | 106 unsigned int voltage; /* milivolts withh 2 fractional bits */ member in struct:clk_limit_table_entry
|
/linux-master/drivers/firmware/arm_scmi/ |
H A D | protocols.h | 377 DECLARE_SCMI_REGISTER_UNREGISTER(voltage); 359 DECLARE_SCMI_REGISTER_UNREGISTER(voltage); variable
|
/linux-master/drivers/phy/xilinx/ |
H A D | phy-zynqmp.c | 461 unsigned int voltage) 476 xpsgtr_write_phy(gtr_phy, L0_TXPMD_TM_48, voltage_swing[pre][voltage]); 477 xpsgtr_write_phy(gtr_phy, L0_TX_ANA_TM_18, pre_emphasis[pre][voltage]); 660 xpsgtr_phy_configure_dp(gtr_phy, opts->dp.pre[0], opts->dp.voltage[0]); 460 xpsgtr_phy_configure_dp(struct xpsgtr_phy *gtr_phy, unsigned int pre, unsigned int voltage) argument
|
/linux-master/drivers/media/pci/bt8xx/ |
H A D | dst.c | 296 switch (state->voltage) { 1345 enum fe_sec_voltage voltage); 1435 static int dst_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument 1440 state->voltage = voltage; 1446 switch (voltage) { 1526 state->voltage = SEC_VOLTAGE_13;
|
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-dvb.c | 594 enum fe_sec_voltage voltage) 599 if (voltage == SEC_VOLTAGE_18) 601 else if (voltage == SEC_VOLTAGE_13) 609 enum fe_sec_voltage voltage) 616 switch (voltage) { 632 port->fe_set_voltage(fe, voltage); 638 enum fe_sec_voltage voltage) 645 switch (voltage) { 660 return port->fe_set_voltage(fe, voltage); 1205 enum fe_sec_voltage voltage) 593 p8000_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument 608 dvbsky_t9580_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument 637 dvbsky_s952_portc_set_voltage(struct dvb_frontend *fe, enum fe_sec_voltage voltage) argument [all...] |