Lines Matching refs:dev

46 static int mv_rtc_set_time(struct device *dev, struct rtc_time *tm)  in mv_rtc_set_time()  argument
48 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in mv_rtc_set_time()
66 static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm) in mv_rtc_read_time() argument
68 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in mv_rtc_read_time()
97 static int mv_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in mv_rtc_read_alarm() argument
99 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in mv_rtc_read_alarm()
130 static int mv_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in mv_rtc_set_alarm() argument
132 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in mv_rtc_set_alarm()
170 static int mv_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in mv_rtc_alarm_irq_enable() argument
172 struct rtc_plat_data *pdata = dev_get_drvdata(dev); in mv_rtc_alarm_irq_enable()
214 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in mv_rtc_probe()
222 pdata->clk = devm_clk_get(&pdev->dev, NULL); in mv_rtc_probe()
230 dev_err(&pdev->dev, "12 Hour mode is enabled but not supported.\n"); in mv_rtc_probe()
240 dev_err(&pdev->dev, "internal RTC not ticking\n"); in mv_rtc_probe()
250 pdata->rtc = devm_rtc_allocate_device(&pdev->dev); in mv_rtc_probe()
258 if (devm_request_irq(&pdev->dev, pdata->irq, mv_rtc_interrupt, in mv_rtc_probe()
261 dev_warn(&pdev->dev, "interrupt not available.\n"); in mv_rtc_probe()
267 device_init_wakeup(&pdev->dev, 1); in mv_rtc_probe()
290 device_init_wakeup(&pdev->dev, 0); in mv_rtc_remove()