Lines Matching refs:mUsb
41 mUsb = NULL;
92 mUsb = aUsb;
115 if (mUsb != NULL)
117 USBProxyService::freeDevice(mUsb);
118 mUsb = NULL;
140 *aVendorId = mUsb->idVendor;
149 *aProductId = mUsb->idProduct;
159 *aRevision = mUsb->bcdDevice;
168 aManufacturer = mUsb->pszManufacturer;
178 aProduct = mUsb->pszProduct;
188 aSerialNumber = mUsb->pszSerialNumber;
196 aAddress = mUsb->pszAddress;
206 *aPort = mUsb->bPort;
219 *aVersion = mUsb->bcdUSB >> 8;
233 switch (mUsb->enmSpeed)
241 switch (mUsb->bcdUSB >> 8)
259 if (mUsb->enmSpeed == USBDEVICESPEED_UNKNOWN)
260 *aPortVersion = mUsb->bcdUSB >> 8;
263 switch (mUsb->enmSpeed)
277 AssertMsgFailed(("Invalid USB speed: %d\n", mUsb->enmSpeed));
321 bool haveManufacturer = mUsb->pszManufacturer && *mUsb->pszManufacturer;
322 bool haveProduct = mUsb->pszProduct && *mUsb->pszProduct;
324 name = Utf8StrFmt("%s %s", mUsb->pszManufacturer, mUsb->pszProduct);
326 name = Utf8StrFmt("%s", mUsb->pszManufacturer);
328 name = Utf8StrFmt("%s", mUsb->pszProduct);
914 if (!USBFilterMatchDevice(&aData.mUSBFilter, mUsb))
919 if ( mUsb->enmState == USBDEVICESTATE_USED_BY_HOST_CAPTURABLE
945 return i_compare(mUsb, aDev2,
1082 const USBDEVICESTATE enmOldState = mUsb->enmState; NOREF(enmOldState);
1083 if (mUsb != aDev)
1096 aDev->u64SerialHash = mUsb->u64SerialHash;
1098 if (mUsb->pszSerialNumber && *mUsb->pszSerialNumber)
1106 aDev->pszSerialNumber = mUsb->pszSerialNumber;
1107 mUsb->pszSerialNumber = NULL;
1110 if (mUsb->pszManufacturer && *mUsb->pszManufacturer)
1118 aDev->pszManufacturer = mUsb->pszManufacturer;
1119 mUsb->pszManufacturer = NULL;
1122 if (mUsb->pszProduct && *mUsb->pszProduct)
1130 aDev->pszProduct = mUsb->pszProduct;
1131 mUsb->pszProduct = NULL;
1135 aDev->pNext = mUsb->pNext;
1136 aDev->pPrev = mUsb->pPrev;
1137 USBProxyService::freeDevice(mUsb);
1138 mUsb = aDev;
1156 if (enmOldState != mUsb->enmState)
1159 switch (mUsb->enmState)
1444 AssertMsgFailed(("enmState=%d {%s} %s\n", mUsb->enmState, mName, i_getStateName()));
1492 if (mUsb != aDev)
1494 aDev->pNext = mUsb->pNext;
1495 aDev->pPrev = mUsb->pPrev;
1496 USBProxyService::freeDevice(mUsb);
1497 mUsb = aDev;