Lines Matching refs:buffer
8 * to a buffer that other functions can write to. It is similar to the
21 * seq_buf_can_fit - can the new data fit in the current buffer?
23 * @len: The length to see if it can fit in the current buffer
25 * Returns true if there's enough unused space in the seq_buf buffer
44 return seq_write(m, s->buffer, len);
53 * Writes a vnprintf() format into the sequencce buffer.
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args);
79 * Writes a printf() format into the sequence buffer.
110 * the conversion into the ASCII string within the buffer.
122 ret = bstr_printf(s->buffer + s->len, len, fmt, binary);
138 * Copy a simple string into the sequence buffer.
152 memcpy(s->buffer + s->len, str, len);
166 * Copy a single character into the sequence buffer.
175 s->buffer[s->len++] = c;
183 * seq_buf_putmem - write raw data into the sequenc buffer
185 * @mem: The raw memory to copy into the buffer
189 * buffer and a strcpy() would not work. Using this function allows
199 memcpy(s->buffer + s->len, mem, len);
211 * seq_buf_putmem_hex - write raw memory into the buffer in ASCII hex
217 * raw memory into the buffer it writes its ASCII representation of it
261 * seq_buf_path - copy a path into the sequence buffer
263 * @path: path to write into the sequence buffer.
266 * Write a path name into the sequence buffer.
292 * seq_buf_to_user - copy the squence buffer to user space
297 * Copies the sequence buffer into the userspace memory pointed to
300 * the content in the buffer (@s->len), which ever comes first.
327 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
338 * seq_buf_hex_dump - print formatted hex dump into the sequence buffer