Lines Matching refs:txd_cur
660 sc->txd_cur = sc->rxd_cur = 0; in ae_init_locked()
663 AE_WRITE_2(sc, AE_MB_TXD_IDX_REG, sc->txd_cur); in ae_init_locked()
1412 if (sc->txd_cur >= sc->txd_ack) in ae_tx_avail_size()
1413 avail = AE_TXD_BUFSIZE_DEFAULT - (sc->txd_cur - sc->txd_ack); in ae_tx_avail_size()
1415 avail = sc->txd_ack - sc->txd_cur; in ae_tx_avail_size()
1441 hdr = (ae_txd_t *)(sc->txd_base + sc->txd_cur); in ae_encap()
1444 sc->txd_cur = (sc->txd_cur + sizeof(ae_txd_t)) % AE_TXD_BUFSIZE_DEFAULT; in ae_encap()
1446 to_end = AE_TXD_BUFSIZE_DEFAULT - sc->txd_cur; in ae_encap()
1448 m_copydata(m0, 0, len, (caddr_t)(sc->txd_base + sc->txd_cur)); in ae_encap()
1451 sc->txd_cur)); in ae_encap()
1468 sc->txd_cur = ((sc->txd_cur + len + 3) & ~3) % AE_TXD_BUFSIZE_DEFAULT; in ae_encap()
1469 if (sc->txd_cur == sc->txd_ack) in ae_encap()
1472 if_printf(sc->ifp, "New txd_cur = %d.\n", sc->txd_cur); in ae_encap()
1552 AE_WRITE_2(sc, AE_MB_TXD_IDX_REG, sc->txd_cur / 4); in ae_start_locked()
1556 if_printf(ifp, "Tx pos now is %d.\n", sc->txd_cur); in ae_start_locked()