Lines Matching refs:mapEntry
119 if (le32_to_cpu(st->mapEntry[i].origLocation) >= 0xFFFFFFF0)
121 else if (le32_to_cpu(st->mapEntry[i].origLocation) == packet)
123 return le32_to_cpu(st->mapEntry[i].mappedLocation) +
126 else if (le32_to_cpu(st->mapEntry[i].origLocation) > packet)
137 struct sparingEntry mapEntry;
163 if (le32_to_cpu(st->mapEntry[k].origLocation) == 0xFFFFFFFF)
170 st->mapEntry[k].origLocation = cpu_to_le32(packet);
175 *new_block = le32_to_cpu(st->mapEntry[k].mappedLocation) +
179 else if (le32_to_cpu(st->mapEntry[k].origLocation) == packet)
181 *new_block = le32_to_cpu(st->mapEntry[k].mappedLocation) +
185 else if (le32_to_cpu(st->mapEntry[k].origLocation) > packet)
190 if (le32_to_cpu(st->mapEntry[l].origLocation) == 0xFFFFFFFF)
197 mapEntry = st->mapEntry[l];
198 mapEntry.origLocation = cpu_to_le32(packet);
199 memmove(&st->mapEntry[k+1], &st->mapEntry[k], (l-k)*sizeof(struct sparingEntry));
200 st->mapEntry[k] = mapEntry;
205 *new_block = le32_to_cpu(st->mapEntry[k].mappedLocation) +