Lines Matching refs:status

83 	int status = 0;
89 status = -EEXIST;
92 return status;
158 if (READ_ONCE(link->status) == DL_STATE_SUPPLIER_UNBIND) {
206 int status;
212 status = ssam_client_link(c, client);
223 return status >= 0 ? c : ERR_PTR(status);
258 int status;
260 status = ssam_get_firmware_version(ctrl, &version);
261 if (status)
262 return status;
277 int status;
279 status = ssam_get_firmware_version(ctrl, &version);
280 if (status < 0)
281 return status;
310 int status = 0;
331 status = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
334 status = serdev_device_set_parity(serdev, SERDEV_PARITY_EVEN);
337 status = serdev_device_set_parity(serdev, SERDEV_PARITY_ODD);
345 if (status) {
347 uart->parity, status);
368 int status;
378 status = ssam_notifier_disable_registered(c);
379 if (status) {
381 status);
384 status = ssam_ctrl_notif_display_off(c);
385 if (status)
386 ssam_err(c, "pm: display-off notification failed: %d\n", status);
388 status = ssam_ctrl_notif_d0_exit(c);
389 if (status)
390 ssam_err(c, "pm: D0-exit notification failed: %d\n", status);
398 int status;
408 status = ssam_ctrl_notif_display_off(c);
409 if (status)
410 ssam_err(c, "pm: display-off notification failed: %d\n", status);
412 return status;
418 int status;
428 status = ssam_ctrl_notif_display_on(c);
429 if (status)
430 ssam_err(c, "pm: display-on notification failed: %d\n", status);
436 int status;
443 status = ssam_ctrl_notif_d0_exit(c);
444 if (status) {
445 ssam_err(c, "pm: D0-exit notification failed: %d\n", status);
449 status = ssam_irq_arm_for_wakeup(c);
450 if (status)
460 return status;
466 int status;
482 status = ssam_ctrl_notif_d0_entry(c);
483 if (status)
484 ssam_err(c, "pm: D0-entry notification failed: %d\n", status);
492 int status;
505 status = ssam_ctrl_notif_d0_exit(c);
506 if (status) {
507 ssam_err(c, "pm: D0-exit notification failed: %d\n", status);
509 return status;
519 int status;
523 status = ssam_ctrl_notif_d0_entry(c);
524 if (status)
525 ssam_err(c, "pm: D0-exit notification failed: %d\n", status);
527 return status;
533 int status;
551 status = ssam_notifier_disable_registered(c);
552 if (status) {
554 status);
555 return status;
558 status = ssam_ctrl_notif_d0_exit(c);
559 if (status) {
560 ssam_err(c, "pm: D0-exit notification failed: %d\n", status);
562 return status;
572 int status;
582 status = ssam_ctrl_notif_d0_entry(c);
583 if (status)
584 ssam_err(c, "pm: D0-entry notification failed: %d\n", status);
625 int status;
627 status = gpiod_count(dev, NULL);
628 if (status < 0)
629 return dev_err_probe(dev, status, "no GPIO found\n");
631 status = devm_acpi_dev_add_driver_gpios(dev, ssam_acpi_gpios);
632 if (status)
633 return status;
641 status = ssam_controller_init(ctrl, serdev);
642 if (status) {
643 dev_err_probe(dev, status, "failed to initialize ssam controller\n");
652 status = serdev_device_open(serdev);
653 if (status) {
654 dev_err_probe(dev, status, "failed to open serdev device\n");
660 status = dev_err_probe(dev, -ENXIO, "failed to setup serdev\n");
665 status = ssam_controller_start(ctrl);
666 if (status)
675 status = ssam_log_firmware_version(ctrl);
676 if (status) {
677 dev_err_probe(dev, status, "failed to get firmware version\n");
681 status = ssam_ctrl_notif_d0_entry(ctrl);
682 if (status) {
683 dev_err_probe(dev, status, "D0-entry notification failed\n");
687 status = ssam_ctrl_notif_display_on(ctrl);
688 if (status) {
689 dev_err_probe(dev, status, "display-on notification failed\n");
693 status = sysfs_create_group(&dev->kobj, &ssam_sam_group);
694 if (status)
698 status = ssam_irq_setup(ctrl);
699 if (status) {
700 dev_err_probe(dev, status, "failed to setup IRQ\n");
705 status = ssam_try_set_controller(ctrl);
706 if (WARN_ON(status)) /* Currently, we're the only provider. */
738 return status;
744 int status;
759 status = ssam_ctrl_notif_display_off(ctrl);
760 if (status) {
762 status);
765 status = ssam_ctrl_notif_d0_exit(ctrl);
766 if (status) {
768 status);
808 int status;
810 status = ssam_bus_register();
811 if (status)
814 status = ssh_ctrl_packet_cache_init();
815 if (status)
818 status = ssam_event_item_cache_init();
819 if (status)
822 status = serdev_device_driver_register(&ssam_serial_hub);
823 if (status)
835 return status;