Lines Matching refs:info
48 static void UsbFnDispatchUevent(const struct UsbFnUeventInfo *info)
50 bool isGadgetConnect = strcmp(info->devPath, g_gadgetEventPath) == 0;
51 isGadgetConnect = (isGadgetConnect && strcmp(info->usbState, "CONNECTED") == 0);
57 bool isGadgetDisconnect = strcmp(info->devPath, g_gadgetEventPath) == 0;
58 isGadgetDisconnect = (isGadgetDisconnect && strcmp(info->usbState, "DISCONNECTED") == 0);
64 bool isPort2Device = strcmp(info->subSystem, "dual_role_usb") == 0;
65 isPort2Device = (isPort2Device && strcmp(info->dualRoleMode, "ufp") == 0);
71 bool isPort2Host = strcmp(info->subSystem, "dual_role_usb") == 0;
72 isPort2Host = (isPort2Host && strcmp(info->dualRoleMode, "dfp") == 0);
81 struct UsbFnUeventInfo info = {
92 info.devPath = msgTmp;
94 strlen(info.subSystem) == 0) { // some uevent has more than one SUBSYSTEM property
96 info.subSystem = msgTmp;
99 info.usbState = msgTmp;
102 info.dualRoleMode = msgTmp;
107 UsbFnDispatchUevent(&info);