Home
last modified time | relevance | path

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

/drivers/mfd/
Drc5t583-irq.c142 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 …]
Drc5t583.c152 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()
238 struct rc5t583 *rc5t583; in rc5t583_i2c_probe() local
247 rc5t583 = devm_kzalloc(&i2c->dev, sizeof(*rc5t583), GFP_KERNEL); in rc5t583_i2c_probe()
248 if (!rc5t583) in rc5t583_i2c_probe()
[all …]
DMakefile223 obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
/drivers/rtc/
Drtc-rc5t583.c40 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 …]
DMakefile138 obj-$(CONFIG_RTC_DRV_RC5T583) += rtc-rc5t583.o
DKconfig599 will be called rtc-rc5t583.
/drivers/gpio/
Dgpio-rc5t583.c21 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()
DMakefile133 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
/drivers/regulator/
Drc5t583-regulator.c101 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_regulator_probe() local
102 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_regulator_probe()
120 ret = rc5t583_ext_power_req_config(rc5t583->dev, in rc5t583_regulator_probe()
136 config.regmap = rc5t583->regmap; in rc5t583_regulator_probe()
DMakefile133 obj-$(CONFIG_REGULATOR_RC5T583) += rc5t583-regulator.o