Lines Matching refs:u_wc
29 struct rvt_cq_wc *u_wc = NULL; in rvt_cq_enter() local
39 u_wc = cq->queue; in rvt_cq_enter()
40 uqueue = &u_wc->uqueue[0]; in rvt_cq_enter()
41 head = RDMA_READ_UAPI_ATOMIC(u_wc->head); in rvt_cq_enter()
42 tail = RDMA_READ_UAPI_ATOMIC(u_wc->tail); in rvt_cq_enter()
95 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, next); in rvt_cq_enter()
164 struct rvt_cq_wc *u_wc = NULL; in rvt_create_cq() local
191 sz += sizeof(*u_wc); in rvt_create_cq()
192 u_wc = vmalloc_user(sz); in rvt_create_cq()
193 if (!u_wc) in rvt_create_cq()
208 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
253 if (u_wc) in rvt_create_cq()
254 cq->queue = u_wc; in rvt_create_cq()
264 vfree(u_wc); in rvt_create_cq()
345 struct rvt_cq_wc *u_wc = NULL; in rvt_resize_cq() local
358 sz += sizeof(*u_wc); in rvt_resize_cq()
359 u_wc = vmalloc_user(sz); in rvt_resize_cq()
360 if (!u_wc) in rvt_resize_cq()
383 if (u_wc) { in rvt_resize_cq()
406 if (u_wc) in rvt_resize_cq()
407 u_wc->uqueue[n] = old_u_wc->uqueue[tail]; in rvt_resize_cq()
416 if (u_wc) { in rvt_resize_cq()
417 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, n); in rvt_resize_cq()
418 RDMA_WRITE_UAPI_ATOMIC(u_wc->tail, 0); in rvt_resize_cq()
419 cq->queue = u_wc; in rvt_resize_cq()
427 if (u_wc) in rvt_resize_cq()
435 rvt_update_mmap_info(rdi, ip, sz, u_wc); in rvt_resize_cq()
459 vfree(u_wc); in rvt_resize_cq()