Lines Matching defs:hw
8 * @hw: pointer to hw struct
11 static int idpf_ctlq_alloc_desc_ring(struct idpf_hw *hw,
16 cq->desc_ring.va = idpf_alloc_dma_mem(hw, &cq->desc_ring, size);
25 * @hw: pointer to hw struct
31 static int idpf_ctlq_alloc_bufs(struct idpf_hw *hw,
60 bi->va = idpf_alloc_dma_mem(hw, bi, cq->buf_size);
74 idpf_free_dma_mem(hw, cq->bi.rx_buff[i]);
84 * @hw: pointer to hw struct
90 static void idpf_ctlq_free_desc_ring(struct idpf_hw *hw,
93 idpf_free_dma_mem(hw, &cq->desc_ring);
98 * @hw: pointer to hw struct
104 static void idpf_ctlq_free_bufs(struct idpf_hw *hw, struct idpf_ctlq_info *cq)
114 idpf_free_dma_mem(hw, cq->bi.rx_buff[i]);
130 * @hw: pointer to hw struct
135 void idpf_ctlq_dealloc_ring_res(struct idpf_hw *hw, struct idpf_ctlq_info *cq)
138 idpf_ctlq_free_bufs(hw, cq);
139 idpf_ctlq_free_desc_ring(hw, cq);
144 * @hw: pointer to hw struct
150 int idpf_ctlq_alloc_ring_res(struct idpf_hw *hw, struct idpf_ctlq_info *cq)
155 err = idpf_ctlq_alloc_desc_ring(hw, cq);
160 err = idpf_ctlq_alloc_bufs(hw, cq);
168 idpf_free_dma_mem(hw, &cq->desc_ring);