Lines Matching refs:status
109 int status;
116 status = -ESHUTDOWN;
118 status = spi_async(spidev->spi, message);
121 if (status == 0) {
123 status = message->status;
124 if (status == 0)
125 status = message->actual_length;
127 return status;
165 ssize_t status = 0;
174 status = spidev_sync_read(spidev, count);
175 if (status > 0) {
178 missing = copy_to_user(buf, spidev->buffer, status);
179 if (missing == status)
180 status = -EFAULT;
182 status = status - missing;
186 return status;
195 ssize_t status = 0;
207 status = spidev_sync_write(spidev, count);
209 status = -EFAULT;
212 return status;
224 int status = -EFAULT;
244 status = -EMSGSIZE;
282 status = spidev_sync(spidev, &msg);
283 if (status < 0)
293 status = -EFAULT;
299 status = total;
303 return status;
477 int status = -ENXIO;
483 status = 0;
487 if (status == 0) {
492 status = -ENOMEM;
495 if (status == 0) {
504 return status;
510 int status = 0;
534 return status;
564 int status;
591 status = IS_ERR(dev) ? PTR_ERR(dev) : 0;
594 status = -ENODEV;
596 if (status == 0) {
602 if (status == 0)
607 return status;
651 int status;
658 status = register_chrdev(SPIDEV_MAJOR, "spi", &spidev_fops);
659 if (status < 0)
660 return status;
668 status = spi_register_driver(&spidev_spi_driver);
669 if (status < 0) {
673 return status;