Lines Matching refs:g_hSmcConnect
111 io_connect_t g_hSmcConnect = IO_OBJECT_NULL;
120 IOReturn rcIo = IOServiceOpen(g_hSmcService, mach_task_self(), 1, &g_hSmcConnect);
121 if (rcIo == kIOReturnSuccess && g_hSmcConnect != IO_OBJECT_NULL)
123 rcIo = IOConnectCallMethod(g_hSmcConnect, kSMCUserClientOpen, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL);
131 g_hSmcConnect = IO_OBJECT_NULL;
139 if (g_hSmcConnect)
141 IOConnectCallMethod(g_hSmcConnect, kSMCUserClientClose, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL);
142 IOServiceClose(g_hSmcConnect);
143 g_hSmcConnect = IO_OBJECT_NULL;
158 IOReturn rcIo = IOConnectCallStructMethod(g_hSmcConnect, kSMCHandleYPCEvent, pIn, sizeof(*pIn), pOut, &cbOut);