Lines Matching defs:map
631 struct ud_map *map;
845 map = udf_vfsp->udf_maps;
847 if (map->udm_flags & UDM_MAP_VPM) {
850 map++;
882 map = udf_vfsp->udf_maps;
883 ASSERT(map != NULL);
885 if (map->udm_flags & UDM_MAP_VPM) {
889 map++;
980 struct ud_map *map;
1281 map = udf_vfsp->udf_maps;
1285 if (map != NULL) {
1286 bcopy(map, udf_vfsp->udf_maps,
1289 kmem_free(map, sizeof (struct ud_map) *
1292 map = udf_vfsp->udf_maps + udf_vfsp->udf_nmaps;
1293 map->udm_flags = UDM_MAP_NORM;
1294 map->udm_vsn = SWAP_16(typ1->map1_vsn);
1295 map->udm_pn = SWAP_16(typ1->map1_pn);
1308 map = udf_vfsp->udf_maps;
1312 if (map != NULL) {
1313 bcopy(map, udf_vfsp->udf_maps,
1316 kmem_free(map,
1320 map = udf_vfsp->udf_maps + udf_vfsp->udf_nmaps;
1321 map->udm_flags = UDM_MAP_VPM;
1322 map->udm_vsn = SWAP_16(typ2->map2_vsn);
1323 map->udm_pn = SWAP_16(typ2->map2_pn);
1329 lblkno, map)) {
1345 map = udf_vfsp->udf_maps;
1350 if (map != NULL) {
1351 bcopy(map, udf_vfsp->udf_maps,
1354 kmem_free(map,
1358 map = udf_vfsp->udf_maps + udf_vfsp->udf_nmaps;
1359 map->udm_flags = UDM_MAP_SPM;
1360 map->udm_vsn = SWAP_16(typ2->map2_vsn);
1361 map->udm_pn = SWAP_16(typ2->map2_pn);
1366 dev, map, typ2)) {
1479 * release/free resources from one ud_map; map data was zalloc'd in
1484 ud_free_map(struct ud_map *map)
1488 if (map->udm_flags & UDM_MAP_VPM) {
1489 if (map->udm_count) {
1490 kmem_free(map->udm_count,
1491 map->udm_nent * sizeof (*map->udm_count));
1492 map->udm_count = NULL;
1494 if (map->udm_bp) {
1495 for (n = 0; n < map->udm_nent; n++) {
1496 if (map->udm_bp[n])
1497 brelse(map->udm_bp[n]);
1499 kmem_free(map->udm_bp,
1500 map->udm_nent * sizeof (*map->udm_bp));
1501 map->udm_bp = NULL;
1503 if (map->udm_addr) {
1504 kmem_free(map->udm_addr,
1505 map->udm_nent * sizeof (*map->udm_addr));
1506 map->udm_addr = NULL;
1509 if (map->udm_flags & UDM_MAP_SPM) {
1511 if (map->udm_sbp[n]) {
1512 brelse(map->udm_sbp[n]);
1513 map->udm_sbp[n] = NULL;
1514 map->udm_spaddr[n] = NULL;
1782 dev_t dev, struct ud_map *map, struct pmap_typ2 *typ2)
1789 map->udm_plen = SWAP_16(typ2->map2_pl);
1790 map->udm_nspm = typ2->map2_nst;
1791 map->udm_spsz = SWAP_32(typ2->map2_sest);
1792 sz = (map->udm_spsz + udf_vfsp->udf_lbmask) & ~udf_vfsp->udf_lbmask;
1797 for (index = 0; index < map->udm_nspm; index++) {
1798 map->udm_loc[index] = SWAP_32(typ2->map2_st[index]);
1801 map->udm_loc[index] << udf_vfsp->udf_l2d_shift, sz);
1813 map->udm_sbp[index] = bp;
1814 map->udm_spaddr[index] = bp->b_un.b_addr;