Lines Matching refs:ctrl
101 static fake_keys ctrl; variable
116 ctrl.size = 0; in stat_cache_init()
392 for (i = 0; i < ctrl.used; i++) { in stat_cache_get_entry()
393 if (ctrl.ptr[i] == file_ndx) break; in stat_cache_get_entry()
400 assert(i < ctrl.used); in stat_cache_get_entry()
434 if (i != ctrl.used) { in stat_cache_get_entry()
438 assert(i == ctrl.used); in stat_cache_get_entry()
513 if (ctrl.size == 0) { in stat_cache_get_entry()
514 ctrl.size = 16; in stat_cache_get_entry()
515 ctrl.used = 0; in stat_cache_get_entry()
516 ctrl.ptr = malloc(ctrl.size * sizeof(*ctrl.ptr)); in stat_cache_get_entry()
517 } else if (ctrl.size == ctrl.used) { in stat_cache_get_entry()
518 ctrl.size += 16; in stat_cache_get_entry()
519 ctrl.ptr = realloc(ctrl.ptr, ctrl.size * sizeof(*ctrl.ptr)); in stat_cache_get_entry()
522 ctrl.ptr[ctrl.used++] = file_ndx; in stat_cache_get_entry()
738 for (j = 0; j < ctrl.used; j++) { in stat_cache_trigger_cleanup()
739 if (ctrl.ptr[j] == ndx) { in stat_cache_trigger_cleanup()
740 ctrl.ptr[j] = ctrl.ptr[--ctrl.used]; in stat_cache_trigger_cleanup()