Lines Matching refs:u_wc
30 struct rvt_cq_wc *u_wc = NULL; in rvt_cq_enter() local
40 u_wc = cq->queue; in rvt_cq_enter()
41 uqueue = &u_wc->uqueue[0]; in rvt_cq_enter()
42 head = RDMA_READ_UAPI_ATOMIC(u_wc->head); in rvt_cq_enter()
43 tail = RDMA_READ_UAPI_ATOMIC(u_wc->tail); in rvt_cq_enter()
96 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, next); in rvt_cq_enter()
166 struct rvt_cq_wc *u_wc = NULL; in rvt_create_cq() local
193 sz += sizeof(*u_wc); in rvt_create_cq()
194 u_wc = vmalloc_user(sz); in rvt_create_cq()
195 if (!u_wc) in rvt_create_cq()
210 cq->ip = rvt_create_mmap_info(rdi, sz, udata, u_wc); in rvt_create_cq()
255 if (u_wc) in rvt_create_cq()
256 cq->queue = u_wc; in rvt_create_cq()
266 vfree(u_wc); in rvt_create_cq()
347 struct rvt_cq_wc *u_wc = NULL; in rvt_resize_cq() local
360 sz += sizeof(*u_wc); in rvt_resize_cq()
361 u_wc = vmalloc_user(sz); in rvt_resize_cq()
362 if (!u_wc) in rvt_resize_cq()
385 if (u_wc) { in rvt_resize_cq()
408 if (u_wc) in rvt_resize_cq()
409 u_wc->uqueue[n] = old_u_wc->uqueue[tail]; in rvt_resize_cq()
418 if (u_wc) { in rvt_resize_cq()
419 RDMA_WRITE_UAPI_ATOMIC(u_wc->head, n); in rvt_resize_cq()
420 RDMA_WRITE_UAPI_ATOMIC(u_wc->tail, 0); in rvt_resize_cq()
421 cq->queue = u_wc; in rvt_resize_cq()
429 if (u_wc) in rvt_resize_cq()
437 rvt_update_mmap_info(rdi, ip, sz, u_wc); in rvt_resize_cq()
461 vfree(u_wc); in rvt_resize_cq()