• Home
  • Raw
  • Download

Lines Matching refs:rc

37 	int rc;  member
111 ssize_t rc = 0; in test_fw_misc_read() local
115 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read()
119 return rc; in test_fw_misc_read()
379 int rc; in config_num_requests_store() local
384 rc = -EINVAL; in config_num_requests_store()
390 rc = test_dev_config_update_u8(buf, count, in config_num_requests_store()
394 return rc; in config_num_requests_store()
426 int rc = test_dev_config_update_bool(buf, count, in config_sync_direct_store() local
429 if (rc == count) in config_sync_direct_store()
433 return rc; in config_sync_direct_store()
481 int rc; in trigger_request_store() local
493 rc = request_firmware(&test_firmware, name, dev); in trigger_request_store()
494 if (rc) { in trigger_request_store()
495 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_store()
499 rc = count; in trigger_request_store()
506 return rc; in trigger_request_store()
522 int rc; in trigger_async_request_store() local
534 rc = request_firmware_nowait(THIS_MODULE, 1, name, dev, GFP_KERNEL, in trigger_async_request_store()
536 if (rc) { in trigger_async_request_store()
537 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_async_request_store()
548 rc = count; in trigger_async_request_store()
551 rc = -ENOMEM; in trigger_async_request_store()
557 return rc; in trigger_async_request_store()
565 int rc; in trigger_custom_fallback_store() local
577 rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOHOTPLUG, name, in trigger_custom_fallback_store()
580 if (rc) { in trigger_custom_fallback_store()
581 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_custom_fallback_store()
592 rc = count; in trigger_custom_fallback_store()
595 rc = -ENODEV; in trigger_custom_fallback_store()
601 return rc; in trigger_custom_fallback_store()
621 req->rc = request_firmware_into_buf(&req->fw, in test_fw_run_batch_request()
629 req->rc = test_fw_config->req_firmware(&req->fw, in test_fw_run_batch_request()
634 if (req->rc) { in test_fw_run_batch_request()
636 req->idx, req->rc); in test_fw_run_batch_request()
638 test_fw_config->test_result = req->rc; in test_fw_run_batch_request()
662 int rc; in trigger_batched_requests_store() local
671 rc = -ENOMEM; in trigger_batched_requests_store()
690 rc = -ENOMEM; in trigger_batched_requests_store()
695 rc = count; in trigger_batched_requests_store()
713 if (rc < 0) in trigger_batched_requests_store()
714 test_fw_config->test_result = rc; in trigger_batched_requests_store()
719 return rc; in trigger_batched_requests_store()
760 int rc; in trigger_batched_requests_async_store() local
769 rc = -ENOMEM; in trigger_batched_requests_async_store()
785 rc = request_firmware_nowait(THIS_MODULE, send_uevent, in trigger_batched_requests_async_store()
789 if (rc) { in trigger_batched_requests_async_store()
791 i, rc); in trigger_batched_requests_async_store()
792 req->rc = rc; in trigger_batched_requests_async_store()
798 rc = count; in trigger_batched_requests_async_store()
817 if (rc < 0) in trigger_batched_requests_async_store()
818 test_fw_config->test_result = rc; in trigger_batched_requests_async_store()
823 return rc; in trigger_batched_requests_async_store()
850 ssize_t rc = 0; in read_firmware_show() local
856 rc = -ERANGE; in read_firmware_show()
861 rc = -EINVAL; in read_firmware_show()
868 rc = -ENOENT; in read_firmware_show()
876 rc = -EINVAL; in read_firmware_show()
881 rc = req->fw->size; in read_firmware_show()
885 return rc; in read_firmware_show()
928 int rc; in test_firmware_init() local
934 rc = __test_firmware_config_init(); in test_firmware_init()
935 if (rc) { in test_firmware_init()
937 pr_err("could not init firmware test config: %d\n", rc); in test_firmware_init()
938 return rc; in test_firmware_init()
941 rc = misc_register(&test_fw_misc_device); in test_firmware_init()
942 if (rc) { in test_firmware_init()
944 pr_err("could not register misc device: %d\n", rc); in test_firmware_init()
945 return rc; in test_firmware_init()