Lines Matching refs:p

22 static inline void ehn_desc_rx_set_on_ring(struct dma_desc *p, int end,  in ehn_desc_rx_set_on_ring()  argument
26 p->des1 |= cpu_to_le32((BUF_SIZE_8KiB in ehn_desc_rx_set_on_ring()
31 p->des1 |= cpu_to_le32(ERDES1_END_RING); in ehn_desc_rx_set_on_ring()
34 static inline void enh_desc_end_tx_desc_on_ring(struct dma_desc *p, int end) in enh_desc_end_tx_desc_on_ring() argument
37 p->des0 |= cpu_to_le32(ETDES0_END_RING); in enh_desc_end_tx_desc_on_ring()
39 p->des0 &= cpu_to_le32(~ETDES0_END_RING); in enh_desc_end_tx_desc_on_ring()
42 static inline void enh_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_ring() argument
45 p->des1 |= cpu_to_le32((((len - BUF_SIZE_4KiB) in enh_set_tx_desc_len_on_ring()
50 p->des1 |= cpu_to_le32((len & ETDES1_BUFFER1_SIZE_MASK)); in enh_set_tx_desc_len_on_ring()
54 static inline void ndesc_rx_set_on_ring(struct dma_desc *p, int end, int bfsize) in ndesc_rx_set_on_ring() argument
60 p->des1 |= cpu_to_le32((bfsize2 << RDES1_BUFFER2_SIZE_SHIFT) in ndesc_rx_set_on_ring()
65 p->des1 |= cpu_to_le32(RDES1_END_RING); in ndesc_rx_set_on_ring()
68 static inline void ndesc_end_tx_desc_on_ring(struct dma_desc *p, int end) in ndesc_end_tx_desc_on_ring() argument
71 p->des1 |= cpu_to_le32(TDES1_END_RING); in ndesc_end_tx_desc_on_ring()
73 p->des1 &= cpu_to_le32(~TDES1_END_RING); in ndesc_end_tx_desc_on_ring()
76 static inline void norm_set_tx_desc_len_on_ring(struct dma_desc *p, int len) in norm_set_tx_desc_len_on_ring() argument
81 p->des1 |= cpu_to_le32((((len - buffer1) in norm_set_tx_desc_len_on_ring()
85 p->des1 |= cpu_to_le32((len & TDES1_BUFFER1_SIZE_MASK)); in norm_set_tx_desc_len_on_ring()
91 static inline void ehn_desc_rx_set_on_chain(struct dma_desc *p) in ehn_desc_rx_set_on_chain() argument
93 p->des1 |= cpu_to_le32(ERDES1_SECOND_ADDRESS_CHAINED); in ehn_desc_rx_set_on_chain()
96 static inline void enh_desc_end_tx_desc_on_chain(struct dma_desc *p) in enh_desc_end_tx_desc_on_chain() argument
98 p->des0 |= cpu_to_le32(ETDES0_SECOND_ADDRESS_CHAINED); in enh_desc_end_tx_desc_on_chain()
101 static inline void enh_set_tx_desc_len_on_chain(struct dma_desc *p, int len) in enh_set_tx_desc_len_on_chain() argument
103 p->des1 |= cpu_to_le32(len & ETDES1_BUFFER1_SIZE_MASK); in enh_set_tx_desc_len_on_chain()
107 static inline void ndesc_rx_set_on_chain(struct dma_desc *p, int end) in ndesc_rx_set_on_chain() argument
109 p->des1 |= cpu_to_le32(RDES1_SECOND_ADDRESS_CHAINED); in ndesc_rx_set_on_chain()
112 static inline void ndesc_tx_set_on_chain(struct dma_desc *p) in ndesc_tx_set_on_chain() argument
114 p->des1 |= cpu_to_le32(TDES1_SECOND_ADDRESS_CHAINED); in ndesc_tx_set_on_chain()
117 static inline void norm_set_tx_desc_len_on_chain(struct dma_desc *p, int len) in norm_set_tx_desc_len_on_chain() argument
119 p->des1 |= cpu_to_le32(len & TDES1_BUFFER1_SIZE_MASK); in norm_set_tx_desc_len_on_chain()