Lines Matching refs:bufp
154 struct iucv_tty_buffer *bufp; in alloc_tty_buffer() local
156 bufp = mempool_alloc(hvc_iucv_mempool, flags); in alloc_tty_buffer()
157 if (!bufp) in alloc_tty_buffer()
159 memset(bufp, 0, sizeof(*bufp)); in alloc_tty_buffer()
162 bufp->msg.length = MSG_SIZE(size); in alloc_tty_buffer()
163 bufp->mbuf = kmalloc(bufp->msg.length, flags | GFP_DMA); in alloc_tty_buffer()
164 if (!bufp->mbuf) { in alloc_tty_buffer()
165 mempool_free(bufp, hvc_iucv_mempool); in alloc_tty_buffer()
168 bufp->mbuf->version = MSG_VERSION; in alloc_tty_buffer()
169 bufp->mbuf->type = MSG_TYPE_DATA; in alloc_tty_buffer()
170 bufp->mbuf->datalen = (u16) size; in alloc_tty_buffer()
172 return bufp; in alloc_tty_buffer()
179 static void destroy_tty_buffer(struct iucv_tty_buffer *bufp) in destroy_tty_buffer() argument
181 kfree(bufp->mbuf); in destroy_tty_buffer()
182 mempool_free(bufp, hvc_iucv_mempool); in destroy_tty_buffer()