• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/rtc/

Lines Matching refs:status

77 /* status has just AEIx bits, mirrored as IRQFx */
151 int status = -ENOIOCTLCMD;
158 status = 0;
165 status = 0;
171 if (status == 0) {
172 status = spi_write_then_read(ds1305->spi, buf, sizeof buf,
174 if (status >= 0)
179 return status;
195 int status;
200 status = spi_write_then_read(ds1305->spi, &addr, sizeof addr,
202 if (status < 0)
203 return status;
264 * status of an alarm that could trigger while we're reading parts
265 * of that status.
296 int status;
301 * makes returning "pending" status a bit of a lie, but that bit
302 * of EFI status is at best fragile anyway (given IRQ handlers).
305 status = spi_write_then_read(spi, &addr, sizeof addr,
307 if (status < 0)
308 return status;
315 status = spi_write_then_read(spi, &addr, sizeof addr,
317 if (status < 0)
318 return status;
356 int status;
360 status = rtc_tm_to_time(&alm->time, &later);
361 if (status < 0)
362 return status;
365 status = ds1305_get_time(dev, &tm);
366 if (status < 0)
367 return status;
368 status = rtc_tm_to_time(&tm, &now);
369 if (status < 0)
370 return status;
384 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0);
385 if (status < 0)
386 return status;
400 status = spi_write_then_read(spi, buf, sizeof buf, NULL, 0);
401 if (status < 0)
402 return status;
410 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0);
413 return status;
477 int status;
482 /* Disable the IRQ, and clear its status ... for now, we "know"
484 * Note that reading ALM data registers also clears IRQ status.
493 status = spi_write_then_read(spi, buf, sizeof buf,
495 if (status < 0)
496 dev_dbg(&spi->dev, "clear irq --> %d\n", status);
509 * I/O requests in IRQ context (to clear the IRQ status).
553 int status;
569 status = spi_sync(spi, &m);
570 if (status < 0)
571 dev_err(&spi->dev, "nvram %s error %d\n", "read", status);
572 return (status < 0) ? status : count;
584 int status;
600 status = spi_sync(spi, &m);
601 if (status < 0)
602 dev_err(&spi->dev, "nvram %s error %d\n", "write", status);
603 return (status < 0) ? status : count;
623 int status;
646 status = spi_write_then_read(spi, &addr, sizeof addr,
648 if (status < 0) {
650 "read", status);
665 status = -ENODEV;
681 status = spi_write_then_read(spi, buf, sizeof buf, NULL, 0);
683 dev_dbg(&spi->dev, "clear WP --> %d\n", status);
684 if (status < 0)
735 status = spi_write_then_read(spi, buf, sizeof buf, NULL, 0);
736 if (status < 0) {
738 "write", status);
749 status = spi_write_then_read(spi, &addr, sizeof addr,
751 if (status < 0) {
752 dev_dbg(&spi->dev, "read HOUR --> %d\n", status);
764 status = PTR_ERR(ds1305->rtc);
765 dev_dbg(&spi->dev, "register rtc --> %d\n", status);
777 status = request_irq(spi->irq, ds1305_irq,
779 if (status < 0) {
781 spi->irq, status);
789 status = sysfs_create_bin_file(&spi->dev.kobj, &nvram);
790 if (status < 0) {
791 dev_dbg(&spi->dev, "register nvram --> %d\n", status);
803 return status;