Lines Matching defs:ring
151 * ice_free_cq_ring - Free control queue ring
153 * @ring: pointer to the specific control queue ring
158 static void ice_free_cq_ring(struct ice_hw *hw, struct ice_ctl_q_ring *ring)
160 ice_free_dma_mem(hw, &ring->desc_buf);
268 ice_cfg_cq_regs(struct ice_hw *hw, struct ice_ctl_q_ring *ring, u16 num_entries)
271 wr32(hw, ring->head, 0);
272 wr32(hw, ring->tail, 0);
275 wr32(hw, ring->len, (num_entries | ring->len_ena_mask));
276 wr32(hw, ring->bal, ICE_LO_DWORD(ring->desc_buf.pa));
277 wr32(hw, ring->bah, ICE_HI_DWORD(ring->desc_buf.pa));
280 if (rd32(hw, ring->bal) != ICE_LO_DWORD(ring->desc_buf.pa))
321 #define ICE_FREE_CQ_BUFS(hw, qi, ring) \
324 if ((qi)->ring.r.ring##_bi) { \
327 for (i = 0; i < (qi)->num_##ring##_entries; i++) \
328 if ((qi)->ring.r.ring##_bi[i].pa) \
330 &(qi)->ring.r.ring##_bi[i]); \
333 ice_free(hw, (qi)->ring.dma_head); \
371 /* allocate the ring memory */
433 /* allocate the ring memory */
490 /* free ring buffers and the ring itself */
565 /* free ring buffers and the ring itself */
1066 ice_debug(hw, ICE_DBG_AQ_MSG, "head overrun at %d in the Control Send Queue ring\n",
1259 /* take the lock before we start messing with the ring */
1272 /* nothing to do - shouldn't need to update ring's values */