Lines Matching refs:sts

620 					       int sts)  in applespi_check_write_status()  argument
624 if (sts < 0) { in applespi_check_write_status()
626 sts); in applespi_check_write_status()
673 int sts; in applespi_setup_spi() local
675 sts = applespi_get_spi_settings(applespi); in applespi_setup_spi()
676 if (sts) in applespi_setup_spi()
677 return sts; in applespi_setup_spi()
762 int sts; in applespi_send_cmd_msg() local
871 sts = applespi_async(applespi, &applespi->wr_m, in applespi_send_cmd_msg()
873 if (sts) { in applespi_send_cmd_msg()
875 "Error queueing async write to device: %d\n", sts); in applespi_send_cmd_msg()
876 return sts; in applespi_send_cmd_msg()
1212 int sts; in applespi_register_touchpad_device() local
1228 sts = sscanf(touchpad_dimensions, "%dx%d+%u+%u", &x, &y, &w, &h); in applespi_register_touchpad_device()
1229 if (sts == 4) { in applespi_register_touchpad_device()
1304 sts = input_mt_init_slots(touchpad_input_dev, MAX_FINGERS, in applespi_register_touchpad_device()
1307 if (sts) { in applespi_register_touchpad_device()
1309 "failed to initialize slots: %d", sts); in applespi_register_touchpad_device()
1310 return sts; in applespi_register_touchpad_device()
1314 sts = input_register_device(touchpad_input_dev); in applespi_register_touchpad_device()
1315 if (sts) { in applespi_register_touchpad_device()
1317 "Unable to register touchpad input device (%d)\n", sts); in applespi_register_touchpad_device()
1318 return sts; in applespi_register_touchpad_device()
1552 int sts; in applespi_notify() local
1559 sts = applespi_async(applespi, &applespi->rd_m, in applespi_notify()
1561 if (sts) in applespi_notify()
1564 sts); in applespi_notify()
1574 efi_status_t sts = EFI_NOT_FOUND; in applespi_get_saved_bl_level() local
1579 sts = efi.get_variable(EFI_BL_LEVEL_NAME, &EFI_BL_LEVEL_GUID, in applespi_get_saved_bl_level()
1581 if (sts != EFI_SUCCESS && sts != EFI_NOT_FOUND) in applespi_get_saved_bl_level()
1584 sts); in applespi_get_saved_bl_level()
1586 return sts != EFI_SUCCESS ? -ENODEV : efi_data; in applespi_get_saved_bl_level()
1592 efi_status_t sts = EFI_UNSUPPORTED; in applespi_save_bl_level() local
1601 sts = efi.set_variable(EFI_BL_LEVEL_NAME, &EFI_BL_LEVEL_GUID, in applespi_save_bl_level()
1603 if (sts != EFI_SUCCESS) in applespi_save_bl_level()
1605 "Error saving backlight level to EFI vars: 0x%lx\n", sts); in applespi_save_bl_level()
1613 int sts, i; in applespi_probe() local
1673 sts = applespi_setup_spi(applespi); in applespi_probe()
1674 if (sts) in applespi_probe()
1675 return sts; in applespi_probe()
1677 sts = applespi_enable_spi(applespi); in applespi_probe()
1678 if (sts) in applespi_probe()
1679 return sts; in applespi_probe()
1716 sts = input_register_device(applespi->keyboard_input_dev); in applespi_probe()
1717 if (sts) { in applespi_probe()
1719 "Unable to register keyboard input device (%d)\n", sts); in applespi_probe()
1768 sts = applespi_get_saved_bl_level(applespi); in applespi_probe()
1769 if (sts >= 0) in applespi_probe()
1770 applespi_set_bl_level(&applespi->backlight_info, sts); in applespi_probe()
1776 sts = devm_led_classdev_register(&spi->dev, &applespi->backlight_info); in applespi_probe()
1777 if (sts) in applespi_probe()
1780 sts); in applespi_probe()
1850 int sts; in applespi_suspend() local
1853 sts = applespi_set_capsl_led(applespi, false); in applespi_suspend()
1854 if (sts) in applespi_suspend()
1856 "Failed to turn off caps-lock led (%d)\n", sts); in applespi_suspend()