Lines Matching refs:bufp
153 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
155 bufp = mempool_alloc(hvc_iucv_mempool, flags); in alloc_tty_buffer()
156 if (!bufp) in alloc_tty_buffer()
158 memset(bufp, 0, sizeof(*bufp)); in alloc_tty_buffer()
161 bufp->msg.length = MSG_SIZE(size); in alloc_tty_buffer()
162 bufp->mbuf = kmalloc(bufp->msg.length, flags | GFP_DMA); in alloc_tty_buffer()
163 if (!bufp->mbuf) { in alloc_tty_buffer()
164 mempool_free(bufp, hvc_iucv_mempool); in alloc_tty_buffer()
167 bufp->mbuf->version = MSG_VERSION; in alloc_tty_buffer()
168 bufp->mbuf->type = MSG_TYPE_DATA; in alloc_tty_buffer()
169 bufp->mbuf->datalen = (u16) size; in alloc_tty_buffer()
171 return bufp; in alloc_tty_buffer()
178 static void destroy_tty_buffer(struct iucv_tty_buffer *bufp) in destroy_tty_buffer() argument
180 kfree(bufp->mbuf); in destroy_tty_buffer()
181 mempool_free(bufp, hvc_iucv_mempool); in destroy_tty_buffer()