Home
last modified time | relevance | path

Searched refs:busNum (Results 1 – 21 of 21) sorted by relevance

/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp26 int32_t UsbServerStub::GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr) in GetDeviceMessage() argument
28 if (!data.ReadUint8(busNum)) { in GetDeviceMessage()
249 uint8_t busNum = 0; in DoOpenDevice() local
251 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoOpenDevice()
253 int32_t ret = OpenDevice(busNum, devAddr); in DoOpenDevice()
343 uint8_t busNum = 0; in DoClaimInterface() local
347 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoClaimInterface()
352 … reply, Int32, ClaimInterface(busNum, devAddr, interface, force), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoClaimInterface()
358 uint8_t busNum = 0; in DoReleaseInterface() local
361 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoReleaseInterface()
[all …]
Dusb_srv_proxy.cpp28 int32_t UsbServerProxy::SetDeviceMessage(MessageParcel &data, uint8_t busNum, uint8_t devAddr) in SetDeviceMessage() argument
30 WRITE_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_WRITE_PARCEL_ERROR); in SetDeviceMessage()
274 int32_t UsbServerProxy::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
286 int32_t ret = SetDeviceMessage(data, busNum, devAddr); in OpenDevice()
552 int32_t UsbServerProxy::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t … in ClaimInterface() argument
563 SetDeviceMessage(data, busNum, devAddr); in ClaimInterface()
575 int32_t UsbServerProxy::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
586 SetDeviceMessage(data, busNum, devAddr); in ReleaseInterface()
608 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferRead()
638 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferWrite()
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_host_manager.cpp42 bool UsbHostManager::DelDevice(uint8_t busNum, uint8_t devNum) in DelDevice() argument
44 std::string name = std::to_string(busNum) + "-" + std::to_string(devNum); in DelDevice()
47 …ODULE_SERVICE, "name:%{public}s bus:%{public}hhu dev:%{public}hhu not exist", name.c_str(), busNum, in DelDevice()
52 …RVICE, "device:%{public}s bus:%{public}hhu dev:%{public}hhu erase ", name.c_str(), busNum, devNum); in DelDevice()
81 uint8_t busNum = dev->GetBusNum(); in AddDevice() local
83 std::string name = std::to_string(busNum) + "-" + std::to_string(devNum); in AddDevice()
87 busNum, devNum); in AddDevice()
93 …RVICE, "device:%{public}s bus:%{public}hhu dev:%{public}hhu insert", name.c_str(), busNum, devNum); in AddDevice()
Dusb_service.cpp231 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
[all …]
Dusb_service_subscriber.cpp82 int32_t busNum = info.busNum; in DeviceEvent() local
86 pms->AddDevice(busNum, devAddr); in DeviceEvent()
89 pms->DelDevice(busNum, devAddr); in DeviceEvent()
/base/usb/usb_manager/services/native/include/
Dusb_service.h64 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
77 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
78 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
85 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
86 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
87 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
88 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
89 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
94 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
95 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
Dusb_host_manager.h36 bool DelDevice(uint8_t busNum, uint8_t devNum);
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h35 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
47 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
48 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
56 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
57 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
58 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
59 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
60 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
65 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
66 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
Dusb_server_stub.h71 int32_t GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr);
/base/usb/usb_manager/interfaces/innerkits/native/include/
Diusb_srv.h65 virtual int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) = 0;
77 virtual int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) = 0;
78 …virtual int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force…
85 virtual int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configId) = 0;
86 virtual int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configId) = 0;
87 …virtual int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altInde…
88 …virtual int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData…
89 virtual int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) = 0;
94 …virtual int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpoi…
95 virtual int32_t Close(uint8_t busNum, uint8_t devAddr) = 0;
Dusb_device_pipe.h28 USBDevicePipe(uint8_t busNum, uint8_t devAddr);
37 void SetBusNum(uint8_t busNum);
Dusb_device.h32 …uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t klass, int32_t subCl… in UsbDevice() argument
40 this->busNum_ = busNum; in UsbDevice()
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_device_pipe.cpp28 USBDevicePipe::USBDevicePipe(uint8_t busNum, uint8_t devAddr) in USBDevicePipe() argument
29 : busNum_(busNum), devAddr_(devAddr) in USBDevicePipe()
73 void USBDevicePipe::SetBusNum(uint8_t busNum) in SetBusNum() argument
75 this->busNum_ = busNum; in SetBusNum()
/base/usb/usb_manager/test/native/js_unittest/
DUsbCoreJsunit.test.js165 tmpPipe.busNum = -23
208 tmpPipe.busNum = -23
294 var tempPipe = {busNum : 255, devAddress : 255} property
316 var tempPipe = {busNum : 255, devAddress : gPipe.devAddress} property
338 var tempPipe = {busNum : gPipe.busNum, devAddress : 255} property
DUsbCoreJsunitEx.test.js113 device.busNum = 2 + 1000
121 ' busNum ' + device.busNum);
/base/startup/init/test/unittest/ueventd/
Dueventd_event_unittest.cpp201 ueventdBuffer.append(std::string("BUSNUM=") + std::to_string(uevent.busNum) + '\000'); in GenerateUeventBuffer()
244 .busNum = 1,
254 EXPECT_EQ(outEvent.busNum, 1);
325 .busNum = 1,
355 .busNum = 1,
387 .busNum = 1,
458 .busNum = -1,
473 .busNum = 3,
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts479 busNum: number; property
579 busNum: number; property
/base/startup/init/ueventd/include/
Dueventd.h56 int busNum; member
/base/startup/init/ueventd/
Dueventd_device_handler.c501 if (uevent->busNum < 0 || uevent->devNum < 0) { in HandleOtherDeviceEvent()
507 "/dev/bus/usb/%03d/%03d", uevent->busNum, uevent->devNum) == -1) { in HandleOtherDeviceEvent()
508 … INIT_LOGE("Make usb device node for device [%d : %d]", uevent->busNum, uevent->devNum); in HandleOtherDeviceEvent()
Dueventd.c245 uevent->busNum = StringToInt(event + strlen("BUSNUM="), -1); in AddUevent()
263 uevent->busNum = -1; in ParseUeventMessage()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp62 int32_t busNum = 0; in ParseUsbDevicePipe() local
63 NapiUtil::JsObjectToInt(env, obj, "busNum", busNum); in ParseUsbDevicePipe()
64 pipe.SetBusNum(static_cast<uint8_t>(busNum)); in ParseUsbDevicePipe()
368 int32_t busNum = 0; in ParseDeviceObj() local
369 NapiUtil::JsObjectToInt(env, deviceObj, "busNum", busNum); in ParseDeviceObj()
382 …dev = UsbDevice(name, manufacturerName, productName, version, devAddr, busNum, vendorId, productId… in ParseDeviceObj()