Lines Matching refs:j
178 int j; in tsrm_shutdown() local
181 for (j=0; j<p->count; j++) { in tsrm_shutdown()
182 if (p->storage[j]) { in tsrm_shutdown()
183 if (resource_types_table && !resource_types_table[j].done && resource_types_table[j].dtor) { in tsrm_shutdown()
184 resource_types_table[j].dtor(p->storage[j]); in tsrm_shutdown()
186 free(p->storage[j]); in tsrm_shutdown()
253 int j; in ts_allocate_id() local
256 for (j=p->count; j<id_count; j++) { in ts_allocate_id()
257 p->storage[j] = (void *) malloc(resource_types_table[j].size); in ts_allocate_id()
258 if (resource_types_table[j].ctor) { in ts_allocate_id()
259 resource_types_table[j].ctor(p->storage[j]); in ts_allocate_id()
540 int j = TSRM_UNSHUFFLE_RSRC_ID(id); in ts_free_id() local
551 if (p->count > j && p->storage[j]) { in ts_free_id()
552 if (resource_types_table && resource_types_table[j].dtor) { in ts_free_id()
553 resource_types_table[j].dtor(p->storage[j]); in ts_free_id()
555 free(p->storage[j]); in ts_free_id()
556 p->storage[j] = NULL; in ts_free_id()
562 resource_types_table[j].done = 1; in ts_free_id()