Home
last modified time | relevance | path

Searched refs:supply (Results 1 – 25 of 78) sorted by relevance

1234

/drivers/power/avs/
Drockchip-io-domain.c71 static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, in rockchip_iodomain_write() argument
74 struct rockchip_iodomain *iod = supply->iod; in rockchip_iodomain_write()
80 val <<= supply->idx; in rockchip_iodomain_write()
83 val |= (BIT(supply->idx) << 16); in rockchip_iodomain_write()
96 struct rockchip_iodomain_supply *supply = in rockchip_iodomain_notify() local
125 dev_dbg(supply->iod->dev, "Setting to %d\n", uV); in rockchip_iodomain_notify()
128 dev_err(supply->iod->dev, "Voltage too high: %d\n", uV); in rockchip_iodomain_notify()
134 ret = rockchip_iodomain_write(supply, uV); in rockchip_iodomain_notify()
138 dev_info(supply->iod->dev, "Setting to %d done\n", uV); in rockchip_iodomain_notify()
244 struct rockchip_iodomain_supply *supply = &iod->supplies[i]; in rockchip_iodomain_probe() local
[all …]
/drivers/video/backlight/
Das3711_bl.c59 struct as3711_bl_supply *supply = to_supply(data); in as3711_set_brightness_auto_i() local
60 struct as3711 *as3711 = supply->as3711; in as3711_set_brightness_auto_i()
61 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_set_brightness_auto_i()
89 static int as3711_bl_su2_reset(struct as3711_bl_supply *supply) in as3711_bl_su2_reset() argument
91 struct as3711 *as3711 = supply->as3711; in as3711_bl_su2_reset()
93 3, supply->pdata->su2_fbprot); in as3711_bl_su2_reset()
110 struct as3711_bl_supply *supply = to_supply(data); in as3711_bl_update_status() local
111 struct as3711 *as3711 = supply->as3711; in as3711_bl_update_status()
128 const struct as3711_bl_pdata *pdata = supply->pdata; in as3711_bl_update_status()
140 ret = as3711_bl_su2_reset(supply); in as3711_bl_update_status()
[all …]
/drivers/power/
Dbq24735-charger.c251 struct power_supply *supply; in bq24735_charger_probe() local
280 supply = &charger->charger; in bq24735_charger_probe()
282 supply->name = name; in bq24735_charger_probe()
283 supply->type = POWER_SUPPLY_TYPE_MAINS; in bq24735_charger_probe()
284 supply->properties = bq24735_charger_properties; in bq24735_charger_probe()
285 supply->num_properties = ARRAY_SIZE(bq24735_charger_properties); in bq24735_charger_probe()
286 supply->get_property = bq24735_charger_get_property; in bq24735_charger_probe()
287 supply->supplied_to = charger->pdata->supplied_to; in bq24735_charger_probe()
288 supply->num_supplicants = charger->pdata->num_supplicants; in bq24735_charger_probe()
289 supply->of_node = client->dev.of_node; in bq24735_charger_probe()
[all …]
Dpower_supply_core.c34 struct power_supply *supply) in __power_supply_is_supplied_by() argument
38 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()
42 if (supply->supplied_from) { in __power_supply_is_supplied_by()
45 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
46 if (!strcmp(supplier->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()
49 if (!supply->name) in __power_supply_is_supplied_by()
52 if (!strcmp(supplier->supplied_to[i], supply->name)) in __power_supply_is_supplied_by()
/drivers/regulator/
Dwm8994-regulator.c32 struct regulator_consumer_supply supply; member
106 { .supply = "AVDD1" },
107 { .supply = "DCVDD" },
141 ldo->supply = wm8994_ldo_consumer[id]; in wm8994_ldo_probe()
142 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
156 ldo->supply.dev_name, ldo->supply.supply); in wm8994_ldo_probe()
159 ldo->init_data.consumer_supplies = &ldo->supply; in wm8994_ldo_probe()
Dmax8907-regulator.c49 #define REG_LDO(ids, supply, base, min, max, step) \ argument
52 .supply_name = supply, \
66 #define REG_FIXED(ids, supply, voltage) \ argument
69 .supply_name = supply, \
78 #define REG_OUT5V(ids, supply, base, voltage) \ argument
81 .supply_name = supply, \
92 #define REG_BBAT(ids, supply, base, min, max, step) \ argument
95 .supply_name = supply, \
107 #define LDO_750_50(id, supply, base) REG_LDO(id, supply, (base), \ argument
109 #define LDO_650_25(id, supply, base) REG_LDO(id, supply, (base), \ argument
Dcore.c70 const char *supply; member
142 static struct device_node *of_get_regulator(struct device *dev, const char *supply) in of_get_regulator() argument
147 dev_dbg(dev, "Looking up %s-supply from device tree\n", supply); in of_get_regulator()
149 snprintf(prop_name, 32, "%s-supply", supply); in of_get_regulator()
686 if (rdev->supply) in drms_uA_update()
687 input_uV = regulator_get_voltage(rdev->supply); in drms_uA_update()
1076 rdev->supply = create_regulator(supply_rdev, &rdev->dev, "SUPPLY"); in set_supply()
1077 if (rdev->supply == NULL) { in set_supply()
1099 const char *supply) in set_consumer_device_supply() argument
1104 if (supply == NULL) in set_consumer_device_supply()
[all …]
Darizona-micsupp.c37 struct regulator_consumer_supply supply; member
216 init_data->consumer_supplies = &micsupp->supply; in arizona_micsupp_of_get_pdata()
257 micsupp->init_data.consumer_supplies = &micsupp->supply; in arizona_micsupp_probe()
258 micsupp->supply.supply = "MICVDD"; in arizona_micsupp_probe()
259 micsupp->supply.dev_name = dev_name(arizona->dev); in arizona_micsupp_probe()
Darizona-ldo1.c35 struct regulator_consumer_supply supply; member
200 init_data->consumer_supplies = &ldo1->supply; in arizona_ldo1_of_get_pdata()
250 ldo1->init_data.consumer_supplies = &ldo1->supply; in arizona_ldo1_probe()
251 ldo1->supply.supply = "DCVDD"; in arizona_ldo1_probe()
252 ldo1->supply.dev_name = dev_name(arizona->dev); in arizona_ldo1_probe()
Dmax77802.c297 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument
300 .supply_name = "inl"#supply, \
315 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument
318 .supply_name = "inl"#supply, \
Ddevres.c168 consumers[i].supply); in devm_regulator_bulk_get()
172 consumers[i].supply, ret); in devm_regulator_bulk_get()
/drivers/leds/
Dleds-regulator.c36 static inline int led_regulator_get_max_brightness(struct regulator *supply) in led_regulator_get_max_brightness() argument
39 int voltage = regulator_list_voltage(supply, 0); in led_regulator_get_max_brightness()
48 ret = regulator_set_voltage(supply, voltage, voltage); in led_regulator_get_max_brightness()
52 return regulator_count_voltages(supply); in led_regulator_get_max_brightness()
55 static int led_regulator_get_voltage(struct regulator *supply, in led_regulator_get_voltage() argument
61 return regulator_list_voltage(supply, brightness - 1); in led_regulator_get_voltage()
/drivers/pcmcia/
Dsa1111_badge4.c64 const char *supply, in complain_about_jumpering() argument
70 whom, supply, in complain_about_jumpering()
72 supply, in complain_about_jumpering()
/drivers/pci/host/
Dpci-tegra.c1516 snprintf(property, 32, "%s-supply", supplies[i].supply); in of_regulator_bulk_available()
1553 pcie->supplies[0].supply = "pex-clk"; in tegra_pcie_get_legacy_regulators()
1554 pcie->supplies[1].supply = "vdd"; in tegra_pcie_get_legacy_regulators()
1557 pcie->supplies[2].supply = "avdd"; in tegra_pcie_get_legacy_regulators()
1586 pcie->supplies[i++].supply = "avddio-pex"; in tegra_pcie_get_regulators()
1587 pcie->supplies[i++].supply = "dvddio-pex"; in tegra_pcie_get_regulators()
1588 pcie->supplies[i++].supply = "avdd-pex-pll"; in tegra_pcie_get_regulators()
1589 pcie->supplies[i++].supply = "hvdd-pex"; in tegra_pcie_get_regulators()
1590 pcie->supplies[i++].supply = "hvdd-pex-pll-e"; in tegra_pcie_get_regulators()
1591 pcie->supplies[i++].supply = "vddio-pex-ctl"; in tegra_pcie_get_regulators()
[all …]
/drivers/ata/
Dahci_tegra.c340 tegra->supplies[0].supply = "avdd"; in tegra_ahci_probe()
341 tegra->supplies[1].supply = "hvdd"; in tegra_ahci_probe()
342 tegra->supplies[2].supply = "vddio"; in tegra_ahci_probe()
343 tegra->supplies[3].supply = "target-5v"; in tegra_ahci_probe()
344 tegra->supplies[4].supply = "target-12v"; in tegra_ahci_probe()
/drivers/gpu/drm/panel/
Dpanel-simple.c74 struct regulator *supply; member
148 regulator_disable(p->supply); in panel_simple_unprepare()
166 err = regulator_enable(p->supply); in panel_simple_prepare()
246 panel->supply = devm_regulator_get(dev, "power"); in panel_simple_probe()
247 if (IS_ERR(panel->supply)) in panel_simple_probe()
248 return PTR_ERR(panel->supply); in panel_simple_probe()
/drivers/mmc/host/
Dsdhci.c1251 if (!IS_ERR(mmc->supply.vmmc)) { in sdhci_set_power()
1253 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); in sdhci_set_power()
1481 if (!IS_ERR(mmc->supply.vmmc) && in sdhci_do_set_ios()
1483 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in sdhci_do_set_ios()
1774 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_do_start_signal_voltage_switch()
1775 ret = regulator_set_voltage(mmc->supply.vqmmc, 2700000, in sdhci_do_start_signal_voltage_switch()
1796 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_do_start_signal_voltage_switch()
1797 ret = regulator_set_voltage(mmc->supply.vqmmc, in sdhci_do_start_signal_voltage_switch()
1823 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_do_start_signal_voltage_switch()
1824 ret = regulator_set_voltage(mmc->supply.vqmmc, 1100000, in sdhci_do_start_signal_voltage_switch()
[all …]
Dmmci.c1327 if (!IS_ERR(mmc->supply.vmmc)) in mmci_set_ios()
1328 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in mmci_set_ios()
1330 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in mmci_set_ios()
1331 regulator_disable(mmc->supply.vqmmc); in mmci_set_ios()
1337 if (!IS_ERR(mmc->supply.vmmc)) in mmci_set_ios()
1338 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in mmci_set_ios()
1349 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in mmci_set_ios()
1350 ret = regulator_enable(mmc->supply.vqmmc); in mmci_set_ios()
1439 if (!IS_ERR(mmc->supply.vqmmc)) { in mmci_sig_volt_switch()
1445 ret = regulator_set_voltage(mmc->supply.vqmmc, in mmci_sig_volt_switch()
[all …]
Dtmio_mmc_pio.c861 if (!IS_ERR(mmc->supply.vmmc)) { in tmio_mmc_power_on()
862 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); in tmio_mmc_power_on()
875 if (!IS_ERR(mmc->supply.vqmmc) && !ret) { in tmio_mmc_power_on()
876 ret = regulator_enable(mmc->supply.vqmmc); in tmio_mmc_power_on()
889 if (!IS_ERR(mmc->supply.vqmmc)) in tmio_mmc_power_off()
890 regulator_disable(mmc->supply.vqmmc); in tmio_mmc_power_off()
892 if (!IS_ERR(mmc->supply.vmmc)) in tmio_mmc_power_off()
893 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in tmio_mmc_power_off()
/drivers/media/i2c/
Dnoon010pc30.c136 struct regulator_bulk_data supply[NOON010_NUM_SUPPLIES]; member
406 ret = regulator_bulk_enable(NOON010_NUM_SUPPLIES, info->supply); in power_enable()
441 ret = regulator_bulk_disable(NOON010_NUM_SUPPLIES, info->supply); in power_disable()
773 info->supply[i].supply = noon010_supply_name[i]; in noon010_probe()
776 info->supply); in noon010_probe()
/drivers/mmc/core/
Dcore.c1307 int mmc_regulator_get_ocrmask(struct regulator *supply) in mmc_regulator_get_ocrmask() argument
1315 count = regulator_count_voltages(supply); in mmc_regulator_get_ocrmask()
1320 vdd_uV = regulator_list_voltage(supply, i); in mmc_regulator_get_ocrmask()
1329 vdd_uV = regulator_get_voltage(supply); in mmc_regulator_get_ocrmask()
1354 struct regulator *supply, in mmc_regulator_set_ocr() argument
1378 result = regulator_set_voltage(supply, min_uV, max_uV); in mmc_regulator_set_ocr()
1380 result = regulator_enable(supply); in mmc_regulator_set_ocr()
1385 result = regulator_disable(supply); in mmc_regulator_set_ocr()
1404 mmc->supply.vmmc = devm_regulator_get_optional(dev, "vmmc"); in mmc_regulator_get_supply()
1405 mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc"); in mmc_regulator_get_supply()
[all …]
/drivers/media/i2c/m5mols/
Dm5mols_core.c42 .supply = "core", /* ARM core power, 1.2V */
44 .supply = "dig_18", /* digital power 1, 1.8V */
46 .supply = "d_sensor", /* sensor power 1, 1.8V */
48 .supply = "dig_28", /* digital power 2, 2.8V */
50 .supply = "a_sensor", /* analog power */
52 .supply = "dig_12", /* digital power 3, 1.2V */
/drivers/media/platform/s5p-tv/
Dhdmi_drv.c812 static char *supply[] = { in hdmi_resources_init() local
851 res->regul_bulk = kcalloc(ARRAY_SIZE(supply), in hdmi_resources_init()
857 for (i = 0; i < ARRAY_SIZE(supply); ++i) { in hdmi_resources_init()
858 res->regul_bulk[i].supply = supply[i]; in hdmi_resources_init()
862 ret = regulator_bulk_get(dev, ARRAY_SIZE(supply), res->regul_bulk); in hdmi_resources_init()
867 res->regul_count = ARRAY_SIZE(supply); in hdmi_resources_init()
/drivers/mfd/
Dsi476x-i2c.c747 core->supplies[0].supply = "vd"; in si476x_core_probe()
748 core->supplies[1].supply = "va"; in si476x_core_probe()
749 core->supplies[2].supply = "vio1"; in si476x_core_probe()
750 core->supplies[3].supply = "vio2"; in si476x_core_probe()
/drivers/misc/lis3lv02d/
Dlis3lv02d_i2c.c154 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe()
155 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe()

1234