Lines Matching refs:u_wc
71 struct rvt_cq_wc *u_wc = NULL; in rvt_cq_enter() local
81 u_wc = cq->queue; in rvt_cq_enter()
82 uqueue = &u_wc->uqueue[0]; in rvt_cq_enter()
83 head = RDMA_READ_UAPI_ATOMIC(u_wc->head); in rvt_cq_enter()
84 tail = RDMA_READ_UAPI_ATOMIC(u_wc->tail); in rvt_cq_enter()
137 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, next); in rvt_cq_enter()
206 struct rvt_cq_wc *u_wc = NULL; in rvt_create_cq() local
233 sz += sizeof(*u_wc); in rvt_create_cq()
234 u_wc = vmalloc_user(sz); in rvt_create_cq()
235 if (!u_wc) in rvt_create_cq()
250 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
295 if (u_wc) in rvt_create_cq()
296 cq->queue = u_wc; in rvt_create_cq()
306 vfree(u_wc); in rvt_create_cq()
387 struct rvt_cq_wc *u_wc = NULL; in rvt_resize_cq() local
400 sz += sizeof(*u_wc); in rvt_resize_cq()
401 u_wc = vmalloc_user(sz); in rvt_resize_cq()
402 if (!u_wc) in rvt_resize_cq()
425 if (u_wc) { in rvt_resize_cq()
448 if (u_wc) in rvt_resize_cq()
449 u_wc->uqueue[n] = old_u_wc->uqueue[tail]; in rvt_resize_cq()
458 if (u_wc) { in rvt_resize_cq()
459 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, n); in rvt_resize_cq()
460 RDMA_WRITE_UAPI_ATOMIC(u_wc->tail, 0); in rvt_resize_cq()
461 cq->queue = u_wc; in rvt_resize_cq()
469 if (u_wc) in rvt_resize_cq()
477 rvt_update_mmap_info(rdi, ip, sz, u_wc); in rvt_resize_cq()
501 vfree(u_wc); in rvt_resize_cq()