Lines Matching refs:psContext
36 sParserContext_t* psContext = &sParserContext; in phNxpNciHal_initParser() local
38 memset(&psContext->sEntryFuncs, 0, sizeof(psContext->sEntryFuncs)); in phNxpNciHal_initParser()
40 psContext->pvInstance = NULL; in phNxpNciHal_initParser()
41 psContext->sEntryFuncs.createParser = NULL; in phNxpNciHal_initParser()
42 psContext->sEntryFuncs.initParser = NULL; in phNxpNciHal_initParser()
43 psContext->sEntryFuncs.deinitParser = NULL; in phNxpNciHal_initParser()
44 psContext->sEntryFuncs.destroyParser = NULL; in phNxpNciHal_initParser()
45 psContext->sEntryFuncs.parsePacket = NULL; in phNxpNciHal_initParser()
49 psContext->pvHandle = dlopen(NXP_NCI_PARSER_PATH, RTLD_NOW); in phNxpNciHal_initParser()
50 if (!psContext->pvHandle) { in phNxpNciHal_initParser()
55 psContext->sEntryFuncs.createParser = (tHAL_API_NATIVE_CREATE_PARSER)dlsym( in phNxpNciHal_initParser()
56 psContext->pvHandle, "native_createParser"); in phNxpNciHal_initParser()
57 if (psContext->sEntryFuncs.createParser == NULL) { in phNxpNciHal_initParser()
62 psContext->sEntryFuncs.destroyParser = (tHAL_API_NATIVE_DESTROY_PARSER)dlsym( in phNxpNciHal_initParser()
63 psContext->pvHandle, "native_destroyParser"); in phNxpNciHal_initParser()
64 if (psContext->sEntryFuncs.destroyParser == NULL) { in phNxpNciHal_initParser()
69 psContext->sEntryFuncs.initParser = (tHAL_API_NATIVE_INIT_PARSER)dlsym( in phNxpNciHal_initParser()
70 psContext->pvHandle, "native_initParser"); in phNxpNciHal_initParser()
71 if (psContext->sEntryFuncs.initParser == NULL) { in phNxpNciHal_initParser()
76 psContext->sEntryFuncs.deinitParser = (tHAL_API_NATIVE_DEINIT_PARSER)dlsym( in phNxpNciHal_initParser()
77 psContext->pvHandle, "native_deinitParser"); in phNxpNciHal_initParser()
78 if (psContext->sEntryFuncs.deinitParser == NULL) { in phNxpNciHal_initParser()
83 psContext->sEntryFuncs.parsePacket = (tHAL_API_NATIVE_PARSE_PACKET)dlsym( in phNxpNciHal_initParser()
84 psContext->pvHandle, "native_parseNciMsg"); in phNxpNciHal_initParser()
85 if (psContext->sEntryFuncs.parsePacket == NULL) { in phNxpNciHal_initParser()
90 psContext->pvInstance = (*(psContext->sEntryFuncs.createParser))(); in phNxpNciHal_initParser()
92 if (psContext->pvInstance != NULL) { in phNxpNciHal_initParser()
93 (*(psContext->sEntryFuncs.initParser))(psContext->pvInstance); in phNxpNciHal_initParser()
105 sParserContext_t* psContext = &sParserContext; in phNxpNciHal_parsePacket() local
114 if (psContext->pvInstance != NULL) { in phNxpNciHal_parsePacket()
115 (*(psContext->sEntryFuncs.parsePacket))(psContext->pvInstance, pNciPkt, in phNxpNciHal_parsePacket()
124 sParserContext_t* psContext = &sParserContext; in phNxpNciHal_deinitParser() local
128 if (psContext->pvInstance != NULL) { in phNxpNciHal_deinitParser()
129 (*(psContext->sEntryFuncs.deinitParser))(psContext->pvInstance); in phNxpNciHal_deinitParser()
131 (*(psContext->sEntryFuncs.destroyParser))(psContext->pvInstance); in phNxpNciHal_deinitParser()
136 if (psContext->pvHandle != NULL) { in phNxpNciHal_deinitParser()
137 dlclose(psContext->pvHandle); in phNxpNciHal_deinitParser()