Lines Matching refs:rd

1526 	struct rx_desc *rd = &(vptr->rx.ring[idx]);  in velocity_alloc_rx_buf()  local
1546 *((u32 *) & (rd->rdesc0)) = 0; in velocity_alloc_rx_buf()
1547 rd->size = cpu_to_le16(vptr->rx.buf_sz) | RX_INTEN; in velocity_alloc_rx_buf()
1548 rd->pa_low = cpu_to_le32(rd_info->skb_dma); in velocity_alloc_rx_buf()
1549 rd->pa_high = 0; in velocity_alloc_rx_buf()
1559 struct rx_desc *rd = vptr->rx.ring + dirty; in velocity_rx_refill() local
1562 if (rd->rdesc0.len & OWNED_BY_NIC) in velocity_rx_refill()
1597 struct rx_desc *rd = vptr->rx.ring + i; in velocity_free_rd_ring() local
1599 memset(rd, 0, sizeof(*rd)); in velocity_free_rd_ring()
1969 static inline void velocity_rx_csum(struct rx_desc *rd, struct sk_buff *skb) in velocity_rx_csum() argument
1973 if (rd->rdesc1.CSM & CSM_IPKT) { in velocity_rx_csum()
1974 if (rd->rdesc1.CSM & CSM_IPOK) { in velocity_rx_csum()
1975 if ((rd->rdesc1.CSM & CSM_TCPKT) || in velocity_rx_csum()
1976 (rd->rdesc1.CSM & CSM_UDPKT)) { in velocity_rx_csum()
1977 if (!(rd->rdesc1.CSM & CSM_TUPOK)) in velocity_rx_csum()
2046 struct rx_desc *rd = &(vptr->rx.ring[idx]); in velocity_receive_frame() local
2047 int pkt_len = le16_to_cpu(rd->rdesc0.len) & 0x3fff; in velocity_receive_frame()
2050 if (unlikely(rd->rdesc0.RSR & (RSR_STP | RSR_EDP | RSR_RL))) { in velocity_receive_frame()
2051 if (rd->rdesc0.RSR & (RSR_STP | RSR_EDP)) in velocity_receive_frame()
2057 if (rd->rdesc0.RSR & RSR_MAR) in velocity_receive_frame()
2065 velocity_rx_csum(rd, skb); in velocity_receive_frame()
2080 if (rd->rdesc0.RSR & RSR_DETAG) { in velocity_receive_frame()
2081 u16 vid = swab16(le16_to_cpu(rd->rdesc1.PQTAG)); in velocity_receive_frame()
2108 struct rx_desc *rd = vptr->rx.ring + rd_curr; in velocity_rx_srv() local
2113 if (rd->rdesc0.len & OWNED_BY_NIC) in velocity_rx_srv()
2121 if (rd->rdesc0.RSR & (RSR_RXOK | RSR_CE | RSR_RL)) { in velocity_rx_srv()
2125 if (rd->rdesc0.RSR & RSR_CRC) in velocity_rx_srv()
2127 if (rd->rdesc0.RSR & RSR_FAE) in velocity_rx_srv()
2133 rd->size |= RX_INTEN; in velocity_rx_srv()