Home | History | Annotate | Download | only in src

Lines Matching refs:idx

179   int idx = initialIdx;
183 if (gMemoryMap[idx].tag == NULL)
186 gMemoryMap[idx].tag = key;
187 gMemoryMap[idx].curAlloc = 0;
188 gMemoryMap[idx].maxAlloc = 0;
189 gMemoryMap[idx].crc = crc;
190 gMemoryMap[idx].first = NULL;
191 gMemoryMap[idx].last = NULL;
194 pfprintf(gFile, L("pmem|newtag|%s|%d|\n"), key, idx);
196 return idx;
199 if (gMemoryMap[idx].crc == crc &&
200 LSTRCMP(gMemoryMap[idx].tag, key) == 0)
203 return idx;
206 if (++idx == MAX_MEM_TAG)
209 idx = 0;
211 if (idx == initialIdx)
577 int idx;
597 idx = getIndex(tag);
598 if (idx == -1)
603 if (gMemoryMap[idx].tag == tag)
606 gMemoryMap[idx].tag = malloc(sizeof(LCHAR) * (LSTRLEN(tag) + 1));
607 if (gMemoryMap[idx].tag == NULL)
609 LSTRCPY((LCHAR*) gMemoryMap[idx].tag, tag);
625 data->index = idx;
651 e = gMemoryMap + idx;