Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dnic_main.c265 u64 lmac_credits; in nic_update_hw_frs() local
278 lmac_credits = nic_reg_read(nic, NIC_PF_LMAC_0_7_CREDIT + (lmac * 8)); in nic_update_hw_frs()
279 lmac_credits &= ~(0xFFFFFULL << 12); in nic_update_hw_frs()
280 lmac_credits |= (((((48 * 1024) / lmac_cnt) - new_frs) / 16) << 12); in nic_update_hw_frs()
281 nic_reg_write(nic, NIC_PF_LMAC_0_7_CREDIT + (lmac * 8), lmac_credits); in nic_update_hw_frs()