Lines Matching refs:hsdkA
169 btk_Status btk_SDK_close( btk_HSDK hsdkA ) in btk_SDK_close() argument
173 if( hsdkA == NULL ) return btk_STATUS_INVALID_HANDLE; in btk_SDK_close()
174 if( hsdkA->hidE != btk_HID_SDK ) return btk_STATUS_INVALID_HANDLE; in btk_SDK_close()
175 if( bbs_Context_error( &hsdkA->contextE ) ) return btk_STATUS_PREEXISTING_ERROR; in btk_SDK_close()
177 if( hsdkA->refCtrE > 0 ) in btk_SDK_close()
179 bbs_Context_pushError( &hsdkA->contextE, in btk_SDK_close()
183 hsdkA->refCtrE ) ); in btk_SDK_close()
188 if( hsdkA->freeFPtrE ) in btk_SDK_close()
190 btk_fpFree freeFPtrL = hsdkA->freeFPtrE; in btk_SDK_close()
191 btk_SDK_exit( hsdkA ); in btk_SDK_close()
192 freeFPtrL( hsdkA ); in btk_SDK_close()
196 btk_SDK_exit( hsdkA ); in btk_SDK_close()
206 btk_Error btk_SDK_getError( btk_HSDK hsdkA, char* msgBufA, u32 msgBufSizeA ) in btk_SDK_getError() argument
208 if( hsdkA == NULL ) return btk_ERR_CORRUPT_DATA; in btk_SDK_getError()
209 if( hsdkA->hidE != btk_HID_SDK ) return btk_STATUS_INVALID_HANDLE; in btk_SDK_getError()
211 if( bbs_Context_error( &hsdkA->contextE ) ) in btk_SDK_getError()
213 struct bbs_Error errL = bbs_Context_popError( &hsdkA->contextE ); in btk_SDK_getError()
230 u32 btk_SDK_exAllocSize( btk_HSDK hsdkA ) in btk_SDK_exAllocSize() argument
232 if( hsdkA == NULL ) return 0; in btk_SDK_exAllocSize()
233 if( hsdkA->hidE != btk_HID_SDK ) return 0; in btk_SDK_exAllocSize()
234 return ( bbs_Context_exclAllocSize( &hsdkA->contextE, 0 ) * 2 ) + bbs_SIZEOF8( struct btk_SDK ); in btk_SDK_exAllocSize()
239 u32 btk_SDK_shAllocSize( btk_HSDK hsdkA ) in btk_SDK_shAllocSize() argument
241 if( hsdkA == NULL ) return 0; in btk_SDK_shAllocSize()
242 if( hsdkA->hidE != btk_HID_SDK ) return 0; in btk_SDK_shAllocSize()
243 return bbs_Context_shrdAllocSize( &hsdkA->contextE, 0 ) * 2; in btk_SDK_shAllocSize()
248 u32 btk_SDK_allocSize( btk_HSDK hsdkA ) in btk_SDK_allocSize() argument
250 return btk_SDK_exAllocSize( hsdkA ) + btk_SDK_shAllocSize( hsdkA ); in btk_SDK_allocSize()
255 btk_Status btk_SDK_paramConsistencyTest( struct btk_SDK* hsdkA, in btk_SDK_paramConsistencyTest() argument
267 bbs_Context_pushError( &hsdkA->contextE, in btk_SDK_paramConsistencyTest()
277 bbs_Context_pushError( &hsdkA->contextE, in btk_SDK_paramConsistencyTest()
294 bbs_Context_pushError( &hsdkA->contextE, in btk_SDK_paramConsistencyTest()