Lines Matching refs:wq
52 struct ipath_rwq *wq; in ipath_post_srq_receive() local
68 wq = srq->rq.wq; in ipath_post_srq_receive()
69 next = wq->head + 1; in ipath_post_srq_receive()
72 if (next == wq->tail) { in ipath_post_srq_receive()
79 wqe = get_rwqe_ptr(&srq->rq, wq->head); in ipath_post_srq_receive()
86 wq->head = next; in ipath_post_srq_receive()
139 srq->rq.wq = vmalloc_user(sizeof(struct ipath_rwq) + srq->rq.size * sz); in ipath_create_srq()
140 if (!srq->rq.wq) { in ipath_create_srq()
156 srq->rq.wq); in ipath_create_srq()
175 srq->rq.wq->head = 0; in ipath_create_srq()
176 srq->rq.wq->tail = 0; in ipath_create_srq()
201 vfree(srq->rq.wq); in ipath_create_srq()
220 struct ipath_rwq *wq; in ipath_modify_srq() local
239 wq = vmalloc_user(sizeof(struct ipath_rwq) + size * sz); in ipath_modify_srq()
240 if (!wq) { in ipath_modify_srq()
267 owq = srq->rq.wq; in ipath_modify_srq()
284 p = wq->wq; in ipath_modify_srq()
299 srq->rq.wq = wq; in ipath_modify_srq()
301 wq->head = n; in ipath_modify_srq()
302 wq->tail = 0; in ipath_modify_srq()
314 ipath_update_mmap_info(dev, ip, s, wq); in ipath_modify_srq()
346 vfree(wq); in ipath_modify_srq()
376 vfree(srq->rq.wq); in ipath_destroy_srq()