Lines Matching refs:map
274 static void udf_free_partition(struct udf_part_map *map) in udf_free_partition() argument
279 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) in udf_free_partition()
280 iput(map->s_uspace.s_table); in udf_free_partition()
281 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) in udf_free_partition()
282 udf_sb_free_bitmap(map->s_uspace.s_bitmap); in udf_free_partition()
283 if (map->s_partition_type == UDF_SPARABLE_MAP15) in udf_free_partition()
285 brelse(map->s_type_specific.s_sparing.s_spar_map[i]); in udf_free_partition()
286 else if (map->s_partition_type == UDF_METADATA_MAP25) { in udf_free_partition()
287 mdata = &map->s_type_specific.s_metadata; in udf_free_partition()
941 struct udf_part_map *map; in udf_load_metadata_files() local
946 map = &sbi->s_partmaps[partition]; in udf_load_metadata_files()
947 mdata = &map->s_type_specific.s_metadata; in udf_load_metadata_files()
1003 struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition]; in udf_compute_nr_groups() local
1004 return DIV_ROUND_UP(map->s_partition_len + in udf_compute_nr_groups()
1033 struct udf_part_map *map) in check_partition_desc() argument
1067 if (map->s_partition_type == UDF_VIRTUAL_MAP15 || in check_partition_desc()
1068 map->s_partition_type == UDF_VIRTUAL_MAP20) in check_partition_desc()
1082 struct udf_part_map *map; in udf_fill_partdesc_info() local
1087 map = &sbi->s_partmaps[p_index]; in udf_fill_partdesc_info()
1089 map->s_partition_len = le32_to_cpu(p->partitionLength); /* blocks */ in udf_fill_partdesc_info()
1090 map->s_partition_root = le32_to_cpu(p->partitionStartingLocation); in udf_fill_partdesc_info()
1093 map->s_partition_flags |= UDF_PART_FLAG_READ_ONLY; in udf_fill_partdesc_info()
1095 map->s_partition_flags |= UDF_PART_FLAG_WRITE_ONCE; in udf_fill_partdesc_info()
1097 map->s_partition_flags |= UDF_PART_FLAG_REWRITABLE; in udf_fill_partdesc_info()
1099 map->s_partition_flags |= UDF_PART_FLAG_OVERWRITABLE; in udf_fill_partdesc_info()
1102 p_index, map->s_partition_type, in udf_fill_partdesc_info()
1103 map->s_partition_root, map->s_partition_len); in udf_fill_partdesc_info()
1105 err = check_partition_desc(sb, p, map); in udf_fill_partdesc_info()
1132 map->s_uspace.s_table = inode; in udf_fill_partdesc_info()
1133 map->s_partition_flags |= UDF_PART_FLAG_UNALLOC_TABLE; in udf_fill_partdesc_info()
1135 p_index, map->s_uspace.s_table->i_ino); in udf_fill_partdesc_info()
1142 map->s_uspace.s_bitmap = bitmap; in udf_fill_partdesc_info()
1145 map->s_partition_flags |= UDF_PART_FLAG_UNALLOC_BITMAP; in udf_fill_partdesc_info()
1157 struct udf_part_map *map = &sbi->s_partmaps[p_index]; in udf_find_vat_block() local
1168 vat_block >= map->s_partition_root && in udf_find_vat_block()
1170 ino.logicalBlockNum = vat_block - map->s_partition_root; in udf_find_vat_block()
1182 struct udf_part_map *map = &sbi->s_partmaps[p_index]; in udf_load_vat() local
1201 if (map->s_partition_type == UDF_VIRTUAL_MAP15) { in udf_load_vat()
1202 map->s_type_specific.s_virtual.s_start_offset = 0; in udf_load_vat()
1203 map->s_type_specific.s_virtual.s_num_entries = in udf_load_vat()
1205 } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) { in udf_load_vat()
1218 map->s_type_specific.s_virtual.s_start_offset = in udf_load_vat()
1220 map->s_type_specific.s_virtual.s_num_entries = in udf_load_vat()
1222 map->s_type_specific.s_virtual. in udf_load_vat()
1239 struct udf_part_map *map; in udf_load_partdesc() local
1259 map = &sbi->s_partmaps[i]; in udf_load_partdesc()
1261 map->s_partition_num, partitionNumber); in udf_load_partdesc()
1262 if (map->s_partition_num == partitionNumber && in udf_load_partdesc()
1263 (map->s_partition_type == UDF_TYPE1_MAP15 || in udf_load_partdesc()
1264 map->s_partition_type == UDF_SPARABLE_MAP15)) in udf_load_partdesc()
1284 map = NULL; /* supress 'maybe used uninitialized' warning */ in udf_load_partdesc()
1286 map = &sbi->s_partmaps[i]; in udf_load_partdesc()
1288 if (map->s_partition_num == partitionNumber && in udf_load_partdesc()
1289 (map->s_partition_type == UDF_VIRTUAL_MAP15 || in udf_load_partdesc()
1290 map->s_partition_type == UDF_VIRTUAL_MAP20 || in udf_load_partdesc()
1291 map->s_partition_type == UDF_METADATA_MAP25)) in udf_load_partdesc()
1304 if (map->s_partition_type == UDF_METADATA_MAP25) { in udf_load_partdesc()
1334 struct udf_part_map *map, in udf_load_sparable_map() argument
1340 struct udf_sparing_data *sdata = &map->s_type_specific.s_sparing; in udf_load_sparable_map()
1344 map->s_partition_type = UDF_SPARABLE_MAP15; in udf_load_sparable_map()
1383 map->s_partition_func = udf_get_pblock_spar15; in udf_load_sparable_map()
1425 struct udf_part_map *map = &sbi->s_partmaps[i]; in udf_load_logicalvol() local
1432 map->s_partition_type = UDF_TYPE1_MAP15; in udf_load_logicalvol()
1433 map->s_volumeseqnum = le16_to_cpu(gpm1->volSeqNum); in udf_load_logicalvol()
1434 map->s_partition_num = le16_to_cpu(gpm1->partitionNum); in udf_load_logicalvol()
1435 map->s_partition_func = NULL; in udf_load_logicalvol()
1445 map->s_partition_type = in udf_load_logicalvol()
1447 map->s_partition_func = in udf_load_logicalvol()
1450 map->s_partition_type = in udf_load_logicalvol()
1452 map->s_partition_func = in udf_load_logicalvol()
1458 ret = udf_load_sparable_map(sb, map, in udf_load_logicalvol()
1466 &map->s_type_specific.s_metadata; in udf_load_logicalvol()
1473 map->s_partition_type = UDF_METADATA_MAP25; in udf_load_logicalvol()
1474 map->s_partition_func = udf_get_pblock_meta25; in udf_load_logicalvol()
1509 map->s_volumeseqnum = le16_to_cpu(upm2->volSeqNum); in udf_load_logicalvol()
1510 map->s_partition_num = le16_to_cpu(upm2->partitionNum); in udf_load_logicalvol()
1513 i, map->s_partition_num, type, map->s_volumeseqnum); in udf_load_logicalvol()
2505 struct udf_part_map *map; in udf_count_free() local
2535 map = &sbi->s_partmaps[part]; in udf_count_free()
2536 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) { in udf_count_free()
2538 map->s_uspace.s_bitmap); in udf_count_free()
2543 if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) { in udf_count_free()
2545 map->s_uspace.s_table); in udf_count_free()