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

/drivers/base/regmap/
H A Dinternal.h16 #include <linux/regmap.h>
19 struct regmap;
27 void (*format_write)(struct regmap *map,
34 struct regmap { struct
87 int (*init)(struct regmap *map);
88 int (*exit)(struct regmap *map);
89 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value);
90 int (*write)(struct regmap *map, unsigned int reg, unsigned int value);
91 int (*sync)(struct regmap *map, unsigned int min, unsigned int max);
94 bool regmap_writeable(struct regmap *ma
[all...]
H A Dregmap.c20 #include <trace/events/regmap.h>
24 bool regmap_writeable(struct regmap *map, unsigned int reg)
35 bool regmap_readable(struct regmap *map, unsigned int reg)
49 bool regmap_volatile(struct regmap *map, unsigned int reg)
60 bool regmap_precious(struct regmap *map, unsigned int reg)
71 static bool regmap_volatile_range(struct regmap *map, unsigned int reg,
83 static void regmap_format_2_6_write(struct regmap *map,
91 static void regmap_format_4_12_write(struct regmap *map,
98 static void regmap_format_7_9_write(struct regmap *map,
105 static void regmap_format_10_14_write(struct regmap *ma
330 struct regmap **ptr, *regmap; local
[all...]
/drivers/gpio/
H A Dgpio-stmpe.c171 static const u8 regmap[] = { local
192 stmpe_reg_write(stmpe, stmpe->regs[regmap[i]] - j, new);
H A Dgpio-tc3589x.c151 static const u8 regmap[] = { local
168 tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new);
/drivers/regulator/
H A Dmax8649.c19 #include <linux/regmap.h>
54 struct regmap *regmap; member in struct:max8649_regulator_info
86 ret = regmap_read(info->regmap, info->vol_reg, &val);
108 return regmap_update_bits(info->regmap, info->vol_reg, mask, data);
115 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD, 0);
125 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD,
135 ret = regmap_read(info->regmap, MAX8649_CONTROL, &val);
148 ret = regmap_read(info->regmap, info->vol_reg, &val);
155 ret = regmap_read(info->regmap, MAX8649_RAM
[all...]
H A Dtps62360-regulator.c37 #include <linux/regmap.h>
64 struct regmap *regmap; member in struct:tps62360_chip
127 ret = regmap_read(tps->regmap, REG_VSET0 + tps->curr_vset_id, &data);
168 ret = regmap_update_bits(tps->regmap, REG_VSET0 + new_vset_id,
211 ret = regmap_read(tps->regmap, REG_VSET0 + vset_id, &data);
222 ret = regmap_write(tps->regmap, REG_VSET0 + vset_id, data);
237 ret = regmap_write(tps->regmap, REG_CONTROL, 0xE0);
239 ret = regmap_write(tps->regmap, REG_CONTROL, 0x0);
260 ret = regmap_update_bits(tps->regmap, REG_RAMPCTR
[all...]
H A Dtps65023-regulator.c28 #include <linux/regmap.h>
145 struct regmap *regmap; member in struct:tps_pmic
166 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data);
185 ret = regmap_read(tps->regmap, TPS65023_REG_REG_CTRL, &data);
203 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift);
216 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 0);
229 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 1 << shift);
242 return regmap_update_bits(tps->regmap, TPS65023_REG_REG_CTRL, 1 << shift, 0);
255 ret = regmap_read(tps->regmap, TPS65023_REG_DEF_COR
[all...]
/drivers/staging/iio/dac/
H A Dad5380.c18 #include <linux/regmap.h>
52 * @regmap: regmap instance used by the device
60 struct regmap *regmap; member in struct:ad5380_state
191 ret = regmap_write(st->regmap, AD5380_REG_SF_PWR_DOWN, 0);
193 ret = regmap_write(st->regmap, AD5380_REG_SF_PWR_UP, 0);
220 ret = regmap_read(st->regmap, AD5380_REG_SF_CTRL, &mode);
245 ret = regmap_update_bits(st->regmap, AD5380_REG_SF_CTRL,
300 return regmap_write(st->regmap,
383 ad5380_probe(struct device *dev, struct regmap *regmap, enum ad5380_type type, const char *name) argument
505 struct regmap *regmap; local
579 struct regmap *regmap; local
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_sd7220.c1195 uint32_t regmap; local
1197 regmap = DDS_REG_MAP;
1199 reg = (regmap & 0xF);
1200 regmap >>= 4;
/drivers/net/wireless/libertas/
H A Dcfg.c2090 static const struct region_code_mapping regmap[] = { local
2102 for (i = 0; i < ARRAY_SIZE(regmap); i++)
2103 if (regmap[i].code == priv->regioncode) {
2104 regulatory_hint(priv->wdev->wiphy, regmap[i].cn);
/drivers/platform/x86/
H A Dintel_ips.c241 #define thm_readb(off) readb(ips->regmap + (off))
242 #define thm_readw(off) readw(ips->regmap + (off))
243 #define thm_readl(off) readl(ips->regmap + (off))
244 #define thm_readq(off) readq(ips->regmap + (off))
246 #define thm_writeb(off, val) writeb((val), ips->regmap + (off))
247 #define thm_writew(off, val) writew((val), ips->regmap + (off))
248 #define thm_writel(off, val) writel((val), ips->regmap + (off))
297 void *regmap; member in struct:ips_driver
1532 ips->regmap = ioremap(pci_resource_start(dev, 0),
1534 if (!ips->regmap) {
[all...]

Completed in 199 milliseconds