• Home
  • Raw
  • Download

Lines Matching refs:dev

239     const UsbDev dev = {busNum, devAddr};  in OpenDevice()  local
244 int32_t ret = usbd_->OpenDevice(dev); in OpenDevice()
450 const UsbDev dev = {busNum, devAddr}; in ClaimInterface() local
455 return usbd_->ClaimInterface(dev, interface, force); in ClaimInterface()
460 const UsbDev dev = {busNum, devAddr}; in ReleaseInterface() local
465 return usbd_->ReleaseInterface(dev, interface); in ReleaseInterface()
483 const UsbDev &dev, const UsbPipe &pipe, const std::vector<uint8_t> &bufferData, int32_t timeOut) in BulkTransferWrite() argument
489 int32_t ret = usbd_->BulkTransferWrite(dev, pipe, timeOut, bufferData); in BulkTransferWrite()
496 int32_t UsbService::ControlTransfer(const UsbDev &dev, const UsbCtrlTransfer &ctrl, std::vector<uin… in ControlTransfer() argument
505 ret = usbd_->ControlTransferWrite(dev, ctrl, bufferData); in ControlTransfer()
511 ret = usbd_->ControlTransferRead(dev, ctrl, bufferData); in ControlTransfer()
521 const UsbDev dev = {busNum, devAddr}; in SetActiveConfig() local
526 return usbd_->SetConfig(dev, configIndex); in SetActiveConfig()
531 const UsbDev dev = {busNum, devAddr}; in GetActiveConfig() local
536 return usbd_->GetConfig(dev, configIndex); in GetActiveConfig()
541 const UsbDev dev = {busNum, devAddr}; in SetInterface() local
546 return usbd_->SetInterface(dev, interfaceid, altIndex); in SetInterface()
551 const UsbDev dev = {busNum, devAddr}; in GetRawDescriptor() local
556 int32_t ret = usbd_->GetRawDescriptor(dev, bufferData); in GetRawDescriptor()
565 const UsbDev dev = {busNum, devAddr}; in GetFileDescriptor() local
570 int32_t ret = usbd_->GetFileDescriptor(dev, fd); in GetFileDescriptor()
577 int32_t UsbService::RequestQueue(const UsbDev &dev, const UsbPipe &pipe, const std::vector<uint8_t>… in RequestQueue() argument
584 int32_t ret = usbd_->RequestQueue(dev, pipe, clientData, bufferData); in RequestQueue()
592 …const UsbDev &dev, int32_t timeOut, std::vector<uint8_t> &clientData, std::vector<uint8_t> &buffer… in RequestWait() argument
598 int32_t ret = usbd_->RequestWait(dev, clientData, bufferData, timeOut); in RequestWait()
607 const UsbDev dev = {busNum, devAddr}; in RequestCancel() local
613 return usbd_->RequestCancel(dev, pipe); in RequestCancel()
618 const UsbDev dev = {busNum, devAddr}; in Close() local
623 return usbd_->CloseDevice(dev); in Close()
628 const UsbDev dev = {busNum, devAddr}; in GetDevStringValFromIdx() local
640 int32_t ret = usbd_->GetStringDescriptor(dev, idx, strV); in GetDevStringValFromIdx()
678 int32_t UsbService::FillDevStrings(UsbDevice &dev) in FillDevStrings() argument
684 busNum = dev.GetBusNum(); in FillDevStrings()
685 devAddr = dev.GetDevAddr(); in FillDevStrings()
686 uint16_t bcdDevice = dev.GetbcdDevice(); in FillDevStrings()
688 dev.SetVersion(BcdToString(bcdData)); 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()
695 dev.GetiSerialNumber(), dev.GetmSerial().c_str(), dev.GetManufacturerName().c_str(), in FillDevStrings()
696 dev.GetProductName().c_str(), dev.GetVersion().c_str()); in FillDevStrings()
699 configs = dev.GetConfigs(); in FillDevStrings()
711 dev.SetConfigs(configs); in FillDevStrings()
716 …vice::GetDeviceInfoDescriptor(const UsbDev &uDev, std::vector<uint8_t> &descriptor, UsbDevice &dev) in GetDeviceInfoDescriptor() argument
736 dev.SetBusNum(uDev.busNum); in GetDeviceInfoDescriptor()
737 dev.SetDevAddr(uDev.devAddr); in GetDeviceInfoDescriptor()
738 dev.SetName(std::to_string(uDev.busNum) + "-" + std::to_string(uDev.devAddr)); in GetDeviceInfoDescriptor()
740 ret = UsbDescriptorParser::ParseDeviceDescriptor(buffer, length, dev); in GetDeviceInfoDescriptor()
749 int32_t UsbService::GetConfigDescriptor(UsbDevice &dev, std::vector<uint8_t> &descriptor) in GetConfigDescriptor() argument
756 for (uint8_t i = 0; i < dev.GetDescConfigCount(); ++i) { in GetConfigDescriptor()
772 dev.SetConfigs(configs); in GetConfigDescriptor()
773 ret = FillDevStrings(dev); in GetConfigDescriptor()
778 int32_t UsbService::GetDeviceInfo(uint8_t busNum, uint8_t devAddr, UsbDevice &dev) in GetDeviceInfo() argument
794 ret = GetDeviceInfoDescriptor(uDev, descriptor, dev); in GetDeviceInfo()
798 ret = GetConfigDescriptor(dev, descriptor); in GetDeviceInfo()
805 USB_HILOGI(MODULE_USB_SERVICE, "CloseDevice=%{public}s", dev.ToString().c_str()); in GetDeviceInfo()