Home
last modified time | relevance | path

Searched refs:fat_ent_per_sec (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat_ent.c130 uint32_t fat_ent_per_sec = (fsbi->bytes_per_sec >> 2); // 该值应为2的n次幂 in fat32_read_FAT_entry() local
137 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)&buf); in fat32_read_FAT_entry()
140 return buf[cluster & (fat_ent_per_sec - 1)] & 0x0fffffff; in fat32_read_FAT_entry()
156 uint32_t fat_ent_per_sec = (fsbi->bytes_per_sec >> 2); // 该值应为2的n次幂 in fat32_write_FAT_entry() local
160 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()
162 …buf[cluster & (fat_ent_per_sec - 1)] = (buf[cluster & (fat_ent_per_sec - 1)] & 0xf0000000) | (valu… in fat32_write_FAT_entry()
165 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()
167 … fsbi->FAT2_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()