Lines Matching defs:idx
298 kxld_array_get_item(const KXLDArray *array, u_int idx)
305 if (idx >= array->nitems) goto finish;
308 if (idx < pool->nitems) {
309 item = (void *) (pool->buffer + (array->itemsize * idx));
313 idx -= array->pool_maxitems;
323 kxld_array_get_slot(const KXLDArray *array, u_int idx)
330 if (idx >= array->maxitems) goto finish;
333 if (idx < array->pool_maxitems) {
334 item = (void *) (pool->buffer + (array->itemsize * idx));
338 idx -= array->pool_maxitems;
353 u_int idx = 0;
366 idx = (u_int) (diff / array->itemsize);
368 idx += base_idx;
369 *_idx = idx;
442 kxld_array_remove(KXLDArray *array, u_int idx)
452 if (idx >= array->nitems) {
467 dst += idx * array->itemsize;
470 src += ((idx + 1) * array->itemsize);
472 nitems = pool->nitems - idx - 1;