Lines Matching refs:busNum
231 int32_t UsbService::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
233 std::string name = std::to_string(busNum) + "-" + std::to_string(devAddr); in OpenDevice()
239 const UsbDev dev = {busNum, devAddr}; in OpenDevice()
448 int32_t UsbService::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t forc… in ClaimInterface() argument
450 const UsbDev dev = {busNum, devAddr}; in ClaimInterface()
458 int32_t UsbService::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
460 const UsbDev dev = {busNum, devAddr}; in ReleaseInterface()
519 int32_t UsbService::SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) in SetActiveConfig() argument
521 const UsbDev dev = {busNum, devAddr}; in SetActiveConfig()
529 int32_t UsbService::GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) in GetActiveConfig() argument
531 const UsbDev dev = {busNum, devAddr}; in GetActiveConfig()
539 int32_t UsbService::SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altI… in SetInterface() argument
541 const UsbDev dev = {busNum, devAddr}; in SetInterface()
549 int32_t UsbService::GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferD… in GetRawDescriptor() argument
551 const UsbDev dev = {busNum, devAddr}; in GetRawDescriptor()
563 int32_t UsbService::GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) in GetFileDescriptor() argument
565 const UsbDev dev = {busNum, devAddr}; in GetFileDescriptor()
605 int32_t UsbService::RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceId, uint8_t end… in RequestCancel() argument
607 const UsbDev dev = {busNum, devAddr}; in RequestCancel()
616 int32_t UsbService::Close(uint8_t busNum, uint8_t devAddr) in Close() argument
618 const UsbDev dev = {busNum, devAddr}; in Close()
626 std::string UsbService::GetDevStringValFromIdx(uint8_t busNum, uint8_t devAddr, uint8_t idx) in GetDevStringValFromIdx() argument
628 const UsbDev dev = {busNum, devAddr}; in GetDevStringValFromIdx()
680 uint8_t busNum; in FillDevStrings() local
684 busNum = dev.GetBusNum(); in FillDevStrings()
689 dev.SetManufacturerName(GetDevStringValFromIdx(busNum, devAddr, dev.GetiManufacturer())); in FillDevStrings()
690 dev.SetProductName(GetDevStringValFromIdx(busNum, devAddr, dev.GetiProduct())); in FillDevStrings()
691 dev.SetmSerial(GetDevStringValFromIdx(busNum, devAddr, dev.GetiSerialNumber())); in FillDevStrings()
701 it->SetName(GetDevStringValFromIdx(busNum, devAddr, it->GetiConfiguration())); in FillDevStrings()
705 itIF->SetName(GetDevStringValFromIdx(busNum, devAddr, itIF->GetiInterface())); in FillDevStrings()
726 ret, uDev.busNum, uDev.devAddr); in GetDeviceInfoDescriptor()
733 length, uDev.busNum, uDev.devAddr); in GetDeviceInfoDescriptor()
736 dev.SetBusNum(uDev.busNum); in GetDeviceInfoDescriptor()
738 dev.SetName(std::to_string(uDev.busNum) + "-" + std::to_string(uDev.devAddr)); in GetDeviceInfoDescriptor()
778 int32_t UsbService::GetDeviceInfo(uint8_t busNum, uint8_t devAddr, UsbDevice &dev) in GetDeviceInfo() argument
780 USB_HILOGI(MODULE_USB_SERVICE, "busNum:%{public}d devAddr:%{public}d", busNum, devAddr); in GetDeviceInfo()
781 const UsbDev uDev = {busNum, devAddr}; in GetDeviceInfo()
810 bool UsbService::AddDevice(uint8_t busNum, uint8_t devAddr) in AddDevice() argument
824 int32_t ret = GetDeviceInfo(busNum, devAddr, *devInfo); in AddDevice()
840 bool UsbService::DelDevice(uint8_t busNum, uint8_t devAddr) in DelDevice() argument
843 int32_t ret = Close(busNum, devAddr); in DelDevice()
853 …if (!usbRightManager_->RemoveDeviceAllRight(std::to_string(busNum) + "-" + std::to_string(devAddr)… in DelDevice()
854 …W(MODULE_USB_SERVICE, "remove right failed busNum:%{public}u devAddr:%{public}u", busNum, devAddr); in DelDevice()
857 return usbHostManger_->DelDevice(busNum, devAddr); in DelDevice()