/netbsd-current/sys/arch/arm/broadcom/ |
H A D | bcm53xx_eth.c | 319 aprint_error(": failed to init rxq: %d\n", error); 615 struct bcmeth_rxqueue * const rxq = &sc->sc_rxq; local 623 bcmeth_write_4(sc, rxq->rxq_reg_rcvctl, 624 bcmeth_read_4(sc, rxq->rxq_reg_rcvctl) & ~RCVCTL_ENABLE); 635 uint32_t rx0 = bcmeth_read_4(sc, rxq->rxq_reg_rcvsts0); 701 struct bcmeth_rxqueue *rxq, 705 bus_dmamap_sync(sc->sc_dmat, rxq->rxq_descmap, 706 (rxdb - rxq->rxq_first) * sizeof(*rxdb), count * sizeof(*rxdb), 713 struct bcmeth_rxqueue *rxq, 717 bus_dmamap_sync(sc->sc_dmat, rxq 699 bcmeth_rxq_desc_presync( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq, struct gmac_rxdb *rxdb, size_t count) argument 711 bcmeth_rxq_desc_postsync( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq, struct gmac_rxdb *rxdb, size_t count) argument 947 bcmeth_rxq_produce( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq) argument 1038 bcmeth_rxq_consume( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq, size_t atmost) argument 1198 bcmeth_rxq_purge( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq, bool discard) argument 1225 bcmeth_rxq_reset( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq) argument 1267 bcmeth_rxq_attach( struct bcmeth_softc *sc, struct bcmeth_rxqueue *rxq, u_int qno) argument 1798 struct bcmeth_rxqueue * const rxq = &sc->sc_rxq; local 1982 struct bcmeth_rxqueue * const rxq = &sc->sc_rxq; local [all...] |
/netbsd-current/sys/dev/marvell/ |
H A D | if_gfe.c | 127 #define GE_RXDSYNC(sc, rxq, n, ops) \ 128 bus_dmamap_sync((sc)->sc_dmat, (rxq)->rxq_desc_mem.gdm_map, \ 129 (n) * sizeof((rxq)->rxq_descs[0]), sizeof((rxq)->rxq_descs[0]), \ 131 #define GE_RXDPRESYNC(sc, rxq, n) \ 132 GE_RXDSYNC(sc, rxq, n, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE) 133 #define GE_RXDPOSTSYNC(sc, rxq, n) \ 134 GE_RXDSYNC(sc, rxq, n, BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE) 758 struct gfe_rxqueue * const rxq = &sc->sc_rxq[rxprio]; local 764 error = gfe_dmamem_alloc(sc, &rxq 784 struct gfe_rxqueue * const rxq = &sc->sc_rxq[rxprio]; local 871 struct gfe_rxqueue * const rxq = &sc->sc_rxq[rxprio]; local 985 struct gfe_rxqueue *rxq; local 1043 struct gfe_rxqueue *rxq; local 1096 struct gfe_rxqueue *rxq = &sc->sc_rxq[rxprio]; local 1151 struct gfe_rxqueue *rxq = &sc->sc_rxq[GE_RXPRIO_HI]; local 1157 struct gfe_rxqueue *rxq = &sc->sc_rxq[GE_RXPRIO_MEDHI]; local 1163 struct gfe_rxqueue *rxq = &sc->sc_rxq[GE_RXPRIO_MEDLO]; local 1169 struct gfe_rxqueue *rxq = &sc->sc_rxq[GE_RXPRIO_LO]; local [all...] |
/netbsd-current/sys/arch/powerpc/booke/dev/ |
H A D | pq3etsec.c | 646 aprint_error(": failed to init rxq: %d\n", error); 1237 struct pq3etsec_rxqueue *rxq, 1241 bus_dmamap_sync(sc->sc_dmat, rxq->rxq_descmap, 1242 (rxbd - rxq->rxq_first) * sizeof(*rxbd), count * sizeof(*rxbd), 1249 struct pq3etsec_rxqueue *rxq, 1253 bus_dmamap_sync(sc->sc_dmat, rxq->rxq_descmap, 1254 (rxbd - rxq->rxq_first) * sizeof(*rxbd), count * sizeof(*rxbd), 1478 struct pq3etsec_rxqueue *rxq) 1480 volatile struct rxbd *producer = rxq->rxq_producer; 1482 size_t inuse = rxq 1235 pq3etsec_rxq_desc_presync( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq, volatile struct rxbd *rxbd, size_t count) argument 1247 pq3etsec_rxq_desc_postsync( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq, volatile struct rxbd *rxbd, size_t count) argument 1476 pq3etsec_rxq_produce( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq) argument 1612 pq3etsec_rxq_consume( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq) argument 1714 pq3etsec_rxq_purge( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq, bool discard) argument 1746 pq3etsec_rxq_reset( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq) argument 1787 pq3etsec_rxq_attach( struct pq3etsec_softc *sc, struct pq3etsec_rxqueue *rxq, u_int qno) argument 2509 struct pq3etsec_rxqueue * const rxq = &sc->sc_rxq; local [all...] |
/netbsd-current/sys/arch/arm/ep93xx/ |
H A D | epevar.h | 60 struct epe_qmeta rxq[RX_QLEN]; member in struct:epe_softc
|
H A D | epe.c | 224 sc->rxq[bi].m_dmamap); 225 m_set_rcvif(sc->rxq[bi].m, ifp); 226 sc->rxq[bi].m->m_pkthdr.len = 227 sc->rxq[bi].m->m_len = fl; 229 sc->rxq[bi].m); 230 sc->rxq[bi].m = m; 232 sc->rxq[bi].m_dmamap, 236 sc->rxq[bi].m_dmamap->dm_segs[0].ds_addr; 371 0, BUS_DMA_WAITOK, &sc->rxq[i].m_dmamap); 374 sc->rxq[ [all...] |
/netbsd-current/sys/arch/arm/at91/ |
H A D | at91emacvar.h | 62 struct emac_qmeta rxq[RX_QLEN]; member in struct:emac_softc
|
H A D | at91emac.c | 274 sc->rxq[bi].m_dmamap, 0, 277 sc->rxq[bi].m_dmamap); 278 m_set_rcvif(sc->rxq[bi].m, ifp); 279 sc->rxq[bi].m->m_pkthdr.len = 280 sc->rxq[bi].m->m_len = fl; 282 if_percpuq_enqueue(ifp->if_percpuq, sc->rxq[bi].m); 286 sc->rxq[bi].m = m; 288 sc->rxq[bi].m_dmamap, 292 sc->rxq[bi].m_dmamap, 0, 296 sc->rxq[b [all...] |
/netbsd-current/sys/dev/pci/ |
H A D | if_vmx.c | 1079 struct vmxnet3_rxqueue *rxq; local 1094 rxq = &vmxq->vxq_rxqueue; 1095 rxs = rxq->vxrxq_rs; 1129 struct vmxnet3_rxqueue *rxq; local 1133 rxq = &sc->vmx_queue[q].vxq_rxqueue; 1135 snprintf(rxq->vxrxq_name, sizeof(rxq->vxrxq_name), "%s-rx%d", 1137 rxq->vxrxq_mtx = mutex_obj_alloc(MUTEX_DEFAULT, IPL_NET /* XXX */); 1139 rxq->vxrxq_sc = sc; 1142 rxr = &rxq 1241 vmxnet3_destroy_rxq(struct vmxnet3_rxqueue *rxq) argument 1475 struct vmxnet3_rxqueue *rxq; local 1552 struct vmxnet3_rxqueue *rxq; local 1655 struct vmxnet3_rxqueue *rxq; local 1966 struct vmxnet3_rxqueue *rxq; local 2026 struct vmxnet3_rxqueue *rxq; local 2183 vmxnet3_newbuf(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rxq, struct vmxnet3_rxring *rxr) argument 2246 vmxnet3_rxq_eof_discard(struct vmxnet3_rxqueue *rxq, struct vmxnet3_rxring *rxr, int idx) argument 2257 vmxnet3_rxq_discard_chain(struct vmxnet3_rxqueue *rxq) argument 2320 vmxnet3_rxq_input(struct vmxnet3_rxqueue *rxq, struct vmxnet3_rxcompdesc *rxcd, struct mbuf *m) argument 2349 vmxnet3_rxq_eof(struct vmxnet3_rxqueue *rxq, u_int limit) argument 2520 struct vmxnet3_rxqueue *rxq; local 2565 struct vmxnet3_rxqueue *rxq; local 2610 struct vmxnet3_rxqueue *rxq; local 2700 vmxnet3_rxstop(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rxq) argument 2734 struct vmxnet3_rxqueue *rxq; local 2819 vmxnet3_rxinit(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rxq) argument [all...] |
H A D | if_wm.c | 266 #define WM_CDRXOFF(rxq, x) ((rxq)->rxq_descsize * (x)) 461 WM_Q_EVCNT_DEFINE(rxq, intr); /* Interrupts */ 462 WM_Q_EVCNT_DEFINE(rxq, defer); /* Rx deferred processing */ 463 WM_Q_EVCNT_DEFINE(rxq, ipsum); /* IP checksums checked */ 464 WM_Q_EVCNT_DEFINE(rxq, tusum); /* TCP/UDP cksums checked */ 465 WM_Q_EVCNT_DEFINE(rxq, qdrop); /* Rx queue drop packet */ 743 #define WM_RXCHAIN_RESET(rxq) \ 745 (rxq)->rxq_tailp = &(rxq) 1914 wm_cdrxsync(struct wm_rxqueue *rxq, int start, int ops) argument 1923 wm_init_rxdesc(struct wm_rxqueue *rxq, int start) argument 3698 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 5940 wm_add_rxbuf(struct wm_rxqueue *rxq, int idx) argument 5996 wm_rxdrain(struct wm_rxqueue *rxq) argument 6355 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 6380 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 6446 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local 6522 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local 6793 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 6847 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 7587 struct wm_rxqueue *rxq = &sc->sc_queue[qidx].wmq_rxq; local 7739 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 7943 wm_alloc_rx_descs(struct wm_softc *sc, struct wm_rxqueue *rxq) argument 8012 wm_free_rx_descs(struct wm_softc *sc, struct wm_rxqueue *rxq) argument 8067 wm_alloc_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq) argument 8096 wm_free_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq) argument 8198 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 8232 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 8264 struct wm_rxqueue *rxq = &sc->sc_queue[i].wmq_rxq; local 8428 wm_init_rx_regs(struct wm_softc *sc, struct wm_queue *wmq, struct wm_rxqueue *rxq) argument 8503 wm_init_rx_buffer(struct wm_softc *sc, struct wm_rxqueue *rxq) argument 8542 wm_init_rx_queue(struct wm_softc *sc, struct wm_queue *wmq, struct wm_rxqueue *rxq) argument 8576 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local 10001 wm_rxdesc_get_status(struct wm_rxqueue *rxq, int idx) argument 10016 wm_rxdesc_get_errors(struct wm_rxqueue *rxq, int idx) argument 10031 wm_rxdesc_get_vlantag(struct wm_rxqueue *rxq, int idx) argument 10044 wm_rxdesc_get_pktlen(struct wm_rxqueue *rxq, int idx) argument 10058 wm_rxdesc_get_rsshash(struct wm_rxqueue *rxq, int idx) argument 10071 wm_rxdesc_get_rsstype(struct wm_rxqueue *rxq, int idx) argument 10111 wm_rxdesc_is_eop(struct wm_rxqueue *rxq, uint32_t status) argument 10122 wm_rxdesc_has_errors(struct wm_rxqueue *rxq, uint32_t errors) argument 10151 wm_rxdesc_dd(struct wm_rxqueue *rxq, int idx, uint32_t status) argument 10166 wm_rxdesc_input_vlantag(struct wm_rxqueue *rxq, uint32_t status, uint16_t vlantag, struct mbuf *m) argument 10179 wm_rxdesc_ensure_checksum(struct wm_rxqueue *rxq, uint32_t status, uint32_t errors, struct mbuf *m) argument 10217 wm_rxeof(struct wm_rxqueue *rxq, u_int limit) argument 10906 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local 11060 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local 11121 struct wm_rxqueue *rxq = &wmq->wmq_rxq; local [all...] |
H A D | if_nfe.c | 362 mutex_init(&sc->rxq.mtx, MUTEX_DEFAULT, IPL_NET); 364 if (nfe_alloc_rx_ring(sc, &sc->rxq) != 0) { 462 nfe_free_rx_ring(sc, &sc->rxq); 463 mutex_destroy(&sc->rxq.mtx); 785 bus_dmamap_sync(sc->sc_dmat, sc->rxq.map, 786 (char *)desc32 - (char *)sc->rxq.desc32, 793 bus_dmamap_sync(sc->sc_dmat, sc->rxq.map, 794 (char *)desc64 - (char *)sc->rxq.desc64, 813 for (i = sc->rxq.cur;; i = NFE_RX_NEXTDESC(i)) { 814 data = &sc->rxq [all...] |
H A D | if_nfevar.h | 98 struct nfe_rx_ring rxq; member in struct:nfe_softc
|
H A D | if_iwivar.h | 139 struct iwi_rx_ring rxq; member in struct:iwi_softc
|
H A D | if_wpivar.h | 148 struct wpi_rx_ring rxq; member in struct:wpi_softc
|
H A D | if_iavfvar.h | 167 struct iavf_vc_rxq_info rxq; member in struct:iavf_vc_queue_pair_info
|
H A D | if_wpi.c | 332 error = wpi_alloc_rx_ring(sc, &sc->rxq); 453 wpi_free_rx_ring(sc, &sc->rxq); 598 mutex_enter(&sc->rxq.freelist_mtx); 599 rbuf = SLIST_FIRST(&sc->rxq.freelist); 601 SLIST_REMOVE_HEAD(&sc->rxq.freelist, next); 603 mutex_exit(&sc->rxq.freelist_mtx); 620 mutex_enter(&sc->rxq.freelist_mtx); 621 SLIST_INSERT_HEAD(&sc->rxq.freelist, rbuf, next); 622 mutex_exit(&sc->rxq.freelist_mtx); 631 struct wpi_rx_ring *ring = &sc->rxq; [all...] |
/netbsd-current/sys/dev/cadence/ |
H A D | if_cemac.c | 124 struct cemac_qmeta rxq[RX_QLEN]; member in struct:cemac_softc 331 bus_dmamap_sync(sc->sc_dmat, sc->rxq[bi].m_dmamap, 0, 334 sc->rxq[bi].m_dmamap); 335 m_set_rcvif(sc->rxq[bi].m, ifp); 336 sc->rxq[bi].m->m_pkthdr.len = 337 sc->rxq[bi].m->m_len = fl; 354 sc->rxq[bi].m->m_pkthdr.csum_flags = csum; 357 sc->rxq[bi].m); 360 sc->rxq[bi].m = m; 362 sc->rxq[b [all...] |
/netbsd-current/sys/arch/sgimips/dev/ |
H A D | zs_ms.c | 68 uint8_t rxq[ZSMS_RXQ_LEN]; member in struct:zsms_softc 191 sc->rxq[sc->rxq_tail] = c; 232 int8_t c = sc->rxq[sc->rxq_head];
|
H A D | zs_kbd.c | 81 uint8_t rxq[ZSKBD_RXQ_LEN]; member in struct:zskbd_devconfig 272 dc->rxq[dc->rxq_tail] = c; 327 uint8_t key = dc->rxq[dc->rxq_head];
|
/netbsd-current/sys/dev/ic/ |
H A D | arn5008.c | 580 struct athn_rxq *rxq = &sc->sc_rxq[0]; local 586 rxq->bf = malloc(ATHN_NRXBUFS * sizeof(*bf), M_DEVBUF, 592 BUS_DMA_NOWAIT, &rxq->map); 596 error = bus_dmamem_alloc(sc->sc_dmat, size, 0, 0, &rxq->seg, 1, 602 error = bus_dmamem_map(sc->sc_dmat, &rxq->seg, 1, size, 603 (void **)&rxq->descs, BUS_DMA_NOWAIT | BUS_DMA_COHERENT); 607 error = bus_dmamap_load(sc->sc_dmat, rxq->map, rxq->descs, 613 bf = &rxq->bf[i]; 614 ds = &((struct ar_rx_desc *)rxq 661 struct athn_rxq *rxq = &sc->sc_rxq[0]; local 692 struct athn_rxq *rxq = &sc->sc_rxq[0]; local 791 struct athn_rxq *rxq = &sc->sc_rxq[0]; local [all...] |
H A D | rt2661var.h | 130 struct rt2661_rx_ring rxq; member in struct:rt2661_softc
|
H A D | rt2560var.h | 133 struct rt2560_rx_ring rxq; member in struct:rt2560_softc
|
H A D | rt2560.c | 378 error = rt2560_alloc_rx_ring(sc, &sc->rxq, RT2560_RX_RING_COUNT); 513 rt2560_free_rx_ring(sc, &sc->rxq); 709 desc = &sc->rxq.desc[i]; 710 data = &sc->rxq.data[i]; 1242 hw = (RAL_READ(sc, RT2560_SECCSR0) - sc->rxq.physaddr) / 1245 for (; sc->rxq.cur_decrypt != hw;) { 1246 desc = &sc->rxq.desc[sc->rxq.cur_decrypt]; 1247 data = &sc->rxq.data[sc->rxq [all...] |
H A D | rt2860var.h | 146 struct rt2860_rx_ring rxq; member in struct:rt2860_softc
|
/netbsd-current/sys/arch/ews4800mips/dev/ |
H A D | ewskbd.c | 112 uint8_t rxq[EWSKBD_RXQ_LEN]; member in struct:ewskbd_devconfig 310 dc->rxq[dc->rxq_tail] = c; 365 uint8_t key = dc->rxq[dc->rxq_head];
|
/netbsd-current/sys/dev/usb/ |
H A D | if_runvar.h | 197 struct run_rx_ring rxq; member in struct:run_softc
|