• Home
  • Raw
  • Download

Lines Matching refs:rc

44 	int rc;  member
153 ssize_t rc = 0; in test_fw_misc_read() local
157 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read()
161 return rc; in test_fw_misc_read()
490 int rc; in config_num_requests_store() local
495 rc = -EINVAL; in config_num_requests_store()
500 rc = __test_dev_config_update_u8(buf, count, in config_num_requests_store()
505 return rc; in config_num_requests_store()
537 int rc; in config_buf_size_store() local
542 rc = -EINVAL; in config_buf_size_store()
547 rc = __test_dev_config_update_size_t(buf, count, in config_buf_size_store()
552 return rc; in config_buf_size_store()
567 int rc; in config_file_offset_store() local
572 rc = -EINVAL; in config_file_offset_store()
577 rc = __test_dev_config_update_size_t(buf, count, in config_file_offset_store()
582 return rc; in config_file_offset_store()
614 int rc = test_dev_config_update_bool(buf, count, in config_sync_direct_store() local
617 if (rc == count) in config_sync_direct_store()
621 return rc; in config_sync_direct_store()
669 int rc; in trigger_request_store() local
683 rc = request_firmware(&test_firmware, name, dev); in trigger_request_store()
684 if (rc) { in trigger_request_store()
685 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_store()
689 rc = count; in trigger_request_store()
696 return rc; in trigger_request_store()
718 int rc; in trigger_request_platform_store() local
733 rc = firmware_request_platform(&firmware, name, dev); in trigger_request_platform_store()
734 if (rc) { in trigger_request_platform_store()
735 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_platform_store()
741 rc = -EINVAL; in trigger_request_platform_store()
745 rc = count; in trigger_request_platform_store()
753 return rc; in trigger_request_platform_store()
770 int rc; in trigger_async_request_store() local
784 rc = request_firmware_nowait(THIS_MODULE, 1, name, dev, GFP_KERNEL, in trigger_async_request_store()
786 if (rc) { in trigger_async_request_store()
787 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_async_request_store()
798 rc = count; in trigger_async_request_store()
801 rc = -ENOMEM; in trigger_async_request_store()
807 return rc; in trigger_async_request_store()
815 int rc; in trigger_custom_fallback_store() local
829 rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOUEVENT, name, in trigger_custom_fallback_store()
832 if (rc) { in trigger_custom_fallback_store()
833 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_custom_fallback_store()
844 rc = count; in trigger_custom_fallback_store()
847 rc = -ENODEV; in trigger_custom_fallback_store()
853 return rc; in trigger_custom_fallback_store()
874 req->rc = request_partial_firmware_into_buf in test_fw_run_batch_request()
882 req->rc = request_firmware_into_buf in test_fw_run_batch_request()
893 req->rc = test_fw_config->req_firmware(&req->fw, in test_fw_run_batch_request()
898 if (req->rc) { in test_fw_run_batch_request()
900 req->idx, req->rc); in test_fw_run_batch_request()
902 test_fw_config->test_result = req->rc; in test_fw_run_batch_request()
926 int rc; in trigger_batched_requests_store() local
932 rc = -EBUSY; in trigger_batched_requests_store()
940 rc = -ENOMEM; in trigger_batched_requests_store()
960 rc = -ENOMEM; in trigger_batched_requests_store()
965 rc = count; in trigger_batched_requests_store()
983 if (rc < 0) in trigger_batched_requests_store()
984 test_fw_config->test_result = rc; in trigger_batched_requests_store()
989 return rc; in trigger_batched_requests_store()
1030 int rc; in trigger_batched_requests_async_store() local
1036 rc = -EBUSY; in trigger_batched_requests_async_store()
1044 rc = -ENOMEM; in trigger_batched_requests_async_store()
1061 rc = request_firmware_nowait(THIS_MODULE, send_uevent, in trigger_batched_requests_async_store()
1065 if (rc) { in trigger_batched_requests_async_store()
1067 i, rc); in trigger_batched_requests_async_store()
1068 req->rc = rc; in trigger_batched_requests_async_store()
1074 rc = count; in trigger_batched_requests_async_store()
1093 if (rc < 0) in trigger_batched_requests_async_store()
1094 test_fw_config->test_result = rc; in trigger_batched_requests_async_store()
1099 return rc; in trigger_batched_requests_async_store()
1398 ssize_t rc = 0; in read_firmware_show() local
1404 rc = -ERANGE; in read_firmware_show()
1409 rc = -EINVAL; in read_firmware_show()
1416 rc = -ENOENT; in read_firmware_show()
1424 rc = -EINVAL; in read_firmware_show()
1429 rc = req->fw->size; in read_firmware_show()
1433 return rc; in read_firmware_show()
1525 int rc; in test_firmware_init() local
1531 rc = __test_firmware_config_init(); in test_firmware_init()
1532 if (rc) { in test_firmware_init()
1534 pr_err("could not init firmware test config: %d\n", rc); in test_firmware_init()
1535 return rc; in test_firmware_init()
1538 rc = misc_register(&test_fw_misc_device); in test_firmware_init()
1539 if (rc) { in test_firmware_init()
1542 pr_err("could not register misc device: %d\n", rc); in test_firmware_init()
1543 return rc; in test_firmware_init()