Lines Matching refs:new_q
110 static int resize_finish(struct rxe_queue *q, struct rxe_queue *new_q, in resize_finish() argument
121 new_prod = queue_get_producer(new_q, type); in resize_finish()
126 memcpy(queue_addr_from_index(new_q, new_prod), in resize_finish()
127 queue_addr_from_index(q, cons), new_q->elem_size); in resize_finish()
128 new_prod = queue_next_index(new_q, new_prod); in resize_finish()
132 new_q->buf->producer_index = new_prod; in resize_finish()
137 new_q->index = new_q->buf->producer_index; in resize_finish()
142 swap(*q, *new_q); in resize_finish()
152 struct rxe_queue *new_q; in rxe_queue_resize() local
158 new_q = rxe_queue_init(q->rxe, &num_elem, elem_size, q->type); in rxe_queue_resize()
159 if (!new_q) in rxe_queue_resize()
162 err = do_mmap_info(new_q->rxe, outbuf, udata, new_q->buf, in rxe_queue_resize()
163 new_q->buf_size, &new_q->ip); in rxe_queue_resize()
165 vfree(new_q->buf); in rxe_queue_resize()
166 kfree(new_q); in rxe_queue_resize()
174 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
177 err = resize_finish(q, new_q, num_elem); in rxe_queue_resize()
182 rxe_queue_cleanup(new_q); /* new/old dep on err */ in rxe_queue_resize()