Lines Matching refs:rxbd
944 union enetc_rx_bd *rxbd; in enetc_refill_rx_ring() local
949 rxbd = enetc_rxbd(rx_ring, i); in enetc_refill_rx_ring()
961 rxbd->w.addr = cpu_to_le64(rx_swbd->dma + in enetc_refill_rx_ring()
964 rxbd->r.lstatus = 0; in enetc_refill_rx_ring()
966 enetc_rxbd_next(rx_ring, &rxbd, &i); in enetc_refill_rx_ring()
982 union enetc_rx_bd *rxbd, in enetc_get_rx_tstamp() argument
991 if (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_TSTMP) { in enetc_get_rx_tstamp()
994 rxbd = enetc_rxbd_ext(rxbd); in enetc_get_rx_tstamp()
995 tstamp_lo = le32_to_cpu(rxbd->ext.tstamp); in enetc_get_rx_tstamp()
1006 union enetc_rx_bd *rxbd, struct sk_buff *skb) in enetc_get_offloads() argument
1012 u16 inet_csum = le16_to_cpu(rxbd->r.inet_csum); in enetc_get_offloads()
1018 if (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_VLAN) { in enetc_get_offloads()
1021 switch (le16_to_cpu(rxbd->r.flags) & ENETC_RXBD_FLAG_TPID) { in enetc_get_offloads()
1040 __vlan_hwaccel_put_tag(skb, tpid, le16_to_cpu(rxbd->r.vlan_opt)); in enetc_get_offloads()
1045 enetc_get_rx_tstamp(rx_ring->ndev, rxbd, skb); in enetc_get_offloads()
1129 union enetc_rx_bd **rxbd, int *i) in enetc_check_bd_errors_and_consume() argument
1135 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_check_bd_errors_and_consume()
1139 bd_status = le32_to_cpu((*rxbd)->r.lstatus); in enetc_check_bd_errors_and_consume()
1142 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_check_bd_errors_and_consume()
1152 u32 bd_status, union enetc_rx_bd **rxbd, in enetc_build_skb() argument
1158 size = le16_to_cpu((*rxbd)->r.buf_len); in enetc_build_skb()
1163 enetc_get_offloads(rx_ring, *rxbd, skb); in enetc_build_skb()
1167 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_build_skb()
1171 bd_status = le32_to_cpu((*rxbd)->r.lstatus); in enetc_build_skb()
1176 size = le16_to_cpu((*rxbd)->r.buf_len); in enetc_build_skb()
1183 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_build_skb()
1205 union enetc_rx_bd *rxbd; in enetc_clean_rx_ring() local
1213 rxbd = enetc_rxbd(rx_ring, i); in enetc_clean_rx_ring()
1214 bd_status = le32_to_cpu(rxbd->r.lstatus); in enetc_clean_rx_ring()
1222 &rxbd, &i)) in enetc_clean_rx_ring()
1225 skb = enetc_build_skb(rx_ring, bd_status, &rxbd, &i, in enetc_clean_rx_ring()
1462 union enetc_rx_bd **rxbd, int *i, in enetc_build_xdp_buff() argument
1465 u16 size = le16_to_cpu((*rxbd)->r.buf_len); in enetc_build_xdp_buff()
1471 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_build_xdp_buff()
1475 bd_status = le32_to_cpu((*rxbd)->r.lstatus); in enetc_build_xdp_buff()
1480 size = le16_to_cpu((*rxbd)->r.buf_len); in enetc_build_xdp_buff()
1485 enetc_rxbd_next(rx_ring, rxbd, i); in enetc_build_xdp_buff()
1547 union enetc_rx_bd *rxbd, *orig_rxbd; in enetc_clean_rx_ring_xdp() local
1554 rxbd = enetc_rxbd(rx_ring, i); in enetc_clean_rx_ring_xdp()
1555 bd_status = le32_to_cpu(rxbd->r.lstatus); in enetc_clean_rx_ring_xdp()
1563 &rxbd, &i)) in enetc_clean_rx_ring_xdp()
1566 orig_rxbd = rxbd; in enetc_clean_rx_ring_xdp()
1570 enetc_build_xdp_buff(rx_ring, bd_status, &rxbd, &i, in enetc_clean_rx_ring_xdp()
1595 rxbd = orig_rxbd; in enetc_clean_rx_ring_xdp()
1599 skb = enetc_build_skb(rx_ring, bd_status, &rxbd, in enetc_clean_rx_ring_xdp()