Lines Matching refs:lvalue
5712 uint32_t dvalue, wvalue, lvalue, avalue; in lpfc_cgn_save_evt_cnt() local
5741 lvalue = atomic_read(&phba->cgn_latency_evt_cnt); in lpfc_cgn_save_evt_cnt()
5812 if (lvalue) { in lpfc_cgn_save_evt_cnt()
5813 lvalue = (uint32_t)div_u64(latsum, lvalue); in lpfc_cgn_save_evt_cnt()
5814 *lptr = cpu_to_le32(lvalue); in lpfc_cgn_save_evt_cnt()
5840 lvalue = 0; in lpfc_cgn_save_evt_cnt()
5847 lvalue += le32_to_cpu(cp->cgn_latency_min[i]); in lpfc_cgn_save_evt_cnt()
5851 if (lvalue) /* Avg of latency averages */ in lpfc_cgn_save_evt_cnt()
5852 lvalue /= LPFC_MIN_HOUR; in lpfc_cgn_save_evt_cnt()
5861 *lptr = cpu_to_le32(lvalue); in lpfc_cgn_save_evt_cnt()
5870 index, dvalue, wvalue, lvalue, mvalue, avalue); in lpfc_cgn_save_evt_cnt()
5912 lvalue = 0; in lpfc_cgn_save_evt_cnt()
5919 lvalue += le32_to_cpu(cp->cgn_latency_hr[i]); in lpfc_cgn_save_evt_cnt()
5923 if (lvalue) /* Avg of latency averages */ in lpfc_cgn_save_evt_cnt()
5924 lvalue /= LPFC_HOUR_DAY; in lpfc_cgn_save_evt_cnt()
5933 *lptr = cpu_to_le32(lvalue); in lpfc_cgn_save_evt_cnt()
5942 index, dvalue, wvalue, lvalue, mvalue, avalue); in lpfc_cgn_save_evt_cnt()
5959 lvalue = lpfc_cgn_calc_crc32(cp, LPFC_CGN_INFO_SZ, in lpfc_cgn_save_evt_cnt()
5961 cp->cgn_info_crc = cpu_to_le32(lvalue); in lpfc_cgn_save_evt_cnt()