rrd 14163 drivers/infiniband/hw/hfi1/chip.c struct rsm_rule_data *rrd) rrd 14166 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->offset << RCV_RSM_CFG_OFFSET_SHIFT | rrd 14168 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->pkt_type << RCV_RSM_CFG_PACKET_TYPE_SHIFT); rrd 14170 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->field1_off << RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT | rrd 14171 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->field2_off << RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT | rrd 14172 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->index1_off << RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT | rrd 14173 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->index1_width << RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT | rrd 14174 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->index2_off << RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT | rrd 14175 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->index2_width << RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT); rrd 14177 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->mask1 << RCV_RSM_MATCH_MASK1_SHIFT | rrd 14178 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->value1 << RCV_RSM_MATCH_VALUE1_SHIFT | rrd 14179 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->mask2 << RCV_RSM_MATCH_MASK2_SHIFT | rrd 14180 drivers/infiniband/hw/hfi1/chip.c (u64)rrd->value2 << RCV_RSM_MATCH_VALUE2_SHIFT); rrd 14253 drivers/infiniband/hw/hfi1/chip.c struct rsm_rule_data rrd; rrd 14294 drivers/infiniband/hw/hfi1/chip.c rrd.offset = rmt->used; rrd 14295 drivers/infiniband/hw/hfi1/chip.c rrd.pkt_type = 2; rrd 14296 drivers/infiniband/hw/hfi1/chip.c rrd.field1_off = LRH_BTH_MATCH_OFFSET; rrd 14297 drivers/infiniband/hw/hfi1/chip.c rrd.field2_off = LRH_SC_MATCH_OFFSET; rrd 14298 drivers/infiniband/hw/hfi1/chip.c rrd.index1_off = LRH_SC_SELECT_OFFSET; rrd 14299 drivers/infiniband/hw/hfi1/chip.c rrd.index1_width = n; rrd 14300 drivers/infiniband/hw/hfi1/chip.c rrd.index2_off = QPN_SELECT_OFFSET; rrd 14301 drivers/infiniband/hw/hfi1/chip.c rrd.index2_width = m + n; rrd 14302 drivers/infiniband/hw/hfi1/chip.c rrd.mask1 = LRH_BTH_MASK; rrd 14303 drivers/infiniband/hw/hfi1/chip.c rrd.value1 = LRH_BTH_VALUE; rrd 14304 drivers/infiniband/hw/hfi1/chip.c rrd.mask2 = LRH_SC_MASK; rrd 14305 drivers/infiniband/hw/hfi1/chip.c rrd.value2 = LRH_SC_VALUE; rrd 14308 drivers/infiniband/hw/hfi1/chip.c add_rsm_rule(dd, RSM_INS_VERBS, &rrd); rrd 14324 drivers/infiniband/hw/hfi1/chip.c struct rsm_rule_data rrd; rrd 14376 drivers/infiniband/hw/hfi1/chip.c rrd.offset = offset; rrd 14377 drivers/infiniband/hw/hfi1/chip.c rrd.pkt_type = 0; rrd 14378 drivers/infiniband/hw/hfi1/chip.c rrd.field1_off = 95; rrd 14379 drivers/infiniband/hw/hfi1/chip.c rrd.field2_off = 133; rrd 14380 drivers/infiniband/hw/hfi1/chip.c rrd.index1_off = 64; rrd 14381 drivers/infiniband/hw/hfi1/chip.c rrd.index1_width = 8; rrd 14382 drivers/infiniband/hw/hfi1/chip.c rrd.index2_off = 0; rrd 14383 drivers/infiniband/hw/hfi1/chip.c rrd.index2_width = 0; rrd 14384 drivers/infiniband/hw/hfi1/chip.c rrd.mask1 = 1; rrd 14385 drivers/infiniband/hw/hfi1/chip.c rrd.value1 = 1; rrd 14386 drivers/infiniband/hw/hfi1/chip.c rrd.mask2 = 1; rrd 14387 drivers/infiniband/hw/hfi1/chip.c rrd.value2 = 1; rrd 14390 drivers/infiniband/hw/hfi1/chip.c add_rsm_rule(dd, RSM_INS_FECN, &rrd); rrd 14402 drivers/infiniband/hw/hfi1/chip.c struct rsm_rule_data rrd; rrd 14438 drivers/infiniband/hw/hfi1/chip.c rrd.offset = dd->vnic.rmt_start; rrd 14439 drivers/infiniband/hw/hfi1/chip.c rrd.pkt_type = 4; rrd 14441 drivers/infiniband/hw/hfi1/chip.c rrd.field1_off = L2_TYPE_MATCH_OFFSET; rrd 14442 drivers/infiniband/hw/hfi1/chip.c rrd.mask1 = L2_TYPE_MASK; rrd 14443 drivers/infiniband/hw/hfi1/chip.c rrd.value1 = L2_16B_VALUE; rrd 14445 drivers/infiniband/hw/hfi1/chip.c rrd.field2_off = L4_TYPE_MATCH_OFFSET; rrd 14446 drivers/infiniband/hw/hfi1/chip.c rrd.mask2 = L4_16B_TYPE_MASK; rrd 14447 drivers/infiniband/hw/hfi1/chip.c rrd.value2 = L4_16B_ETH_VALUE; rrd 14449 drivers/infiniband/hw/hfi1/chip.c rrd.index1_off = L4_16B_HDR_VESWID_OFFSET; rrd 14450 drivers/infiniband/hw/hfi1/chip.c rrd.index1_width = ilog2(NUM_VNIC_MAP_ENTRIES); rrd 14451 drivers/infiniband/hw/hfi1/chip.c rrd.index2_off = L2_16B_ENTROPY_OFFSET; rrd 14452 drivers/infiniband/hw/hfi1/chip.c rrd.index2_width = ilog2(NUM_VNIC_MAP_ENTRIES); rrd 14453 drivers/infiniband/hw/hfi1/chip.c add_rsm_rule(dd, RSM_INS_VNIC, &rrd); rrd 57 drivers/net/ethernet/atheros/alx/alx.h struct alx_rrd *rrd; rrd 220 drivers/net/ethernet/atheros/alx/main.c struct alx_rrd *rrd; rrd 229 drivers/net/ethernet/atheros/alx/main.c rrd = &rxq->rrd[rxq->rrd_read_idx]; rrd 230 drivers/net/ethernet/atheros/alx/main.c if (!(rrd->word3 & cpu_to_le32(1 << RRD_UPDATED_SHIFT))) rrd 232 drivers/net/ethernet/atheros/alx/main.c rrd->word3 &= ~cpu_to_le32(1 << RRD_UPDATED_SHIFT); rrd 234 drivers/net/ethernet/atheros/alx/main.c if (ALX_GET_FIELD(le32_to_cpu(rrd->word0), rrd 236 drivers/net/ethernet/atheros/alx/main.c ALX_GET_FIELD(le32_to_cpu(rrd->word0), rrd 251 drivers/net/ethernet/atheros/alx/main.c if (rrd->word3 & cpu_to_le32(1 << RRD_ERR_RES_SHIFT) || rrd 252 drivers/net/ethernet/atheros/alx/main.c rrd->word3 & cpu_to_le32(1 << RRD_ERR_LEN_SHIFT)) { rrd 253 drivers/net/ethernet/atheros/alx/main.c rrd->word3 = 0; rrd 258 drivers/net/ethernet/atheros/alx/main.c length = ALX_GET_FIELD(le32_to_cpu(rrd->word3), rrd 265 drivers/net/ethernet/atheros/alx/main.c !(rrd->word3 & (cpu_to_le32(1 << RRD_ERR_L4_SHIFT) | rrd 267 drivers/net/ethernet/atheros/alx/main.c switch (ALX_GET_FIELD(le32_to_cpu(rrd->word2), rrd 638 drivers/net/ethernet/atheros/alx/main.c rxq->rrd = alx->descmem.virt + offset; rrd 1761 drivers/net/ethernet/atheros/atlx/atl1.c struct rx_return_desc *rrd, u16 offset) rrd 1765 drivers/net/ethernet/atheros/atlx/atl1.c while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { rrd 1774 drivers/net/ethernet/atheros/atlx/atl1.c struct rx_return_desc *rrd) rrd 1778 drivers/net/ethernet/atheros/atlx/atl1.c num_buf = (rrd->xsz.xsum_sz.pkt_size + adapter->rx_buffer_len - 1) / rrd 1780 drivers/net/ethernet/atheros/atlx/atl1.c if (rrd->num_buf == num_buf) rrd 1782 drivers/net/ethernet/atheros/atlx/atl1.c atl1_clean_alloc_flag(adapter, rrd, num_buf); rrd 1786 drivers/net/ethernet/atheros/atlx/atl1.c struct rx_return_desc *rrd, struct sk_buff *skb) rrd 1803 drivers/net/ethernet/atheros/atlx/atl1.c if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { rrd 1804 drivers/net/ethernet/atheros/atlx/atl1.c if (rrd->err_flg & (ERR_FLAG_CRC | ERR_FLAG_TRUNC | rrd 1815 drivers/net/ethernet/atheros/atlx/atl1.c if (!(rrd->pkt_flg & PACKET_FLAG_IPV4)) rrd 1820 drivers/net/ethernet/atheros/atlx/atl1.c if (likely(!(rrd->err_flg & rrd 1910 drivers/net/ethernet/atheros/atlx/atl1.c struct rx_return_desc *rrd; rrd 1918 drivers/net/ethernet/atheros/atlx/atl1.c rrd = ATL1_RRD_DESC(rrd_ring, rrd_next_to_clean); rrd 1920 drivers/net/ethernet/atheros/atlx/atl1.c if (likely(rrd->xsz.valid)) { /* packet valid */ rrd 1923 drivers/net/ethernet/atheros/atlx/atl1.c if (likely(rrd->num_buf == 1)) rrd 1933 drivers/net/ethernet/atheros/atlx/atl1.c rrd->num_buf); rrd 1936 drivers/net/ethernet/atheros/atlx/atl1.c rrd->xsz.xsum_sz.pkt_size); rrd 1939 drivers/net/ethernet/atheros/atlx/atl1.c rrd->pkt_flg); rrd 1942 drivers/net/ethernet/atheros/atlx/atl1.c rrd->err_flg); rrd 1945 drivers/net/ethernet/atheros/atlx/atl1.c rrd->vlan_tag); rrd 1959 drivers/net/ethernet/atheros/atlx/atl1.c if (rrd->num_buf > 1) rrd 1960 drivers/net/ethernet/atheros/atlx/atl1.c atl1_update_rfd_index(adapter, rrd); rrd 1963 drivers/net/ethernet/atheros/atlx/atl1.c rrd->xsz.valid = 0; rrd 1974 drivers/net/ethernet/atheros/atlx/atl1.c atl1_clean_alloc_flag(adapter, rrd, 0); rrd 1976 drivers/net/ethernet/atheros/atlx/atl1.c buffer_info = &rfd_ring->buffer_info[rrd->buf_indx]; rrd 1985 drivers/net/ethernet/atheros/atlx/atl1.c if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { rrd 1986 drivers/net/ethernet/atheros/atlx/atl1.c if (!(rrd->err_flg & rrd 1991 drivers/net/ethernet/atheros/atlx/atl1.c rrd->xsz.valid = 0; rrd 2001 drivers/net/ethernet/atheros/atlx/atl1.c length = le16_to_cpu(rrd->xsz.xsum_sz.pkt_size); rrd 2006 drivers/net/ethernet/atheros/atlx/atl1.c atl1_rx_checksum(adapter, rrd, skb); rrd 2009 drivers/net/ethernet/atheros/atlx/atl1.c if (rrd->pkt_flg & PACKET_FLAG_VLAN_INS) { rrd 2010 drivers/net/ethernet/atheros/atlx/atl1.c u16 vlan_tag = (rrd->vlan_tag >> 4) | rrd 2011 drivers/net/ethernet/atheros/atlx/atl1.c ((rrd->vlan_tag & 7) << 13) | rrd 2012 drivers/net/ethernet/atheros/atlx/atl1.c ((rrd->vlan_tag & 8) << 9); rrd 2021 drivers/net/ethernet/atheros/atlx/atl1.c rrd->xsz.valid = 0; rrd 234 drivers/net/ethernet/qualcomm/emac/emac-mac.c #define EMAC_RRD(RXQ, SIZE, IDX) ((RXQ)->rrd.v_addr + (SIZE * (IDX))) rrd 320 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(lower_32_bits(adpt->rx_q.rrd.dma_addr), rrd 325 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(adpt->rx_q.rrd.count & RRD_RING_SIZE_BMSK, rrd 650 drivers/net/ethernet/qualcomm/emac/emac-mac.c memset(rx_q->rrd.v_addr, 0, rx_q->rrd.size); rrd 651 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.produce_idx = 0; rrd 652 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.consume_idx = 0; rrd 710 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.v_addr = NULL; rrd 711 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.dma_addr = 0; rrd 712 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.size = 0; rrd 728 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.size = rx_q->rrd.count * (adpt->rrd_size * 4); rrd 731 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.dma_addr = ring_header->dma_addr + ring_header->used; rrd 732 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.v_addr = ring_header->v_addr + ring_header->used; rrd 733 drivers/net/ethernet/qualcomm/emac/emac-mac.c ring_header->used += ALIGN(rx_q->rrd.size, 8); rrd 739 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.produce_idx = 0; rrd 740 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.consume_idx = 0; rrd 759 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->rx_q.rrd.count = adpt->rx_desc_cnt; rrd 836 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->rx_q.rrd.produce_idx = 0; rrd 837 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->rx_q.rrd.consume_idx = 0; rrd 992 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_rrd *rrd) rrd 994 drivers/net/ethernet/qualcomm/emac/emac-mac.c u32 *hw_rrd = EMAC_RRD(rx_q, adpt->rrd_size, rx_q->rrd.consume_idx); rrd 996 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[3] = *(hw_rrd + 3); rrd 998 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (!RRD_UPDT(rrd)) rrd 1001 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[4] = 0; rrd 1002 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[5] = 0; rrd 1004 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[0] = *(hw_rrd++); rrd 1005 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[1] = *(hw_rrd++); rrd 1006 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd->word[2] = *(hw_rrd++); rrd 1008 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (unlikely(RRD_NOR(rrd) != 1)) { rrd 1011 drivers/net/ethernet/qualcomm/emac/emac-mac.c RRD_NOR(rrd)); rrd 1015 drivers/net/ethernet/qualcomm/emac/emac-mac.c RRD_UPDT_SET(rrd, 0); rrd 1016 drivers/net/ethernet/qualcomm/emac/emac-mac.c *hw_rrd = rrd->word[3]; rrd 1018 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (++rx_q->rrd.consume_idx == rx_q->rrd.count) rrd 1019 drivers/net/ethernet/qualcomm/emac/emac-mac.c rx_q->rrd.consume_idx = 0; rrd 1055 drivers/net/ethernet/qualcomm/emac/emac-mac.c static void emac_rx_rfd_clean(struct emac_rx_queue *rx_q, struct emac_rrd *rrd) rrd 1058 drivers/net/ethernet/qualcomm/emac/emac-mac.c u32 consume_idx = RRD_SI(rrd); rrd 1061 drivers/net/ethernet/qualcomm/emac/emac-mac.c for (i = 0; i < RRD_NOR(rrd); i++) { rrd 1094 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_rrd rrd; rrd 1101 drivers/net/ethernet/qualcomm/emac/emac-mac.c num_consume_pkts = (hw_consume_idx >= rx_q->rrd.consume_idx) ? rrd 1102 drivers/net/ethernet/qualcomm/emac/emac-mac.c (hw_consume_idx - rx_q->rrd.consume_idx) : rrd 1103 drivers/net/ethernet/qualcomm/emac/emac-mac.c (hw_consume_idx + rx_q->rrd.count - rx_q->rrd.consume_idx); rrd 1109 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (!emac_rx_process_rrd(adpt, rx_q, &rrd)) rrd 1112 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (likely(RRD_NOR(&rrd) == 1)) { rrd 1114 drivers/net/ethernet/qualcomm/emac/emac-mac.c rfbuf = GET_RFD_BUFFER(rx_q, RRD_SI(&rrd)); rrd 1125 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_rx_rfd_clean(rx_q, &rrd); rrd 1133 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (rrd.word[EMAC_RRD_STATS_DW_IDX] & EMAC_RRD_ERROR) { rrd 1136 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd.word[0], rrd.word[1], rrd 1137 drivers/net/ethernet/qualcomm/emac/emac-mac.c rrd.word[2], rrd.word[3]); rrd 1143 drivers/net/ethernet/qualcomm/emac/emac-mac.c skb_put(skb, RRD_PKT_SIZE(&rrd) - ETH_FCS_LEN); rrd 1147 drivers/net/ethernet/qualcomm/emac/emac-mac.c skb->ip_summed = RRD_L4F(&rrd) ? rrd 1152 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_receive_skb(rx_q, skb, (u16)RRD_CVALN_TAG(&rrd), rrd 1153 drivers/net/ethernet/qualcomm/emac/emac-mac.c (bool)RRD_CVTAG(&rrd)); rrd 52 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) rrd 54 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) rrd 56 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) rrd 58 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_PKT_SIZE(rrd) BITS_GET((rrd)->word[3], 0, 13) rrd 60 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_L4F(rrd) BITS_GET((rrd)->word[3], 14, 14) rrd 62 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_CVTAG(rrd) BITS_GET((rrd)->word[3], 16, 16) rrd 66 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_UPDT(rrd) BITS_GET((rrd)->word[3], 31, 31) rrd 67 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_UPDT_SET(rrd, val) BITS_SET((rrd)->word[3], 31, 31, val) rrd 69 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_TS_LOW(rrd) BITS_GET((rrd)->word[4], 0, 29) rrd 71 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define RRD_TS_HI(rrd) le32_to_cpu((rrd)->word[5]) rrd 174 drivers/net/ethernet/qualcomm/emac/emac-mac.h struct emac_rrd_ring rrd;