Lines Matching defs:state
34 int atari_partition(struct parsed_partitions *state)
50 if (queue_logical_block_size(state->disk->queue) != 512)
53 rs = read_part_sector(state, 0, §);
58 hd_size = get_capacity(state->disk);
73 strlcat(state->pp_buf, " AHDI", PAGE_SIZE);
74 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) {
84 put_partition (state, slot, be32_to_cpu(pi->st),
92 strlcat(state->pp_buf, " XGM<", PAGE_SIZE);
95 xrs = read_part_sector(state, partsect, §2);
109 put_partition(state, slot,
126 if (++slot == state->limit) {
131 strlcat(state->pp_buf, " >", PAGE_SIZE);
138 strlcat(state->pp_buf, " ICD<", PAGE_SIZE);
139 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) {
143 put_partition (state, slot,
147 strlcat(state->pp_buf, " >", PAGE_SIZE);
153 strlcat(state->pp_buf, "\n", PAGE_SIZE);