Searched refs:m48t59 (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-m48t59.c | 20 #include <linux/rtc/m48t59.h> 51 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_mem_writeb() local 53 writeb(val, m48t59->ioaddr+ofs); m48t59_mem_writeb() 60 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_mem_readb() local 62 return readb(m48t59->ioaddr+ofs); m48t59_mem_readb() 72 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_read_time() local 76 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_read_time() 103 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_read_time() 115 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_set_time() local 132 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_set_time() 151 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_set_time() 162 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_readalarm() local 168 if (m48t59->irq == NO_IRQ) m48t59_rtc_readalarm() 171 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_readalarm() 194 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_readalarm() 209 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_setalarm() local 221 if (m48t59->irq == NO_IRQ) m48t59_rtc_setalarm() 244 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_setalarm() 255 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_setalarm() 270 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_alarm_irq_enable() local 273 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_alarm_irq_enable() 278 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_alarm_irq_enable() 287 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_proc() local 291 spin_lock_irqsave(&m48t59->lock, flags); m48t59_rtc_proc() 293 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_rtc_proc() 308 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_rtc_interrupt() local 311 spin_lock(&m48t59->lock); m48t59_rtc_interrupt() 313 spin_unlock(&m48t59->lock); m48t59_rtc_interrupt() 316 rtc_update_irq(m48t59->rtc, 1, (RTC_AF | RTC_IRQF)); m48t59_rtc_interrupt() 344 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_nvram_read() local 349 spin_lock_irqsave(&m48t59->lock, flags); m48t59_nvram_read() 351 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_nvram_read() 364 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); m48t59_nvram_write() local 369 spin_lock_irqsave(&m48t59->lock, flags); m48t59_nvram_write() 371 spin_unlock_irqrestore(&m48t59->lock, flags); m48t59_nvram_write() 389 struct m48t59_private *m48t59 = NULL; m48t59_rtc_probe() local 429 m48t59 = devm_kzalloc(&pdev->dev, sizeof(*m48t59), GFP_KERNEL); m48t59_rtc_probe() 430 if (!m48t59) m48t59_rtc_probe() 433 m48t59->ioaddr = pdata->ioaddr; m48t59_rtc_probe() 435 if (!m48t59->ioaddr) { m48t59_rtc_probe() 437 m48t59->ioaddr = devm_ioremap(&pdev->dev, res->start, m48t59_rtc_probe() 439 if (!m48t59->ioaddr) m48t59_rtc_probe() 446 m48t59->irq = platform_get_irq(pdev, 0); m48t59_rtc_probe() 447 if (m48t59->irq <= 0) m48t59_rtc_probe() 448 m48t59->irq = NO_IRQ; m48t59_rtc_probe() 450 if (m48t59->irq != NO_IRQ) { m48t59_rtc_probe() 451 ret = devm_request_irq(&pdev->dev, m48t59->irq, m48t59_rtc_probe() 453 "rtc-m48t59", &pdev->dev); m48t59_rtc_probe() 459 name = "m48t59"; m48t59_rtc_probe() 478 spin_lock_init(&m48t59->lock); m48t59_rtc_probe() 479 platform_set_drvdata(pdev, m48t59); m48t59_rtc_probe() 481 m48t59->rtc = devm_rtc_device_register(&pdev->dev, name, ops, m48t59_rtc_probe() 483 if (IS_ERR(m48t59->rtc)) m48t59_rtc_probe() 484 return PTR_ERR(m48t59->rtc); m48t59_rtc_probe() 502 MODULE_ALIAS("platform:rtc-m48t59"); 506 .name = "rtc-m48t59",
|
H A D | Makefile | 83 obj-$(CONFIG_RTC_DRV_M48T59) += rtc-m48t59.o
|
/linux-4.1.27/include/linux/rtc/ |
H A D | m48t59.h | 2 * include/linux/rtc/m48t59.h 4 * Definitions for the platform data of m48t59 RTC chip driver.
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | time_32.c | 27 #include <linux/rtc/m48t59.h> 271 .name = "rtc-m48t59", 295 2048, "rtc-m48t59"); clock_probe() 299 8192, "rtc-m48t59"); clock_probe()
|
H A D | time_64.c | 32 #include <linux/rtc/m48t59.h> 527 .name = "rtc-m48t59",
|
Completed in 163 milliseconds