Lines Matching full:inject
133 struct upload_inject_err inject; member
1145 tst->inject.prog = prog; in upload_err_inject_error()
1146 tst->inject.err_code = err; in upload_err_inject_error()
1197 if (strncmp(data, "inject:", strlen("inject:")) == 0) in test_fw_upload_prepare()
1198 upload_err_inject_prog(tst, data + strlen("inject:")); in test_fw_upload_prepare()
1203 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_prepare()
1204 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1207 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_prepare()
1210 ret = tst->inject.err_code; in test_fw_upload_prepare()
1217 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare()
1218 tst->inject.prog = NULL; in test_fw_upload_prepare()
1239 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_write()
1240 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1243 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_write()
1246 return tst->inject.err_code; in test_fw_upload_write()
1257 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_complete()
1258 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
1261 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_complete()
1264 return tst->inject.err_code; in test_fw_upload_complete()
1278 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_cleanup()
1279 tst->inject.prog = NULL; in test_fw_cleanup()