Lines Matching refs:copy_pos
149 uint32_t copy_pos = 0; in ta_if_load_debugfs_write() local
159 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
163 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
165 ret = copy_from_user((void *)&ta_bin_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
172 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
177 if (copy_from_user((void *)ta_bin, &buf[copy_pos], ta_bin_len)) { in ta_if_load_debugfs_write()
251 uint32_t copy_pos = 0; in ta_if_unload_debugfs_write() local
261 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
265 copy_pos += sizeof(uint32_t); in ta_if_unload_debugfs_write()
267 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
300 uint32_t copy_pos = 0; in ta_if_invoke_debugfs_write() local
310 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
313 copy_pos += sizeof(uint32_t); in ta_if_invoke_debugfs_write()
315 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
318 copy_pos += sizeof(uint32_t); in ta_if_invoke_debugfs_write()
320 ret = copy_from_user((void *)&cmd_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
323 copy_pos += sizeof(uint32_t); in ta_if_invoke_debugfs_write()
325 ret = copy_from_user((void *)&shared_buf_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
328 copy_pos += sizeof(uint32_t); in ta_if_invoke_debugfs_write()
333 if (copy_from_user((void *)shared_buf, &buf[copy_pos], shared_buf_len)) { in ta_if_invoke_debugfs_write()
369 if (copy_to_user((char *)&buf[copy_pos], context->mem_context.shared_buf, shared_buf_len)) in ta_if_invoke_debugfs_write()