Lines Matching refs:qp_table
114 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_reserve_range_qp() local
116 return hns_roce_bitmap_alloc_range(&qp_table->bitmap, cnt, align, in hns_roce_reserve_range_qp()
166 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_qp_alloc() local
176 ret = hns_roce_table_get(hr_dev, &qp_table->qp_table, hr_qp->qpn); in hns_roce_qp_alloc()
183 ret = hns_roce_table_get(hr_dev, &qp_table->irrl_table, hr_qp->qpn); in hns_roce_qp_alloc()
191 ret = hns_roce_table_get(hr_dev, &qp_table->trrl_table, in hns_roce_qp_alloc()
201 ret = hns_roce_table_get(hr_dev, &qp_table->sccc_table, in hns_roce_qp_alloc()
217 hns_roce_table_put(hr_dev, &qp_table->sccc_table, in hns_roce_qp_alloc()
222 hns_roce_table_put(hr_dev, &qp_table->trrl_table, hr_qp->qpn); in hns_roce_qp_alloc()
225 hns_roce_table_put(hr_dev, &qp_table->irrl_table, hr_qp->qpn); in hns_roce_qp_alloc()
228 hns_roce_table_put(hr_dev, &qp_table->qp_table, hr_qp->qpn); in hns_roce_qp_alloc()
246 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_qp_free() local
254 hns_roce_table_put(hr_dev, &qp_table->trrl_table, in hns_roce_qp_free()
256 hns_roce_table_put(hr_dev, &qp_table->irrl_table, hr_qp->qpn); in hns_roce_qp_free()
263 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_release_range_qp() local
268 hns_roce_bitmap_free_range(&qp_table->bitmap, base_qpn, cnt, BITMAP_RR); in hns_roce_release_range_qp()
1305 struct hns_roce_qp_table *qp_table = &hr_dev->qp_table; in hns_roce_init_qp_table() local
1310 mutex_init(&qp_table->scc_mutex); in hns_roce_init_qp_table()
1315 ret = hns_roce_bitmap_init(&qp_table->bitmap, hr_dev->caps.num_qps, in hns_roce_init_qp_table()
1329 hns_roce_bitmap_cleanup(&hr_dev->qp_table.bitmap); in hns_roce_cleanup_qp_table()