Lines Matching refs:progress

307 static bool rsu_progress_done(u32 progress)  in rsu_progress_done()  argument
309 return (progress == RSU_PROG_IDLE || in rsu_progress_done()
310 progress == RSU_PROG_RSU_DONE); in rsu_progress_done()
313 static bool rsu_progress_busy(u32 progress) in rsu_progress_busy() argument
315 return (progress == RSU_PROG_AUTHENTICATING || in rsu_progress_busy()
316 progress == RSU_PROG_COPYING || in rsu_progress_busy()
317 progress == RSU_PROG_UPDATE_CANCEL || in rsu_progress_busy()
318 progress == RSU_PROG_PROGRAM_KEY_HASH); in rsu_progress_busy()
322 u32 *progress, u32 *status) in m10bmc_sec_progress_status() argument
336 *progress = rsu_prog(*doorbell_reg); in m10bmc_sec_progress_status()
359 static inline bool rsu_start_done(u32 doorbell_reg, u32 progress, u32 status) in rsu_start_done() argument
367 if (!rsu_progress_done(progress)) in rsu_start_done()
376 u32 doorbell_reg, progress, status; in rsu_update_init() local
388 err < 0 || rsu_start_done(doorbell_reg, progress, status), in rsu_update_init()
392 sec, &doorbell_reg, &progress, &status); in rsu_update_init()
416 u32 doorbell, progress; in rsu_prog_ready() local
434 progress = rsu_prog(doorbell); in rsu_prog_ready()
435 if (progress == RSU_PROG_PREPARE) { in rsu_prog_ready()
438 } else if (progress != RSU_PROG_READY) { in rsu_prog_ready()
488 u32 progress, status; in rsu_check_complete() local
490 if (m10bmc_sec_progress_status(sec, doorbell_reg, &progress, &status)) in rsu_check_complete()
496 if (rsu_progress_done(progress)) in rsu_check_complete()
499 if (rsu_progress_busy(progress)) in rsu_check_complete()