Home
last modified time | relevance | path

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

/drivers/mfd/
Drc5t583-irq.c154 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() local
155 mutex_lock(&rc5t583->irq_lock); in rc5t583_irq_lock()
160 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() local
161 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask()
164 rc5t583->group_irq_en[data->grp_index] |= 1 << data->grp_index; in rc5t583_irq_unmask()
165 rc5t583->intc_inten_reg |= 1 << data->master_bit; in rc5t583_irq_unmask()
166 rc5t583->irq_en_reg[data->mask_reg_index] |= 1 << data->int_en_bit; in rc5t583_irq_unmask()
171 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() local
172 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask()
175 rc5t583->group_irq_en[data->grp_index] &= ~(1 << data->grp_index); in rc5t583_irq_mask()
[all …]
Drc5t583.c165 static int rc5t583_clear_ext_power_req(struct rc5t583 *rc5t583, in rc5t583_clear_ext_power_req() argument
176 ret = rc5t583_write(rc5t583->dev, RICOH_ONOFFSEL_REG, on_off_val); in rc5t583_clear_ext_power_req()
178 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req()
181 ret = rc5t583_write(rc5t583->dev, RICOH_SWCTL_REG, 0x0); in rc5t583_clear_ext_power_req()
183 dev_warn(rc5t583->dev, "Error in writing reg %d error: %d\n", in rc5t583_clear_ext_power_req()
188 ret = rc5t583_write(rc5t583->dev, i, 0x0); in rc5t583_clear_ext_power_req()
190 dev_warn(rc5t583->dev, in rc5t583_clear_ext_power_req()
252 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 …]
DMakefile189 obj-$(CONFIG_MFD_RC5T583) += rc5t583.o rc5t583-irq.o
/drivers/rtc/
Drtc-rc5t583.c50 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_alarm_irq_enable() local
56 return regmap_update_bits(rc5t583->regmap, RC5T583_RTC_CTL1, SET_YAL, in rc5t583_rtc_alarm_irq_enable()
71 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_time() local
75 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_read_time()
95 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_time() local
107 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data, in rc5t583_rtc_set_time()
119 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_read_alarm() local
124 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_AY_MIN, alarm_data, in rc5t583_rtc_read_alarm()
138 ret = regmap_read(rc5t583->regmap, RC5T583_RTC_CTL1, &interrupt_enable); in rc5t583_rtc_read_alarm()
151 struct rc5t583 *rc5t583 = dev_get_drvdata(dev->parent); in rc5t583_rtc_set_alarm() local
[all …]
DMakefile124 obj-$(CONFIG_RTC_DRV_RC5T583) += rtc-rc5t583.o
DKconfig535 will be called rtc-rc5t583.
/drivers/gpio/
Dgpio-rc5t583.c33 struct rc5t583 *rc5t583; member
39 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get()
53 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set()
63 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input()
78 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output()
95 return rc5t583_gpio->rc5t583->irq_base + in rc5t583_gpio_to_irq()
103 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_free()
110 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_gpio_probe() local
111 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_gpio_probe()
131 rc5t583_gpio->rc5t583 = rc5t583; in rc5t583_gpio_probe()
DMakefile94 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
/drivers/regulator/
Drc5t583-regulator.c120 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); in rc5t583_regulator_probe() local
121 struct rc5t583_platform_data *pdata = dev_get_platdata(rc5t583->dev); in rc5t583_regulator_probe()
149 ret = rc5t583_ext_power_req_config(rc5t583->dev, in rc5t583_regulator_probe()
165 config.regmap = rc5t583->regmap; in rc5t583_regulator_probe()
DMakefile84 obj-$(CONFIG_REGULATOR_RC5T583) += rc5t583-regulator.o