Lines Matching refs:offset

37 static int hammer_test_offset(const char *msg, hammer_off_t offset);
38 static void hammer_strip_bigblock(int zone, hammer_off_t offset);
54 hammer_off_t offset; in hammer_cmd_strip() local
87 offset = phys_offset + block_offset; in hammer_cmd_strip()
99 hammer_strip_bigblock(layer2->zone, offset); in hammer_cmd_strip()
128 hammer_test_offset(const char *msg, hammer_off_t offset) in hammer_test_offset() argument
130 if (get_volume(HAMMER_VOL_DECODE(offset)) == NULL) { in hammer_test_offset()
131 printf("Invalid volume# %d\n", HAMMER_VOL_DECODE(offset)); in hammer_test_offset()
134 if (!hammer_is_zone_raw_buffer(offset)) { in hammer_test_offset()
135 printf("Invalid %s offset 0x%jx\n", msg, offset); in hammer_test_offset()
144 hammer_strip_bigblock(int zone, hammer_off_t offset) in hammer_strip_bigblock() argument
150 assert((offset & HAMMER_BIGBLOCK_MASK64) == 0); in hammer_strip_bigblock()
151 assert((offset & HAMMER_BUFMASK) == 0); in hammer_strip_bigblock()
152 offset = hammer_xlate_to_zoneX(zone, offset); in hammer_strip_bigblock()
160 offset, in hammer_strip_bigblock()
162 HAMMER_VOL_DECODE(offset), in hammer_strip_bigblock()
163 HAMMER_BLOCKMAP_LAYER1_INDEX(offset), in hammer_strip_bigblock()
164 HAMMER_BLOCKMAP_LAYER2_INDEX(offset), in hammer_strip_bigblock()
165 HAMMER_BLOCKMAP_LAYER1_OFFSET(offset), in hammer_strip_bigblock()
166 HAMMER_BLOCKMAP_LAYER2_OFFSET(offset)); in hammer_strip_bigblock()
168 printf("%016jx\n", offset); in hammer_strip_bigblock()
172 get_buffer_data(offset + i, &buffer, 1); in hammer_strip_bigblock()