Lines Matching refs:state
79 static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer, in read_lba() argument
84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
90 unsigned char *data = read_part_sector(state, lba++, §); in read_lba()
113 static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba) in alloc_pvd() argument
122 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_pvd()
138 static struct lvname *alloc_lvn(struct parsed_partitions *state, u32 lba) in alloc_lvn() argument
147 if (read_lba(state, lba, (u8 *) p, count) < count) { in alloc_lvn()
154 int aix_partition(struct parsed_partitions *state) in aix_partition() argument
172 d = read_part_sector(state, 7, §); in aix_partition()
193 strlcat(state->pp_buf, tmp, PAGE_SIZE); in aix_partition()
196 if (vgda_sector && (d = read_part_sector(state, vgda_sector, §))) { in aix_partition()
202 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
205 if (numlvs && (d = read_part_sector(state, vgda_sector + 1, §))) { in aix_partition()
209 n = alloc_lvn(state, vgda_sector + vgda_len - 33); in aix_partition()
213 for (i = 0; foundlvs < numlvs && i < state->limit; i += 1) { in aix_partition()
219 pvd = alloc_pvd(state, vgda_sector + 17); in aix_partition()
241 if (lv_ix >= state->limit) { in aix_partition()
256 put_partition(state, lv_ix + 1, in aix_partition()
261 strlcat(state->pp_buf, tmp, PAGE_SIZE); in aix_partition()
268 for (i = 0; i < state->limit; i += 1) in aix_partition()