Home
last modified time | relevance | path

Searched refs:lba (Results 1 – 2 of 2) sorted by relevance

/block/partitions/
Daix.c95 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument
100 if (!buffer || lba + count / 512 > last_lba(state->bdev)) in read_lba()
106 unsigned char *data = read_part_sector(state, lba++, &sect); in read_lba()
129 static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba) in alloc_pvd() argument
138 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_pvd()
154 static struct lvname *alloc_lvn(struct parsed_partitions *state, u32 lba) in alloc_lvn() argument
163 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_lvn()
Defi.c252 u64 lba, u8 *buffer, size_t count) in read_lba() argument
256 sector_t n = lba * (bdev_logical_block_size(bdev) / 512); in read_lba()
258 if (!buffer || lba > last_lba(bdev)) in read_lba()
323 u64 lba) in alloc_read_gpt_header() argument
332 if (read_lba(state, lba, (u8 *) gpt, ssz) < ssz) { in alloc_read_gpt_header()
351 static int is_gpt_valid(struct parsed_partitions *state, u64 lba, in is_gpt_valid() argument
359 if (!(*gpt = alloc_read_gpt_header(state, lba))) in is_gpt_valid()
402 if (le64_to_cpu((*gpt)->my_lba) != lba) { in is_gpt_valid()
405 (unsigned long long)lba); in is_gpt_valid()