Home
last modified time | relevance | path

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

/FileX-v6.2.1/common/src/
Dfx_utility_FAT_flush.c89 UCHAR sectors_per_bit; in _fx_utility_FAT_flush() local
296sectors_per_bit = (UCHAR)((UINT)media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3)); in _fx_utility_FAT_flush()
300sectors_per_bit = (UCHAR)((UINT)media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3) + … in _fx_utility_FAT_flush()
304 if (sectors_per_bit == 0) in _fx_utility_FAT_flush()
311 … ind = ((FAT_sector - media_ptr -> fx_media_reserved_sectors) / sectors_per_bit) >> 3; in _fx_utility_FAT_flush()
314 … | (1 <<(((FAT_sector - media_ptr -> fx_media_reserved_sectors) / sectors_per_bit) & 7))); in _fx_utility_FAT_flush()
419sectors_per_bit = (UCHAR)(media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3)); in _fx_utility_FAT_flush()
423sectors_per_bit = (UCHAR)((media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3)) + 1); in _fx_utility_FAT_flush()
425 ind = ((FAT_sector - media_ptr -> fx_media_reserved_sectors) / sectors_per_bit) >> 3; in _fx_utility_FAT_flush()
428 … | (1 <<(((FAT_sector - media_ptr -> fx_media_reserved_sectors) / sectors_per_bit) & 7))); in _fx_utility_FAT_flush()
[all …]
Dfx_utility_FAT_map_flush.c78 UCHAR sectors_per_bit; in _fx_utility_FAT_map_flush() local
90 sectors_per_bit = (UCHAR)(media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3)); in _fx_utility_FAT_map_flush()
94sectors_per_bit = (UCHAR)(media_ptr -> fx_media_sectors_per_FAT / (FX_FAT_MAP_SIZE << 3) + 1); in _fx_utility_FAT_map_flush()
110 FAT_sector = i * sectors_per_bit + media_ptr -> fx_media_reserved_sectors; in _fx_utility_FAT_map_flush()
111 last_sector = FAT_sector + sectors_per_bit; in _fx_utility_FAT_map_flush()