Home
last modified time | relevance | path

Searched refs:pchip (Results 1 – 5 of 5) sorted by relevance

/drivers/video/backlight/
Dlm3630a_bl.c56 static int lm3630a_read(struct lm3630a_chip *pchip, unsigned int reg) in lm3630a_read() argument
61 rval = regmap_read(pchip->regmap, reg, &reg_val); in lm3630a_read()
67 static int lm3630a_write(struct lm3630a_chip *pchip, in lm3630a_write() argument
70 return regmap_write(pchip->regmap, reg, data); in lm3630a_write()
73 static int lm3630a_update(struct lm3630a_chip *pchip, in lm3630a_update() argument
77 return regmap_update_bits(pchip->regmap, reg, mask, data); in lm3630a_update()
81 static int lm3630a_chip_init(struct lm3630a_chip *pchip) in lm3630a_chip_init() argument
84 struct lm3630a_platform_data *pdata = pchip->pdata; in lm3630a_chip_init()
88 rval = lm3630a_write(pchip, REG_FILTER_STRENGTH, 0x03); in lm3630a_chip_init()
90 rval |= lm3630a_update(pchip, REG_CONFIG, 0x07, pdata->pwm_ctrl); in lm3630a_chip_init()
[all …]
Dlm3639_bl.c47 static int lm3639_chip_init(struct lm3639_chip_data *pchip) in lm3639_chip_init() argument
51 struct lm3639_platform_data *pdata = pchip->pdata; in lm3639_chip_init()
55 regmap_update_bits(pchip->regmap, REG_BL_CONF_1, 0x08, in lm3639_chip_init()
61 ret = regmap_update_bits(pchip->regmap, REG_IO_CTRL, 0x7C, reg_val); in lm3639_chip_init()
66 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, pdata->init_brt_led); in lm3639_chip_init()
70 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, pdata->init_brt_led); in lm3639_chip_init()
83 ret = regmap_update_bits(pchip->regmap, REG_ENABLE, 0x79, reg_val); in lm3639_chip_init()
89 dev_err(pchip->dev, "i2c failed to access register\n"); in lm3639_chip_init()
98 struct lm3639_chip_data *pchip = bl_get_data(bl); in lm3639_bled_update_status() local
99 struct lm3639_platform_data *pdata = pchip->pdata; in lm3639_bled_update_status()
[all …]
/drivers/regulator/
Dlp8755.c58 static int lp8755_read(struct lp8755_chip *pchip, unsigned int reg, in lp8755_read() argument
61 return regmap_read(pchip->regmap, reg, val); in lp8755_read()
70 static int lp8755_write(struct lp8755_chip *pchip, unsigned int reg, in lp8755_write() argument
73 return regmap_write(pchip->regmap, reg, val); in lp8755_write()
83 static int lp8755_update_bits(struct lp8755_chip *pchip, unsigned int reg, in lp8755_update_bits() argument
86 return regmap_update_bits(pchip->regmap, reg, mask, val); in lp8755_update_bits()
94 struct lp8755_chip *pchip = rdev_get_drvdata(rdev); in lp8755_buck_enable_time() local
96 ret = lp8755_read(pchip, 0x12 + id, &regval); in lp8755_buck_enable_time()
98 dev_err(pchip->dev, "i2c access error %s\n", __func__); in lp8755_buck_enable_time()
109 struct lp8755_chip *pchip = rdev_get_drvdata(rdev); in lp8755_buck_set_mode() local
[all …]
/drivers/gpio/
Dgpio-pxa.c200 static inline int __gpio_is_occupied(struct pxa_gpio_chip *pchip, unsigned gpio) in __gpio_is_occupied() argument
206 base = gpio_bank_base(&pchip->chip, gpio); in __gpio_is_occupied()
231 struct pxa_gpio_chip *pchip = pxa_gpio_chip; in pxa_irq_to_gpio() local
234 irq_gpio0 = irq_find_mapping(pchip->irqdomain, 0); in pxa_irq_to_gpio()
255 struct pxa_gpio_chip *pchip = chip_to_pxachip(chip); in pxa_gpio_to_irq() local
257 return irq_find_mapping(pchip->irqdomain, offset); in pxa_gpio_to_irq()
346 static int pxa_init_gpio_chip(struct pxa_gpio_chip *pchip, int ngpio, in pxa_init_gpio_chip() argument
352 pchip->banks = devm_kcalloc(pchip->dev, nbanks, sizeof(*pchip->banks), in pxa_init_gpio_chip()
354 if (!pchip->banks) in pxa_init_gpio_chip()
357 pchip->chip.label = "gpio-pxa"; in pxa_init_gpio_chip()
[all …]
/drivers/mtd/chips/
Dgen_probe.c151 struct flchip *pchip = &retcfi->chips[j++]; in genprobe_ident_chips() local
153 pchip->start = (i << cfi.chipshift); in genprobe_ident_chips()
154 pchip->state = FL_READY; in genprobe_ident_chips()
155 init_waitqueue_head(&pchip->wq); in genprobe_ident_chips()
156 mutex_init(&pchip->mutex); in genprobe_ident_chips()