Lines Matching refs:name
47 const char *name; member
101 char *name; member
118 int (*req_firmware)(const struct firmware **fw, const char *name,
128 char *name; member
139 static struct test_firmware_upload *upload_lookup_name(const char *name) in upload_lookup_name() argument
144 if (strncmp(name, tst->name, strlen(tst->name)) == 0) in upload_lookup_name()
204 kfree_const(test_fw_config->name); in __test_firmware_config_free()
205 test_fw_config->name = NULL; in __test_firmware_config_free()
213 static int __kstrncpy(char **dst, const char *name, size_t count, gfp_t gfp) in __kstrncpy() argument
215 *dst = kstrndup(name, count, gfp); in __kstrncpy()
225 ret = __kstrncpy(&test_fw_config->name, TEST_FIRMWARE_NAME, in __test_firmware_config_init()
289 if (test_fw_config->name) in config_show()
292 test_fw_config->name); in config_show()
341 kfree_const(test_fw_config->name); in config_name_store()
342 ret = __kstrncpy(&test_fw_config->name, buf, count, GFP_KERNEL); in config_name_store()
456 return config_test_show_str(buf, test_fw_config->name); in config_name_show()
470 test_fw_config->upload_name = tst->name; in config_upload_name_store()
670 char *name; in trigger_request_store() local
672 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_store()
673 if (!name) in trigger_request_store()
676 pr_info("loading '%s'\n", name); in trigger_request_store()
683 rc = request_firmware(&test_firmware, name, dev); in trigger_request_store()
685 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_store()
694 kfree(name); in trigger_request_store()
717 char *name; in trigger_request_platform_store() local
720 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_platform_store()
721 if (!name) in trigger_request_platform_store()
724 pr_info("inserting test platform fw '%s'\n", name); in trigger_request_platform_store()
725 efi_embedded_fw.name = name; in trigger_request_platform_store()
732 pr_info("loading '%s'\n", name); in trigger_request_platform_store()
733 rc = firmware_request_platform(&firmware, name, dev); in trigger_request_platform_store()
735 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_platform_store()
740 pr_info("firmware contents mismatch for '%s'\n", name); in trigger_request_platform_store()
751 kfree(name); in trigger_request_platform_store()
771 char *name; in trigger_async_request_store() local
773 name = kstrndup(buf, count, GFP_KERNEL); in trigger_async_request_store()
774 if (!name) in trigger_async_request_store()
777 pr_info("loading '%s'\n", name); in trigger_async_request_store()
784 rc = request_firmware_nowait(THIS_MODULE, 1, name, dev, GFP_KERNEL, in trigger_async_request_store()
787 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_async_request_store()
788 kfree(name); in trigger_async_request_store()
792 kfree(name); in trigger_async_request_store()
816 char *name; in trigger_custom_fallback_store() local
818 name = kstrndup(buf, count, GFP_KERNEL); in trigger_custom_fallback_store()
819 if (!name) in trigger_custom_fallback_store()
822 pr_info("loading '%s' using custom fallback mechanism\n", name); in trigger_custom_fallback_store()
829 rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOUEVENT, name, in trigger_custom_fallback_store()
833 pr_info("async load of '%s' failed: %d\n", name, rc); in trigger_custom_fallback_store()
834 kfree(name); in trigger_custom_fallback_store()
838 kfree(name); in trigger_custom_fallback_store()
876 req->name, in test_fw_run_batch_request()
884 req->name, in test_fw_run_batch_request()
894 req->name, in test_fw_run_batch_request()
945 test_fw_config->name, test_fw_config->num_requests); in trigger_batched_requests_store()
951 req->name = test_fw_config->name; in trigger_batched_requests_store()
1049 test_fw_config->name, test_fw_config->num_requests); in trigger_batched_requests_async_store()
1056 req->name = test_fw_config->name; in trigger_batched_requests_async_store()
1062 req->name, in trigger_batched_requests_async_store()
1107 kfree(tst->name); in upload_release()
1297 char *name; in upload_register_store() local
1300 name = kstrndup(buf, count, GFP_KERNEL); in upload_register_store()
1301 if (!name) in upload_register_store()
1305 tst = upload_lookup_name(name); in upload_register_store()
1317 tst->name = name; in upload_register_store()
1324 fwl = firmware_upload_register(THIS_MODULE, dev, tst->name, in upload_register_store()
1344 kfree(name); in upload_register_store()
1364 if (test_fw_config->upload_name == tst->name) in upload_unregister_store()
1453 if (tst_iter->name == test_fw_config->upload_name) { in upload_read_show()
1477 #define TEST_FW_DEV_ATTR(name) &dev_attr_##name.attr argument
1519 .name = "test_firmware",