Home
last modified time | relevance | path

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

/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c1202 u32 crd; member
1216 u32 init_crd, crd, crd_start, crd_freed, crd_freed_start; in bnx2x_pbf_pN_buf_flushed() local
1220 crd = crd_start = REG_RD(bp, regs->crd); in bnx2x_pbf_pN_buf_flushed()
1224 DP(BNX2X_MSG_SP, "CREDIT[%d] : s:%x\n", regs->pN, crd); in bnx2x_pbf_pN_buf_flushed()
1227 while ((crd != init_crd) && ((u32)SUB_S32(crd_freed, crd_freed_start) < in bnx2x_pbf_pN_buf_flushed()
1231 crd = REG_RD(bp, regs->crd); in bnx2x_pbf_pN_buf_flushed()
1237 regs->pN, crd); in bnx2x_pbf_pN_buf_flushed()
Dbnx2x_link.c2483 u32 init_crd, crd; in bnx2x_pbf_update() local
2491 crd = REG_RD(bp, PBF_REG_P0_CREDIT + port*8); in bnx2x_pbf_update()
2492 DP(NETIF_MSG_LINK, "init_crd 0x%x crd 0x%x\n", init_crd, crd); in bnx2x_pbf_update()
2494 while ((init_crd != crd) && count) { in bnx2x_pbf_update()
2496 crd = REG_RD(bp, PBF_REG_P0_CREDIT + port*8); in bnx2x_pbf_update()
2499 crd = REG_RD(bp, PBF_REG_P0_CREDIT + port*8); in bnx2x_pbf_update()
2500 if (init_crd != crd) { in bnx2x_pbf_update()
2502 init_crd, crd); in bnx2x_pbf_update()