Lines Matching refs:pc
69 rtwn_pci_setup_rx_desc(struct rtwn_pci_softc *pc, in rtwn_pci_setup_rx_desc() argument
77 bus_space_barrier(pc->pc_st, pc->pc_sh, 0, pc->pc_mapsize, in rtwn_pci_setup_rx_desc()
83 rtwn_pci_rx_frame(struct rtwn_pci_softc *pc) in rtwn_pci_rx_frame() argument
85 struct rtwn_softc *sc = &pc->pc_sc; in rtwn_pci_rx_frame()
86 struct rtwn_rx_ring *ring = &pc->rx_ring; in rtwn_pci_rx_frame()
180 rtwn_pci_rx_buf_copy(struct rtwn_pci_softc *pc) in rtwn_pci_rx_buf_copy() argument
182 struct rtwn_rx_ring *ring = &pc->rx_ring; in rtwn_pci_rx_buf_copy()
193 KASSERT(sizeof(pc->pc_rx_buf) >= desc_size, in rtwn_pci_rx_buf_copy()
196 memcpy(pc->pc_rx_buf, rx_desc, desc_size); in rtwn_pci_rx_buf_copy()
201 if (pktlen > sizeof(pc->pc_rx_buf) - desc_size) in rtwn_pci_rx_buf_copy()
208 memcpy(pc->pc_rx_buf + desc_size, mtod(rx_data->m, void *), pktlen); in rtwn_pci_rx_buf_copy()
214 rtwn_pci_tx_report(struct rtwn_pci_softc *pc, int len) in rtwn_pci_tx_report() argument
216 struct rtwn_softc *sc = &pc->pc_sc; in rtwn_pci_tx_report()
227 rtwn_handle_tx_report(sc, pc->pc_rx_buf, len); in rtwn_pci_tx_report()
240 rtwn_pci_tx_report2(struct rtwn_pci_softc *pc, int len) in rtwn_pci_tx_report2() argument
242 struct rtwn_softc *sc = &pc->pc_sc; in rtwn_pci_tx_report2()
253 rtwn_handle_tx_report2(sc, pc->pc_rx_buf, len); in rtwn_pci_tx_report2()
267 rtwn_pci_c2h_report(struct rtwn_pci_softc *pc, int len) in rtwn_pci_c2h_report() argument
269 rtwn_handle_c2h_report(&pc->pc_sc, pc->pc_rx_buf, len); in rtwn_pci_c2h_report()
275 struct rtwn_pci_softc *pc = RTWN_PCI_SOFTC(sc); in rtwn_pci_tx_done() local
276 struct rtwn_tx_ring *ring = &pc->tx_ring[qid]; in rtwn_pci_tx_done()
347 struct rtwn_pci_softc *pc = RTWN_PCI_SOFTC(sc); in rtwn_pci_rx_done() local
348 struct rtwn_rx_ring *ring = &pc->rx_ring; in rtwn_pci_rx_done()
362 len = rtwn_pci_rx_buf_copy(pc); in rtwn_pci_rx_done()
364 switch (rtwn_classify_intr(sc, pc->pc_rx_buf, len)) { in rtwn_pci_rx_done()
366 rtwn_pci_rx_frame(pc); in rtwn_pci_rx_done()
369 rtwn_pci_tx_report(pc, len); in rtwn_pci_rx_done()
372 rtwn_pci_tx_report2(pc, len); in rtwn_pci_rx_done()
375 rtwn_pci_c2h_report(pc, len); in rtwn_pci_rx_done()
384 rtwn_pci_setup_rx_desc(pc, rx_desc, rx_data->paddr, in rtwn_pci_rx_done()
403 struct rtwn_pci_softc *pc = RTWN_PCI_SOFTC(sc); in rtwn_pci_intr() local
407 status = rtwn_pci_get_intr_status(pc, &tx_rings); in rtwn_pci_intr()
425 rtwn_pci_enable_intr(pc); in rtwn_pci_intr()