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;
441 int status;
446 /* Disable the IRQ, and clear its status ... for now, we "know"
448 * Note that reading ALM data registers also clears IRQ status.
457 status = spi_write_then_read(spi, buf, sizeof(buf),
459 if (status < 0)
460 dev_dbg(&spi->dev, "clear irq --> %d\n", status);
473 * I/O requests in IRQ context (to clear the IRQ status).
547 int status;
578 status = spi_write_then_read(spi, &addr, sizeof(addr),
580 if (status < 0) {
582 "read", status);
583 return status;
610 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0);
612 dev_dbg(&spi->dev, "clear WP --> %d\n", status);
613 if (status < 0)
614 return status;
664 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0);
665 if (status < 0) {
667 "write", status);
668 return status;
676 status = spi_write_then_read(spi, &addr, sizeof(addr),
678 if (status < 0) {
679 dev_dbg(&spi->dev, "read HOUR --> %d\n", status);
680 return status;
698 status = rtc_register_device(ds1305->rtc);
699 if (status)
700 return status;
712 status = devm_request_irq(&spi->dev, spi->irq, ds1305_irq,
714 if (status < 0) {
716 spi->irq, status);