• Home
  • Raw
  • Download

Lines Matching refs:ret

223 	int ret;  in __test_firmware_config_init()  local
225 ret = __kstrncpy(&test_fw_config->name, TEST_FIRMWARE_NAME, in __test_firmware_config_init()
227 if (ret < 0) in __test_firmware_config_init()
246 return ret; in __test_firmware_config_init()
253 int ret; in reset_store() local
259 ret = __test_firmware_config_init(); in reset_store()
260 if (ret < 0) { in reset_store()
261 ret = -ENOMEM; in reset_store()
263 ret); in reset_store()
268 ret = count; in reset_store()
273 return ret; in reset_store()
338 int ret; in config_name_store() local
342 ret = __kstrncpy(&test_fw_config->name, buf, count, GFP_KERNEL); in config_name_store()
345 return ret; in config_name_store()
366 int ret; in __test_dev_config_update_bool() local
369 ret = -EINVAL; in __test_dev_config_update_bool()
371 ret = size; in __test_dev_config_update_bool()
373 return ret; in __test_dev_config_update_bool()
379 int ret; in test_dev_config_update_bool() local
382 ret = __test_dev_config_update_bool(buf, size, cfg); in test_dev_config_update_bool()
385 return ret; in test_dev_config_update_bool()
398 int ret; in __test_dev_config_update_size_t() local
401 ret = kstrtol(buf, 10, &new); in __test_dev_config_update_size_t()
402 if (ret) in __test_dev_config_update_size_t()
403 return ret; in __test_dev_config_update_size_t()
424 int ret; in __test_dev_config_update_u8() local
426 ret = kstrtou8(buf, 10, &val); in __test_dev_config_update_u8()
427 if (ret) in __test_dev_config_update_u8()
428 return ret; in __test_dev_config_update_u8()
438 int ret; in test_dev_config_update_u8() local
441 ret = __test_dev_config_update_u8(buf, size, cfg); in test_dev_config_update_u8()
444 return ret; in test_dev_config_update_u8()
465 int ret = count; in config_upload_name_store() local
472 ret = -EINVAL; in config_upload_name_store()
475 return ret; in config_upload_name_store()
1187 enum fw_upload_err ret = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare() local
1193 ret = FW_UPLOAD_ERR_INVALID_SIZE; in test_fw_upload_prepare()
1208 ret = fw_upload_wait_on_cancel(tst); in test_fw_upload_prepare()
1210 ret = tst->inject.err_code; in test_fw_upload_prepare()
1220 return ret; in test_fw_upload_prepare()
1297 int ret; in upload_register_store() local
1306 ret = -EEXIST; in upload_register_store()
1312 ret = -ENOMEM; in upload_register_store()
1319 ret = -ENOMEM; in upload_register_store()
1326 ret = PTR_ERR(fwl); in upload_register_store()
1345 return ret; in upload_register_store()
1354 int ret = count; in upload_unregister_store() local
1359 ret = -EINVAL; in upload_unregister_store()
1371 return ret; in upload_unregister_store()
1443 int ret = -EINVAL; in upload_read_show() local
1469 ret = tst->size; in upload_read_show()
1472 return ret; in upload_read_show()