Searched refs:voltage (Results 1 - 25 of 89) sorted by relevance

1234

/openbsd-current/sys/dev/fdt/
H A Dsypwr.c86 * specifies its fixed voltage. Otherwise we have no idea
87 * what the current output voltage is, which will confuse the
92 uint32_t voltage; local
94 voltage = sypwr_get_voltage(sc);
95 printf(": %d.%02d VDC", voltage / 1000000,
96 (voltage % 1000000) / 10000);
117 * Restore fixed voltage otherwise we might hang after
184 sypwr_set_voltage(void *cookie, uint32_t voltage) argument
189 if (voltage < 680000 || voltage > 195000
[all...]
H A Drkiovd.c81 "rockchip,rk3568-pmu-io-voltage-domain");
116 rkiovd_rk3568_notify(void *cookie, uint32_t voltage) argument
125 * If the new voltage is higher than the current voltage we
126 * need to configure the I/O voltage domain before changing
127 * the voltage. If the new voltage is lower we need to
128 * configure the domain after changing the voltage. Using the
129 * maximum of the new and current voltage makes sure this is
133 if (voltage < current_voltag
[all...]
H A Dfanpwr.c109 uint32_t voltage, ramp_delay; local
136 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0))
142 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0))
148 if (OF_getpropint(node, "fcs,suspend-voltage-selector", 0))
208 voltage = fanpwr_get_voltage(sc);
209 printf(", %d.%02d VDC", voltage / 1000000,
210 (voltage % 1000000) / 10000);
301 fanpwr_set_voltage(void *cookie, uint32_t voltage) argument
308 if (voltage < vmin || voltage > vma
[all...]
H A Dbd718x7.c164 bdpmic_set_voltage(void *cookie, uint32_t voltage) argument
171 if (voltage < vmin || voltage > vmax)
180 vsel |= (voltage - bd->bd_base) / bd->bd_delta;
H A Drkpmic.c578 uint32_t voltage; local
615 voltage = OF_getpropint(snode,
617 voltage = OF_getpropint(snode,
618 "regulator-suspend-microvolt", voltage);
619 if (voltage > 0)
620 rkpmic_do_set_voltage(rr, voltage, 1);
656 rkpmic_set_voltage(void *cookie, uint32_t voltage) argument
658 return rkpmic_do_set_voltage(cookie, voltage, 0);
662 rkpmic_do_set_voltage(struct rkpmic_regulator *rr, uint32_t voltage, int sleep) argument
675 if (voltage < vmi
[all...]
H A Dpwmreg.c72 if (OF_getproplen(faa->fa_node, "voltage-tables") > 0) {
73 printf(": voltage table mode unsupported\n");
124 pwmreg_set_voltage(void *cookie, uint32_t voltage) argument
138 x = voltage;
H A Dimxanatop.c195 ir->ir_min_voltage = OF_getpropint(node, "anatop-min-voltage", -1);
196 ir->ir_max_voltage = OF_getpropint(node, "anatop-max-voltage", -1);
230 imxanatop_set_voltage(void *cookie, uint32_t voltage) argument
236 if (voltage < ir->ir_min_voltage || voltage > ir->ir_max_voltage)
239 bit_val = ir->ir_min_bit_val + (voltage - ir->ir_min_voltage) / 25000;
H A Dsxipio.c465 uint32_t voltage; local
468 voltage = regulator_get_voltage(supply);
469 if (voltage <= 1800000)
471 else if (voltage <= 2500000)
473 else if (voltage <= 2800000)
475 else if (voltage <= 3000000)
H A Daxppmic.c82 /* LDO4 voltage levels are complicated */
351 { "battery voltage", SENSOR_VOLTS_DC, 0x78, 0x00, 1100 },
602 /* Turn on sampling of ACIN and VBUS voltage and current. */
768 uint32_t voltage; local
774 voltage =
777 voltage = ar->ar_base + value * ar->ar_delta;
779 return voltage;
783 axppmic_set_voltage(void *cookie, uint32_t voltage) argument
788 if (voltage < ar->ar_base)
790 if (ar->ar_base2 > 0 && voltage >
[all...]
/openbsd-current/sys/dev/ofw/
H A Dofw_regulator.c65 uint32_t voltage = rd->rd_get_voltage(rd->rd_cookie); local
66 if (voltage < rd->rd_volt_min)
68 if (voltage > rd->rd_volt_max)
239 regulator_set_voltage(uint32_t phandle, uint32_t voltage) argument
254 if (rd && (voltage < rd->rd_volt_min || voltage > rd->rd_volt_max))
262 regulator_do_notify(rd->rd_phandle, voltage);
265 error = rd->rd_set_voltage(rd->rd_cookie, voltage);
266 if (voltage > old && rd->rd_ramp_delay > 0) {
267 delta = voltage
[all...]
/openbsd-current/sys/dev/sdmmc/
H A Dsdmmcchip.h81 #define sdmmc_chip_signal_voltage(tag, handle, voltage) \
82 ((tag)->signal_voltage((handle), (voltage)))
92 /* voltage levels for sdmmc_chip_signal_voltage() */
/openbsd-current/sys/dev/pci/drm/radeon/
H A Drs600.c233 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; local
237 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) {
239 tmp = RREG32(voltage->gpio.reg);
240 if (voltage->active_high)
241 tmp |= voltage->gpio.mask;
243 tmp &= ~(voltage->gpio.mask);
244 WREG32(voltage->gpio.reg, tmp);
245 if (voltage
[all...]
H A Dbtc_dpm.h51 u32 clock, u16 max_voltage, u16 *voltage);
H A Drv770_dpm.h98 /* voltage */
219 RV770_SMC_VOLTAGE_VALUE *voltage);
221 RV770_SMC_VOLTAGE_VALUE *voltage);
225 RV770_SMC_VOLTAGE_VALUE *voltage);
H A Dradeon_atombios.c2143 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE;
2159 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2161 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio =
2165 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high =
2168 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high =
2171 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2173 rdev->pm.power_state[state_index].clock_info[0].voltage.vddc_id =
2195 rdev->pm.power_state[state_index].clock_info[0].voltage.type =
2197 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio =
2201 rdev->pm.power_state[state_index].clock_info[0].voltage
3151 radeon_atom_get_max_vddc(struct radeon_device *rdev, u8 voltage_type, u16 voltage_id, u16 *voltage) argument
3190 radeon_atom_get_leakage_vddc_based_on_leakage_idx(struct radeon_device *rdev, u16 *voltage, u16 leakage_idx) argument
3317 radeon_atom_get_voltage_evv(struct radeon_device *rdev, u16 virtual_voltage_id, u16 *voltage) argument
[all...]
H A Drv770_dpm.c568 RV770_SMC_VOLTAGE_VALUE *voltage)
574 voltage->index = 0;
575 voltage->value = 0;
581 voltage->index = pi->vddc_table[i].vddc_index;
582 voltage->value = cpu_to_be16(vddc);
594 RV770_SMC_VOLTAGE_VALUE *voltage)
599 voltage->index = MVDD_HIGH_INDEX;
600 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE);
605 voltage->index = MVDD_LOW_INDEX;
606 voltage
567 rv770_populate_vddc_value(struct radeon_device *rdev, u16 vddc, RV770_SMC_VOLTAGE_VALUE *voltage) argument
593 rv770_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, RV770_SMC_VOLTAGE_VALUE *voltage) argument
1007 rv770_populate_initial_mvdd_value(struct radeon_device *rdev, RV770_SMC_VOLTAGE_VALUE *voltage) argument
[all...]
/openbsd-current/sys/dev/pci/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)
549 if (clock_table->SocVoltage[i] == voltage)
589 bw_params->clk_table.entries[i].voltage = clock_table->DfPstateTable[j].voltage;
590 bw_params->clk_table.entries[i].dcfclk_mhz = find_dcfclk_for_voltage(clock_table, clock_table->DfPstateTable[j].voltage);
594 bw_params->clk_table.entries[i].voltage
543 find_dcfclk_for_voltage(const struct vg_dpm_clocks *clock_table, unsigned int voltage) argument
[all...]
H A Ddcn301_smu.h34 uint32_t voltage; member in struct:__anon86
52 uint16_t Vid; // min voltage in SVI2 VID
/openbsd-current/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_atombios.h181 u16 voltage_id, u16 *voltage);
183 u16 *voltage,
/openbsd-current/sys/arch/macppc/dev/
H A Dpm_direct.h66 unsigned int voltage; member in struct:pmu_battery_info
/openbsd-current/sys/dev/pci/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);
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);
/openbsd-current/sys/dev/pci/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...]
/openbsd-current/sys/dev/pci/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...]

Completed in 417 milliseconds

1234