Lines Matching refs:dm
137 static int adfs_checkmap(struct super_block *sb, struct adfs_discmap *dm) in adfs_checkmap() argument
145 map = dm[i].dm_bh->b_data; in adfs_checkmap()
244 struct adfs_discmap *dm; in adfs_read_map() local
256 dm = kmalloc(nzones * sizeof(*dm), GFP_KERNEL); in adfs_read_map()
257 if (dm == NULL) { in adfs_read_map()
263 dm[zone].dm_startbit = 0; in adfs_read_map()
264 dm[zone].dm_endbit = zone_size; in adfs_read_map()
265 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_read_map()
266 dm[zone].dm_bh = sb_bread(sb, map_addr); in adfs_read_map()
268 if (!dm[zone].dm_bh) { in adfs_read_map()
276 dm[0].dm_startblk = 0; in adfs_read_map()
277 dm[0].dm_startbit = ADFS_DR_SIZE_BITS; in adfs_read_map()
278 dm[i].dm_endbit = (dr->disc_size_high << (32 - dr->log2bpmb)) + in adfs_read_map()
282 if (adfs_checkmap(sb, dm)) in adfs_read_map()
283 return dm; in adfs_read_map()
289 brelse(dm[zone].dm_bh); in adfs_read_map()
291 kfree(dm); in adfs_read_map()