Lines Matching refs:sector
59 unsigned int sector = 1;
68 *(SectorMap *) dst_ptr = 0x800000 + sector;
70 sector += SECTORS_PER_SEGMENT;
74 *(SewctorMap *) dst_ptr = sector;
78 ++sector;
114 static inline void put_sector(SectorCount *ptr, unsigned int sector) in put_sector() argument
116 ptr->bytes[0] = sector & 0xff; in put_sector()
117 sector >>= 8; in put_sector()
118 ptr->bytes[1] = sector & 0xff; in put_sector()
119 sector >>= 8; in put_sector()
120 ptr->bytes[2] = sector & 0xff; in put_sector()
126 unsigned int sector; in get_sector() local
128 sector = ptr->bytes[0]; in get_sector()
129 sector += ptr->bytes[1] << 8; in get_sector()
130 sector += ptr->bytes[2] << 16; in get_sector()
132 return sector; in get_sector()
205 unsigned int sector; in print_bad_sector_map() local
208 while((sector = get_sector(ptr++)) != 0) { in print_bad_sector_map()
211 sector & 0x800000) { in print_bad_sector_map()
214 sector & 0x7fffff); in print_bad_sector_map()
217 TRACE(ft_t_noise, "bad sector: %6d", sector); in print_bad_sector_map()
223 while ((sector = get_unaligned(ptr16++)) != 0) { in print_bad_sector_map()
225 sector, get_unaligned(ptr16++)); in print_bad_sector_map()
286 static inline SectorMap cvt2map(unsigned int sector) in cvt2map() argument
288 return 1 << (((sector & 0x7fffff) - 1) % FT_SECTORS_PER_SEGMENT); in cvt2map()
291 static inline int cvt2segment(unsigned int sector) in cvt2segment() argument
293 return ((sector & 0x7fffff) - 1) / FT_SECTORS_PER_SEGMENT; in cvt2segment()
300 unsigned int sector; in forward_seek_entry() local
304 sector = get_sector((*ptr)++); in forward_seek_entry()
305 segment = cvt2segment(sector); in forward_seek_entry()
306 } while (sector != 0 && segment < segment_id); in forward_seek_entry()
310 if (sector == 0 || segment != segment_id) { in forward_seek_entry()
313 } else if ((sector & 0x800000) && in forward_seek_entry()
321 *map = cvt2map(sector); in forward_seek_entry()
322 while ((sector = get_sector(tmp_ptr++)) != 0 && in forward_seek_entry()
323 (segment = cvt2segment(sector)) == segment_id) { in forward_seek_entry()
324 *map |= cvt2map(sector); in forward_seek_entry()
335 unsigned int sector; in backwards_seek_entry() local
343 sector = get_sector(--(*ptr)); in backwards_seek_entry()
344 segment = cvt2segment(sector); in backwards_seek_entry()
354 } else if ((sector & 0x800000) && in backwards_seek_entry()
361 *map = cvt2map(sector); in backwards_seek_entry()
363 sector = get_sector(--(*ptr)); in backwards_seek_entry()
364 segment = cvt2segment(sector); in backwards_seek_entry()
368 *map |= cvt2map(sector); in backwards_seek_entry()