Lines Matching defs:index
170 int index = sel >> 3;
178 if (wine_ldt_copy.flags[index] & WINE_LDT_FLAGS_ALLOCATED)
180 wine_ldt_set_base( entry, wine_ldt_copy.base[index] );
181 wine_ldt_set_limit( entry, wine_ldt_copy.limit[index] );
182 wine_ldt_set_flags( entry, wine_ldt_copy.flags[index] );
196 int ret = 0, index = sel >> 3;
198 if (index < LDT_FIRST_ENTRY) return 0; /* cannot modify reserved entries */
204 ldt_info.entry_number = index;
216 ret = i386_set_ldt(index, (union descriptor *)&entry_copy, 1);
235 if ((ret = i386_set_ldt(index, (union ldt_entry *)entry, 1)) < 0)
244 wine_ldt_copy.base[index] = wine_ldt_get_base(entry);
245 wine_ldt_copy.limit[index] = wine_ldt_get_limit(entry);
246 wine_ldt_copy.flags[index] = (entry->HighWord.Bits.Type |
248 (wine_ldt_copy.flags[index] & WINE_LDT_FLAGS_ALLOCATED));
289 int index;
293 if ((index = (sel >> 3)) < LDT_FIRST_ENTRY) /* system selector */
295 if (!(wine_ldt_copy.flags[index] & WINE_LDT_FLAGS_32BIT)) offset &= 0xffff;
296 return (char *)wine_ldt_copy.base[index] + offset;
308 int i, index, size = 0;
317 index = i - size + 1;
320 for (i = 0; i < count; i++) wine_ldt_copy.flags[index + i] |= WINE_LDT_FLAGS_ALLOCATED;
322 return (index << 3) | 7;
342 int index = sel >> 3;
346 if (index + newcount > LDT_SIZE) i = oldcount;
349 if (wine_ldt_copy.flags[index+i] & WINE_LDT_FLAGS_ALLOCATED) break;
359 wine_ldt_copy.flags[index+i] |= WINE_LDT_FLAGS_ALLOCATED;
378 int index;
381 for (index = sel >> 3; count > 0; count--, index++)
384 wine_ldt_copy.flags[index] = 0;