/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | usb_request.h | 41 void SetClientData(std::vector<uint8_t> bufferData) in SetClientData() argument 43 clientData_ = bufferData; in SetClientData() 45 void SetReqData(std::vector<uint8_t> bufferData) in SetReqData() argument 47 reqData_ = bufferData; in SetReqData()
|
D | iusb_srv.h | 80 std::vector<uint8_t> &bufferData, int32_t timeOut) = 0; 82 const std::vector<uint8_t> &bufferData, int32_t timeOut) = 0; 84 std::vector<uint8_t> &bufferData) = 0; 88 …al int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) = 0; 91 const std::vector<uint8_t> &clientData, const std::vector<uint8_t> &bufferData) = 0; 93 std::vector<uint8_t> &bufferData) = 0;
|
D | usb_device_pipe.h | 31 …int32_t BulkTransfer(const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOu… 32 …2_t ControlTransfer(const HDI::Usb::V1_0::UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData);
|
D | usb_srv_client.h | 60 …2_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, 63 std::vector<uint8_t> &bufferData); 66 int32_t GetRawDescriptors(USBDevicePipe &pipe, std::vector<uint8_t> &bufferData);
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_device_pipe.cpp | 53 int32_t USBDevicePipe::BulkTransfer(const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, … in BulkTransfer() argument 55 return UsbSrvClient::GetInstance().BulkTransfer(*this, endpoint, bufferData, timeOut); in BulkTransfer() 58 …t32_t USBDevicePipe::ControlTransfer(const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData) in ControlTransfer() argument 60 return UsbSrvClient::GetInstance().ControlTransfer(*this, ctrl, bufferData); in ControlTransfer()
|
D | usb_srv_client.cpp | 232 …USBDevicePipe &pipe, const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOu… in BulkTransfer() argument 239 ret = proxy_->BulkTransferRead(tdev, tpipe, bufferData, timeOut); in BulkTransfer() 241 ret = proxy_->BulkTransferWrite(tdev, tpipe, bufferData, timeOut); in BulkTransfer() 250 USBDevicePipe &pipe, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData) in ControlTransfer() argument 254 int32_t ret = proxy_->ControlTransfer(dev, ctrl, bufferData); in ControlTransfer() 276 int32_t UsbSrvClient::GetRawDescriptors(USBDevicePipe &pipe, std::vector<uint8_t> &bufferData) in GetRawDescriptors() argument 279 int32_t ret = proxy_->GetRawDescriptor(pipe.GetBusNum(), pipe.GetDevAddr(), bufferData); in GetRawDescriptors() 307 std::vector<uint8_t> bufferData; in PipeRequestWait() local 309 int32_t ret = proxy_->RequestWait(tdev, timeOut, clientData, bufferData); in PipeRequestWait() 317 req.SetReqData(bufferData); in PipeRequestWait()
|
/base/usb/usb_manager/services/zidl/include/ |
D | usb_server_proxy.h | 50 std::vector<uint8_t> &bufferData, int32_t timeOut) override; 52 const std::vector<uint8_t> &bufferData, int32_t timeOut) override; 55 std::vector<uint8_t> &bufferData) override; 59 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri… 62 const std::vector<uint8_t> &clientData, const std::vector<uint8_t> &bufferData) override; 64 std::vector<uint8_t> &bufferData) override; 82 int32_t SetBufferMessage(MessageParcel &data, const std::vector<uint8_t> &bufferData); 83 int32_t GetBufferMessage(MessageParcel &data, std::vector<uint8_t> &bufferData);
|
D | usb_server_stub.h | 72 int32_t SetBufferMessage(MessageParcel &data, const std::vector<uint8_t> &bufferData); 73 int32_t GetBufferMessage(MessageParcel &data, std::vector<uint8_t> &bufferData);
|
/base/usb/usb_manager/services/zidl/src/ |
D | usb_srv_stub.cpp | 37 int32_t UsbServerStub::SetBufferMessage(MessageParcel &data, const std::vector<uint8_t> &bufferData) in SetBufferMessage() argument 39 uint32_t length = bufferData.size(); in SetBufferMessage() 40 const uint8_t *ptr = bufferData.data(); in SetBufferMessage() 56 int32_t UsbServerStub::GetBufferMessage(MessageParcel &data, std::vector<uint8_t> &bufferData) in GetBufferMessage() argument 59 bufferData.clear(); in GetBufferMessage() 75 bufferData.swap(tdata); in GetBufferMessage() 380 std::vector<uint8_t> bufferData; in DoBulkTransferRead() local 383 int32_t ret = BulkTransferRead(tmpDev, tmpPipe, bufferData, timeOut); in DoBulkTransferRead() 388 ret = SetBufferMessage(reply, bufferData); in DoBulkTransferRead() 408 std::vector<uint8_t> bufferData; in DoBulkTransferWrite() local [all …]
|
D | usb_srv_proxy.cpp | 35 …t32_t UsbServerProxy::SetBufferMessage(MessageParcel &data, const std::vector<uint8_t> &bufferData) in SetBufferMessage() argument 37 uint32_t length = bufferData.size(); in SetBufferMessage() 38 const uint8_t *ptr = bufferData.data(); in SetBufferMessage() 56 int32_t UsbServerProxy::GetBufferMessage(MessageParcel &data, std::vector<uint8_t> &bufferData) in GetBufferMessage() argument 59 bufferData.clear(); in GetBufferMessage() 75 bufferData.swap(tdata); in GetBufferMessage() 597 const UsbDev &dev, const UsbPipe &pipe, std::vector<uint8_t> &bufferData, int32_t timeOut) in BulkTransferRead() argument 617 ret = GetBufferMessage(reply, bufferData); in BulkTransferRead() 622 USB_HILOGI(MODULE_USBD, "Set buffer message. length = %{public}zu", bufferData.size()); in BulkTransferRead() 627 const UsbDev &dev, const UsbPipe &pipe, const std::vector<uint8_t> &bufferData, int32_t timeOut) in BulkTransferWrite() argument [all …]
|
/base/usb/usb_manager/services/native/include/ |
D | usb_service.h | 80 std::vector<uint8_t> &bufferData, int32_t timeOut) override; 82 const std::vector<uint8_t> &bufferData, int32_t timeOut) override; 84 std::vector<uint8_t> &bufferData) override; 88 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri… 91 const std::vector<uint8_t> &clientData, const std::vector<uint8_t> &bufferData) override; 93 std::vector<uint8_t> &bufferData) override;
|
/base/usb/usb_manager/services/native/src/ |
D | usb_service.cpp | 469 const UsbDev &devInfo, const UsbPipe &pipe, std::vector<uint8_t> &bufferData, int32_t timeOut) in BulkTransferRead() argument 475 int32_t ret = usbd_->BulkTransferRead(devInfo, pipe, timeOut, bufferData); in BulkTransferRead() 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 …::ControlTransfer(const UsbDev &dev, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData) in ControlTransfer() argument 505 ret = usbd_->ControlTransferWrite(dev, ctrl, bufferData); in ControlTransfer() 510 bufferData.clear(); in ControlTransfer() 511 ret = usbd_->ControlTransferRead(dev, ctrl, bufferData); in ControlTransfer() 549 …2_t UsbService::GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) in GetRawDescriptor() argument 556 int32_t ret = usbd_->GetRawDescriptor(dev, bufferData); in GetRawDescriptor() [all …]
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 967 std::vector<uint8_t> bufferData; in PipeGetRawDescriptors() local 968 int32_t ret = g_usbClient.GetRawDescriptors(pipe, bufferData); in PipeGetRawDescriptors() 970 NapiUtil::Uint8ArrayToJsValue(env, bufferData, bufferData.size(), result); in PipeGetRawDescriptors() 1003 …std::vector<uint8_t> bufferData(asyncContext->buffer, asyncContext->buffer + asyncContext->bufferL… in __anonfb361f7e0702() local 1013 ret = asyncContext->pipe.ControlTransfer(tctrl, bufferData); in __anonfb361f7e0702() 1020 … = memcpy_s(asyncContext->buffer, asyncContext->bufferLength, bufferData.data(), bufferData.size()… in __anonfb361f7e0702() 1026 asyncContext->dataSize = bufferData.size(); in __anonfb361f7e0702() 1155 …std::vector<uint8_t> bufferData(asyncContext->buffer, asyncContext->buffer + asyncContext->bufferL… in __anonfb361f7e0902() local 1163 … ret = asyncContext->pipe.BulkTransfer(asyncContext->endpoint, bufferData, asyncContext->timeOut); in __anonfb361f7e0902() 1170 … = memcpy_s(asyncContext->buffer, asyncContext->bufferLength, bufferData.data(), bufferData.size()… in __anonfb361f7e0902() [all …]
|