Searched refs:global_thread_ctx (Results 1 – 3 of 3) sorted by relevance
101 global_thread_ctx->ctx = scratch; in HSBuildDatabase()129 global_thread_ctx) != 0) { in HSInitCtx()172 if (global_thread_ctx == NULL) { in HSInitGlobalThreadCtx()176 memset(global_thread_ctx, 0, sizeof(*global_thread_ctx)); in HSInitGlobalThreadCtx()177 global_thread_ctx->matcher = SPM_HS; in HSInitGlobalThreadCtx()181 global_thread_ctx->ctx = NULL; in HSInitGlobalThreadCtx()183 return global_thread_ctx; in HSInitGlobalThreadCtx()188 if (global_thread_ctx == NULL) { in HSDestroyGlobalThreadCtx()191 hs_free_scratch(global_thread_ctx->ctx); in HSDestroyGlobalThreadCtx()192 SCFree(global_thread_ctx); in HSDestroyGlobalThreadCtx()[all …]
391 SpmGlobalThreadCtx *global_thread_ctx) in BMInitCtx() argument465 SpmGlobalThreadCtx *global_thread_ctx = SCMalloc(sizeof(SpmGlobalThreadCtx)); in BMInitGlobalThreadCtx() local466 if (global_thread_ctx == NULL) { in BMInitGlobalThreadCtx()470 memset(global_thread_ctx, 0, sizeof(*global_thread_ctx)); in BMInitGlobalThreadCtx()471 global_thread_ctx->matcher = SPM_BM; in BMInitGlobalThreadCtx()472 return global_thread_ctx; in BMInitGlobalThreadCtx()475 static void BMDestroyGlobalThreadCtx(SpmGlobalThreadCtx *global_thread_ctx) in BMDestroyGlobalThreadCtx() argument477 if (global_thread_ctx == NULL) { in BMDestroyGlobalThreadCtx()480 SCFree(global_thread_ctx); in BMDestroyGlobalThreadCtx()491 static SpmThreadCtx *BMMakeThreadCtx(const SpmGlobalThreadCtx *global_thread_ctx) { in BMMakeThreadCtx() argument
147 if (global_thread_ctx == NULL) { in SpmDestroyGlobalThreadCtx()150 uint16_t matcher = global_thread_ctx->matcher; in SpmDestroyGlobalThreadCtx()156 if (global_thread_ctx == NULL) { in SpmMakeThreadCtx()159 uint16_t matcher = global_thread_ctx->matcher; in SpmMakeThreadCtx()175 SpmGlobalThreadCtx *global_thread_ctx) in SpmInitCtx() argument177 BUG_ON(global_thread_ctx == NULL); in SpmInitCtx()178 uint16_t matcher = global_thread_ctx->matcher; in SpmInitCtx()2485 SpmGlobalThreadCtx *global_thread_ctx = NULL; in SpmTestSearch() local2491 if (global_thread_ctx == NULL) { in SpmTestSearch()2497 global_thread_ctx); in SpmTestSearch()[all …]