Lines Matching defs:lib_infop

329     HBA_LIBRARY_INFO	*lib_infop;
340 for(lib_infop = _hbaapi_librarylist;
341 lib_infop != NULL;
342 lib_infop = lib_infop->next) {
343 if(lib_infop->index == libraryIndex) {
344 if(lib_infop->status != HBA_LIBRARY_LOADED) {
347 *lib_infopp = lib_infop;
356 status = HBA_CheckLibrary(handle, &lib_infop, &vendorHandle);\
530 HBA_LIBRARY_INFO *lib_infop;
578 lib_infop = (HBA_LIBRARY_INFO *)calloc(1, sizeof(HBA_LIBRARY_INFO));
579 if(lib_infop == NULL) {
585 lib_infop->status = HBA_LIBRARY_NOT_LOADED;
586 lib_infop->next = _hbaapi_librarylist;
587 lib_infop->index = _hbaapi_total_library_count;
589 _hbaapi_librarylist = lib_infop;
592 lib_infop->hLibrary = LoadLibrary(byFileName);
593 if (lib_infop->hLibrary == NULL){
598 lib_infop->LibraryPath = strdup(byFileName);
603 GetProcAddress(lib_infop->hLibrary, "HBA_RegisterLibraryV2");
607 status = ((RegisterV2Func)(&lib_infop->functionTable));
616 GetProcAddress(lib_infop->hLibrary, "HBA_RegisterLibrary");
624 (HBA_ENTRYPOINTS *)(&lib_infop->functionTable)));
633 GetVersionFunc = lib_infop->functionTable.GetVersionHandler;
646 LoadLibraryFunc = lib_infop->functionTable.LoadLibraryHandler;
660 lib_infop->status = HBA_LIBRARY_LOADED;
674 HBA_LIBRARY_INFO *lib_infop;
735 lib_infop = (HBA_LIBRARY_INFO *)calloc(1, sizeof(HBA_LIBRARY_INFO));
736 if(lib_infop == NULL) {
740 lib_infop->status = HBA_LIBRARY_NOT_LOADED;
741 lib_infop->LibraryName = strdup(libraryname);
742 lib_infop->LibraryPath = strdup(librarypath);
743 lib_infop->index = _hbaapi_total_library_count;
745 lib_infop->next = _hbaapi_librarylist;
746 _hbaapi_librarylist = lib_infop;
749 if((lib_infop->hLibrary = dlopen(librarypath,RTLD_LAZY)) == NULL) {
755 dlsym(lib_infop->hLibrary, "HBA_RegisterLibraryV2");
759 status = ((RegisterV2Func)(&lib_infop->functionTable));
767 dlsym(lib_infop->hLibrary, "HBA_RegisterLibrary");
780 ((HBA_ENTRYPOINTS *)(&lib_infop->functionTable)));
793 if((GetVersionFunc = lib_infop->functionTable.GetVersionHandler)
808 LoadLibraryFunc = lib_infop->functionTable.LoadLibraryHandler;
829 lib_infop->status = HBA_LIBRARY_LOADED;
880 HBA_LIBRARY_INFO *lib_infop;
892 for(lib_infop = _hbaapi_librarylist; lib_infop != NULL; lib_infop = lib_next) {
893 lib_next = lib_infop->next;
894 if (lib_infop->status == HBA_LIBRARY_LOADED) {
895 FreeLibraryFunc = lib_infop->functionTable.FreeLibraryHandler;
901 FreeLibrary(lib_infop->hLibrary); /* Unload DLL from memory */
903 dlclose(lib_infop->hLibrary); /* Unload DLL from memory */
907 free(lib_infop->LibraryName);
909 free(lib_infop->LibraryPath);
910 free(lib_infop);
988 HBA_LIBRARY_INFO *lib_infop;
1006 for (lib_infop = _hbaapi_librarylist;
1007 lib_infop != NULL;
1008 lib_infop = lib_infop->next) {
1010 if (lib_infop->status != HBA_LIBRARY_LOADED) {
1015 lib_infop->functionTable.GetNumberOfAdaptersHandler;
1022 lib_infop->LibraryName, num_adapters, 0);
1025 lib_infop->LibraryPath, num_adapters, 0);
1029 GetAdapterNameFunc = lib_infop->functionTable.GetAdapterNameHandler;
1074 lib_infop->LibraryPath, _hbaapi_total_adapter_count);
1078 adapt_infop->library = lib_infop;
1132 HBA_LIBRARY_INFO *lib_infop;
1150 lib_infop = adapt_infop->library;
1152 lib_infop->functionTable.OpenAdapterHandler;
1158 handle = HBA_HANDLE_FROM_LOCAL(lib_infop->index, handle);
1173 HBA_LIBRARY_INFO *lib_infop;
1191 for (lib_infop = _hbaapi_librarylist;
1192 lib_infop != NULL;
1193 lib_infop = lib_infop->next) {
1197 if (lib_infop->status != HBA_LIBRARY_LOADED) {
1202 lib_infop->functionTable.GetNumberOfAdaptersHandler;
1210 OpenAdapterFunc = lib_infop->functionTable.OpenAdapterByWWNHandler;
1222 *phandle = HBA_HANDLE_FROM_LOCAL(lib_infop->index, handle);
1374 HBA_LIBRARY_INFO *lib_infop;
1416 for(lib_infop = _hbaapi_librarylist;
1417 lib_infop != NULL;
1418 lib_infop = lib_infop->next) {
1423 lib_infop->functionTable.RegisterForAdapterAddEventsHandler;
1453 lib_infop->LibraryPath, status, 0);
1457 lib_infop->LibraryPath, status);
1465 vcbp->lib_info = lib_infop;
1546 HBA_LIBRARY_INFO *lib_infop;
1559 registeredfunc = lib_infop->functionTable.RegisterForAdapterEventsHandler;
1582 acbp->lib_info = lib_infop;
1640 HBA_LIBRARY_INFO *lib_infop;
1654 lib_infop->functionTable.RegisterForAdapterPortEventsHandler;
1679 acbp->lib_info = lib_infop;
1737 HBA_LIBRARY_INFO *lib_infop;
1751 lib_infop->functionTable.RegisterForAdapterPortStatEventsHandler;
1775 acbp->lib_info = lib_infop;
1840 HBA_LIBRARY_INFO *lib_infop;
1853 registeredfunc = lib_infop->functionTable.RegisterForTargetEventsHandler;
1876 acbp->lib_info = lib_infop;
1940 HBA_LIBRARY_INFO *lib_infop;
1952 registeredfunc = lib_infop->functionTable.RegisterForLinkEventsHandler;
1975 acbp->lib_info = lib_infop;
2006 HBA_LIBRARY_INFO *lib_infop;
2012 status = HBA_CheckLibrary(handle, &lib_infop, &vendorHandle);
2014 CloseAdapterFunc = lib_infop->functionTable.CloseAdapterHandler;
2029 HBA_LIBRARY_INFO *lib_infop;
2037 lib_infop->functionTable.GetAdapterAttributesHandler;
2053 HBA_LIBRARY_INFO *lib_infop;
2062 lib_infop->functionTable.GetAdapterPortAttributesHandler;
2079 HBA_LIBRARY_INFO *lib_infop;
2088 lib_infop->functionTable.GetPortStatisticsHandler;
2106 HBA_LIBRARY_INFO *lib_infop;
2115 lib_infop->functionTable.GetDiscoveredPortAttributesHandler;
2133 HBA_LIBRARY_INFO *lib_infop;
2142 lib_infop->functionTable.GetPortAttributesByWWNHandler;
2161 HBA_LIBRARY_INFO *lib_infop;
2169 SendCTPassThruFunc = lib_infop->functionTable.SendCTPassThruHandler;
2191 HBA_LIBRARY_INFO *lib_infop;
2199 registeredfunc = lib_infop->functionTable.SendCTPassThruV2Handler;
2218 HBA_LIBRARY_INFO *lib_infop;
2226 GetEventBufferFunc = lib_infop->functionTable.GetEventBufferHandler;
2239 HBA_LIBRARY_INFO *lib_infop;
2247 SetRNIDMgmtInfoFunc = lib_infop->functionTable.SetRNIDMgmtInfoHandler;
2259 HBA_LIBRARY_INFO *lib_infop;
2267 GetRNIDMgmtInfoFunc = lib_infop->functionTable.GetRNIDMgmtInfoHandler;
2285 HBA_LIBRARY_INFO *lib_infop;
2292 SendRNIDFunc = lib_infop->functionTable.SendRNIDHandler;
2313 HBA_LIBRARY_INFO *lib_infop;
2320 registeredfunc = lib_infop->functionTable.SendRNIDV2Handler;
2334 HBA_LIBRARY_INFO *lib_infop;
2341 status = HBA_CheckLibrary(handle, &lib_infop, &vendorHandle);
2344 lib_infop->functionTable.RefreshInformationHandler;
2355 HBA_LIBRARY_INFO *lib_infop;
2362 status = HBA_CheckLibrary(handle, &lib_infop, &vendorHandle);
2364 ResetStatisticsFunc = lib_infop->functionTable.ResetStatisticsHandler;
2375 HBA_LIBRARY_INFO *lib_infop;
2383 lib_infop->functionTable.GetFcpTargetMappingHandler;
2400 HBA_LIBRARY_INFO *lib_infop;
2409 lib_infop->functionTable.GetFcpTargetMappingV2Handler;
2421 HBA_LIBRARY_INFO *lib_infop;
2430 lib_infop->functionTable.GetFcpPersistentBindingHandler;
2454 HBA_LIBRARY_INFO *lib_infop;
2463 lib_infop->functionTable.ScsiInquiryV2Handler;
2488 HBA_LIBRARY_INFO *lib_infop;
2495 SendScsiInquiryFunc = lib_infop->functionTable.ScsiInquiryHandler;
2518 HBA_LIBRARY_INFO *lib_infop;
2526 ScsiReportLUNsV2Func = lib_infop->functionTable.ScsiReportLUNsV2Handler;
2549 HBA_LIBRARY_INFO *lib_infop;
2556 SendReportLUNsFunc = lib_infop->functionTable.ReportLUNsHandler;
2580 HBA_LIBRARY_INFO *lib_infop;
2589 lib_infop->functionTable.ScsiReadCapacityV2Handler;
2613 HBA_LIBRARY_INFO *lib_infop;
2620 SendReadCapacityFunc = lib_infop->functionTable.ReadCapacityHandler;
2640 HBA_LIBRARY_INFO *lib_infop;
2648 registeredfunc = lib_infop->functionTable.SendRLSHandler;
2669 HBA_LIBRARY_INFO *lib_infop;
2677 registeredfunc = lib_infop->functionTable.SendRPLHandler;
2700 HBA_LIBRARY_INFO *lib_infop;
2708 registeredfunc = lib_infop->functionTable.SendRPSHandler;
2730 HBA_LIBRARY_INFO *lib_infop;
2737 registeredfunc = lib_infop->functionTable.SendSRLHandler;
2759 HBA_LIBRARY_INFO *lib_infop;
2766 registeredfunc = lib_infop->functionTable.SendLIRRHandler;
2784 HBA_LIBRARY_INFO *lib_infop;
2792 registeredfunc = lib_infop->functionTable.GetBindingCapabilityHandler;
2808 HBA_LIBRARY_INFO *lib_infop;
2816 registeredfunc = lib_infop->functionTable.GetBindingSupportHandler;
2832 HBA_LIBRARY_INFO *lib_infop;
2840 registeredfunc = lib_infop->functionTable.SetBindingSupportHandler;
2857 HBA_LIBRARY_INFO *lib_infop;
2865 registeredfunc = lib_infop->functionTable.SetPersistentBindingV2Handler;
2881 HBA_LIBRARY_INFO *lib_infop;
2889 registeredfunc = lib_infop->functionTable.GetPersistentBindingV2Handler;
2906 HBA_LIBRARY_INFO *lib_infop;
2915 lib_infop->functionTable.RemovePersistentBindingHandler;
2930 HBA_LIBRARY_INFO *lib_infop;
2939 lib_infop->functionTable.RemoveAllPersistentBindingsHandler;
2956 HBA_LIBRARY_INFO *lib_infop;
2965 lib_infop->functionTable.GetFC4StatisticsHandler;
2982 HBA_LIBRARY_INFO *lib_infop;
2991 lib_infop->functionTable.GetFCPStatisticsHandler;