Home
last modified time | relevance | path

Searched refs:s5m87xx (Results 1 – 2 of 2) sorted by relevance

/drivers/mfd/
Ds5m-irq.c171 irq_to_s5m8767_irq(struct s5m87xx_dev *s5m87xx, int irq) in irq_to_s5m8767_irq() argument
173 return &s5m8767_irqs[irq - s5m87xx->irq_base]; in irq_to_s5m8767_irq()
178 struct s5m87xx_dev *s5m87xx = irq_data_get_irq_chip_data(data); in s5m8767_irq_lock() local
180 mutex_lock(&s5m87xx->irqlock); in s5m8767_irq_lock()
185 struct s5m87xx_dev *s5m87xx = irq_data_get_irq_chip_data(data); in s5m8767_irq_sync_unlock() local
188 for (i = 0; i < ARRAY_SIZE(s5m87xx->irq_masks_cur); i++) { in s5m8767_irq_sync_unlock()
189 if (s5m87xx->irq_masks_cur[i] != s5m87xx->irq_masks_cache[i]) { in s5m8767_irq_sync_unlock()
190 s5m87xx->irq_masks_cache[i] = s5m87xx->irq_masks_cur[i]; in s5m8767_irq_sync_unlock()
191 s5m_reg_write(s5m87xx, S5M8767_REG_INT1M + i, in s5m8767_irq_sync_unlock()
192 s5m87xx->irq_masks_cur[i]); in s5m8767_irq_sync_unlock()
[all …]
Ds5m-core.c57 int s5m_reg_read(struct s5m87xx_dev *s5m87xx, u8 reg, void *dest) in s5m_reg_read() argument
59 return regmap_read(s5m87xx->regmap, reg, dest); in s5m_reg_read()
63 int s5m_bulk_read(struct s5m87xx_dev *s5m87xx, u8 reg, int count, u8 *buf) in s5m_bulk_read() argument
65 return regmap_bulk_read(s5m87xx->regmap, reg, buf, count); in s5m_bulk_read()
69 int s5m_reg_write(struct s5m87xx_dev *s5m87xx, u8 reg, u8 value) in s5m_reg_write() argument
71 return regmap_write(s5m87xx->regmap, reg, value); in s5m_reg_write()
75 int s5m_bulk_write(struct s5m87xx_dev *s5m87xx, u8 reg, int count, u8 *buf) in s5m_bulk_write() argument
77 return regmap_raw_write(s5m87xx->regmap, reg, buf, count); in s5m_bulk_write()
81 int s5m_reg_update(struct s5m87xx_dev *s5m87xx, u8 reg, u8 val, u8 mask) in s5m_reg_update() argument
83 return regmap_update_bits(s5m87xx->regmap, reg, mask, val); in s5m_reg_update()
[all …]