Lines Matching refs:desc_buf

95 	cq->sq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size,  in ice_alloc_ctrlq_sq_ring()
96 &cq->sq.desc_buf.pa, in ice_alloc_ctrlq_sq_ring()
98 if (!cq->sq.desc_buf.va) in ice_alloc_ctrlq_sq_ring()
100 cq->sq.desc_buf.size = size; in ice_alloc_ctrlq_sq_ring()
105 dmam_free_coherent(ice_hw_to_dev(hw), cq->sq.desc_buf.size, in ice_alloc_ctrlq_sq_ring()
106 cq->sq.desc_buf.va, cq->sq.desc_buf.pa); in ice_alloc_ctrlq_sq_ring()
107 cq->sq.desc_buf.va = NULL; in ice_alloc_ctrlq_sq_ring()
108 cq->sq.desc_buf.pa = 0; in ice_alloc_ctrlq_sq_ring()
109 cq->sq.desc_buf.size = 0; in ice_alloc_ctrlq_sq_ring()
126 cq->rq.desc_buf.va = dmam_alloc_coherent(ice_hw_to_dev(hw), size, in ice_alloc_ctrlq_rq_ring()
127 &cq->rq.desc_buf.pa, in ice_alloc_ctrlq_rq_ring()
129 if (!cq->rq.desc_buf.va) in ice_alloc_ctrlq_rq_ring()
131 cq->rq.desc_buf.size = size; in ice_alloc_ctrlq_rq_ring()
145 dmam_free_coherent(ice_hw_to_dev(hw), ring->desc_buf.size, in ice_free_cq_ring()
146 ring->desc_buf.va, ring->desc_buf.pa); in ice_free_cq_ring()
147 ring->desc_buf.va = NULL; in ice_free_cq_ring()
148 ring->desc_buf.pa = 0; in ice_free_cq_ring()
149 ring->desc_buf.size = 0; in ice_free_cq_ring()
166 sizeof(cq->rq.desc_buf), GFP_KERNEL); in ice_alloc_rq_bufs()
236 sizeof(cq->sq.desc_buf), GFP_KERNEL); in ice_alloc_sq_bufs()
281 wr32(hw, ring->bal, lower_32_bits(ring->desc_buf.pa)); in ice_cfg_cq_regs()
282 wr32(hw, ring->bah, upper_32_bits(ring->desc_buf.pa)); in ice_cfg_cq_regs()
285 if (rd32(hw, ring->bal) != lower_32_bits(ring->desc_buf.pa)) in ice_cfg_cq_regs()