Lines Matching refs:item
193 struct test_parman_item *item = &test_parman->items[i];
197 /* Assign random prio to each item structure */
198 item->prio = &test_parman->prios[prio_index];
207 struct test_parman_item *item = &test_parman->items[i];
209 if (!item->used)
212 &item->prio->parman_prio,
213 &item->parman_item);
275 struct test_parman_item *item = &test_parman->items[item_index];
280 if (!item->used) {
282 &item->prio->parman_prio,
283 &item->parman_item);
286 test_parman->prio_array[item->parman_item.index] = item;
289 test_parman->prio_array[item->parman_item.index] = NULL;
291 &item->prio->parman_prio,
292 &item->parman_item);
295 item->used = !item->used;
315 struct test_parman_item *item = test_parman->prio_array[i];
317 if (!item) {
329 if (item->prio->priority < last_priority) {
331 item->prio->priority, last_priority);
334 last_priority = item->prio->priority;
336 if (item->parman_item.index != i) {
338 item->parman_item.index, i);
350 pr_err("Number of unused item at the end of array is bigger than resize step (%u >= %lu)\n",