Lines Matching refs:idx
238 int idx;
279 idx = template->lt_cnt++;
282 return (idx);
305 int idx;
308 for (idx = 0; idx < template->lt_cnt; idx++)
309 if (template->lt_entries[idx].et_key &&
310 (strcmp(key, template->lt_entries[idx].et_key) == 0))
313 if (idx >= template->lt_cnt)
314 idx = -1;
317 return (idx);
1065 int idx;
1070 idx = ledger_key_lookup(l->l_template, args->lla_name);
1071 if ((idx < 0) || (idx >= l->l_size))
1081 if (idx == task_ledgers.cpu_time) {
1112 ledger_set_period(l, idx, args->lla_refill_period);
1114 ledger_set_limit(l, idx, limit);
1115 flag_set(&l->l_entries[idx].le_flags, LEDGER_ACTION_BLOCK);