Lines Matching refs:rsrc_id
296 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
303 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_id()
304 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_id()
313 *rsrc_id = 0; in ts_allocate_id()
319 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_id()
320 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_id()
321 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_id()
322 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].fast_offset = 0; in ts_allocate_id()
323 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_id()
328 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_id()
329 return *rsrc_id; in ts_allocate_id()
342 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
349 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_fast_id()
350 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_fast_id()
356 *rsrc_id = 0; in ts_allocate_fast_id()
371 *rsrc_id = 0; in ts_allocate_fast_id()
377 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_fast_id()
378 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_fast_id()
379 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_fast_id()
380 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].fast_offset = *offset; in ts_allocate_fast_id()
381 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_fast_id()
386 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_fast_id()
387 return *rsrc_id; in ts_allocate_fast_id()