Home
last modified time | relevance | path

Searched refs:dbg_cnt (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_init.c15781 unsigned int dbg_cnt; in lpfc_dmp_dbg() local
15791 dbg_cnt = (unsigned int)atomic_read(&phba->dbg_log_cnt); in lpfc_dmp_dbg()
15792 if (!dbg_cnt) in lpfc_dmp_dbg()
15795 if (dbg_cnt >= DBG_LOG_SZ) { in lpfc_dmp_dbg()
15796 dbg_cnt = DBG_LOG_SZ; in lpfc_dmp_dbg()
15799 if ((start_idx + dbg_cnt) > (DBG_LOG_SZ - 1)) { in lpfc_dmp_dbg()
15800 temp_idx = (start_idx + dbg_cnt) % DBG_LOG_SZ; in lpfc_dmp_dbg()
15802 if (start_idx < dbg_cnt) in lpfc_dmp_dbg()
15803 start_idx = DBG_LOG_SZ - (dbg_cnt - start_idx); in lpfc_dmp_dbg()
15805 start_idx -= dbg_cnt; in lpfc_dmp_dbg()
[all …]