Lines Matching refs:raw_desc

70 	struct xge_raw_desc *raw_desc;  in xge_refill_buffers()  local
79 raw_desc = &ring->raw_desc[tail]; in xge_refill_buffers()
96 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
97 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
98 raw_desc->m1 = cpu_to_le64(SET_BITS(NEXT_DESC_ADDRL, addr_lo) | in xge_refill_buffers()
104 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_refill_buffers()
163 static bool is_tx_slot_available(struct xge_raw_desc *raw_desc) in is_tx_slot_available() argument
165 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_slot_available()
166 (GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0)) == SLOT_EMPTY)) in is_tx_slot_available()
177 struct xge_raw_desc *raw_desc; in xge_start_xmit() local
187 raw_desc = &tx_ring->raw_desc[tail]; in xge_start_xmit()
189 if (!is_tx_slot_available(raw_desc)) { in xge_start_xmit()
203 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
204 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
205 raw_desc->m1 = cpu_to_le64(SET_BITS(NEXT_DESC_ADDRL, addr_lo) | in xge_start_xmit()
216 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_start_xmit()
227 static bool is_tx_hw_done(struct xge_raw_desc *raw_desc) in is_tx_hw_done() argument
229 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_hw_done()
230 !GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0))) in is_tx_hw_done()
241 struct xge_raw_desc *raw_desc; in xge_txc_poll() local
256 raw_desc = &tx_ring->raw_desc[head]; in xge_txc_poll()
258 if (!is_tx_hw_done(raw_desc)) in xge_txc_poll()
272 raw_desc->m0 = cpu_to_le64(SET_BITS(E, 1) | in xge_txc_poll()
290 struct xge_raw_desc *raw_desc; in xge_rx_poll() local
307 raw_desc = &rx_ring->raw_desc[head]; in xge_rx_poll()
309 if (GET_BITS(E, le64_to_cpu(raw_desc->m0))) in xge_rx_poll()
317 len = GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0)); in xge_rx_poll()
321 rx_error = GET_BITS(D, le64_to_cpu(raw_desc->m2)); in xge_rx_poll()
543 static bool is_tx_pending(struct xge_raw_desc *raw_desc) in is_tx_pending() argument
545 if (!GET_BITS(E, le64_to_cpu(raw_desc->m0))) in is_tx_pending()
556 struct xge_raw_desc *raw_desc; in xge_free_pending_skb() local
565 raw_desc = &tx_ring->raw_desc[i]; in xge_free_pending_skb()
567 if (!is_tx_pending(raw_desc)) in xge_free_pending_skb()