Symbol: atc260x
drivers/input/misc/atc260x-onkey.c
106
ret = regmap_read(onkey->atc260x->regmap,
drivers/input/misc/atc260x-onkey.c
110
dev_err(onkey->atc260x->dev,
drivers/input/misc/atc260x-onkey.c
140
regmap_update_bits(onkey->atc260x->regmap, onkey->params->reg_int_ctl,
drivers/input/misc/atc260x-onkey.c
157
ret = regmap_update_bits(onkey->atc260x->regmap,
drivers/input/misc/atc260x-onkey.c
162
dev_err(onkey->atc260x->dev,
drivers/input/misc/atc260x-onkey.c
192
struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent);
drivers/input/misc/atc260x-onkey.c
220
switch (atc260x->ic_type) {
drivers/input/misc/atc260x-onkey.c
238
atc260x->ic_type);
drivers/input/misc/atc260x-onkey.c
249
onkey->atc260x = atc260x;
drivers/input/misc/atc260x-onkey.c
41
struct atc260x *atc260x;
drivers/input/misc/atc260x-onkey.c
97
return regmap_update_bits(onkey->atc260x->regmap,
drivers/mfd/atc260x-core.c
158
static void atc260x_cmu_reset(struct atc260x *atc260x)
drivers/mfd/atc260x-core.c
160
const struct atc260x_init_regs *regs = atc260x->init_regs;
drivers/mfd/atc260x-core.c
163
regmap_update_bits(atc260x->regmap, regs->cmu_devrst,
drivers/mfd/atc260x-core.c
167
regmap_update_bits(atc260x->regmap, regs->cmu_devrst,
drivers/mfd/atc260x-core.c
171
static void atc260x_dev_init(struct atc260x *atc260x)
drivers/mfd/atc260x-core.c
173
const struct atc260x_init_regs *regs = atc260x->init_regs;
drivers/mfd/atc260x-core.c
176
atc260x_cmu_reset(atc260x);
drivers/mfd/atc260x-core.c
179
regmap_write(atc260x->regmap, regs->ints_msk, 0);
drivers/mfd/atc260x-core.c
182
regmap_update_bits(atc260x->regmap, regs->pad_en,
drivers/mfd/atc260x-core.c
195
int atc260x_match_device(struct atc260x *atc260x, struct regmap_config *regmap_cfg)
drivers/mfd/atc260x-core.c
197
struct device *dev = atc260x->dev;
drivers/mfd/atc260x-core.c
204
atc260x->ic_type = (unsigned long)of_data;
drivers/mfd/atc260x-core.c
206
switch (atc260x->ic_type) {
drivers/mfd/atc260x-core.c
209
atc260x->regmap_irq_chip = &atc2603c_regmap_irq_chip;
drivers/mfd/atc260x-core.c
210
atc260x->cells = atc2603c_mfd_cells;
drivers/mfd/atc260x-core.c
211
atc260x->nr_cells = ARRAY_SIZE(atc2603c_mfd_cells);
drivers/mfd/atc260x-core.c
212
atc260x->type_name = "atc2603c";
drivers/mfd/atc260x-core.c
213
atc260x->rev_reg = ATC2603C_CHIP_VER;
drivers/mfd/atc260x-core.c
214
atc260x->init_regs = &atc2603c_init_regs;
drivers/mfd/atc260x-core.c
218
atc260x->regmap_irq_chip = &atc2609a_regmap_irq_chip;
drivers/mfd/atc260x-core.c
219
atc260x->cells = atc2609a_mfd_cells;
drivers/mfd/atc260x-core.c
220
atc260x->nr_cells = ARRAY_SIZE(atc2609a_mfd_cells);
drivers/mfd/atc260x-core.c
221
atc260x->type_name = "atc2609a";
drivers/mfd/atc260x-core.c
222
atc260x->rev_reg = ATC2609A_CHIP_VER;
drivers/mfd/atc260x-core.c
223
atc260x->init_regs = &atc2609a_init_regs;
drivers/mfd/atc260x-core.c
227
atc260x->ic_type);
drivers/mfd/atc260x-core.c
231
atc260x->regmap_mutex = devm_kzalloc(dev, sizeof(*atc260x->regmap_mutex),
drivers/mfd/atc260x-core.c
233
if (!atc260x->regmap_mutex)
drivers/mfd/atc260x-core.c
236
mutex_init(atc260x->regmap_mutex);
drivers/mfd/atc260x-core.c
240
regmap_cfg->lock_arg = atc260x->regmap_mutex;
drivers/mfd/atc260x-core.c
255
int atc260x_device_probe(struct atc260x *atc260x)
drivers/mfd/atc260x-core.c
257
struct device *dev = atc260x->dev;
drivers/mfd/atc260x-core.c
261
if (!atc260x->irq) {
drivers/mfd/atc260x-core.c
267
atc260x_dev_init(atc260x);
drivers/mfd/atc260x-core.c
269
ret = regmap_read(atc260x->regmap, atc260x->rev_reg, &chip_rev);
drivers/mfd/atc260x-core.c
280
atc260x->ic_ver = __ffs(chip_rev + 1U);
drivers/mfd/atc260x-core.c
283
atc260x->type_name, 'A' + atc260x->ic_ver);
drivers/mfd/atc260x-core.c
285
ret = devm_regmap_add_irq_chip(dev, atc260x->regmap, atc260x->irq, IRQF_ONESHOT,
drivers/mfd/atc260x-core.c
286
-1, atc260x->regmap_irq_chip, &atc260x->irq_data);
drivers/mfd/atc260x-core.c
293
atc260x->cells, atc260x->nr_cells, NULL, 0,
drivers/mfd/atc260x-core.c
294
regmap_irq_get_domain(atc260x->irq_data));
drivers/mfd/atc260x-core.c
297
regmap_del_irq_chip(atc260x->irq, atc260x->irq_data);
drivers/mfd/atc260x-i2c.c
17
struct atc260x *atc260x;
drivers/mfd/atc260x-i2c.c
21
atc260x = devm_kzalloc(&client->dev, sizeof(*atc260x), GFP_KERNEL);
drivers/mfd/atc260x-i2c.c
22
if (!atc260x)
drivers/mfd/atc260x-i2c.c
25
atc260x->dev = &client->dev;
drivers/mfd/atc260x-i2c.c
26
atc260x->irq = client->irq;
drivers/mfd/atc260x-i2c.c
28
ret = atc260x_match_device(atc260x, &regmap_cfg);
drivers/mfd/atc260x-i2c.c
32
i2c_set_clientdata(client, atc260x);
drivers/mfd/atc260x-i2c.c
34
atc260x->regmap = devm_regmap_init_i2c(client, &regmap_cfg);
drivers/mfd/atc260x-i2c.c
35
if (IS_ERR(atc260x->regmap)) {
drivers/mfd/atc260x-i2c.c
36
ret = PTR_ERR(atc260x->regmap);
drivers/mfd/atc260x-i2c.c
41
return atc260x_device_probe(atc260x);
drivers/power/reset/atc260x-poweroff.c
185
struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent);
drivers/power/reset/atc260x-poweroff.c
194
priv->regmap = atc260x->regmap;
drivers/power/reset/atc260x-poweroff.c
196
switch (atc260x->ic_type) {
drivers/power/reset/atc260x-poweroff.c
208
atc260x->ic_type);
drivers/regulator/atc260x-regulator.c
475
struct atc260x *atc260x = dev_get_drvdata(pdev->dev.parent);
drivers/regulator/atc260x-regulator.c
476
struct device *dev = atc260x->dev;
drivers/regulator/atc260x-regulator.c
491
switch (atc260x->ic_type) {
drivers/regulator/atc260x-regulator.c
495
atc2603c_ver_b = atc260x->ic_ver == ATC260X_B;
drivers/regulator/atc260x-regulator.c
503
dev_err(dev, "unsupported ATC260X ID %d\n", atc260x->ic_type);
drivers/regulator/atc260x-regulator.c
508
config.regmap = atc260x->regmap;
include/linux/mfd/atc260x/core.h
55
int atc260x_match_device(struct atc260x *atc260x, struct regmap_config *regmap_cfg);
include/linux/mfd/atc260x/core.h
56
int atc260x_device_probe(struct atc260x *atc260x);