Lines Matching refs:ste_cdata
603 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_rxeof()
604 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
607 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeof()
661 sc->ste_cdata.ste_rx_head = cur_rx; in ste_rxeof()
662 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_rxeof()
663 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
777 idx = sc->ste_cdata.ste_tx_cons; in ste_txeof()
778 if (idx == sc->ste_cdata.ste_tx_prod) in ste_txeof()
781 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_txeof()
782 sc->ste_cdata.ste_tx_list_map, in ste_txeof()
785 while (idx != sc->ste_cdata.ste_tx_prod) { in ste_txeof()
786 cur_tx = &sc->ste_cdata.ste_tx_chain[idx]; in ste_txeof()
790 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map, in ste_txeof()
792 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map); in ste_txeof()
799 sc->ste_cdata.ste_tx_cnt--; in ste_txeof()
803 sc->ste_cdata.ste_tx_cons = idx; in ste_txeof()
804 if (sc->ste_cdata.ste_tx_cnt == 0) in ste_txeof()
1146 &sc->ste_cdata.ste_parent_tag); in ste_dma_alloc()
1155 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1165 &sc->ste_cdata.ste_tx_list_tag); in ste_dma_alloc()
1174 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1184 &sc->ste_cdata.ste_rx_list_tag); in ste_dma_alloc()
1193 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1203 &sc->ste_cdata.ste_tx_tag); in ste_dma_alloc()
1211 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1221 &sc->ste_cdata.ste_rx_tag); in ste_dma_alloc()
1228 error = bus_dmamem_alloc(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1231 &sc->ste_cdata.ste_tx_list_map); in ste_dma_alloc()
1238 error = bus_dmamap_load(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1239 sc->ste_cdata.ste_tx_list_map, sc->ste_ldata.ste_tx_list, in ste_dma_alloc()
1249 error = bus_dmamem_alloc(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1252 &sc->ste_cdata.ste_rx_list_map); in ste_dma_alloc()
1259 error = bus_dmamap_load(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1260 sc->ste_cdata.ste_rx_list_map, sc->ste_ldata.ste_rx_list, in ste_dma_alloc()
1271 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_alloc()
1277 error = bus_dmamap_create(sc->ste_cdata.ste_tx_tag, 0, in ste_dma_alloc()
1286 if ((error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1287 &sc->ste_cdata.ste_rx_sparemap)) != 0) { in ste_dma_alloc()
1293 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_alloc()
1298 error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1319 if (sc->ste_cdata.ste_tx_tag != NULL) { in ste_dma_free()
1321 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_free()
1323 bus_dmamap_destroy(sc->ste_cdata.ste_tx_tag, in ste_dma_free()
1328 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_tag); in ste_dma_free()
1329 sc->ste_cdata.ste_tx_tag = NULL; in ste_dma_free()
1332 if (sc->ste_cdata.ste_rx_tag != NULL) { in ste_dma_free()
1334 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_free()
1336 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1341 if (sc->ste_cdata.ste_rx_sparemap != NULL) { in ste_dma_free()
1342 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1343 sc->ste_cdata.ste_rx_sparemap); in ste_dma_free()
1344 sc->ste_cdata.ste_rx_sparemap = NULL; in ste_dma_free()
1346 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_tag); in ste_dma_free()
1347 sc->ste_cdata.ste_rx_tag = NULL; in ste_dma_free()
1350 if (sc->ste_cdata.ste_tx_list_tag != NULL) { in ste_dma_free()
1352 bus_dmamap_unload(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1353 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1355 bus_dmamem_free(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1357 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1360 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_list_tag); in ste_dma_free()
1361 sc->ste_cdata.ste_tx_list_tag = NULL; in ste_dma_free()
1364 if (sc->ste_cdata.ste_rx_list_tag != NULL) { in ste_dma_free()
1366 bus_dmamap_unload(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1367 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1369 bus_dmamem_free(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1371 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1374 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_list_tag); in ste_dma_free()
1375 sc->ste_cdata.ste_rx_list_tag = NULL; in ste_dma_free()
1377 if (sc->ste_cdata.ste_parent_tag != NULL) { in ste_dma_free()
1378 bus_dma_tag_destroy(sc->ste_cdata.ste_parent_tag); in ste_dma_free()
1379 sc->ste_cdata.ste_parent_tag = NULL; in ste_dma_free()
1397 if ((error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_rx_tag, in ste_newbuf()
1398 sc->ste_cdata.ste_rx_sparemap, m, segs, &nsegs, 0)) != 0) { in ste_newbuf()
1405 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1407 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, rxc->ste_map); in ste_newbuf()
1410 rxc->ste_map = sc->ste_cdata.ste_rx_sparemap; in ste_newbuf()
1411 sc->ste_cdata.ste_rx_sparemap = map; in ste_newbuf()
1412 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1430 cd = &sc->ste_cdata; in ste_init_rx_list()
1452 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_init_rx_list()
1453 sc->ste_cdata.ste_rx_list_map, in ste_init_rx_list()
1466 cd = &sc->ste_cdata; in ste_init_tx_list()
1490 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_init_tx_list()
1491 sc->ste_cdata.ste_tx_list_map, in ste_init_tx_list()
1668 cur_rx = &sc->ste_cdata.ste_rx_chain[i]; in ste_stop()
1670 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, in ste_stop()
1672 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, in ste_stop()
1680 cur_tx = &sc->ste_cdata.ste_tx_chain[i]; in ste_stop()
1682 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, in ste_stop()
1684 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, in ste_stop()
1827 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1837 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1851 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, txc->ste_map, in ste_encap()
1866 if ((sc->ste_cdata.ste_tx_prod % STE_TX_INTR_FRAMES) == 0) in ste_encap()
1872 STE_INC(sc->ste_cdata.ste_tx_prod, STE_TX_LIST_CNT); in ste_encap()
1873 sc->ste_cdata.ste_tx_cnt++; in ste_encap()
1905 if (sc->ste_cdata.ste_tx_cnt == STE_TX_LIST_CNT - 1) { in ste_start_locked()
1917 cur_tx = &sc->ste_cdata.ste_tx_chain[sc->ste_cdata.ste_tx_prod]; in ste_start_locked()
1924 if (sc->ste_cdata.ste_last_tx == NULL) { in ste_start_locked()
1925 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1926 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1936 sc->ste_cdata.ste_last_tx->ste_ptr->ste_next = in ste_start_locked()
1937 sc->ste_cdata.ste_last_tx->ste_phys; in ste_start_locked()
1938 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1939 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1942 sc->ste_cdata.ste_last_tx = cur_tx; in ste_start_locked()