Lines Matching refs:ste_cdata
601 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_rxeof()
602 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
605 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeof()
659 sc->ste_cdata.ste_rx_head = cur_rx; in ste_rxeof()
660 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_rxeof()
661 sc->ste_cdata.ste_rx_list_map, in ste_rxeof()
775 idx = sc->ste_cdata.ste_tx_cons; in ste_txeof()
776 if (idx == sc->ste_cdata.ste_tx_prod) in ste_txeof()
779 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_txeof()
780 sc->ste_cdata.ste_tx_list_map, in ste_txeof()
783 while (idx != sc->ste_cdata.ste_tx_prod) { in ste_txeof()
784 cur_tx = &sc->ste_cdata.ste_tx_chain[idx]; in ste_txeof()
788 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map, in ste_txeof()
790 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, cur_tx->ste_map); in ste_txeof()
797 sc->ste_cdata.ste_tx_cnt--; in ste_txeof()
801 sc->ste_cdata.ste_tx_cons = idx; in ste_txeof()
802 if (sc->ste_cdata.ste_tx_cnt == 0) in ste_txeof()
1144 &sc->ste_cdata.ste_parent_tag); in ste_dma_alloc()
1153 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1163 &sc->ste_cdata.ste_tx_list_tag); in ste_dma_alloc()
1172 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1182 &sc->ste_cdata.ste_rx_list_tag); in ste_dma_alloc()
1191 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1201 &sc->ste_cdata.ste_tx_tag); in ste_dma_alloc()
1209 sc->ste_cdata.ste_parent_tag, /* parent */ in ste_dma_alloc()
1219 &sc->ste_cdata.ste_rx_tag); in ste_dma_alloc()
1226 error = bus_dmamem_alloc(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1229 &sc->ste_cdata.ste_tx_list_map); in ste_dma_alloc()
1236 error = bus_dmamap_load(sc->ste_cdata.ste_tx_list_tag, in ste_dma_alloc()
1237 sc->ste_cdata.ste_tx_list_map, sc->ste_ldata.ste_tx_list, in ste_dma_alloc()
1247 error = bus_dmamem_alloc(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1250 &sc->ste_cdata.ste_rx_list_map); in ste_dma_alloc()
1257 error = bus_dmamap_load(sc->ste_cdata.ste_rx_list_tag, in ste_dma_alloc()
1258 sc->ste_cdata.ste_rx_list_map, sc->ste_ldata.ste_rx_list, in ste_dma_alloc()
1269 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_alloc()
1275 error = bus_dmamap_create(sc->ste_cdata.ste_tx_tag, 0, in ste_dma_alloc()
1284 if ((error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1285 &sc->ste_cdata.ste_rx_sparemap)) != 0) { in ste_dma_alloc()
1291 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_alloc()
1296 error = bus_dmamap_create(sc->ste_cdata.ste_rx_tag, 0, in ste_dma_alloc()
1317 if (sc->ste_cdata.ste_tx_tag != NULL) { in ste_dma_free()
1319 txc = &sc->ste_cdata.ste_tx_chain[i]; in ste_dma_free()
1321 bus_dmamap_destroy(sc->ste_cdata.ste_tx_tag, in ste_dma_free()
1326 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_tag); in ste_dma_free()
1327 sc->ste_cdata.ste_tx_tag = NULL; in ste_dma_free()
1330 if (sc->ste_cdata.ste_rx_tag != NULL) { in ste_dma_free()
1332 rxc = &sc->ste_cdata.ste_rx_chain[i]; in ste_dma_free()
1334 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1339 if (sc->ste_cdata.ste_rx_sparemap != NULL) { in ste_dma_free()
1340 bus_dmamap_destroy(sc->ste_cdata.ste_rx_tag, in ste_dma_free()
1341 sc->ste_cdata.ste_rx_sparemap); in ste_dma_free()
1342 sc->ste_cdata.ste_rx_sparemap = NULL; in ste_dma_free()
1344 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_tag); in ste_dma_free()
1345 sc->ste_cdata.ste_rx_tag = NULL; in ste_dma_free()
1348 if (sc->ste_cdata.ste_tx_list_tag != NULL) { in ste_dma_free()
1350 bus_dmamap_unload(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1351 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1353 bus_dmamem_free(sc->ste_cdata.ste_tx_list_tag, in ste_dma_free()
1355 sc->ste_cdata.ste_tx_list_map); in ste_dma_free()
1358 bus_dma_tag_destroy(sc->ste_cdata.ste_tx_list_tag); in ste_dma_free()
1359 sc->ste_cdata.ste_tx_list_tag = NULL; in ste_dma_free()
1362 if (sc->ste_cdata.ste_rx_list_tag != NULL) { in ste_dma_free()
1364 bus_dmamap_unload(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1365 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1367 bus_dmamem_free(sc->ste_cdata.ste_rx_list_tag, in ste_dma_free()
1369 sc->ste_cdata.ste_rx_list_map); in ste_dma_free()
1372 bus_dma_tag_destroy(sc->ste_cdata.ste_rx_list_tag); in ste_dma_free()
1373 sc->ste_cdata.ste_rx_list_tag = NULL; in ste_dma_free()
1375 if (sc->ste_cdata.ste_parent_tag != NULL) { in ste_dma_free()
1376 bus_dma_tag_destroy(sc->ste_cdata.ste_parent_tag); in ste_dma_free()
1377 sc->ste_cdata.ste_parent_tag = NULL; in ste_dma_free()
1395 if ((error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_rx_tag, in ste_newbuf()
1396 sc->ste_cdata.ste_rx_sparemap, m, segs, &nsegs, 0)) != 0) { in ste_newbuf()
1403 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1405 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, rxc->ste_map); in ste_newbuf()
1408 rxc->ste_map = sc->ste_cdata.ste_rx_sparemap; in ste_newbuf()
1409 sc->ste_cdata.ste_rx_sparemap = map; in ste_newbuf()
1410 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, rxc->ste_map, in ste_newbuf()
1428 cd = &sc->ste_cdata; in ste_init_rx_list()
1450 bus_dmamap_sync(sc->ste_cdata.ste_rx_list_tag, in ste_init_rx_list()
1451 sc->ste_cdata.ste_rx_list_map, in ste_init_rx_list()
1464 cd = &sc->ste_cdata; in ste_init_tx_list()
1488 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_init_tx_list()
1489 sc->ste_cdata.ste_tx_list_map, in ste_init_tx_list()
1666 cur_rx = &sc->ste_cdata.ste_rx_chain[i]; in ste_stop()
1668 bus_dmamap_sync(sc->ste_cdata.ste_rx_tag, in ste_stop()
1670 bus_dmamap_unload(sc->ste_cdata.ste_rx_tag, in ste_stop()
1678 cur_tx = &sc->ste_cdata.ste_tx_chain[i]; in ste_stop()
1680 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, in ste_stop()
1682 bus_dmamap_unload(sc->ste_cdata.ste_tx_tag, in ste_stop()
1825 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1835 error = bus_dmamap_load_mbuf_sg(sc->ste_cdata.ste_tx_tag, in ste_encap()
1849 bus_dmamap_sync(sc->ste_cdata.ste_tx_tag, txc->ste_map, in ste_encap()
1864 if ((sc->ste_cdata.ste_tx_prod % STE_TX_INTR_FRAMES) == 0) in ste_encap()
1870 STE_INC(sc->ste_cdata.ste_tx_prod, STE_TX_LIST_CNT); in ste_encap()
1871 sc->ste_cdata.ste_tx_cnt++; in ste_encap()
1903 if (sc->ste_cdata.ste_tx_cnt == STE_TX_LIST_CNT - 1) { in ste_start_locked()
1915 cur_tx = &sc->ste_cdata.ste_tx_chain[sc->ste_cdata.ste_tx_prod]; in ste_start_locked()
1922 if (sc->ste_cdata.ste_last_tx == NULL) { in ste_start_locked()
1923 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1924 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1934 sc->ste_cdata.ste_last_tx->ste_ptr->ste_next = in ste_start_locked()
1935 sc->ste_cdata.ste_last_tx->ste_phys; in ste_start_locked()
1936 bus_dmamap_sync(sc->ste_cdata.ste_tx_list_tag, in ste_start_locked()
1937 sc->ste_cdata.ste_tx_list_map, in ste_start_locked()
1940 sc->ste_cdata.ste_last_tx = cur_tx; in ste_start_locked()