Lines Matching refs:pi
21 #define VALID_PARTITION(pi,hdsiz) \ argument
22 (((pi)->flg & 1) && \
23 isalnum((pi)->id[0]) && isalnum((pi)->id[1]) && isalnum((pi)->id[2]) && \
24 be32_to_cpu((pi)->st) <= (hdsiz) && \
25 be32_to_cpu((pi)->st) + be32_to_cpu((pi)->siz) <= (hdsiz))
38 struct partition_info *pi; in atari_partition() local
72 pi = &rs->part[0]; in atari_partition()
74 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
79 if ( !(pi->flg & 1) ) in atari_partition()
82 if (memcmp (pi->id, "XGM", 3) != 0) { in atari_partition()
84 put_partition (state, slot, be32_to_cpu(pi->st), in atari_partition()
85 be32_to_cpu(pi->siz)); in atari_partition()
93 partsect = extensect = be32_to_cpu(pi->st); in atari_partition()
135 pi = &rs->icdpart[0]; in atari_partition()
137 if (OK_id(pi->id)) { in atari_partition()
139 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition()
141 if (!((pi->flg & 1) && OK_id(pi->id))) in atari_partition()
145 be32_to_cpu(pi->st), in atari_partition()
146 be32_to_cpu(pi->siz)); in atari_partition()