Lines Matching refs:idx
328 int idx = -1;
336 idx = (l + u) / 2;
337 c = hctl->compare(&el, hctl->pelems[idx]);
339 u = idx;
341 l = idx + 1;
346 return idx;
352 int idx;
368 idx = _snd_hctl_find_elem(hctl, &elem->id, &dir);
371 list_add(&elem->list, &hctl->pelems[idx]->list);
372 idx++;
374 list_add_tail(&elem->list, &hctl->pelems[idx]->list);
376 memmove(hctl->pelems + idx + 1,
377 hctl->pelems + idx,
378 (hctl->count - idx) * sizeof(snd_hctl_elem_t *));
379 hctl->pelems[idx] = elem;
385 static void snd_hctl_elem_remove(snd_hctl_t *hctl, unsigned int idx)
387 snd_hctl_elem_t *elem = hctl->pelems[idx];
393 m = hctl->count - idx;
395 memmove(hctl->pelems + idx,
396 hctl->pelems + idx + 1,
566 unsigned int idx;
591 for (idx = 0; idx < list.count; idx++) {
599 elem->id = list.pids[idx];
602 hctl->pelems[idx] = elem;
609 for (idx = 0; idx < hctl->count; idx++) {
611 hctl->pelems[idx]);