Lines Matching refs:bytes_offset
590 uint64_t bytes_offset = (*position) % fsbi->bytes_per_clus; in fat32_read() local
627 if (bytes_remain > (fsbi->bytes_per_clus - bytes_offset)) in fat32_read()
628 step_trans_len = (fsbi->bytes_per_clus - bytes_offset); in fat32_read()
633 copy_to_user(buf, tmp_buffer + bytes_offset, step_trans_len); in fat32_read()
635 memcpy(buf, tmp_buffer + bytes_offset, step_trans_len); in fat32_read()
639 bytes_offset -= bytes_offset; in fat32_read()
675 uint64_t bytes_offset = (*position) % fsbi->bytes_per_clus; in fat32_write() local
722 if (bytes_remain > (fsbi->bytes_per_clus - bytes_offset)) in fat32_write()
723 step_trans_len = (fsbi->bytes_per_clus - bytes_offset); in fat32_write()
729 copy_from_user(tmp_buffer + bytes_offset, buf, step_trans_len); in fat32_write()
731 memcpy(tmp_buffer + bytes_offset, buf, step_trans_len); in fat32_write()
745 bytes_offset -= bytes_offset; in fat32_write()