Lines Matching refs:status
74 /* status has just AEIx bits, mirrored as IRQFx */
175 int status;
180 status = spi_write_then_read(ds1305->spi, &addr, sizeof(addr),
182 if (status < 0)
183 return status;
239 * status of an alarm that could trigger while we're reading parts
240 * of that status.
271 int status;
276 * makes returning "pending" status a bit of a lie, but that bit
277 * of EFI status is at best fragile anyway (given IRQ handlers).
280 status = spi_write_then_read(spi, &addr, sizeof(addr),
282 if (status < 0)
283 return status;
290 status = spi_write_then_read(spi, &addr, sizeof(addr),
292 if (status < 0)
293 return status;
324 int status;
331 status = ds1305_get_time(dev, &tm);
332 if (status < 0)
333 return status;
348 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0);
349 if (status < 0)
350 return status;
364 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0);
365 if (status < 0)
366 return status;
374 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0);
377 return status;
440 int status;
445 /* Disable the IRQ, and clear its status ... for now, we "know"
447 * Note that reading ALM data registers also clears IRQ status.
456 status = spi_write_then_read(spi, buf, sizeof(buf),
458 if (status < 0)
459 dev_dbg(&spi->dev, "clear irq --> %d\n", status);
472 * I/O requests in IRQ context (to clear the IRQ status).
546 int status;
577 status = spi_write_then_read(spi, &addr, sizeof(addr),
579 if (status < 0) {
581 "read", status);
582 return status;
609 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0);
611 dev_dbg(&spi->dev, "clear WP --> %d\n", status);
612 if (status < 0)
613 return status;
663 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0);
664 if (status < 0) {
666 "write", status);
667 return status;
675 status = spi_write_then_read(spi, &addr, sizeof(addr),
677 if (status < 0) {
678 dev_dbg(&spi->dev, "read HOUR --> %d\n", status);
679 return status;
697 status = devm_rtc_register_device(ds1305->rtc);
698 if (status)
699 return status;
711 status = devm_request_irq(&spi->dev, spi->irq, ds1305_irq,
713 if (status < 0) {
715 spi->irq, status);