/linux-5.19.10/drivers/mfd/ |
D | rc5t583-irq.c | 142 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() local 143 mutex_lock(&rc5t583->irq_lock); in rc5t583_irq_lock() 148 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() local 149 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 152 rc5t583->group_irq_en[data->grp_index] |= 1 << data->grp_index; in rc5t583_irq_unmask() 153 rc5t583->intc_inten_reg |= 1 << data->master_bit; in rc5t583_irq_unmask() 154 rc5t583->irq_en_reg[data->mask_reg_index] |= 1 << data->int_en_bit; in rc5t583_irq_unmask() 159 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() local 160 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 163 rc5t583->group_irq_en[data->grp_index] &= ~(1 << data->grp_index); in rc5t583_irq_mask() [all …]
|
D | rc5t583.c | 152 static int rc5t583_clear_ext_power_req(struct rc5t583 *rc5t583, in rc5t583_clear_ext_power_req() argument 163 ret = rc5t583_write(rc5t583->dev, RICOH_ONOFFSEL_REG, on_off_val); in rc5t583_clear_ext_power_req() 165 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req() 168 ret = rc5t583_write(rc5t583->dev, RICOH_SWCTL_REG, 0x0); in rc5t583_clear_ext_power_req() 170 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req() 175 ret = rc5t583_write(rc5t583->dev, i, 0x0); in rc5t583_clear_ext_power_req() 177 dev_warn(rc5t583->dev, in rc5t583_clear_ext_power_req() 239 struct rc5t583 *rc5t583; in rc5t583_i2c_probe() local 248 rc5t583 = devm_kzalloc(&i2c->dev, sizeof(*rc5t583), GFP_KERNEL); in rc5t583_i2c_probe() 249 if (!rc5t583) in rc5t583_i2c_probe() [all …]
|
D | Makefile | 217 obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
|
/linux-5.19.10/drivers/rtc/ |
D | rtc-rc5t583.c | 40 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_alarm_irq_enable() local 46 return regmap_update_bits(rc5t583->regmap, RC5T583_RTC_CTL1, SET_YAL, in rc5t583_rtc_alarm_irq_enable() 61 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_time() local 65 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_read_time() 85 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_time() local 97 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_set_time() 109 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_alarm() local 114 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_read_alarm() 128 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL1, &interrupt_enable); in rc5t583_rtc_read_alarm() 141 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_alarm() local [all …]
|
D | Makefile | 137 obj-$(CONFIG_RTC_DRV_RC5T583) += rtc-rc5t583.o
|
D | Kconfig | 594 will be called rtc-rc5t583.
|
/linux-5.19.10/include/linux/mfd/ |
D | rc5t583.h | 285 struct rc5t583 { struct 328 struct rc5t583 *rc5t583 = dev_get_drvdata(dev); in rc5t583_write() local 329 return regmap_write(rc5t583->regmap, reg, val); in rc5t583_write() 334 struct rc5t583 *rc5t583 = dev_get_drvdata(dev); in rc5t583_read() local 337 ret = regmap_read(rc5t583->regmap, reg, &ival); in rc5t583_read() 346 struct rc5t583 *rc5t583 = dev_get_drvdata(dev); in rc5t583_set_bits() local 347 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits() 353 struct rc5t583 *rc5t583 = dev_get_drvdata(dev); in rc5t583_clear_bits() local 354 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits() 360 struct rc5t583 *rc5t583 = dev_get_drvdata(dev); in rc5t583_update() local [all …]
|
/linux-5.19.10/drivers/gpio/ |
D | gpio-rc5t583.c | 21 struct rc5t583 *rc5t583; member 27 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get() 41 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set() 51 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input() 66 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output() 83 return rc5t583_gpio->rc5t583->irq_base + in rc5t583_gpio_to_irq() 91 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_free() 98 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_gpio_probe() local 99 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_gpio_probe() 119 rc5t583_gpio->rc5t583 = rc5t583; in rc5t583_gpio_probe()
|
D | Makefile | 124 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
|
/linux-5.19.10/drivers/regulator/ |
D | rc5t583-regulator.c | 102 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_regulator_probe() local 103 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_regulator_probe() 121 ret = rc5t583_ext_power_req_config(rc5t583->dev, in rc5t583_regulator_probe() 137 config.regmap = rc5t583->regmap; in rc5t583_regulator_probe()
|
D | Makefile | 122 obj-$(CONFIG_REGULATOR_RC5T583) += rc5t583-regulator.o
|