Lines Matching refs:txp_softc
89 static void txp_stop(struct txp_softc *);
90 static void txp_init(struct txp_softc *);
93 static int txp_chip_init(struct txp_softc *);
94 static int txp_reset_adapter(struct txp_softc *);
95 static int txp_download_fw(struct txp_softc *);
96 static int txp_download_fw_wait(struct txp_softc *);
97 static int txp_download_fw_section(struct txp_softc *,
99 static int txp_alloc_rings(struct txp_softc *);
100 static void txp_dma_free(struct txp_softc *, struct txp_dma_alloc *);
101 static int txp_dma_malloc(struct txp_softc *, bus_size_t, struct txp_dma_alloc *, int);
102 static void txp_set_filter(struct txp_softc *);
104 static int txp_cmd_desc_numfree(struct txp_softc *);
105 static int txp_command(struct txp_softc *, uint16_t, uint16_t, uint32_t,
107 static int txp_command2(struct txp_softc *, uint16_t, uint16_t,
110 static int txp_response(struct txp_softc *, uint32_t, uint16_t, uint16_t,
112 static void txp_rsp_fixup(struct txp_softc *, struct txp_rsp_desc *,
114 static void txp_capabilities(struct txp_softc *);
118 static void txp_tx_reclaim(struct txp_softc *, struct txp_tx_ring *,
120 static void txp_rxbuf_reclaim(struct txp_softc *);
121 static void txp_rx_reclaim(struct txp_softc *, struct txp_rx_ring *,
124 static void txp_rxd_free(struct txp_softc *, struct txp_swdesc *);
125 static struct txp_swdesc *txp_rxd_alloc(struct txp_softc *);
127 CFATTACH_DECL_NEW(txp, sizeof(struct txp_softc), txp_probe, txp_attach,
184 struct txp_softc *sc = device_private(self);
373 txp_chip_init(struct txp_softc *sc)
410 txp_reset_adapter(struct txp_softc *sc)
436 txp_download_fw(struct txp_softc *sc)
517 txp_download_fw_wait(struct txp_softc *sc)
544 txp_download_fw_section(struct txp_softc *sc,
626 struct txp_softc *sc = vsc;
679 txp_rxd_alloc(struct txp_softc *sc)
687 txp_rxd_free(struct txp_softc *sc, struct txp_swdesc *sd)
694 txp_rxd_idx(struct txp_softc *sc, struct txp_swdesc *sd)
701 txp_txd_idx(struct txp_softc *sc, struct txp_swdesc *sd)
708 txp_rx_reclaim(struct txp_softc *sc, struct txp_rx_ring *r,
826 txp_rxbuf_reclaim(struct txp_softc *sc)
906 txp_tx_reclaim(struct txp_softc *sc, struct txp_tx_ring *r,
962 struct txp_softc *sc;
980 txp_alloc_rings(struct txp_softc *sc)
1257 txp_dma_malloc(struct txp_softc *sc, bus_size_t size,
1292 txp_dma_free(struct txp_softc *sc, struct txp_dma_alloc *dma)
1305 struct txp_softc *sc = ifp->if_softc;
1370 txp_init(struct txp_softc *sc)
1404 struct txp_softc *sc = vsc;
1445 struct txp_softc *sc = ifp->if_softc;
1619 txp_command(struct txp_softc *sc, uint16_t id, uint16_t in1, uint32_t in2,
1641 txp_command2(struct txp_softc *sc, uint16_t id, uint16_t in1, uint32_t in2,
1716 txp_response(struct txp_softc *sc, uint32_t ridx, uint16_t id, uint16_t seq,
1764 txp_rsp_fixup(struct txp_softc *sc, struct txp_rsp_desc *rsp,
1790 txp_cmd_desc_numfree(struct txp_softc *sc)
1814 txp_stop(struct txp_softc *sc)
1831 struct txp_softc *sc = ifp->if_softc;
1868 struct txp_softc *sc = ifp->if_softc;
1982 txp_set_filter(struct txp_softc *sc)
2063 txp_capabilities(struct txp_softc *sc)