Home
last modified time | relevance | path

Searched refs:cur_rx (Results 1 – 19 of 19) sorted by relevance

/openbsd/src/sys/dev/pci/
Dif_ste.c601 struct ste_chain_onefrag *cur_rx; in ste_rxeoc() local
604 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeoc()
606 cur_rx = cur_rx->ste_next; in ste_rxeoc()
608 if (cur_rx == sc->ste_cdata.ste_rx_head) in ste_rxeoc()
610 } while (cur_rx->ste_ptr->ste_status == 0); in ste_rxeoc()
613 sc->ste_cdata.ste_rx_head = cur_rx; in ste_rxeoc()
628 struct ste_chain_onefrag *cur_rx; in ste_rxeof() local
639 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeof()
640 sc->ste_cdata.ste_rx_head = cur_rx->ste_next; in ste_rxeof()
650 cur_rx->ste_ptr->ste_status = 0; in ste_rxeof()
[all …]
Dif_wb.c890 struct wb_chain_onefrag *cur_rx; in wb_rxeof() local
900 cur_rx = sc->wb_cdata.wb_rx_head; in wb_rxeof()
901 sc->wb_cdata.wb_rx_head = cur_rx->wb_nextdesc; in wb_rxeof()
904 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) < WB_MIN_FRAMELEN) || in wb_rxeof()
905 (WB_RXBYTES(cur_rx->wb_ptr->wb_status) > ETHER_MAX_DIX_LEN) || in wb_rxeof()
909 wb_newbuf(sc, cur_rx); in wb_rxeof()
919 wb_newbuf(sc, cur_rx); in wb_rxeof()
924 total_len = WB_RXBYTES(cur_rx->wb_ptr->wb_status); in wb_rxeof()
935 m = m_devget(cur_rx->wb_buf + sizeof(u_int64_t), total_len, in wb_rxeof()
937 wb_newbuf(sc, cur_rx); in wb_rxeof()
Dif_tl.c1032 struct tl_chain_onefrag *cur_rx; in tl_intvec_rxeof() local
1038 cur_rx = sc->tl_cdata.tl_rx_head; in tl_intvec_rxeof()
1039 if (!(cur_rx->tl_ptr->tlist_cstat & TL_CSTAT_FRAMECMP)) in tl_intvec_rxeof()
1042 sc->tl_cdata.tl_rx_head = cur_rx->tl_next; in tl_intvec_rxeof()
1043 m = cur_rx->tl_mbuf; in tl_intvec_rxeof()
1044 total_len = cur_rx->tl_ptr->tlist_frsize; in tl_intvec_rxeof()
1046 if (tl_newbuf(sc, cur_rx) == ENOBUFS) { in tl_intvec_rxeof()
1048 cur_rx->tl_ptr->tlist_frsize = MCLBYTES; in tl_intvec_rxeof()
1049 cur_rx->tl_ptr->tlist_cstat = TL_CSTAT_READY; in tl_intvec_rxeof()
1050 cur_rx->tl_ptr->tl_frag.tlist_dcnt = MCLBYTES; in tl_intvec_rxeof()
[all …]
Dif_lge.c680 struct lge_rx_desc *cur_rx; in lge_rxeof() local
694 cur_rx = &sc->lge_ldata->lge_rx_list[i]; in lge_rxeof()
695 rxctl = cur_rx->lge_ctl; in lge_rxeof()
696 rxsts = cur_rx->lge_sts; in lge_rxeof()
697 m = cur_rx->lge_mbuf; in lge_rxeof()
698 cur_rx->lge_mbuf = NULL; in lge_rxeof()
699 total_len = LGE_RXBYTES(cur_rx); in lge_rxeof()
Dif_sis.c1358 struct sis_desc *cur_rx; in sis_rxeof() local
1365 cur_rx = &sc->sis_ldata->sis_rx_list[sc->sis_cdata.sis_rx_cons]; in sis_rxeof()
1367 ((caddr_t)cur_rx - sc->sc_listkva), in sis_rxeof()
1370 if (!SIS_OWNDESC(cur_rx)) in sis_rxeof()
1373 rxstat = letoh32(cur_rx->sis_rxstat); in sis_rxeof()
1374 m = cur_rx->sis_mbuf; in sis_rxeof()
1375 cur_rx->sis_mbuf = NULL; in sis_rxeof()
1376 total_len = SIS_RXBYTES(cur_rx); in sis_rxeof()
1412 bus_dmamap_sync(sc->sc_dmat, cur_rx->map, 0, in sis_rxeof()
1413 cur_rx->map->dm_mapsize, BUS_DMASYNC_POSTREAD); in sis_rxeof()
Dif_nge.c997 struct nge_desc *cur_rx; in nge_rxeof() local
1008 cur_rx = &sc->nge_ldata->nge_rx_list[i]; in nge_rxeof()
1009 rxstat = cur_rx->nge_rxstat; in nge_rxeof()
1010 extsts = cur_rx->nge_extsts; in nge_rxeof()
1011 m = cur_rx->nge_mbuf; in nge_rxeof()
1012 cur_rx->nge_mbuf = NULL; in nge_rxeof()
1013 total_len = NGE_RXBYTES(cur_rx); in nge_rxeof()
1035 nge_newbuf(sc, cur_rx, m); in nge_rxeof()
1056 if (nge_newbuf(sc, cur_rx, NULL) == ENOBUFS) { in nge_rxeof()
1059 nge_newbuf(sc, cur_rx, m); in nge_rxeof()
Dif_vr.c816 struct vr_chain_onefrag *cur_rx; in vr_rxeof() local
832 cur_rx = sc->vr_cdata.vr_rx_cons; in vr_rxeof()
833 m = cur_rx->vr_mbuf; in vr_rxeof()
834 cur_rx->vr_mbuf = NULL; in vr_rxeof()
835 sc->vr_cdata.vr_rx_cons = cur_rx->vr_nextdesc; in vr_rxeof()
871 total_len = VR_RXBYTES(letoh32(cur_rx->vr_ptr->vr_status)); in vr_rxeof()
873 bus_dmamap_sync(sc->sc_dmat, cur_rx->vr_map, 0, in vr_rxeof()
874 cur_rx->vr_map->dm_mapsize, BUS_DMASYNC_POSTREAD); in vr_rxeof()
875 bus_dmamap_unload(sc->sc_dmat, cur_rx->vr_map); in vr_rxeof()
Dif_bge.c3554 struct bge_rx_bd *cur_rx; in bge_rxeof() local
3558 cur_rx = &sc->bge_rdata->bge_rx_return_ring[rx_cons]; in bge_rxeof()
3560 rxidx = cur_rx->bge_idx; in bge_rxeof()
3563 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) { in bge_rxeof()
3574 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { in bge_rxeof()
3589 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { in bge_rxeof()
3602 cur_rx->bge_len); in bge_rxeof()
3606 m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN; in bge_rxeof()
3608 bge_rxcsum(sc, cur_rx, m); in bge_rxeof()
3612 cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) { in bge_rxeof()
[all …]
Dif_rge.c1248 struct rge_rx_desc *cur_rx; in rge_rxeof() local
1257 cur_rx = &q->q_rx.rge_rx_list[i]; in rge_rxeof()
1260 i * sizeof(*cur_rx), sizeof(*cur_rx), in rge_rxeof()
1262 rxstat = letoh32(cur_rx->hi_qword1.rx_qword4.rge_cmdsts); in rge_rxeof()
1265 i * sizeof(*cur_rx), sizeof(*cur_rx), in rge_rxeof()
1320 extsts = letoh32(cur_rx->hi_qword1.rx_qword4.rge_extsts); in rge_rxeof()
1352 cons * sizeof(*cur_rx), (i - cons) * sizeof(*cur_rx), in rge_rxeof()
1356 cons * sizeof(*cur_rx), in rge_rxeof()
1357 (RGE_RX_LIST_CNT - cons) * sizeof(*cur_rx), in rge_rxeof()
1361 0, i * sizeof(*cur_rx), in rge_rxeof()
Dif_vge.c981 struct vge_rx_desc *cur_rx; in vge_rxeof() local
997 cur_rx = &sc->vge_ldata.vge_rx_list[i]; in vge_rxeof()
999 total_len = VGE_RXBYTES(cur_rx); in vge_rxeof()
1000 rxstat = letoh32(cur_rx->vge_sts); in vge_rxeof()
1001 rxctl = letoh32(cur_rx->vge_ctl); in vge_rxeof()
Dif_se.c904 struct se_desc *cur_rx; in se_rxeof() local
911 cur_rx = &ld->se_rx_ring[i]; in se_rxeof()
912 rxinfo = letoh32(cur_rx->se_cmdsts); in se_rxeof()
915 rxstat = letoh32(cur_rx->se_sts_size); in se_rxeof()
Dif_sk.c1580 struct sk_chain *cur_rx; in sk_rxeof() local
1594 cur_rx = &sc_if->sk_cdata.sk_rx_chain[cur]; in sk_rxeof()
1595 if (cur_rx->sk_mbuf == NULL) in sk_rxeof()
1609 m = cur_rx->sk_mbuf; in sk_rxeof()
1610 cur_rx->sk_mbuf = NULL; in sk_rxeof()
/openbsd/src/sys/dev/ic/
Drtl81x9.c565 u_int16_t cur_rx; in rl_rxeof() local
569 cur_rx = (CSR_READ_2(sc, RL_CURRXADDR) + 16) % RL_RXBUFLEN; in rl_rxeof()
574 if (limit < cur_rx) in rl_rxeof()
575 max_bytes = (RL_RXBUFLEN - cur_rx) + limit; in rl_rxeof()
577 max_bytes = limit - cur_rx; in rl_rxeof()
582 rxbufpos = sc->rl_cdata.rl_rx_buf + cur_rx; in rl_rxeof()
637 ((cur_rx + sizeof(u_int32_t)) % RL_RXBUFLEN); in rl_rxeof()
654 cur_rx = (total_len - wrap + ETHER_CRC_LEN); in rl_rxeof()
657 cur_rx += total_len + 4 + ETHER_CRC_LEN; in rl_rxeof()
663 cur_rx = (cur_rx + 3) & ~3; in rl_rxeof()
[all …]
Dti.c1526 struct ti_rx_desc *cur_rx; in ti_rxeof() local
1531 cur_rx = in ti_rxeof()
1533 rxidx = cur_rx->ti_idx; in ti_rxeof()
1536 if (cur_rx->ti_flags & TI_BDFLAG_JUMBO_RING) { in ti_rxeof()
1542 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) { in ti_rxeof()
1553 } else if (cur_rx->ti_flags & TI_BDFLAG_MINI_RING) { in ti_rxeof()
1559 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) { in ti_rxeof()
1576 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) { in ti_rxeof()
1592 m->m_pkthdr.len = m->m_len = cur_rx->ti_len; in ti_rxeof()
1595 if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) { in ti_rxeof()
[all …]
Dmtd8xx.c871 struct mtd_rx_desc *cur_rx; in mtd_rxeof() local
886 cur_rx = &sc->mtd_ldata->mtd_rx_list[i]; in mtd_rxeof()
887 rxstat = letoh32(cur_rx->rd_rsr); in mtd_rxeof()
954 struct mtd_rx_desc *cur_rx; in mtd_rx_resync() local
964 cur_rx = &sc->mtd_ldata->mtd_rx_list[pos]; in mtd_rx_resync()
965 if (!(cur_rx->rd_rsr & htole32(RSR_OWN))) in mtd_rx_resync()
Dxl.c1129 struct xl_chain_onefrag *cur_rx; in xl_rxeof() local
1139 cur_rx = sc->xl_cdata.xl_rx_cons; in xl_rxeof()
1141 ((caddr_t)cur_rx->xl_ptr - sc->sc_listkva), in xl_rxeof()
1146 m = cur_rx->xl_mbuf; in xl_rxeof()
1147 cur_rx->xl_mbuf = NULL; in xl_rxeof()
1148 sc->xl_cdata.xl_rx_cons = cur_rx->xl_next; in xl_rxeof()
1169 cur_rx->xl_ptr->xl_status = htole32(0); in xl_rxeof()
1183 cur_rx->xl_ptr->xl_status = htole32(0); in xl_rxeof()
Ddc.c1977 struct dc_desc *cur_rx; in dc_pnic_rx_bug_war() local
1985 cur_rx = &sc->dc_ldata->dc_rx_list[idx]; in dc_pnic_rx_bug_war()
2026 cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG); in dc_pnic_rx_bug_war()
2080 struct dc_desc *cur_rx; in dc_rxeof() local
2096 cur_rx = &sc->dc_ldata->dc_rx_list[i]; in dc_rxeof()
2097 rxstat = letoh32(cur_rx->dc_status); in dc_rxeof()
2117 rxstat = letoh32(cur_rx->dc_status); in dc_rxeof()
Dre.c1283 struct rl_desc *cur_rx; in re_rxeof() local
1292 cur_rx = &sc->rl_ldata.rl_rx_list[i]; in re_rxeof()
1295 rxstat = letoh32(cur_rx->rl_cmdstat); in re_rxeof()
1296 rxvlan = letoh32(cur_rx->rl_vlanctl); in re_rxeof()
Drtl81x9reg.h577 u_int16_t cur_rx; member