Lines Matching refs:raw_desc

84 	struct xge_raw_desc *raw_desc;  in xge_refill_buffers()  local
93 raw_desc = &ring->raw_desc[tail]; in xge_refill_buffers()
110 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
111 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_refill_buffers()
112 raw_desc->m1 = cpu_to_le64(SET_BITS(NEXT_DESC_ADDRL, addr_lo) | in xge_refill_buffers()
118 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_refill_buffers()
177 static bool is_tx_slot_available(struct xge_raw_desc *raw_desc) in is_tx_slot_available() argument
179 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_slot_available()
180 (GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0)) == SLOT_EMPTY)) in is_tx_slot_available()
191 struct xge_raw_desc *raw_desc; in xge_start_xmit() local
201 raw_desc = &tx_ring->raw_desc[tail]; in xge_start_xmit()
203 if (!is_tx_slot_available(raw_desc)) { in xge_start_xmit()
217 addr_hi = GET_BITS(NEXT_DESC_ADDRH, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
218 addr_lo = GET_BITS(NEXT_DESC_ADDRL, le64_to_cpu(raw_desc->m1)); in xge_start_xmit()
219 raw_desc->m1 = cpu_to_le64(SET_BITS(NEXT_DESC_ADDRL, addr_lo) | in xge_start_xmit()
230 raw_desc->m0 = cpu_to_le64(SET_BITS(PKT_ADDRL, dma_addr) | in xge_start_xmit()
241 static bool is_tx_hw_done(struct xge_raw_desc *raw_desc) in is_tx_hw_done() argument
243 if (GET_BITS(E, le64_to_cpu(raw_desc->m0)) && in is_tx_hw_done()
244 !GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0))) in is_tx_hw_done()
255 struct xge_raw_desc *raw_desc; in xge_txc_poll() local
270 raw_desc = &tx_ring->raw_desc[head]; in xge_txc_poll()
272 if (!is_tx_hw_done(raw_desc)) in xge_txc_poll()
286 raw_desc->m0 = cpu_to_le64(SET_BITS(E, 1) | in xge_txc_poll()
304 struct xge_raw_desc *raw_desc; in xge_rx_poll() local
321 raw_desc = &rx_ring->raw_desc[head]; in xge_rx_poll()
323 if (GET_BITS(E, le64_to_cpu(raw_desc->m0))) in xge_rx_poll()
331 len = GET_BITS(PKT_SIZE, le64_to_cpu(raw_desc->m0)); in xge_rx_poll()
335 rx_error = GET_BITS(D, le64_to_cpu(raw_desc->m2)); in xge_rx_poll()
557 static bool is_tx_pending(struct xge_raw_desc *raw_desc) in is_tx_pending() argument
559 if (!GET_BITS(E, le64_to_cpu(raw_desc->m0))) in is_tx_pending()
570 struct xge_raw_desc *raw_desc; in xge_free_pending_skb() local
579 raw_desc = &tx_ring->raw_desc[i]; in xge_free_pending_skb()
581 if (!is_tx_pending(raw_desc)) in xge_free_pending_skb()