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