Searched refs:sbd (Results 1 – 4 of 4) sorted by relevance
1291 struct space_bitmap_desc *sbd; in udf_create_space_bitmap() local1296 sbd = calloc(context.sector_size, dscr_size); in udf_create_space_bitmap()1297 if (sbd == NULL) in udf_create_space_bitmap()1300 udf_inittag(&sbd->tag, TAGID_SPACE_BITMAP, /* loc */ 0); in udf_create_space_bitmap()1302 sbd->num_bits = udf_rw32(part_size_lba); in udf_create_space_bitmap()1303 sbd->num_bytes = udf_rw32((part_size_lba + 7)/8); in udf_create_space_bitmap()1306 for (cnt = 0; cnt < udf_rw32(sbd->num_bytes); cnt++) in udf_create_space_bitmap()1307 sbd->data[cnt] = 0xff; in udf_create_space_bitmap()1311 sbd->tag.desc_crc_len = udf_rw16(crclen); in udf_create_space_bitmap()1313 *sbdp = sbd; in udf_create_space_bitmap()[all …]
1466 struct space_bitmap_desc *sbd, *new_sbd; in udf_trunc_metadatapart() local1531 sbd = (struct space_bitmap_desc *) bitmap->blob; in udf_trunc_metadatapart()1532 sbd->num_bits = udf_rw32(udf_rw32(sbd->num_bits) - to_trunc); in udf_trunc_metadatapart()1533 sbd->num_bytes = udf_rw32(udf_rw32(sbd->num_bytes) - to_trunc/8); in udf_trunc_metadatapart()1534 bitmap->max_offset = udf_rw32(sbd->num_bits); in udf_trunc_metadatapart()1543 new_sbd = realloc(sbd, inf_len, M_UDFVOLD, in udf_trunc_metadatapart()1564 inf_len = (uint64_t) udf_rw32(sbd->num_bits) * lb_size; /* [4/14.12.4] */ in udf_trunc_metadatapart()
750 size += udf_rw32(dscr->sbd.num_bytes); in udf_tagsize()1546 ump->part_unalloc_dscr[phys_part] = &dscr->sbd; in udf_read_physical_partition_spacetables()1551 bitmap->bits = dscr->sbd.data; in udf_read_physical_partition_spacetables()1552 bitmap->max_offset = udf_rw32(dscr->sbd.num_bits); in udf_read_physical_partition_spacetables()1605 ump->part_freed_dscr[phys_part] = &dscr->sbd; in udf_read_physical_partition_spacetables()1610 bitmap->bits = dscr->sbd.data; in udf_read_physical_partition_spacetables()1611 bitmap->max_offset = udf_rw32(dscr->sbd.num_bits); in udf_read_physical_partition_spacetables()1764 ump->metadata_unalloc_dscr = &dscr->sbd; in udf_read_metadata_partition_spacetable()1769 bitmap->bits = dscr->sbd.data; in udf_read_metadata_partition_spacetable()1770 bitmap->max_offset = udf_rw32(dscr->sbd.num_bits); in udf_read_metadata_partition_spacetable()
829 struct space_bitmap_desc sbd; member