Lines Matching defs:state
64 static int find_label(struct parsed_partitions *state,
102 data = read_part_sector(state, testsect[i], §);
133 static int find_vol1_partitions(struct parsed_partitions *state,
149 strlcat(state->pp_buf, tmp, PAGE_SIZE);
157 data = read_part_sector(state, blk * secperblk, §);
167 data = read_part_sector(state, blk * secperblk, §);
180 if (counter >= state->limit)
182 put_partition(state, counter + 1, offset, size);
185 data = read_part_sector(state, blk * secperblk, §);
187 strlcat(state->pp_buf, "\n", PAGE_SIZE);
195 static int find_lnx1_partitions(struct parsed_partitions *state,
209 strlcat(state->pp_buf, tmp, PAGE_SIZE);
226 strlcat(state->pp_buf, "\n", PAGE_SIZE);
237 put_partition(state, 1, offset, size - offset);
238 strlcat(state->pp_buf, "\n", PAGE_SIZE);
242 static int find_cms1_partitions(struct parsed_partitions *state,
260 strlcat(state->pp_buf, tmp, PAGE_SIZE);
266 strlcat(state->pp_buf, tmp, PAGE_SIZE);
281 put_partition(state, 1, offset, size-offset);
282 strlcat(state->pp_buf, "\n", PAGE_SIZE);
290 int ibm_partition(struct parsed_partitions *state)
293 struct gendisk *disk = state->disk;
333 if (find_label(state, info, geo, blocksize, &labelsect, name, type,
336 res = find_vol1_partitions(state, geo, blocksize, name,
339 res = find_lnx1_partitions(state, geo, blocksize, name,
343 res = find_cms1_partitions(state, geo, blocksize, name,
356 strlcat(state->pp_buf, "(nonl)", PAGE_SIZE);
359 put_partition(state, 1, offset, size-offset);
360 strlcat(state->pp_buf, "\n", PAGE_SIZE);