test_fw_config 106 lib/test_firmware.c static struct test_config *test_fw_config; test_fw_config 132 lib/test_firmware.c if (!test_fw_config->reqs) test_fw_config 135 lib/test_firmware.c for (i = 0; i < test_fw_config->num_requests; i++) { test_fw_config 136 lib/test_firmware.c req = &test_fw_config->reqs[i]; test_fw_config 141 lib/test_firmware.c vfree(test_fw_config->reqs); test_fw_config 142 lib/test_firmware.c test_fw_config->reqs = NULL; test_fw_config 156 lib/test_firmware.c kfree_const(test_fw_config->name); test_fw_config 157 lib/test_firmware.c test_fw_config->name = NULL; test_fw_config 177 lib/test_firmware.c ret = __kstrncpy(&test_fw_config->name, TEST_FIRMWARE_NAME, test_fw_config 182 lib/test_firmware.c test_fw_config->num_requests = TEST_FIRMWARE_NUM_REQS; test_fw_config 183 lib/test_firmware.c test_fw_config->send_uevent = true; test_fw_config 184 lib/test_firmware.c test_fw_config->into_buf = false; test_fw_config 185 lib/test_firmware.c test_fw_config->sync_direct = false; test_fw_config 186 lib/test_firmware.c test_fw_config->req_firmware = request_firmware; test_fw_config 187 lib/test_firmware.c test_fw_config->test_result = 0; test_fw_config 188 lib/test_firmware.c test_fw_config->reqs = NULL; test_fw_config 237 lib/test_firmware.c if (test_fw_config->name) test_fw_config 240 lib/test_firmware.c test_fw_config->name); test_fw_config 246 lib/test_firmware.c "num_requests:\t%u\n", test_fw_config->num_requests); test_fw_config 250 lib/test_firmware.c test_fw_config->send_uevent ? test_fw_config 255 lib/test_firmware.c test_fw_config->into_buf ? "true" : "false"); test_fw_config 258 lib/test_firmware.c test_fw_config->sync_direct ? "true" : "false"); test_fw_config 260 lib/test_firmware.c "read_fw_idx:\t%u\n", test_fw_config->read_fw_idx); test_fw_config 275 lib/test_firmware.c kfree_const(test_fw_config->name); test_fw_config 276 lib/test_firmware.c ret = __kstrncpy(&test_fw_config->name, buf, count, GFP_KERNEL); test_fw_config 371 lib/test_firmware.c return config_test_show_str(buf, test_fw_config->name); test_fw_config 382 lib/test_firmware.c if (test_fw_config->reqs) { test_fw_config 391 lib/test_firmware.c &test_fw_config->num_requests); test_fw_config 401 lib/test_firmware.c return test_dev_config_show_u8(buf, test_fw_config->num_requests); test_fw_config 411 lib/test_firmware.c &test_fw_config->into_buf); test_fw_config 418 lib/test_firmware.c return test_dev_config_show_bool(buf, test_fw_config->into_buf); test_fw_config 427 lib/test_firmware.c &test_fw_config->sync_direct); test_fw_config 430 lib/test_firmware.c test_fw_config->req_firmware = test_fw_config->sync_direct ? test_fw_config 440 lib/test_firmware.c return test_dev_config_show_bool(buf, test_fw_config->sync_direct); test_fw_config 449 lib/test_firmware.c &test_fw_config->send_uevent); test_fw_config 456 lib/test_firmware.c return test_dev_config_show_bool(buf, test_fw_config->send_uevent); test_fw_config 465 lib/test_firmware.c &test_fw_config->read_fw_idx); test_fw_config 472 lib/test_firmware.c return test_dev_config_show_u8(buf, test_fw_config->read_fw_idx); test_fw_config 610 lib/test_firmware.c test_fw_config->test_result = -EINVAL; test_fw_config 614 lib/test_firmware.c if (test_fw_config->into_buf) { test_fw_config 629 lib/test_firmware.c req->rc = test_fw_config->req_firmware(&req->fw, test_fw_config 637 lib/test_firmware.c if (!test_fw_config->test_result) test_fw_config 638 lib/test_firmware.c test_fw_config->test_result = req->rc; test_fw_config 667 lib/test_firmware.c test_fw_config->reqs = test_fw_config 669 lib/test_firmware.c test_fw_config->num_requests, 2)); test_fw_config 670 lib/test_firmware.c if (!test_fw_config->reqs) { test_fw_config 676 lib/test_firmware.c test_fw_config->name, test_fw_config->num_requests); test_fw_config 678 lib/test_firmware.c for (i = 0; i < test_fw_config->num_requests; i++) { test_fw_config 679 lib/test_firmware.c req = &test_fw_config->reqs[i]; test_fw_config 682 lib/test_firmware.c req->name = test_fw_config->name; test_fw_config 706 lib/test_firmware.c for (i = 0; i < test_fw_config->num_requests; i++) { test_fw_config 707 lib/test_firmware.c req = &test_fw_config->reqs[i]; test_fw_config 714 lib/test_firmware.c test_fw_config->test_result = rc; test_fw_config 731 lib/test_firmware.c test_fw_config->test_result = -EINVAL; test_fw_config 747 lib/test_firmware.c if (!fw && !test_fw_config->test_result) test_fw_config 748 lib/test_firmware.c test_fw_config->test_result = -ENOENT; test_fw_config 765 lib/test_firmware.c test_fw_config->reqs = test_fw_config 767 lib/test_firmware.c test_fw_config->num_requests, 2)); test_fw_config 768 lib/test_firmware.c if (!test_fw_config->reqs) { test_fw_config 774 lib/test_firmware.c test_fw_config->name, test_fw_config->num_requests); test_fw_config 776 lib/test_firmware.c send_uevent = test_fw_config->send_uevent ? FW_ACTION_HOTPLUG : test_fw_config 779 lib/test_firmware.c for (i = 0; i < test_fw_config->num_requests; i++) { test_fw_config 780 lib/test_firmware.c req = &test_fw_config->reqs[i]; test_fw_config 781 lib/test_firmware.c req->name = test_fw_config->name; test_fw_config 810 lib/test_firmware.c for (i = 0; i < test_fw_config->num_requests; i++) { test_fw_config 811 lib/test_firmware.c req = &test_fw_config->reqs[i]; test_fw_config 818 lib/test_firmware.c test_fw_config->test_result = rc; test_fw_config 831 lib/test_firmware.c return test_dev_config_show_int(buf, test_fw_config->test_result); test_fw_config 854 lib/test_firmware.c idx = test_fw_config->read_fw_idx; test_fw_config 855 lib/test_firmware.c if (idx >= test_fw_config->num_requests) { test_fw_config 860 lib/test_firmware.c if (!test_fw_config->reqs) { test_fw_config 865 lib/test_firmware.c req = &test_fw_config->reqs[idx]; test_fw_config 930 lib/test_firmware.c test_fw_config = kzalloc(sizeof(struct test_config), GFP_KERNEL); test_fw_config 931 lib/test_firmware.c if (!test_fw_config) test_fw_config 936 lib/test_firmware.c kfree(test_fw_config); test_fw_config 943 lib/test_firmware.c kfree(test_fw_config); test_fw_config 961 lib/test_firmware.c kfree(test_fw_config);