/freebsd-13-stable/sys/dev/extres/regulator/ |
H A D | regulator_fixed.h | 33 #include <dev/extres/regulator/regulator.h>
|
H A D | regulator.h | 48 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 D | regulator.c | 50 #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 D | twl_vreg.c | 50 * 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 D | bhnd_pmu.h | 84 * 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 D | bhnd_pmu.c | 418 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 D | mmc_fdt_helpers.h | 37 #include <dev/extres/regulator/regulator.h>
|
H A D | mmc_fdt_helpers.c | 45 #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 D | dwmmc_var.h | 39 #include <dev/extres/regulator/regulator.h>
|
/freebsd-13-stable/sys/arm/allwinner/ |
H A D | aw_if_dwc.c | 45 #include <dev/extres/regulator/regulator.h> 101 /* Enable PHY regulator if applicable */ 105 device_printf(dev, "could not enable PHY regulator\n");
|
H A D | aw_usb3phy.c | 49 #include <dev/extres/regulator/regulator.h> 169 "couldn't %s regulator for phy\n",
|
H A D | a10_ahci.c | 50 #include <dev/extres/regulator/regulator.h> 322 /* Enable the (optional) regulator */ 327 device_printf(dev, "Could not enable regulator\n");
|
H A D | aw_usbphy.c | 50 #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 D | usb_nop_xceiv.c | 48 #include <dev/extres/regulator/regulator.h> 118 device_printf(dev, "Cannot %sable the regulator\n",
|
/freebsd-13-stable/sys/arm64/rockchip/ |
H A D | rk_iodomain.c | 42 #include <dev/extres/regulator/regulator.h> 147 "%s regulator is at %duV, ignoring\n", 151 "voltage for regulator %s\n",
|
H A D | rk_usbphy.c | 45 #include <dev/extres/regulator/regulator.h> 179 device_printf(sc->dev, "Cannot get 'vbus' regulator.\n");
|
H A D | rk_usb2phy.c | 51 #include <dev/extres/regulator/regulator.h> 135 device_printf(dev, "Cannot %sable the regulator\n",
|
/freebsd-13-stable/sys/dev/iicbus/pmic/ |
H A D | act8846.c | 46 #include <dev/extres/regulator/regulator.h>
|
H A D | act8846_regulator.c | 46 #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 D | fan53555.c | 47 #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 D | sy8106a.c | 29 * 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 D | syr827.c | 46 #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 D | gpioregulator.c | 48 #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 D | pwm_backlight.c | 56 #include <dev/extres/regulator/regulator.h>
|
/freebsd-13-stable/sys/arm/nvidia/ |
H A D | as3722.c | 46 #include <dev/extres/regulator/regulator.h>
|