Lines Matching refs:bg

628     bg_op_status->status = cci->bg.complete_pct << 1;  in cmd_infostat_bg_op_sts()
629 if (cci->bg.runtime > 0) { in cmd_infostat_bg_op_sts()
632 bg_op_status->opcode = cci->bg.opcode; in cmd_infostat_bg_op_sts()
633 bg_op_status->returncode = cci->bg.ret_code; in cmd_infostat_bg_op_sts()
794 cci->bg.runtime = 10 * 1000UL; in cmd_firmware_update_transfer()
796 cci->bg.runtime = 2 * 1000UL; in cmd_firmware_update_transfer()
1613 cci->bg.runtime = secs * 1000UL; in cmd_sanitize_overwrite()
2043 cci->bg.runtime = MAX(1, query_length * (0.0005L / 64)); in cmd_media_scan_media()
2844 cci->bg.runtime > 0) { in cxl_process_cci_message()
2881 cci->bg.opcode = (set << 8) | cmd; in cxl_process_cci_message()
2883 cci->bg.complete_pct = 0; in cxl_process_cci_message()
2884 cci->bg.ret_code = 0; in cxl_process_cci_message()
2887 cci->bg.starttime = now; in cxl_process_cci_message()
2888 timer_mod(cci->bg.timer, now + CXL_MBOX_BG_UPDATE_FREQ); in cxl_process_cci_message()
2898 uint64_t total_time = cci->bg.starttime + cci->bg.runtime; in bg_timercb()
2900 assert(cci->bg.runtime > 0); in bg_timercb()
2905 cci->bg.complete_pct = 100; in bg_timercb()
2906 cci->bg.ret_code = ret; in bg_timercb()
2907 switch (cci->bg.opcode) { in bg_timercb()
2932 cci->bg.complete_pct = in bg_timercb()
2933 100 * (now - cci->bg.starttime) / cci->bg.runtime; in bg_timercb()
2934 timer_mod(cci->bg.timer, now + CXL_MBOX_BG_UPDATE_FREQ); in bg_timercb()
2937 if (cci->bg.complete_pct == 100) { in bg_timercb()
2943 cci->bg.starttime = 0; in bg_timercb()
2945 cci->bg.runtime = 0; in bg_timercb()
2978 cci->bg.complete_pct = 0; in cxl_init_cci()
2979 cci->bg.starttime = 0; in cxl_init_cci()
2980 cci->bg.runtime = 0; in cxl_init_cci()
2981 cci->bg.timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, in cxl_init_cci()