Lines Matching refs:dm
43 lookup_zone(const struct adfs_discmap *dm, const unsigned int idlen, in lookup_zone() argument
46 const unsigned int mapsize = dm->dm_endbit; in lookup_zone()
48 unsigned long *map = ((unsigned long *)dm->dm_bh->b_data) + 1; in lookup_zone()
49 unsigned int start = dm->dm_startbit; in lookup_zone()
100 scan_free_map(struct adfs_sb_info *asb, struct adfs_discmap *dm) in scan_free_map() argument
102 const unsigned int mapsize = dm->dm_endbit + 32; in scan_free_map()
106 unsigned long *map = (unsigned long *)dm->dm_bh->b_data; in scan_free_map()
164 struct adfs_discmap *dm, *dm_end; in scan_map() local
167 dm = asb->s_map + zone; in scan_map()
172 result = lookup_zone(dm, idlen, frag_id, &mapoff); in scan_map()
177 dm ++; in scan_map()
178 if (dm == dm_end) in scan_map()
179 dm = asb->s_map; in scan_map()
184 result -= dm->dm_startbit; in scan_map()
185 result += dm->dm_startblk; in scan_map()
201 struct adfs_discmap *dm; in adfs_map_free() local
205 dm = asb->s_map; in adfs_map_free()
209 total += scan_free_map(asb, dm++); in adfs_map_free()