Home
last modified time | relevance | path

Searched refs:rrd (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/qualcomm/emac/
Demac-mac.h52 #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) argument
54 #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) argument
56 #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) argument
58 #define RRD_PKT_SIZE(rrd) BITS_GET((rrd)->word[3], 0, 13) argument
60 #define RRD_L4F(rrd) BITS_GET((rrd)->word[3], 14, 14) argument
62 #define RRD_CVTAG(rrd) BITS_GET((rrd)->word[3], 16, 16) argument
66 #define RRD_UPDT(rrd) BITS_GET((rrd)->word[3], 31, 31) argument
67 #define RRD_UPDT_SET(rrd, val) BITS_SET((rrd)->word[3], 31, 31, val) argument
69 #define RRD_TS_LOW(rrd) BITS_GET((rrd)->word[4], 0, 29) argument
71 #define RRD_TS_HI(rrd) le32_to_cpu((rrd)->word[5]) argument
[all …]
Demac-mac.c234 #define EMAC_RRD(RXQ, SIZE, IDX) ((RXQ)->rrd.v_addr + (SIZE * (IDX)))
320 writel(lower_32_bits(adpt->rx_q.rrd.dma_addr), in emac_mac_dma_rings_config()
325 writel(adpt->rx_q.rrd.count & RRD_RING_SIZE_BMSK, in emac_mac_dma_rings_config()
650 memset(rx_q->rrd.v_addr, 0, rx_q->rrd.size); in emac_rx_q_free_descs()
651 rx_q->rrd.produce_idx = 0; in emac_rx_q_free_descs()
652 rx_q->rrd.consume_idx = 0; in emac_rx_q_free_descs()
710 rx_q->rrd.v_addr = NULL; in emac_rx_q_bufs_free()
711 rx_q->rrd.dma_addr = 0; in emac_rx_q_bufs_free()
712 rx_q->rrd.size = 0; in emac_rx_q_bufs_free()
728 rx_q->rrd.size = rx_q->rrd.count * (adpt->rrd_size * 4); in emac_rx_descs_alloc()
[all …]
/drivers/net/ethernet/atheros/atlx/
Datl1.c1759 struct rx_return_desc *rrd, u16 offset) in atl1_clean_alloc_flag() argument
1763 while (rfd_ring->next_to_clean != (rrd->buf_indx + offset)) { in atl1_clean_alloc_flag()
1772 struct rx_return_desc *rrd) in atl1_update_rfd_index() argument
1776 num_buf = (rrd->xsz.xsum_sz.pkt_size + adapter->rx_buffer_len - 1) / in atl1_update_rfd_index()
1778 if (rrd->num_buf == num_buf) in atl1_update_rfd_index()
1780 atl1_clean_alloc_flag(adapter, rrd, num_buf); in atl1_update_rfd_index()
1784 struct rx_return_desc *rrd, struct sk_buff *skb) in atl1_rx_checksum() argument
1801 if (unlikely(rrd->pkt_flg & PACKET_FLAG_ERR)) { in atl1_rx_checksum()
1802 if (rrd->err_flg & (ERR_FLAG_CRC | ERR_FLAG_TRUNC | in atl1_rx_checksum()
1813 if (!(rrd->pkt_flg & PACKET_FLAG_IPV4)) in atl1_rx_checksum()
[all …]
/drivers/net/ethernet/atheros/alx/
Dmain.c220 struct alx_rrd *rrd; in alx_clean_rx_irq() local
229 rrd = &rxq->rrd[rxq->rrd_read_idx]; in alx_clean_rx_irq()
230 if (!(rrd->word3 & cpu_to_le32(1 << RRD_UPDATED_SHIFT))) in alx_clean_rx_irq()
232 rrd->word3 &= ~cpu_to_le32(1 << RRD_UPDATED_SHIFT); in alx_clean_rx_irq()
234 if (ALX_GET_FIELD(le32_to_cpu(rrd->word0), in alx_clean_rx_irq()
236 ALX_GET_FIELD(le32_to_cpu(rrd->word0), in alx_clean_rx_irq()
251 if (rrd->word3 & cpu_to_le32(1 << RRD_ERR_RES_SHIFT) || in alx_clean_rx_irq()
252 rrd->word3 & cpu_to_le32(1 << RRD_ERR_LEN_SHIFT)) { in alx_clean_rx_irq()
253 rrd->word3 = 0; in alx_clean_rx_irq()
258 length = ALX_GET_FIELD(le32_to_cpu(rrd->word3), in alx_clean_rx_irq()
[all …]
Dalx.h57 struct alx_rrd *rrd; member
/drivers/infiniband/hw/hfi1/
Dchip.c14318 struct rsm_rule_data *rrd) in add_rsm_rule() argument
14321 (u64)rrd->offset << RCV_RSM_CFG_OFFSET_SHIFT | in add_rsm_rule()
14323 (u64)rrd->pkt_type << RCV_RSM_CFG_PACKET_TYPE_SHIFT); in add_rsm_rule()
14325 (u64)rrd->field1_off << RCV_RSM_SELECT_FIELD1_OFFSET_SHIFT | in add_rsm_rule()
14326 (u64)rrd->field2_off << RCV_RSM_SELECT_FIELD2_OFFSET_SHIFT | in add_rsm_rule()
14327 (u64)rrd->index1_off << RCV_RSM_SELECT_INDEX1_OFFSET_SHIFT | in add_rsm_rule()
14328 (u64)rrd->index1_width << RCV_RSM_SELECT_INDEX1_WIDTH_SHIFT | in add_rsm_rule()
14329 (u64)rrd->index2_off << RCV_RSM_SELECT_INDEX2_OFFSET_SHIFT | in add_rsm_rule()
14330 (u64)rrd->index2_width << RCV_RSM_SELECT_INDEX2_WIDTH_SHIFT); in add_rsm_rule()
14332 (u64)rrd->mask1 << RCV_RSM_MATCH_MASK1_SHIFT | in add_rsm_rule()
[all …]