Lines Matching full:inject
134 struct upload_inject_err inject; member
1147 tst->inject.prog = prog; in upload_err_inject_error()
1148 tst->inject.err_code = err; in upload_err_inject_error()
1199 if (strncmp(data, "inject:", strlen("inject:")) == 0) in test_fw_upload_prepare()
1200 upload_err_inject_prog(tst, data + strlen("inject:")); in test_fw_upload_prepare()
1205 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_prepare()
1206 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_prepare()
1209 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_prepare()
1212 ret = tst->inject.err_code; in test_fw_upload_prepare()
1219 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_upload_prepare()
1220 tst->inject.prog = NULL; in test_fw_upload_prepare()
1241 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_write()
1242 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_write()
1245 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_write()
1248 return tst->inject.err_code; in test_fw_upload_write()
1259 if (tst->inject.err_code == FW_UPLOAD_ERR_NONE || in test_fw_upload_complete()
1260 strncmp(tst->inject.prog, progress, strlen(progress)) != 0) in test_fw_upload_complete()
1263 if (tst->inject.err_code == FW_UPLOAD_ERR_CANCELED) in test_fw_upload_complete()
1266 return tst->inject.err_code; in test_fw_upload_complete()
1280 tst->inject.err_code = FW_UPLOAD_ERR_NONE; in test_fw_cleanup()
1281 tst->inject.prog = NULL; in test_fw_cleanup()