Lines Matching refs:idx
630 size_t idx = SIZE_MAX, n; in user_record_set_disk_size() local
676 idx = SIZE_MAX; in user_record_set_disk_size()
683 idx = i; in user_record_set_disk_size()
693 idx = SIZE_MAX; in user_record_set_disk_size()
696 if (idx == SIZE_MAX) in user_record_set_disk_size()
697 idx = n++; /* Nothing suitable found, place new entry at end */ in user_record_set_disk_size()
699 ne = json_variant_ref(array[idx]); in user_record_set_disk_size()
706 idx = 0; in user_record_set_disk_size()
720 assert(idx < n); in user_record_set_disk_size()
721 array[idx] = ne; in user_record_set_disk_size()
1407 size_t idx = SIZE_MAX, n; in user_record_set_rebalance_weight() local
1451 idx = SIZE_MAX; in user_record_set_rebalance_weight()
1458 idx = i; in user_record_set_rebalance_weight()
1468 idx = SIZE_MAX; in user_record_set_rebalance_weight()
1471 if (idx == SIZE_MAX) in user_record_set_rebalance_weight()
1472 idx = n++; /* Nothing suitable found, place new entry at end */ in user_record_set_rebalance_weight()
1474 per_machine_entry = json_variant_ref(array[idx]); in user_record_set_rebalance_weight()
1481 idx = 0; in user_record_set_rebalance_weight()
1498 assert(idx < n); in user_record_set_rebalance_weight()
1499 array[idx] = per_machine_entry; in user_record_set_rebalance_weight()