Lines Matching refs:inject
132 struct upload_inject_err inject; member
1100 tst->inject.prog = prog; in upload_err_inject_error()
1101 tst->inject.err_code = err; in upload_err_inject_error()
1158 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_prepare()
1159 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1162 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_prepare()
1165 ret = tst->inject.err_code; in test_fw_upload_prepare()
1172 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare()
1173 tst->inject.prog = NULL; in test_fw_upload_prepare()
1194 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_write()
1195 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1198 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_write()
1201 return tst->inject.err_code; in test_fw_upload_write()
1212 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_complete()
1213 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
1216 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_complete()
1219 return tst->inject.err_code; in test_fw_upload_complete()
1233 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_cleanup()
1234 tst->inject.prog = NULL; in test_fw_cleanup()