Lines Matching full:asb

115 scan_free_map(struct adfs_sb_info *asb, struct adfs_discmap *dm)  in scan_free_map()  argument
118 const unsigned int idlen = asb->s_idlen; in scan_free_map()
159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map() argument
162 const unsigned int idlen = asb->s_idlen; in scan_map()
166 dm = asb->s_map + zone; in scan_map()
167 zone = asb->s_map_size; in scan_map()
168 dm_end = asb->s_map + zone; in scan_map()
178 dm = asb->s_map; in scan_map()
198 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_map_statfs() local
199 struct adfs_discrecord *dr = adfs_map_discrecord(asb->s_map); in adfs_map_statfs()
204 dm = asb->s_map; in adfs_map_statfs()
205 zone = asb->s_map_size; in adfs_map_statfs()
208 total += scan_free_map(asb, dm++); in adfs_map_statfs()
212 buf->f_files = asb->s_ids_per_zone * asb->s_map_size; in adfs_map_statfs()
214 buf->f_bfree = signed_asl(total, asb->s_map2blk); in adfs_map_statfs()
219 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_map_lookup() local
228 zone = asb->s_map_size >> 1; in adfs_map_lookup()
230 zone = frag_id / asb->s_ids_per_zone; in adfs_map_lookup()
232 if (zone >= asb->s_map_size) in adfs_map_lookup()
236 mapoff = signed_asl(offset, -asb->s_map2blk); in adfs_map_lookup()
239 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup()
246 secoff = offset - signed_asl(mapoff, asb->s_map2blk); in adfs_map_lookup()
247 return secoff + signed_asl(result, asb->s_map2blk); in adfs_map_lookup()
256 frag_id, zone, asb->s_map_size); in adfs_map_lookup()
358 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_read_map() local
366 asb->s_idlen = dr->idlen; in adfs_read_map()
367 asb->s_map_size = nzones; in adfs_read_map()
368 asb->s_map2blk = dr->log2bpmb - dr->log2secsize; in adfs_read_map()
369 asb->s_log2sharesize = dr->log2sharesize; in adfs_read_map()
370 asb->s_ids_per_zone = zone_size / (asb->s_idlen + 1); in adfs_read_map()
374 map_addr = signed_asl(map_addr, asb->s_map2blk); in adfs_read_map()
403 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_free_map() local
405 adfs_map_relse(asb->s_map, asb->s_map_size); in adfs_free_map()
406 kfree(asb->s_map); in adfs_free_map()