Searched refs:regulator (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-13-stable/sys/dev/extres/regulator/
H A Dregulator_fixed.h33 #include <dev/extres/regulator/regulator.h>
H A Dregulator.h48 typedef struct regulator *regulator_t;
50 /* Standard regulator parameters. */
66 char *parent_name; /* Name of parent regulator */
71 phandle_t ofw_node; /* OFW node of regulator */
130 regulator_t *regulator);
132 regulator_t *regulator);
133 int regulator_release(regulator_t regulator);
134 const char *regulator_get_name(regulator_t regulator);
H A Dregulator.c50 #include <dev/extres/regulator/regulator.h>
54 SYSCTL_NODE(_hw, OID_AUTO, regulator, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
57 MALLOC_DEFINE(M_REGULATOR, "regulator", "Regulator framework");
62 struct regulator;
66 typedef TAILQ_HEAD(regulator_list, regulator) regulator_list_t;
68 /* Default regulator methods. */
115 phandle_t ofw_node; /* OFW node of regulator */
118 struct sx lock; /* Lock for this regulator */
128 * Per consumer data, information about how a consumer is using a regulator
132 struct regulator { struct
[all...]
/freebsd-13-stable/sys/arm/ti/twl/
H A Dtwl_vreg.c50 * Each override should be a pair, the first entry is the name of the regulator
51 * the second is the voltage (in millivolts) to set for the given regulator.
91 * Register offsets within a LDO regulator register set
262 twl_vreg_read_1(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, argument
265 return (twl_read(sc->sc_pdev, regulator->sub_dev,
266 regulator->reg_off + off, val, 1));
270 twl_vreg_write_1(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, argument
273 return (twl_write(sc->sc_pdev, regulator->sub_dev,
274 regulator->reg_off + off, &val, 1));
279 * for a desired voltage and regulator
295 twl_vreg_millivolt_to_vsel(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, int millivolts, uint8_t *vsel) argument
347 twl_vreg_is_regulator_enabled(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, int *enabled) argument
419 twl_vreg_disable_regulator(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator) argument
480 twl_vreg_enable_regulator(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator) argument
543 twl_vreg_write_regulator_voltage(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, int millivolts) argument
607 twl_vreg_read_regulator_voltage(struct twl_vreg_softc *sc, struct twl_regulator_entry *regulator, int *millivolts) argument
681 struct twl_regulator_entry *regulator; local
724 struct twl_regulator_entry *regulator; local
760 struct twl_regulator_entry *regulator; local
992 struct twl_regulator_entry *regulator; local
[all...]
/freebsd-13-stable/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.h84 * Return the current value of a PMU regulator control register.
101 * Write @p value with @p mask to a PMU regulator control register.
154 * Set a hardware-specific output voltage register value for @p regulator.
157 * @param regulator Regulator to be configured.
161 * @retval ENODEV If @p regulator is not supported by this driver.
164 bhnd_pmu_set_voltage_raw(device_t dev, bhnd_pmu_regulator regulator, argument
167 return (BHND_PMU_SET_VOLTAGE_RAW(dev, regulator, value));
171 * Enable the given @p regulator.
174 * @param regulator Regulator to be enabled.
177 * @retval ENODEV If @p regulator i
180 bhnd_pmu_enable_regulator(device_t dev, bhnd_pmu_regulator regulator) argument
195 bhnd_pmu_disable_regulator(device_t dev, bhnd_pmu_regulator regulator) argument
[all...]
H A Dbhnd_pmu.c418 bhnd_pmu_set_voltage_raw_method(device_t dev, bhnd_pmu_regulator regulator, argument
426 switch (regulator) {
447 bhnd_pmu_enable_regulator_method(device_t dev, bhnd_pmu_regulator regulator) argument
454 switch (regulator) {
471 bhnd_pmu_disable_regulator_method(device_t dev, bhnd_pmu_regulator regulator) argument
478 switch (regulator) {
/freebsd-13-stable/sys/dev/mmc/
H A Dmmc_fdt_helpers.h37 #include <dev/extres/regulator/regulator.h>
H A Dmmc_fdt_helpers.c45 #include <dev/extres/regulator/regulator.h>
153 device_printf(dev, "vmmc-supply regulator found\n");
158 device_printf(dev, "vqmmc-supply regulator found\n");
/freebsd-13-stable/sys/dev/mmc/host/
H A Ddwmmc_var.h39 #include <dev/extres/regulator/regulator.h>
/freebsd-13-stable/sys/arm/allwinner/
H A Daw_if_dwc.c45 #include <dev/extres/regulator/regulator.h>
101 /* Enable PHY regulator if applicable */
105 device_printf(dev, "could not enable PHY regulator\n");
H A Daw_usb3phy.c49 #include <dev/extres/regulator/regulator.h>
169 "couldn't %s regulator for phy\n",
H A Da10_ahci.c50 #include <dev/extres/regulator/regulator.h>
322 /* Enable the (optional) regulator */
327 device_printf(dev, "Could not enable regulator\n");
H A Daw_usbphy.c50 #include <dev/extres/regulator/regulator.h>
371 "not enabling the regulator\n");
384 "couldn't %s regulator for phy %jd\n",
/freebsd-13-stable/sys/dev/usb/controller/
H A Dusb_nop_xceiv.c48 #include <dev/extres/regulator/regulator.h>
118 device_printf(dev, "Cannot %sable the regulator\n",
/freebsd-13-stable/sys/arm64/rockchip/
H A Drk_iodomain.c42 #include <dev/extres/regulator/regulator.h>
147 "%s regulator is at %duV, ignoring\n",
151 "voltage for regulator %s\n",
H A Drk_usbphy.c45 #include <dev/extres/regulator/regulator.h>
179 device_printf(sc->dev, "Cannot get 'vbus' regulator.\n");
H A Drk_usb2phy.c51 #include <dev/extres/regulator/regulator.h>
135 device_printf(dev, "Cannot %sable the regulator\n",
/freebsd-13-stable/sys/dev/iicbus/pmic/
H A Dact8846.c46 #include <dev/extres/regulator/regulator.h>
H A Dact8846_regulator.c46 #include <dev/extres/regulator/regulator.h>
52 MALLOC_DEFINE(M_ACT8846_REG, "ACT8846 regulator", "ACT8846 power regulator");
285 dprintf(sc, "%sabling regulator %s\n",
388 rv = OF_getprop_alloc(supply_node, "regulator-name",
405 device_printf(sc->dev, "cannot parse FDT data for regulator\n");
413 device_printf(sc->dev, "cannot create regulator\n");
480 device_printf(sc->dev, "Cannot attach regulator: %s\n",
H A Dfan53555.c47 #include <dev/extres/regulator/regulator.h>
205 dprintf(sc, "%sabling regulator %s\n", enable ? "En" : "Dis",
325 device_printf(sc->dev, "cannot parse regulator FDT data\n");
354 device_printf(sc->dev, "cannot create regulator\n");
445 device_printf(dev, "cannot attach regulator.\n");
/freebsd-13-stable/sys/dev/iicbus/
H A Dsy8106a.c29 * Silergy Corp. SY8106A buck regulator
49 #include <dev/extres/regulator/regulator.h>
214 device_printf(dev, "cannot create regulator\n");
254 device_set_desc(dev, "Silergy SY8106A regulator");
272 device_printf(dev, "cannot attach regulator\n");
H A Dsyr827.c46 #include <dev/extres/regulator/regulator.h>
195 device_printf(dev, "cannot create regulator\n");
250 device_set_desc(dev, "Silergy SYR827 regulator");
296 device_printf(dev, "cannot attach regulator\n");
/freebsd-13-stable/sys/dev/gpio/
H A Dgpioregulator.c48 #include <dev/extres/regulator/regulator.h>
280 if (!ofw_bus_is_compatible(dev, "regulator-gpio"))
283 device_set_desc(dev, "GPIO controlled regulator");
310 device_printf(dev, "cannot create regulator\n");
/freebsd-13-stable/sys/dev/pwm/
H A Dpwm_backlight.c56 #include <dev/extres/regulator/regulator.h>
/freebsd-13-stable/sys/arm/nvidia/
H A Das3722.c46 #include <dev/extres/regulator/regulator.h>

Completed in 298 milliseconds

12