Searched refs:idx_que (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 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 [all …]
|
D | hns_roce_hw_v2.c | 871 static void *get_idx_buf(struct hns_roce_idx_que *idx_que, u32 n) in get_idx_buf() argument 873 return hns_roce_buf_offset(idx_que->mtr.kmem, in get_idx_buf() 874 n << idx_que->entry_shift); in get_idx_buf() 882 bitmap_clear(srq->idx_que.bitmap, wqe_index, 1); in hns_roce_free_srq_wqe() 883 srq->idx_que.tail++; in hns_roce_free_srq_wqe() 890 struct hns_roce_idx_que *idx_que = &srq->idx_que; in hns_roce_srqwq_overflow() local 892 return idx_que->head - idx_que->tail >= srq->wqe_cnt; in hns_roce_srqwq_overflow() 918 struct hns_roce_idx_que *idx_que = &srq->idx_que; in get_srq_wqe_idx() local 921 pos = find_first_zero_bit(idx_que->bitmap, srq->wqe_cnt); in get_srq_wqe_idx() 925 bitmap_set(idx_que->bitmap, pos, 1); in get_srq_wqe_idx() [all …]
|
D | hns_roce_device.h | 452 struct hns_roce_idx_que idx_que; member
|