Lines Matching refs:item
45 struct parman_item *item);
47 struct parman_item *item);
126 struct parman_item *item, unsigned long to_index, in __parman_prio_move() argument
129 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move()
135 struct parman_item *item; in parman_prio_shift_down() local
140 item = parman_prio_first_item(prio); in parman_prio_shift_down()
142 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_down()
143 list_move_tail(&item->list, &prio->item_list); in parman_prio_shift_down()
144 item->index = to_index; in parman_prio_shift_down()
150 struct parman_item *item; in parman_prio_shift_up() local
155 item = parman_prio_last_item(prio); in parman_prio_shift_up()
157 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_up()
158 list_move(&item->list, &prio->item_list); in parman_prio_shift_up()
159 item->index = to_index; in parman_prio_shift_up()
164 struct parman_item *item) in parman_prio_item_remove() argument
170 if (last_item == item) { in parman_prio_item_remove()
171 list_del(&item->list); in parman_prio_item_remove()
174 to_index = item->index; in parman_prio_item_remove()
177 list_replace(&item->list, &last_item->list); in parman_prio_item_remove()
183 struct parman_item *item) in parman_lsort_item_add() argument
201 item->index = new_index; in parman_lsort_item_add()
202 list_add_tail(&item->list, &prio->item_list); in parman_lsort_item_add()
209 struct parman_item *item) in parman_lsort_item_remove() argument
211 parman_prio_item_remove(parman, prio, item); in parman_lsort_item_remove()
352 struct parman_item *item) in parman_item_add() argument
354 return parman->algo->item_add(parman, prio, item); in parman_item_add()
367 struct parman_item *item) in parman_item_remove() argument
369 parman->algo->item_remove(parman, prio, item); in parman_item_remove()