Lines Matching refs:ste_cdata

599 	bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag,  in ste_rxeof()
600 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
603 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeof()
657 sc->ste_cdata.ste_rx_head = cur_rx; in ste_rxeof()
658 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_rxeof()
659 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
773 idx = sc->ste_cdata.ste_tx_cons; in ste_txeof()
774 if (idx == sc->ste_cdata.ste_tx_prod) in ste_txeof()
777 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_txeof()
778 sc->ste_cdata.ste_tx_list_map, in ste_txeof()
781 while (idx != sc->ste_cdata.ste_tx_prod) { in ste_txeof()
782 cur_tx = &sc->ste_cdata.ste_tx_chain[idx]; in ste_txeof()
786 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map, in ste_txeof()
788 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map); in ste_txeof()
795 sc->ste_cdata.ste_tx_cnt--; in ste_txeof()
799 sc->ste_cdata.ste_tx_cons = idx; in ste_txeof()
800 if (sc->ste_cdata.ste_tx_cnt == 0) in ste_txeof()
1136 &sc->ste_cdata.ste_parent_tag); in ste_dma_alloc()
1145 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1155 &sc->ste_cdata.ste_tx_list_tag); in ste_dma_alloc()
1164 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1174 &sc->ste_cdata.ste_rx_list_tag); in ste_dma_alloc()
1183 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1193 &sc->ste_cdata.ste_tx_tag); in ste_dma_alloc()
1201 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1211 &sc->ste_cdata.ste_rx_tag); in ste_dma_alloc()
1218 error = bus_dmamem_alloc(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1221 &sc->ste_cdata.ste_tx_list_map); in ste_dma_alloc()
1228 error = bus_dmamap_load(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1229 sc->ste_cdata.ste_tx_list_map, sc->ste_ldata.ste_tx_list, in ste_dma_alloc()
1239 error = bus_dmamem_alloc(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1242 &sc->ste_cdata.ste_rx_list_map); in ste_dma_alloc()
1249 error = bus_dmamap_load(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1250 sc->ste_cdata.ste_rx_list_map, sc->ste_ldata.ste_rx_list, in ste_dma_alloc()
1261 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_alloc()
1267 error = bus_dmamap_create(sc->ste_cdata.ste_tx_tag, 0, in ste_dma_alloc()
1276 if ((error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1277 &sc->ste_cdata.ste_rx_sparemap)) != 0) { in ste_dma_alloc()
1283 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_alloc()
1288 error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1309 if (sc->ste_cdata.ste_tx_tag != NULL) { in ste_dma_free()
1311 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_free()
1313 bus_dmamap_destroy(sc->ste_cdata.ste_tx_tag, in ste_dma_free()
1318 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_tag); in ste_dma_free()
1319 sc->ste_cdata.ste_tx_tag = NULL; in ste_dma_free()
1322 if (sc->ste_cdata.ste_rx_tag != NULL) { in ste_dma_free()
1324 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_free()
1326 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1331 if (sc->ste_cdata.ste_rx_sparemap != NULL) { in ste_dma_free()
1332 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1333 sc->ste_cdata.ste_rx_sparemap); in ste_dma_free()
1334 sc->ste_cdata.ste_rx_sparemap = NULL; in ste_dma_free()
1336 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_tag); in ste_dma_free()
1337 sc->ste_cdata.ste_rx_tag = NULL; in ste_dma_free()
1340 if (sc->ste_cdata.ste_tx_list_tag != NULL) { in ste_dma_free()
1342 bus_dmamap_unload(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1343 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1345 bus_dmamem_free(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1347 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1350 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_list_tag); in ste_dma_free()
1351 sc->ste_cdata.ste_tx_list_tag = NULL; in ste_dma_free()
1354 if (sc->ste_cdata.ste_rx_list_tag != NULL) { in ste_dma_free()
1356 bus_dmamap_unload(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1357 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1359 bus_dmamem_free(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1361 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1364 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_list_tag); in ste_dma_free()
1365 sc->ste_cdata.ste_rx_list_tag = NULL; in ste_dma_free()
1367 if (sc->ste_cdata.ste_parent_tag != NULL) { in ste_dma_free()
1368 bus_dma_tag_destroy(sc->ste_cdata.ste_parent_tag); in ste_dma_free()
1369 sc->ste_cdata.ste_parent_tag = NULL; in ste_dma_free()
1387 if ((error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_rx_tag, in ste_newbuf()
1388 sc->ste_cdata.ste_rx_sparemap, m, segs, &nsegs, 0)) != 0) { in ste_newbuf()
1395 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1397 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, rxc->ste_map); in ste_newbuf()
1400 rxc->ste_map = sc->ste_cdata.ste_rx_sparemap; in ste_newbuf()
1401 sc->ste_cdata.ste_rx_sparemap = map; in ste_newbuf()
1402 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1420 cd = &sc->ste_cdata; in ste_init_rx_list()
1442 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_init_rx_list()
1443 sc->ste_cdata.ste_rx_list_map, in ste_init_rx_list()
1456 cd = &sc->ste_cdata; in ste_init_tx_list()
1480 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_init_tx_list()
1481 sc->ste_cdata.ste_tx_list_map, in ste_init_tx_list()
1658 cur_rx = &sc->ste_cdata.ste_rx_chain[i]; in ste_stop()
1660 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, in ste_stop()
1662 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, in ste_stop()
1670 cur_tx = &sc->ste_cdata.ste_tx_chain[i]; in ste_stop()
1672 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, in ste_stop()
1674 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, in ste_stop()
1817 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1827 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1841 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, txc->ste_map, in ste_encap()
1856 if ((sc->ste_cdata.ste_tx_prod % STE_TX_INTR_FRAMES) == 0) in ste_encap()
1862 STE_INC(sc->ste_cdata.ste_tx_prod, STE_TX_LIST_CNT); in ste_encap()
1863 sc->ste_cdata.ste_tx_cnt++; in ste_encap()
1895 if (sc->ste_cdata.ste_tx_cnt == STE_TX_LIST_CNT - 1) { in ste_start_locked()
1907 cur_tx = &sc->ste_cdata.ste_tx_chain[sc->ste_cdata.ste_tx_prod]; in ste_start_locked()
1914 if (sc->ste_cdata.ste_last_tx == NULL) { in ste_start_locked()
1915 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1916 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1926 sc->ste_cdata.ste_last_tx->ste_ptr->ste_next = in ste_start_locked()
1927 sc->ste_cdata.ste_last_tx->ste_phys; in ste_start_locked()
1928 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1929 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1932 sc->ste_cdata.ste_last_tx = cur_tx; in ste_start_locked()