Lines Matching refs:state
34 int atari_partition(struct parsed_partitions *state) in atari_partition() argument
50 if (bdev_logical_block_size(state->bdev) != 512) in atari_partition()
53 rs = read_part_sector(state, 0, §); in atari_partition()
58 hd_size = state->bdev->bd_inode->i_size >> 9; in atari_partition()
73 strlcat(state->pp_buf, " AHDI", PAGE_SIZE); in atari_partition()
74 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
84 put_partition (state, slot, be32_to_cpu(pi->st), in atari_partition()
92 strlcat(state->pp_buf, " XGM<", PAGE_SIZE); in atari_partition()
95 xrs = read_part_sector(state, partsect, §2); in atari_partition()
109 put_partition(state, slot, in atari_partition()
126 if (++slot == state->limit) { in atari_partition()
131 strlcat(state->pp_buf, " >", PAGE_SIZE); in atari_partition()
138 strlcat(state->pp_buf, " ICD<", PAGE_SIZE); in atari_partition()
139 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition()
144 put_partition (state, slot, in atari_partition()
148 strlcat(state->pp_buf, " >", PAGE_SIZE); in atari_partition()
154 strlcat(state->pp_buf, "\n", PAGE_SIZE); in atari_partition()