Lines Matching full:dif
187 struct erofs_device_info *dif) in erofs_fill_from_devinfo() argument
191 if (dif->file) { in erofs_fill_from_devinfo()
192 if (S_ISBLK(file_inode(dif->file)->i_mode)) in erofs_fill_from_devinfo()
193 map->m_bdev = file_bdev(dif->file); in erofs_fill_from_devinfo()
195 map->m_fp = dif->file; in erofs_fill_from_devinfo()
197 map->m_daxdev = dif->dax_dev; in erofs_fill_from_devinfo()
198 map->m_dax_part_off = dif->dax_part_off; in erofs_fill_from_devinfo()
199 map->m_fscache = dif->fscache; in erofs_fill_from_devinfo()
205 struct erofs_device_info *dif; in erofs_map_dev() local
217 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
218 if (!dif) { in erofs_map_dev()
223 map->m_pa += erofs_pos(sb, dif->mapped_blkaddr); in erofs_map_dev()
227 erofs_fill_from_devinfo(map, dif); in erofs_map_dev()
231 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev()
232 if (!dif->mapped_blkaddr) in erofs_map_dev()
235 startoff = erofs_pos(sb, dif->mapped_blkaddr); in erofs_map_dev()
236 length = erofs_pos(sb, dif->blocks); in erofs_map_dev()
240 erofs_fill_from_devinfo(map, dif); in erofs_map_dev()