Lines Matching defs:ptr
20 * @ptr: Pointer to the beginning of the buffer.
25 u8 *ptr;
33 * @ptr: The memory backing the buffer.
39 static inline void sshp_buf_init(struct sshp_buf *buf, u8 *ptr, size_t cap)
41 buf->ptr = ptr;
59 u8 *ptr;
61 ptr = kzalloc(cap, flags);
62 if (!ptr)
65 sshp_buf_init(buf, ptr, cap);
79 kfree(buf->ptr);
80 buf->ptr = NULL;
95 memmove(buf->ptr, buf->ptr + n, buf->len - n);
116 n = kfifo_out(fifo, buf->ptr + buf->len, buf->cap - buf->len);
140 span->ptr = buf->ptr + offset;