Lines Matching refs:dev
91 static int dc_rtc_read_time(struct device *dev, struct rtc_time *tm) in dc_rtc_read_time() argument
93 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_read_time()
105 static int dc_rtc_set_time(struct device *dev, struct rtc_time *tm) in dc_rtc_set_time() argument
107 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_set_time()
112 static int dc_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in dc_rtc_read_alarm() argument
114 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_read_alarm()
133 static int dc_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in dc_rtc_set_alarm() argument
135 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_set_alarm()
149 static int dc_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in dc_rtc_alarm_irq_enable() argument
151 struct dc_rtc *rtc = dev_get_drvdata(dev); in dc_rtc_alarm_irq_enable()
181 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); in dc_rtc_probe()
189 rtc->rtc_dev = devm_rtc_allocate_device(&pdev->dev); in dc_rtc_probe()
196 ret = devm_request_irq(&pdev->dev, irq, dc_rtc_irq, 0, pdev->name, rtc); in dc_rtc_probe()