Lines Matching defs:cur_rx
4530 struct bge_rx_bd *cur_rx;
4534 cur_rx = &sc->bge_rdata->bge_rx_return_ring[rx_cons];
4536 rxidx = cur_rx->bge_idx;
4539 if (cur_rx->bge_flags & BGE_RXBDFLAG_JUMBO_RING) {
4548 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4571 if (cur_rx->bge_flags & BGE_RXBDFLAG_ERROR) {
4586 cur_rx->bge_len);
4591 m->m_pkthdr.len = m->m_len = cur_rx->bge_len - ETHER_CRC_LEN;
4594 bge_rxcsum(sc, cur_rx, m);
4600 if (cur_rx->bge_flags & BGE_RXBDFLAG_VLAN_TAG)
4601 vlan_set_tag(m, cur_rx->bge_vlan_tag);
4615 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m)
4619 if ((cur_rx->bge_flags & BGE_RXBDFLAG_IPV6) == 0) {
4620 if ((cur_rx->bge_flags & BGE_RXBDFLAG_IP_CSUM) != 0)
4622 if ((cur_rx->bge_error_flag &
4625 if (cur_rx->bge_flags & BGE_RXBDFLAG_TCP_UDP_CSUM) {
4627 cur_rx->bge_tcp_udp_csum;
4633 if ((cur_rx->bge_flags & BGE_RXBDFLAG_IP_CSUM) != 0)
4635 if ((cur_rx->bge_ip_csum ^ 0xffff) != 0)
4642 if (cur_rx->bge_flags & BGE_RXBDFLAG_TCP_UDP_CSUM &&
4646 cur_rx->bge_tcp_udp_csum;