Lines Matching refs:status
562 int status;
580 status = bus_for_each_dev(&spi_bus_type, NULL, spi, spi_dev_check);
581 if (status) {
590 status = -ENODEV;
604 status = spi_setup(spi);
605 if (status < 0) {
606 dev_err(dev, "can't setup %s, status %d\n",
607 dev_name(&spi->dev), status);
612 status = device_add(&spi->dev);
613 if (status < 0) {
614 dev_err(dev, "can't add %s, status %d\n",
615 dev_name(&spi->dev), status);
623 return status;
645 int status;
670 status = device_add_properties(&proxy->dev, chip->properties);
671 if (status) {
674 chip->modalias, status);
679 status = spi_add_device(proxy);
680 if (status < 0)
1303 msg->status = ret;
1319 if (msg->status != -EINPROGRESS)
1342 if (msg->status == -EINPROGRESS)
1343 msg->status = ret;
1345 if (msg->status && ctlr->handle_err)
1492 msg->status = ret;
1507 msg->status = ret;
1516 msg->status = ret;
1864 msg->status = -EINPROGRESS;
2144 acpi_status status;
2149 status = acpi_get_handle(NULL,
2153 if (ACPI_FAILURE(status) ||
2204 if (acpi_bus_get_status(adev) || !adev->status.present ||
2280 acpi_status status;
2287 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
2290 if (ACPI_FAILURE(status))
2671 int status;
2681 status = spi_controller_check_ops(ctlr);
2682 if (status)
2683 return status;
2740 status = spi_get_gpio_descs(ctlr);
2741 if (status)
2750 status = of_spi_get_gpio_numbers(ctlr);
2751 if (status)
2761 status = -EINVAL;
2765 status = device_add(&ctlr->dev);
2766 if (status < 0)
2780 status = spi_controller_initialize_queue(ctlr);
2781 if (status) {
2798 return status;
2804 return status;
3267 * Return: status of transformation
3339 int status;
3385 status = __spi_validate_bits_per_word(spi->controller,
3387 if (status)
3388 return status;
3396 status = spi->controller->setup(spi);
3399 status = pm_runtime_get_sync(spi->controller->dev.parent);
3400 if (status < 0) {
3404 status);
3405 return status;
3414 status = 0;
3437 status);
3439 return status;
3650 message->status = -EINPROGRESS;
3694 * Before that invocation, the value of message->status is undefined.
3695 * When the callback is issued, message->status holds either zero (to
3748 * Before that invocation, the value of message->status is undefined.
3749 * When the callback is issued, message->status holds either zero (to
3805 int status;
3809 status = __spi_validate(spi, message);
3810 if (status != 0)
3811 return status;
3830 status = __spi_queued_transfer(spi, message, false);
3834 status = spi_async_locked(spi, message);
3837 if (status == 0) {
3850 status = message->status;
3853 return status;
3981 * is zero for success, else a negative errno status code.
3996 int status;
4031 status = spi_sync(spi, &message);
4032 if (status == 0)
4040 return status;
4200 int status;
4204 status = -ENOMEM;
4208 status = bus_register(&spi_bus_type);
4209 if (status < 0)
4212 status = class_register(&spi_master_class);
4213 if (status < 0)
4217 status = class_register(&spi_slave_class);
4218 if (status < 0)
4237 return status;