Lines Matching refs:dif
163 struct super_block *sb, struct erofs_device_info *dif) in erofs_fill_from_devinfo() argument
166 map->m_dif = dif; in erofs_fill_from_devinfo()
168 if (dif->file && S_ISBLK(file_inode(dif->file)->i_mode)) in erofs_fill_from_devinfo()
169 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
175 struct erofs_device_info *dif; in erofs_map_dev() local
183 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
184 if (!dif) { in erofs_map_dev()
189 map->m_pa += erofs_pos(sb, dif->uniaddr); in erofs_map_dev()
193 erofs_fill_from_devinfo(map, sb, dif); in erofs_map_dev()
197 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev()
198 if (!dif->uniaddr) in erofs_map_dev()
201 startoff = erofs_pos(sb, dif->uniaddr); in erofs_map_dev()
203 map->m_pa < startoff + erofs_pos(sb, dif->blocks)) { in erofs_map_dev()
205 erofs_fill_from_devinfo(map, sb, dif); in erofs_map_dev()