Lines Matching refs:idx_que
168 struct hns_roce_idx_que *idx_que = &srq->idx_que; in alloc_srq_idx() local
173 srq->idx_que.entry_shift = ilog2(HNS_ROCE_IDX_QUE_ENTRY_SZ); in alloc_srq_idx()
177 srq->idx_que.entry_shift); in alloc_srq_idx()
181 ret = hns_roce_mtr_create(hr_dev, &idx_que->mtr, &buf_attr, in alloc_srq_idx()
191 idx_que->bitmap = bitmap_zalloc(srq->wqe_cnt, GFP_KERNEL); in alloc_srq_idx()
192 if (!idx_que->bitmap) { in alloc_srq_idx()
199 idx_que->head = 0; in alloc_srq_idx()
200 idx_que->tail = 0; in alloc_srq_idx()
204 hns_roce_mtr_destroy(hr_dev, &idx_que->mtr); in alloc_srq_idx()
211 struct hns_roce_idx_que *idx_que = &srq->idx_que; in free_srq_idx() local
213 bitmap_free(idx_que->bitmap); in free_srq_idx()
214 idx_que->bitmap = NULL; in free_srq_idx()
215 hns_roce_mtr_destroy(hr_dev, &idx_que->mtr); in free_srq_idx()