Home
last modified time | relevance | path

Searched refs:rc5t583 (Results 1 – 3 of 3) sorted by relevance

/drivers/mfd/
Drc5t583-irq.c155 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() local
156 mutex_lock(&rc5t583->irq_lock); in rc5t583_irq_lock()
161 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() local
162 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask()
165 rc5t583->group_irq_en[data->grp_index] |= 1 << data->grp_index; in rc5t583_irq_unmask()
166 rc5t583->intc_inten_reg |= 1 << data->master_bit; in rc5t583_irq_unmask()
167 rc5t583->irq_en_reg[data->mask_reg_index] |= 1 << data->int_en_bit; in rc5t583_irq_unmask()
172 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() local
173 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask()
176 rc5t583->group_irq_en[data->grp_index] &= ~(1 << data->grp_index); in rc5t583_irq_mask()
[all …]
Drc5t583.c164 static int rc5t583_clear_ext_power_req(struct rc5t583 *rc5t583, in rc5t583_clear_ext_power_req() argument
175 ret = rc5t583_write(rc5t583->dev, RICOH_ONOFFSEL_REG, on_off_val); in rc5t583_clear_ext_power_req()
177 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req()
180 ret = rc5t583_write(rc5t583->dev, RICOH_SWCTL_REG, 0x0); in rc5t583_clear_ext_power_req()
182 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req()
187 ret = rc5t583_write(rc5t583->dev, i, 0x0); in rc5t583_clear_ext_power_req()
189 dev_warn(rc5t583->dev, in rc5t583_clear_ext_power_req()
251 struct rc5t583 *rc5t583; in rc5t583_i2c_probe() local
261 rc5t583 = devm_kzalloc(&i2c->dev, sizeof(struct rc5t583), GFP_KERNEL); in rc5t583_i2c_probe()
262 if (!rc5t583) { in rc5t583_i2c_probe()
[all …]
DMakefile116 obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o