Lines Matching refs:buf_pos
219 size_t buf_pos = 0;
247 if (buf_pos + map->debugfs_tot_len > count)
251 snprintf(buf + buf_pos, count - buf_pos, "%.*x: ",
253 buf_pos += map->debugfs_reg_len + 2;
258 snprintf(buf + buf_pos, count - buf_pos,
261 memset(buf + buf_pos, 'X',
263 buf_pos += 2 * map->format.val_bytes;
265 buf[buf_pos++] = '\n';
270 ret = buf_pos;
272 if (copy_to_user(user_buf, buf, buf_pos)) {
277 *ppos += buf_pos;
367 size_t buf_pos = 0;
405 if (buf_pos + entry_len > count)
407 memcpy(buf + buf_pos, entry, entry_len);
408 buf_pos += entry_len;
415 ret = buf_pos;
417 if (copy_to_user(user_buf, buf, buf_pos)) {
422 *ppos += buf_pos;