Lines Matching refs:srq_table
14 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in hns_roce_srq_event() local
17 xa_lock(&srq_table->xa); in hns_roce_srq_event()
18 srq = xa_load(&srq_table->xa, srqn & (hr_dev->caps.num_srqs - 1)); in hns_roce_srq_event()
21 xa_unlock(&srq_table->xa); in hns_roce_srq_event()
64 struct hns_roce_ida *srq_ida = &hr_dev->srq_table.srq_ida; in alloc_srqn()
81 ida_free(&hr_dev->srq_table.srq_ida.ida, (int)srq->srqn); in free_srqn()
115 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in alloc_srqc() local
119 ret = hns_roce_table_get(hr_dev, &srq_table->table, srq->srqn); in alloc_srqc()
125 ret = xa_err(xa_store(&srq_table->xa, srq->srqn, srq, GFP_KERNEL)); in alloc_srqc()
138 xa_erase(&srq_table->xa, srq->srqn); in alloc_srqc()
140 hns_roce_table_put(hr_dev, &srq_table->table, srq->srqn); in alloc_srqc()
147 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in free_srqc() local
156 xa_erase(&srq_table->xa, srq->srqn); in free_srqc()
162 hns_roce_table_put(hr_dev, &srq_table->table, srq->srqn); in free_srqc()
457 struct hns_roce_srq_table *srq_table = &hr_dev->srq_table; in hns_roce_init_srq_table() local
458 struct hns_roce_ida *srq_ida = &srq_table->srq_ida; in hns_roce_init_srq_table()
460 xa_init(&srq_table->xa); in hns_roce_init_srq_table()