Lines Matching refs:rsrc_id
281 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo… in ts_allocate_id() argument
288 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_id()
289 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_id()
297 *rsrc_id = 0; in ts_allocate_id()
304 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_id()
305 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_id()
306 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_id()
307 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].fast_offset = 0; in ts_allocate_id()
308 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_id()
313 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_id()
314 return *rsrc_id; in ts_allocate_id()
327 TSRM_API ts_rsrc_id ts_allocate_fast_id(ts_rsrc_id *rsrc_id, size_t *offset, size_t size, ts_alloca… in ts_allocate_fast_id() argument
334 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_fast_id()
335 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_fast_id()
340 *rsrc_id = 0; in ts_allocate_fast_id()
355 *rsrc_id = 0; in ts_allocate_fast_id()
362 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_fast_id()
363 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_fast_id()
364 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_fast_id()
365 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].fast_offset = *offset; in ts_allocate_fast_id()
366 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_fast_id()
371 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_fast_id()
372 return *rsrc_id; in ts_allocate_fast_id()