Searched defs:regmap (Results 1 - 25 of 123) sorted by relevance

12345

/drivers/clk/qcom/
H A Dclk-regmap.h19 struct regmap;
22 * struct clk_regmap - regmap supporting clock
24 * @regmap: regmap to use for regmap helpers and/or by providers
25 * @enable_reg: register when using regmap enable/disable ops
26 * @enable_mask: mask when using regmap enable/disable ops
32 struct regmap *regmap; member in struct:clk_regmap
H A Dreset.h24 struct regmap;
28 struct regmap *regmap; member in struct:qcom_reset_controller
H A Dcommon.c15 #include <linux/regmap.h>
22 #include "clk-regmap.h"
46 struct regmap *
63 const struct qcom_cc_desc *desc, struct regmap *regmap)
105 reset->regmap = regmap;
119 struct regmap *regmap; local
121 regmap
62 qcom_cc_really_probe(struct platform_device *pdev, const struct qcom_cc_desc *desc, struct regmap *regmap) argument
[all...]
/drivers/media/tuners/
H A Dm88ts2022_priv.h21 #include <linux/regmap.h>
26 struct regmap *regmap; member in struct:m88ts2022_dev
H A De4000_priv.h27 #include <linux/regmap.h>
31 struct regmap *regmap; member in struct:e4000
H A Dtda18212.c22 #include <linux/regmap.h>
27 struct regmap *regmap; member in struct:tda18212_dev
128 ret = regmap_write(dev->regmap, 0x23, bw_params[i][2]);
132 ret = regmap_write(dev->regmap, 0x06, 0x00);
136 ret = regmap_write(dev->regmap, 0x0f, bw_params[i][0]);
149 ret = regmap_bulk_write(dev->regmap, 0x12, buf, sizeof(buf));
212 dev->regmap = devm_regmap_init_i2c(client, &regmap_config);
213 if (IS_ERR(dev->regmap)) {
214 ret = PTR_ERR(dev->regmap);
[all...]
/drivers/mfd/
H A Dqcom-spmi-pmic.c17 #include <linux/regmap.h>
30 struct regmap *regmap; local
32 regmap = devm_regmap_init_spmi_ext(sdev, &spmi_regmap_config);
33 if (IS_ERR(regmap))
34 return PTR_ERR(regmap);
H A Dmc13xxx.h13 #include <linux/regmap.h>
33 struct regmap *regmap; member in struct:mc13xxx
H A Dsyscon.c23 #include <linux/regmap.h>
29 struct regmap *regmap; member in struct:syscon
39 struct regmap *syscon_node_to_regmap(struct device_node *np)
51 return syscon->regmap;
55 struct regmap *syscon_regmap_lookup_by_compatible(const char *s)
58 struct regmap *regmap; local
64 regmap = syscon_node_to_regmap(syscon_np);
67 return regmap;
96 struct regmap *regmap; local
[all...]
/drivers/misc/
H A Dbmp085-spi.c28 struct regmap *regmap; local
37 regmap = devm_regmap_init_spi(client, &bmp085_regmap_config);
38 if (IS_ERR(regmap)) {
39 err = PTR_ERR(regmap);
40 dev_err(&client->dev, "Failed to init regmap: %d\n", err);
44 return bmp085_probe(&client->dev, regmap, client->irq);
H A Dbmp085-i2c.c43 struct regmap *regmap = devm_regmap_init_i2c(client, local
46 if (IS_ERR(regmap)) {
47 err = PTR_ERR(regmap);
48 dev_err(&client->dev, "Failed to init regmap: %d\n", err);
52 return bmp085_probe(&client->dev, regmap, client->irq);
/drivers/pinctrl/berlin/
H A Dberlin-bg2.c16 #include <linux/regmap.h>
237 struct regmap *regmap; local
255 regmap = devm_regmap_init_mmio(&pdev->dev, base, rmconfig);
256 if (IS_ERR(regmap))
257 return PTR_ERR(regmap);
H A Dberlin-bg2cd.c16 #include <linux/regmap.h>
180 struct regmap *regmap; local
198 regmap = devm_regmap_init_mmio(&pdev->dev, base, rmconfig);
199 if (IS_ERR(regmap))
200 return PTR_ERR(regmap);
H A Dberlin-bg2q.c16 #include <linux/regmap.h>
399 struct regmap *regmap; local
417 regmap = devm_regmap_init_mmio(&pdev->dev, base, rmconfig);
418 if (IS_ERR(regmap))
419 return PTR_ERR(regmap);
/drivers/power/reset/
H A Dbrcmstb-reboot.c25 #include <linux/regmap.h>
34 static struct regmap *regmap; variable in typeref:struct:regmap
43 rc = regmap_write(regmap, rst_src_en, 1);
49 rc = regmap_read(regmap, rst_src_en, &tmp);
55 rc = regmap_write(regmap, sw_mstr_rst, 1);
61 rc = regmap_read(regmap, sw_mstr_rst, &tmp);
76 regmap = syscon_regmap_lookup_by_phandle(np, "syscon");
77 if (IS_ERR(regmap)) {
/drivers/staging/iio/magnetometer/
H A Dhmc5843.h17 #include <linux/regmap.h>
38 struct regmap *regmap; member in struct:hmc5843_data
43 int hmc5843_common_probe(struct device *dev, struct regmap *regmap,
/drivers/input/misc/
H A Dpmic8xxx-pwrkey.c20 #include <linux/regmap.h>
89 struct regmap *regmap; local
104 regmap = dev_get_regmap(pdev->dev.parent, NULL);
105 if (!regmap) {
106 dev_err(&pdev->dev, "failed to locate regmap for the device\n");
130 err = regmap_read(regmap, PON_CNTL_1, &pon_cntl);
143 err = regmap_write(regmap, PON_CNTL_1, pon_cntl);
H A Dpm8xxx-vibrator.c19 #include <linux/regmap.h>
37 * @regmap: regmap for register read/write
46 struct regmap *regmap; member in struct:pm8xxx_vib
68 rc = regmap_write(vib->regmap, VIB_DRV, val);
86 rc = regmap_read(vib->regmap, VIB_DRV, &val);
155 vib->regmap = dev_get_regmap(pdev->dev.parent, NULL);
156 if (!vib->regmap)
167 error = regmap_read(vib->regmap, VIB_DR
[all...]
/drivers/phy/
H A Dphy-stih407-usb.c20 #include <linux/regmap.h>
35 struct regmap *regmap; member in struct:stih407_usb2_picophy
47 return regmap_update_bits(phy_dev->regmap, phy_dev->ctrl,
59 ret = regmap_update_bits(phy_dev->regmap,
120 phy_dev->regmap = syscon_regmap_lookup_by_phandle(np, "st,syscfg");
121 if (IS_ERR(phy_dev->regmap)) {
123 return PTR_ERR(phy_dev->regmap);
H A Dphy-stih41x-usb.c22 #include <linux/regmap.h>
46 * @regmap: Syscfg registers bank in which PHY is configured
52 struct regmap *regmap; member in struct:stih41x_usb_phy
75 return regmap_update_bits(phy_dev->regmap, phy_dev->cfg->syscfg,
90 return regmap_update_bits(phy_dev->regmap, phy_dev->cfg->syscfg,
99 ret = regmap_update_bits(phy_dev->regmap, phy_dev->cfg->syscfg,
139 phy_dev->regmap = syscon_regmap_lookup_by_phandle(np, "st,syscfg");
140 if (IS_ERR(phy_dev->regmap)) {
142 return PTR_ERR(phy_dev->regmap);
[all...]
/drivers/regulator/
H A Dda9210-regulator.c29 #include <linux/regmap.h>
35 struct regmap *regmap; member in struct:da9210
97 return regmap_update_bits(chip->regmap,
113 ret = regmap_read(chip->regmap, DA9210_REG_BUCK_ILIM, &data);
140 chip->regmap = devm_regmap_init_i2c(i2c, &da9210_regmap_config);
141 if (IS_ERR(chip->regmap)) {
142 error = PTR_ERR(chip->regmap);
152 config.regmap = chip->regmap;
[all...]
H A Dvexpress.c29 struct regmap *regmap; member in struct:vexpress_regulator
36 int err = regmap_read(reg->regmap, 0, &uV);
46 return regmap_write(reg->regmap, 0, min_uV);
68 reg->regmap = devm_regmap_init_vexpress_config(&pdev->dev);
69 if (IS_ERR(reg->regmap))
70 return PTR_ERR(reg->regmap);
/drivers/bus/
H A Dvexpress-config.c87 struct regmap *regmap = res; local
89 bridge->ops->regmap_exit(regmap, bridge->context);
92 struct regmap *devm_regmap_init_vexpress_config(struct device *dev)
95 struct regmap *regmap; local
96 struct regmap **res;
110 regmap = bridge->ops->regmap_init(dev, bridge->context);
111 if (IS_ERR(regmap)) {
113 return regmap;
[all...]
/drivers/clk/
H A Dclk-max-gen.c26 #include <linux/regmap.h>
35 struct regmap *regmap; member in struct:max_gen_clk
50 return regmap_update_bits(max_gen->regmap, max_gen->reg,
58 regmap_update_bits(max_gen->regmap, max_gen->reg,
68 ret = regmap_read(max_gen->regmap, max_gen->reg, &val);
109 int max_gen_clk_probe(struct platform_device *pdev, struct regmap *regmap, argument
129 max_gen_clks[i].regmap = regmap;
[all...]
/drivers/hwmon/
H A Dltc4260.c25 #include <linux/regmap.h>
48 struct regmap *regmap = dev_get_drvdata(dev); local
52 ret = regmap_read(regmap, reg, &val);
98 struct regmap *regmap = dev_get_drvdata(dev); local
102 ret = regmap_read(regmap, LTC4260_FAULT, &fault);
108 regmap_update_bits(regmap, LTC4260_FAULT, attr->index, 0);
164 struct regmap *regmap; local
[all...]

Completed in 741 milliseconds

12345