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