Home
last modified time | relevance | path

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

/freebsd/sys/dev/ste/
H A Dif_ste.c593 struct ste_chain_onefrag *cur_rx; in ste_rxeof() local
603 cur_rx = sc->ste_cdata.ste_rx_head; in ste_rxeof()
605 cur_rx = cur_rx->ste_next) { in ste_rxeof()
606 rxstat = le32toh(cur_rx->ste_ptr->ste_status); in ste_rxeof()
626 cur_rx->ste_ptr->ste_status = 0; in ste_rxeof()
631 m = cur_rx->ste_mbuf; in ste_rxeof()
641 if (ste_newbuf(sc, cur_rx) != 0) { in ste_rxeof()
643 cur_rx->ste_ptr->ste_status = 0; in ste_rxeof()
657 sc->ste_cdata.ste_rx_head = cur_rx; in ste_rxeof()
1613 struct ste_chain_onefrag *cur_rx; in ste_stop() local
[all …]
/freebsd/sys/dev/rl/
H A Dif_rl.c1115 uint16_t cur_rx; in rl_rxeof() local
1124 cur_rx = (CSR_READ_2(sc, RL_CURRXADDR) + 16) % RL_RXBUFLEN; in rl_rxeof()
1129 if (limit < cur_rx) in rl_rxeof()
1130 max_bytes = (RL_RXBUFLEN - cur_rx) + limit; in rl_rxeof()
1132 max_bytes = limit - cur_rx; in rl_rxeof()
1142 rxbufpos = sc->rl_cdata.rl_rx_buf + cur_rx; in rl_rxeof()
1186 ((cur_rx + sizeof(uint32_t)) % RL_RXBUFLEN); in rl_rxeof()
1197 cur_rx = (total_len - wrap + ETHER_CRC_LEN); in rl_rxeof()
1201 cur_rx += total_len + 4 + ETHER_CRC_LEN; in rl_rxeof()
1205 cur_rx = (cur_rx + 3) & ~3; in rl_rxeof()
[all …]
H A Dif_rlreg.h587 uint16_t cur_rx; member
/freebsd/sys/dev/my/
H A Dif_my.c1094 struct my_chain_onefrag *cur_rx; in my_rxeof() local
1102 cur_rx = sc->my_cdata.my_rx_head; in my_rxeof()
1103 sc->my_cdata.my_rx_head = cur_rx->my_nextdesc; in my_rxeof()
1107 cur_rx->my_ptr->my_status = MY_OWNByNIC; in my_rxeof()
1115 m = m_devget(mtod(cur_rx->my_mbuf, char *), in my_rxeof()
1117 cur_rx->my_ptr->my_status = MY_OWNByNIC; in my_rxeof()
1123 m = cur_rx->my_mbuf; in my_rxeof()
1131 if (my_newbuf(sc, cur_rx) == ENOBUFS) { in my_rxeof()
1133 cur_rx->my_ptr->my_status = MY_OWNByNIC; in my_rxeof()
/freebsd/sys/dev/lge/
H A Dif_lge.c852 struct lge_rx_desc *cur_rx; in lge_rxeof() local
866 cur_rx = &sc->lge_ldata->lge_rx_list[i]; in lge_rxeof()
867 rxctl = cur_rx->lge_ctl; in lge_rxeof()
868 rxsts = cur_rx->lge_sts; in lge_rxeof()
869 m = cur_rx->lge_mbuf; in lge_rxeof()
870 cur_rx->lge_mbuf = NULL; in lge_rxeof()
871 total_len = LGE_RXBYTES(cur_rx); in lge_rxeof()
/freebsd/sys/dev/ti/
H A Dif_ti.c2761 struct ti_rx_desc *cur_rx; in ti_rxeof() local
2767 cur_rx = in ti_rxeof()
2769 rxidx = cur_rx->ti_idx; in ti_rxeof()
2770 ti_len = cur_rx->ti_len; in ti_rxeof()
2773 if (cur_rx->ti_flags & TI_BDFLAG_VLAN_TAG) { in ti_rxeof()
2775 vlan_tag = cur_rx->ti_vlan_tag; in ti_rxeof()
2778 if (cur_rx->ti_flags & TI_BDFLAG_JUMBO_RING) { in ti_rxeof()
2783 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) { in ti_rxeof()
2800 if (cur_rx->ti_flags & TI_BDFLAG_ERROR) { in ti_rxeof()
2812 ti_hdr_split(m, TI_HOSTADDR(cur_rx->ti_addr), in ti_rxeof()
[all …]
/freebsd/sys/dev/netmap/
H A Dif_re_netmap.h208 struct rl_desc *cur_rx = &sc->rl_ldata.rl_rx_list[nic_i]; in re_netmap_rxsync() local
209 uint32_t rxstat = le32toh(cur_rx->rl_cmdstat); in re_netmap_rxsync()
/freebsd/sys/dev/bge/
H A Dif_bge.c4311 struct bge_rx_bd *cur_rx; in bge_rxeof() local
4325 cur_rx = &sc->bge_ldata.bge_rx_return_ring[rx_cons]; in bge_rxeof()
4327 rxidx = cur_rx->bge_idx; in bge_rxeof()
4331 cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG) { in bge_rxeof()
4333 vlan_tag = cur_rx->bge_vlan_tag; in bge_rxeof()
4336 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) { in bge_rxeof()
4339 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { in bge_rxeof()
4352 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) { in bge_rxeof()
4372 cur_rx->bge_len); in bge_rxeof()
4376 m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN; in bge_rxeof()
[all …]
/freebsd/sys/dev/xl/
H A Dif_xl.c1818 struct xl_chain_onefrag *cur_rx; in xl_rxeof() local
1835 cur_rx = sc->xl_cdata.xl_rx_head; in xl_rxeof()
1836 sc->xl_cdata.xl_rx_head = cur_rx->xl_next; in xl_rxeof()
1857 cur_rx->xl_ptr->xl_status = 0; in xl_rxeof()
1872 cur_rx->xl_ptr->xl_status = 0; in xl_rxeof()
1879 bus_dmamap_sync(sc->xl_mtag, cur_rx->xl_map, in xl_rxeof()
1881 m = cur_rx->xl_mbuf; in xl_rxeof()
1890 if (xl_newbuf(sc, cur_rx)) { in xl_rxeof()
1892 cur_rx->xl_ptr->xl_status = 0; in xl_rxeof()
/freebsd/sys/dev/sk/
H A Dif_sk.c2633 struct sk_rx_desc *cur_rx; in sk_rxeof() local
2649 cur_rx = &sc_if->sk_rdata.sk_rx_ring[cons]; in sk_rxeof()
2650 sk_ctl = le32toh(cur_rx->sk_ctl); in sk_rxeof()
2654 rxstat = le32toh(cur_rx->sk_xmac_rxstat); in sk_rxeof()
2668 csum = le32toh(cur_rx->sk_csum); in sk_rxeof()
2699 struct sk_rx_desc *cur_rx; in sk_jumbo_rxeof() local
2716 cur_rx = &sc_if->sk_rdata.sk_jumbo_rx_ring[cons]; in sk_jumbo_rxeof()
2717 sk_ctl = le32toh(cur_rx->sk_ctl); in sk_jumbo_rxeof()
2721 rxstat = le32toh(cur_rx->sk_xmac_rxstat); in sk_jumbo_rxeof()
2735 csum = le32toh(cur_rx->sk_csum); in sk_jumbo_rxeof()
/freebsd/sys/dev/dc/
H A Dif_dc.c2740 struct dc_desc *cur_rx; in dc_pnic_rx_bug_war() local
2748 cur_rx = &sc->dc_ldata.dc_rx_list[idx]; in dc_pnic_rx_bug_war()
2788 cur_rx->dc_status = htole32(rxstat | DC_RXSTAT_FIRSTFRAG); in dc_pnic_rx_bug_war()
2805 struct dc_desc *cur_rx; in dc_rx_resync() local
2811 cur_rx = &sc->dc_ldata.dc_rx_list[pos]; in dc_rx_resync()
2812 if (!(le32toh(cur_rx->dc_status) & DC_RXSTAT_OWN)) in dc_rx_resync()
2852 struct dc_desc *cur_rx; in dc_rxeof() local
2873 cur_rx = &sc->dc_ldata.dc_rx_list[i]; in dc_rxeof()
2874 rxstat = le32toh(cur_rx->dc_status); in dc_rxeof()
2890 rxstat = le32toh(cur_rx->dc_status); in dc_rxeof()
/freebsd/sys/dev/re/
H A Dif_re.c781 struct rl_desc *cur_rx; in re_diag() local
884 cur_rx = &sc->rl_ldata.rl_rx_list[0]; in re_diag()
885 total_len = RL_RXBYTES(cur_rx); in re_diag()
886 rxstat = le32toh(cur_rx->rl_cmdstat); in re_diag()
2167 struct rl_desc *cur_rx; in re_rxeof() local
2193 cur_rx = &sc->rl_ldata.rl_rx_list[i]; in re_rxeof()
2194 rxstat = le32toh(cur_rx->rl_cmdstat); in re_rxeof()
2198 rxvlan = le32toh(cur_rx->rl_vlanctl); in re_rxeof()
/freebsd/sys/dev/sge/
H A Dif_sge.c1136 struct sge_desc *cur_rx; in sge_rxeof() local
1152 cur_rx = &sc->sge_ldata.sge_rx_ring[cons]; in sge_rxeof()
1153 rxinfo = le32toh(cur_rx->sge_cmdsts); in sge_rxeof()
1156 rxstat = le32toh(cur_rx->sge_sts_size); in sge_rxeof()
/freebsd/sys/dev/vr/
H A Dif_vr.c1289 struct vr_desc *cur_rx; in vr_rxeof() local
1310 cur_rx = &sc->vr_rdata.vr_rx_ring[cons]; in vr_rxeof()
1311 rxstat = le32toh(cur_rx->vr_status); in vr_rxeof()
1312 rxctl = le32toh(cur_rx->vr_ctl); in vr_rxeof()
/freebsd/sys/dev/nge/
H A Dif_nge.c1431 struct nge_desc *cur_rx; in nge_rxeof() local
1456 cur_rx = &sc->nge_rdata.nge_rx_ring[cons]; in nge_rxeof()
1457 cmdsts = le32toh(cur_rx->nge_cmdsts); in nge_rxeof()
1458 extsts = le32toh(cur_rx->nge_extsts); in nge_rxeof()
/freebsd/sys/dev/vge/
H A Dif_vge.c1432 struct vge_rx_desc *cur_rx; in vge_rxeof() local
1447 cur_rx = &sc->vge_rdata.vge_rx_ring[prod]; in vge_rxeof()
1448 rxstat = le32toh(cur_rx->vge_sts); in vge_rxeof()
1453 rxctl = le32toh(cur_rx->vge_ctl); in vge_rxeof()
/freebsd/sys/dev/sis/
H A Dif_sis.c1480 struct sis_desc *cur_rx; in sis_rxeof() local
1501 cur_rx = &sc->sis_rx_list[rx_cons]; in sis_rxeof()
1502 rxstat = le32toh(cur_rx->sis_cmdsts); in sis_rxeof()