Searched refs:copy_pos (Results 1 – 1 of 1) sorted by relevance
149 uint32_t copy_pos = 0; in ta_if_load_debugfs_write() local159 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()174 ta_bin = memdup_user(&buf[copy_pos], ta_bin_len); in ta_if_load_debugfs_write()247 uint32_t copy_pos = 0; in ta_if_unload_debugfs_write() local257 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()261 copy_pos += sizeof(uint32_t); in ta_if_unload_debugfs_write()263 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()[all …]