Searched refs:ref_cnt (Results 1 – 2 of 2) sorted by relevance
28 ns_ctx_data[i].ref_cnt = 0; in init_ns_ctx()47 if (ns_ctx_data[i].ref_cnt > 0) { /* This context has been taken */ in acquire_ns_ctx()53 if (ns_ctx_data[i].ref_cnt < TFM_NS_CONTEXT_MAX_TID) { in acquire_ns_ctx()55 ns_ctx_data[i].ref_cnt++; in acquire_ns_ctx()79 ns_ctx_data[empty_ctx_idx].ref_cnt++; in acquire_ns_ctx()113 if (ns_ctx_data[idx].ref_cnt > 0) { in release_ns_ctx()114 ns_ctx_data[idx].ref_cnt--; in release_ns_ctx()123 if (ns_ctx_data[idx].ref_cnt > 1) { in release_ns_ctx()124 ns_ctx_data[idx].ref_cnt--; in release_ns_ctx()129 if (ns_ctx_data[idx].ref_cnt > 0) { in release_ns_ctx()[all …]
23 uint8_t ref_cnt; /* The number of threads sharing this context */ member