Lines Matching full:inject
133 struct upload_inject_err inject; member
1146 tst->inject.prog = prog; in upload_err_inject_error()
1147 tst->inject.err_code = err; in upload_err_inject_error()
1198 if (strncmp(data, "inject:", strlen("inject:")) == 0) in test_fw_upload_prepare()
1199 upload_err_inject_prog(tst, data + strlen("inject:")); in test_fw_upload_prepare()
1204 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_prepare()
1205 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1208 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_prepare()
1211 ret = tst->inject.err_code; in test_fw_upload_prepare()
1218 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare()
1219 tst->inject.prog = NULL; in test_fw_upload_prepare()
1240 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_write()
1241 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1244 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_write()
1247 return tst->inject.err_code; in test_fw_upload_write()
1258 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_complete()
1259 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
1262 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_complete()
1265 return tst->inject.err_code; in test_fw_upload_complete()
1279 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_cleanup()
1280 tst->inject.prog = NULL; in test_fw_cleanup()