Lines Matching refs:inject
131 struct upload_inject_err inject; member
1099 tst->inject.prog = prog; in upload_err_inject_error()
1100 tst->inject.err_code = err; in upload_err_inject_error()
1157 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_prepare()
1158 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1161 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_prepare()
1164 ret = tst->inject.err_code; in test_fw_upload_prepare()
1171 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare()
1172 tst->inject.prog = NULL; in test_fw_upload_prepare()
1193 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_write()
1194 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1197 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_write()
1200 return tst->inject.err_code; in test_fw_upload_write()
1211 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_complete()
1212 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
1215 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_complete()
1218 return tst->inject.err_code; in test_fw_upload_complete()
1232 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_cleanup()
1233 tst->inject.prog = NULL; in test_fw_cleanup()