/drivers/base/regmap/ |
H A D | internal.h | 16 #include <linux/regmap.h> 19 struct regmap; 26 void (*format_write)(struct regmap *map, 33 struct regmap { struct 83 int (*init)(struct regmap *map); 84 int (*exit)(struct regmap *map); 85 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); 86 int (*write)(struct regmap *map, unsigned int reg, unsigned int value); 87 int (*sync)(struct regmap *map); 90 bool regmap_writeable(struct regmap *ma [all...] |
/drivers/gpio/ |
H A D | gpio-stmpe.c | 171 static const u8 regmap[] = { local 192 stmpe_reg_write(stmpe, stmpe->regs[regmap[i]] - j, new);
|
H A D | gpio-tc3589x.c | 151 static const u8 regmap[] = { local 168 tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new);
|
/drivers/regulator/ |
H A D | max8649.c | 19 #include <linux/regmap.h> 54 struct regmap *regmap; member in struct:max8649_regulator_info 86 ret = regmap_read(info->regmap, info->vol_reg, &val); 109 return regmap_update_bits(info->regmap, info->vol_reg, mask, data); 116 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD, 0); 126 return regmap_update_bits(info->regmap, MAX8649_CONTROL, MAX8649_EN_PD, 136 ret = regmap_read(info->regmap, MAX8649_CONTROL, &val); 149 ret = regmap_read(info->regmap, info->vol_reg, &val); 156 ret = regmap_read(info->regmap, MAX8649_RAM [all...] |
H A D | tps65023-regulator.c | 28 #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 D | ad5380.c | 18 #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 D | qib_sd7220.c | 1195 uint32_t regmap; local 1197 regmap = DDS_REG_MAP; 1199 reg = (regmap & 0xF); 1200 regmap >>= 4;
|
/drivers/net/wireless/libertas/ |
H A D | cfg.c | 2122 static const struct region_code_mapping regmap[] = { local 2134 for (i = 0; i < ARRAY_SIZE(regmap); i++) 2135 if (regmap[i].code == priv->regioncode) { 2136 regulatory_hint(priv->wdev->wiphy, regmap[i].cn);
|
/drivers/platform/x86/ |
H A D | intel_ips.c | 241 #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 1541 ips->regmap = ioremap(pci_resource_start(dev, 0), 1543 if (!ips->regmap) { [all...] |