Lines Matching refs:sc_cdata

835 		bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag,  in txp_int_task()
836 sc->sc_cdata.txp_hostvar_map, in txp_int_task()
863 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_int_task()
864 sc->sc_cdata.txp_hostvar_map, in txp_int_task()
921 bus_dmamap_sync(sc->sc_cdata.txp_rx_tag, sd->sd_map, in txp_rx_reclaim()
923 bus_dmamap_unload(sc->sc_cdata.txp_rx_tag, sd->sd_map); in txp_rx_reclaim()
1014 bus_dmamap_sync(sc->sc_cdata.txp_rxbufs_tag, in txp_rxbuf_reclaim()
1015 sc->sc_cdata.txp_rxbufs_map, in txp_rxbuf_reclaim()
1031 if (bus_dmamap_load_mbuf_sg(sc->sc_cdata.txp_rx_tag, in txp_rxbuf_reclaim()
1041 bus_dmamap_sync(sc->sc_cdata.txp_rx_tag, sd->sd_map, in txp_rxbuf_reclaim()
1050 bus_dmamap_sync(sc->sc_cdata.txp_rxbufs_tag, in txp_rxbuf_reclaim()
1051 sc->sc_cdata.txp_rxbufs_map, in txp_rxbuf_reclaim()
1084 bus_dmamap_sync(sc->sc_cdata.txp_tx_tag, in txp_tx_reclaim()
1086 bus_dmamap_unload(sc->sc_cdata.txp_tx_tag, in txp_tx_reclaim()
1232 sc->sc_cdata.txp_parent_tag, /* parent */ in txp_dma_alloc()
1323 &sc->sc_cdata.txp_parent_tag); in txp_alloc_rings()
1331 &sc->sc_cdata.txp_boot_tag, sizeof(uint32_t), 0, in txp_alloc_rings()
1332 &sc->sc_cdata.txp_boot_map, (void **)&sc->sc_ldata.txp_boot, in txp_alloc_rings()
1342 &sc->sc_cdata.txp_hostvar_tag, sizeof(uint32_t), 0, in txp_alloc_rings()
1343 &sc->sc_cdata.txp_hostvar_map, (void **)&sc->sc_ldata.txp_hostvar, in txp_alloc_rings()
1356 &sc->sc_cdata.txp_txhiring_tag, sizeof(struct txp_tx_desc), 0, in txp_alloc_rings()
1357 &sc->sc_cdata.txp_txhiring_map, (void **)&sc->sc_ldata.txp_txhiring, in txp_alloc_rings()
1368 sc->sc_txhir.r_tag = sc->sc_cdata.txp_txhiring_tag; in txp_alloc_rings()
1369 sc->sc_txhir.r_map = sc->sc_cdata.txp_txhiring_map; in txp_alloc_rings()
1377 &sc->sc_cdata.txp_txloring_tag, sizeof(struct txp_tx_desc), 0, in txp_alloc_rings()
1378 &sc->sc_cdata.txp_txloring_map, (void **)&sc->sc_ldata.txp_txloring, in txp_alloc_rings()
1389 sc->sc_txlor.r_tag = sc->sc_cdata.txp_txloring_tag; in txp_alloc_rings()
1390 sc->sc_txlor.r_map = sc->sc_cdata.txp_txloring_map; in txp_alloc_rings()
1398 &sc->sc_cdata.txp_rxhiring_tag, in txp_alloc_rings()
1400 &sc->sc_cdata.txp_rxhiring_map, (void **)&sc->sc_ldata.txp_rxhiring, in txp_alloc_rings()
1411 sc->sc_rxhir.r_tag = sc->sc_cdata.txp_rxhiring_tag; in txp_alloc_rings()
1412 sc->sc_rxhir.r_map = sc->sc_cdata.txp_rxhiring_map; in txp_alloc_rings()
1419 &sc->sc_cdata.txp_rxloring_tag, in txp_alloc_rings()
1421 &sc->sc_cdata.txp_rxloring_map, (void **)&sc->sc_ldata.txp_rxloring, in txp_alloc_rings()
1432 sc->sc_rxlor.r_tag = sc->sc_cdata.txp_rxloring_tag; in txp_alloc_rings()
1433 sc->sc_rxlor.r_map = sc->sc_cdata.txp_rxloring_map; in txp_alloc_rings()
1440 &sc->sc_cdata.txp_cmdring_tag, sizeof(struct txp_cmd_desc), 0, in txp_alloc_rings()
1441 &sc->sc_cdata.txp_cmdring_map, (void **)&sc->sc_ldata.txp_cmdring, in txp_alloc_rings()
1455 &sc->sc_cdata.txp_rspring_tag, sizeof(struct txp_rsp_desc), 0, in txp_alloc_rings()
1456 &sc->sc_cdata.txp_rspring_map, (void **)&sc->sc_ldata.txp_rspring, in txp_alloc_rings()
1470 &sc->sc_cdata.txp_rxbufs_tag, sizeof(struct txp_rxbuf_desc), 0, in txp_alloc_rings()
1471 &sc->sc_cdata.txp_rxbufs_map, (void **)&sc->sc_ldata.txp_rxbufs, in txp_alloc_rings()
1486 &sc->sc_cdata.txp_zero_tag, sizeof(uint32_t), 0, in txp_alloc_rings()
1487 &sc->sc_cdata.txp_zero_map, (void **)&sc->sc_ldata.txp_zero, in txp_alloc_rings()
1494 bus_dmamap_sync(sc->sc_cdata.txp_boot_tag, sc->sc_cdata.txp_boot_map, in txp_alloc_rings()
1499 sc->sc_cdata.txp_parent_tag, /* parent */ in txp_alloc_rings()
1509 &sc->sc_cdata.txp_tx_tag); in txp_alloc_rings()
1517 sc->sc_cdata.txp_parent_tag, /* parent */ in txp_alloc_rings()
1527 &sc->sc_cdata.txp_rx_tag); in txp_alloc_rings()
1538 error = bus_dmamap_create(sc->sc_cdata.txp_tx_tag, 0, in txp_alloc_rings()
1565 error = bus_dmamap_create(sc->sc_cdata.txp_rx_tag, 0, in txp_alloc_rings()
1594 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_init_rings()
1595 sc->sc_cdata.txp_hostvar_map, in txp_init_rings()
1623 if (sc->sc_cdata.txp_tx_tag != NULL) { in txp_free_rings()
1627 bus_dmamap_destroy(sc->sc_cdata.txp_tx_tag, in txp_free_rings()
1632 bus_dma_tag_destroy(sc->sc_cdata.txp_tx_tag); in txp_free_rings()
1633 sc->sc_cdata.txp_tx_tag = NULL; in txp_free_rings()
1636 if (sc->sc_cdata.txp_rx_tag != NULL) { in txp_free_rings()
1644 sc->sc_cdata.txp_rx_tag, in txp_free_rings()
1651 bus_dma_tag_destroy(sc->sc_cdata.txp_rx_tag); in txp_free_rings()
1652 sc->sc_cdata.txp_rx_tag = NULL; in txp_free_rings()
1656 txp_dma_free(sc, &sc->sc_cdata.txp_txhiring_tag, in txp_free_rings()
1657 sc->sc_cdata.txp_txhiring_map, in txp_free_rings()
1661 txp_dma_free(sc, &sc->sc_cdata.txp_txloring_tag, in txp_free_rings()
1662 sc->sc_cdata.txp_txloring_map, in txp_free_rings()
1666 txp_dma_free(sc, &sc->sc_cdata.txp_rxhiring_tag, in txp_free_rings()
1667 sc->sc_cdata.txp_rxhiring_map, in txp_free_rings()
1671 txp_dma_free(sc, &sc->sc_cdata.txp_rxloring_tag, in txp_free_rings()
1672 sc->sc_cdata.txp_rxloring_map, in txp_free_rings()
1676 txp_dma_free(sc, &sc->sc_cdata.txp_rxbufs_tag, in txp_free_rings()
1677 sc->sc_cdata.txp_rxbufs_map, (void **)&sc->sc_ldata.txp_rxbufs, in txp_free_rings()
1680 txp_dma_free(sc, &sc->sc_cdata.txp_cmdring_tag, in txp_free_rings()
1681 sc->sc_cdata.txp_cmdring_map, (void **)&sc->sc_ldata.txp_cmdring, in txp_free_rings()
1684 txp_dma_free(sc, &sc->sc_cdata.txp_rspring_tag, in txp_free_rings()
1685 sc->sc_cdata.txp_rspring_map, (void **)&sc->sc_ldata.txp_rspring, in txp_free_rings()
1688 txp_dma_free(sc, &sc->sc_cdata.txp_zero_tag, in txp_free_rings()
1689 sc->sc_cdata.txp_zero_map, (void **)&sc->sc_ldata.txp_zero, in txp_free_rings()
1692 txp_dma_free(sc, &sc->sc_cdata.txp_hostvar_tag, in txp_free_rings()
1693 sc->sc_cdata.txp_hostvar_map, (void **)&sc->sc_ldata.txp_hostvar, in txp_free_rings()
1696 txp_dma_free(sc, &sc->sc_cdata.txp_boot_tag, in txp_free_rings()
1697 sc->sc_cdata.txp_boot_map, (void **)&sc->sc_ldata.txp_boot, in txp_free_rings()
1700 if (sc->sc_cdata.txp_parent_tag != NULL) { in txp_free_rings()
1701 bus_dma_tag_destroy(sc->sc_cdata.txp_parent_tag); in txp_free_rings()
1702 sc->sc_cdata.txp_parent_tag = NULL; in txp_free_rings()
1799 bus_dmamap_sync(sc->sc_cdata.txp_rxbufs_tag, in txp_rxring_fill()
1800 sc->sc_cdata.txp_rxbufs_map, in txp_rxring_fill()
1818 if ((error = bus_dmamap_load_mbuf_sg(sc->sc_cdata.txp_rx_tag, in txp_rxring_fill()
1828 bus_dmamap_sync(sc->sc_cdata.txp_rx_tag, sd->sd_map, in txp_rxring_fill()
1834 bus_dmamap_sync(sc->sc_cdata.txp_rxbufs_tag, in txp_rxring_fill()
1835 sc->sc_cdata.txp_rxbufs_map, in txp_rxring_fill()
1854 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_rxring_empty()
1855 sc->sc_cdata.txp_hostvar_map, in txp_rxring_empty()
1864 bus_dmamap_sync(sc->sc_cdata.txp_rx_tag, sd->sd_map, in txp_rxring_empty()
1866 bus_dmamap_unload(sc->sc_cdata.txp_rx_tag, sd->sd_map); in txp_rxring_empty()
1918 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_init_locked()
1919 sc->sc_cdata.txp_hostvar_map, in txp_init_locked()
1925 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_init_locked()
1926 sc->sc_cdata.txp_hostvar_map, in txp_init_locked()
2009 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_tick()
2010 sc->sc_cdata.txp_hostvar_map, in txp_tick()
2013 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_tick()
2014 sc->sc_cdata.txp_hostvar_map, in txp_tick()
2121 error = bus_dmamap_load_mbuf_sg(sc->sc_cdata.txp_tx_tag, sd->sd_map, in txp_encap()
2131 error = bus_dmamap_load_mbuf_sg(sc->sc_cdata.txp_tx_tag, in txp_encap()
2148 bus_dmamap_unload(sc->sc_cdata.txp_tx_tag, sd->sd_map); in txp_encap()
2151 bus_dmamap_sync(sc->sc_cdata.txp_tx_tag, sd->sd_map, in txp_encap()
2254 bus_dmamap_sync(sc->sc_cdata.txp_cmdring_tag, in txp_ext_command()
2255 sc->sc_cdata.txp_cmdring_map, BUS_DMASYNC_POSTWRITE); in txp_ext_command()
2284 bus_dmamap_sync(sc->sc_cdata.txp_cmdring_tag, in txp_ext_command()
2285 sc->sc_cdata.txp_cmdring_map, BUS_DMASYNC_PREWRITE); in txp_ext_command()
2286 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_ext_command()
2287 sc->sc_cdata.txp_hostvar_map, BUS_DMASYNC_PREREAD | in txp_ext_command()
2296 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_ext_command()
2297 sc->sc_cdata.txp_hostvar_map, BUS_DMASYNC_POSTREAD | in txp_ext_command()
2302 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_ext_command()
2303 sc->sc_cdata.txp_hostvar_map, in txp_ext_command()
2328 bus_dmamap_sync(sc->sc_cdata.txp_rspring_tag, in txp_response()
2329 sc->sc_cdata.txp_rspring_map, BUS_DMASYNC_POSTREAD); in txp_response()
2439 bus_dmamap_sync(sc->sc_cdata.txp_hostvar_tag, in txp_cmd_desc_numfree()
2440 sc->sc_cdata.txp_hostvar_map, in txp_cmd_desc_numfree()