Lines Matching full: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()
238 * item 1 with prio 10
239 * item 2 with prio 10
240 * item 3 with prio 10
241 * item 4 with prio 20
242 * item 5 with prio 20
243 * item 6 with prio 30
244 * item 7 with prio 30
245 * item 8 with prio 30
251 * item 2 with prio 10
252 * item 3 with prio 10
253 * item 1 with prio 10
254 * item 5 with prio 20
255 * item 4 with prio 20
256 * item 7 with prio 30
257 * item 8 with prio 30
258 * item 6 with prio 30
304 * Before caller could add an item with certain priority, he has to
340 * parman_item_add - adds a parman item under defined priority
342 * @prio: parman prio instance to add the item to
343 * @item: parman item instance
347 * Adds item to a array managed by parman instance under the specified priority.
352 struct parman_item *item) in parman_item_add() argument
354 return parman->algo->item_add(parman, prio, item); in parman_item_add()
359 * parman_item_remove - deletes parman item
361 * @prio: parman prio instance to delete the item from
362 * @item: parman item instance
367 struct parman_item *item) in parman_item_remove() argument
369 parman->algo->item_remove(parman, prio, item); in parman_item_remove()