Lines Matching refs:dif
176 struct super_block *sb, struct erofs_device_info *dif) in erofs_fill_from_devinfo() argument
179 map->m_dif = dif; in erofs_fill_from_devinfo()
181 if (dif->file && S_ISBLK(file_inode(dif->file)->i_mode)) in erofs_fill_from_devinfo()
182 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
188 struct erofs_device_info *dif; in erofs_map_dev() local
196 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
197 if (!dif) { in erofs_map_dev()
202 map->m_pa += erofs_pos(sb, dif->uniaddr); in erofs_map_dev()
206 erofs_fill_from_devinfo(map, sb, dif); in erofs_map_dev()
210 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev()
211 if (!dif->uniaddr) in erofs_map_dev()
214 startoff = erofs_pos(sb, dif->uniaddr); in erofs_map_dev()
216 map->m_pa < startoff + erofs_pos(sb, dif->blocks)) { in erofs_map_dev()
218 erofs_fill_from_devinfo(map, sb, dif); in erofs_map_dev()