Home
last modified time | relevance | path

Searched refs:configIndex (Results 1 – 25 of 28) sorted by relevance

12

/drivers/peripheral/usb/test/unittest/hal/src/
Dusbd_request_test.cpp110 uint8_t configIndex = INDEX_1; variable
112 auto ret = g_usbInterface->SetConfig(dev, configIndex);
126 uint8_t configIndex = INDEX_1; variable
128 auto ret = g_usbInterface->SetConfig(dev, configIndex);
142 uint8_t configIndex = INDEX_1; variable
144 auto ret = g_usbInterface->SetConfig(dev, configIndex);
158 uint8_t configIndex = INDEX_INVALID; variable
160 auto ret = g_usbInterface->SetConfig(dev, configIndex);
162 configIndex = INDEX_1;
163 ret = g_usbInterface->SetConfig(dev, configIndex);
[all …]
/drivers/peripheral/usb/test/unittest/mock/src/
Dusbd_request_auto_test.cpp128 uint8_t configIndex = INDEX_1; variable
130 auto ret = g_usbInterface->SetConfig(dev, configIndex);
143 uint8_t configIndex = INDEX_1; variable
145 auto ret = g_usbInterface->SetConfig(dev, configIndex);
158 uint8_t configIndex = INDEX_1; variable
160 auto ret = g_usbInterface->SetConfig(dev, configIndex);
173 uint8_t configIndex = INDEX_INVALID; variable
175 auto ret = g_usbInterface->SetConfig(dev, configIndex);
177 configIndex = INDEX_1;
178 ret = g_usbInterface->SetConfig(dev, configIndex);
[all …]
Dmock_linux_adapter.cpp283 int32_t FuncAdapterGetConfigDescriptor(const UsbDevice *dev, uint8_t configIndex, void *buffer, siz… in FuncAdapterGetConfigDescriptor() argument
287 …if (dev == nullptr || buffer == nullptr || (configIndex > dev->deviceDescriptor.bNumConfigurations… in FuncAdapterGetConfigDescriptor()
290 configIndex = 1; in FuncAdapterGetConfigDescriptor()
292 if (configIndex == dev->configDescriptors[i].desc->bConfigurationValue) { in FuncAdapterGetConfigDescriptor()
/drivers/peripheral/usb/interfaces/ddk/host/
Dusb_raw_api.h302 const UsbRawDevice *rawDev, uint8_t configIndex, struct UsbRawConfigDescriptor ** const config);
517 … const UsbRawHandle *rawHandle, uint8_t configIndex, uint8_t *configDesc, uint32_t configDescLen);
/drivers/peripheral/usb/test/unittest/mock/include/
Dmock_linux_adapter.h27 int32_t FuncAdapterGetConfigDescriptor(const UsbDevice *dev, uint8_t configIndex, void *buffer, siz…
/drivers/external_device_manager/interfaces/ddk/usb/
Dusb_ddk_api.h92 uint64_t deviceId, uint8_t configIndex, struct UsbDdkConfigDescriptor ** const config);
/drivers/peripheral/usb/ddk_service/include/
Dusb_ddk_service.h37 …int32_t GetConfigDescriptor(uint64_t deviceId, uint8_t configIndex, std::vector<uint8_t> &configDe…
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_interface.h190 uint8_t configIndex; member
/drivers/peripheral/usb/test/benchmarktest/
Dusb_benchmark_request_test.cpp113 uint8_t configIndex = INDEX_1; in BENCHMARK_F() local
117 ret = g_usbInterface->SetConfig(g_dev, configIndex); in BENCHMARK_F()
137 uint8_t configIndex = INDEX_1; in BENCHMARK_F() local
141 ret = g_usbInterface->GetConfig(g_dev, configIndex); in BENCHMARK_F()
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
Dusb_impl_mock.h64 MOCK_METHOD2(SetConfig, int32_t(const UsbDev &dev, uint8_t configIndex));
65 MOCK_METHOD2(GetConfig, int32_t(const UsbDev &dev, uint8_t &configIndex));
/drivers/external_device_manager/frameworks/ddk/usb/
Dusb_ddk_api.cpp75 uint64_t deviceId, uint8_t configIndex, struct UsbDdkConfigDescriptor ** const config) in OH_Usb_GetConfigDescriptor() argument
86 int32_t ret = g_ddk->GetConfigDescriptor(deviceId, configIndex, configDescriptor); in OH_Usb_GetConfigDescriptor()
/drivers/peripheral/usb/ddk/host/include/
Dliteos_adapter.h97 …int32_t (*getConfigDescriptor)(const struct UsbDevice *device, uint8_t configIndex, void *buffer, …
Dlinux_adapter.h118 …int32_t (*getConfigDescriptor)(const struct UsbDevice *device, uint8_t configIndex, void *buffer, …
Dusb_raw_api_library.h113 int32_t RawGetConfigDescriptor(const struct UsbDevice *dev, uint8_t configIndex,
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_service.cpp145 int32_t UsbDdkService::GetConfigDescriptor(uint64_t deviceId, uint8_t configIndex, std::vector<uint… in GetConfigDescriptor() argument
155 …rawHandle, configIndex, reinterpret_cast<uint8_t *>(&tmpDesc), sizeof(struct UsbConfigDescriptor)); in GetConfigDescriptor()
163 ret = GetRawConfigDescriptor(rawHandle, configIndex, tmpBuffer.data(), tmpDesc.wTotalLength); in GetConfigDescriptor()
/drivers/peripheral/usb/ddk/host/src/
Dusb_raw_api.c83 const UsbRawDevice *rawDev, uint8_t configIndex, struct UsbRawConfigDescriptor ** const config) in UsbRawGetConfigDescriptor() argument
90 return RawGetConfigDescriptor((const struct UsbDevice *)rawDev, configIndex, config); in UsbRawGetConfigDescriptor()
Dusb_raw_api_library.c236 const UsbRawHandle *rawHandle, uint8_t configIndex, uint8_t *configDesc, uint32_t configDescLen) in GetRawConfigDescriptor() argument
244 return GetConfigDescriptor(devHandle->dev, configIndex, configDesc, configDescLen); in GetRawConfigDescriptor()
1169 const struct UsbDevice *dev, uint8_t configIndex, struct UsbRawConfigDescriptor ** const config) in RawGetConfigDescriptor() argument
1181 if (configIndex > dev->deviceDescriptor.bNumConfigurations) { in RawGetConfigDescriptor()
1186 ret = GetConfigDescriptor(dev, configIndex, tmpConfig.buf, sizeof(tmpConfig.buf)); in RawGetConfigDescriptor()
1198 ret = GetConfigDescriptor(dev, configIndex, buf, configLen); in RawGetConfigDescriptor()
Dlinux_adapter.c980 static int32_t AdapterGetConfigDescriptor(const struct UsbDevice *dev, uint8_t configIndex, void *b… in AdapterGetConfigDescriptor() argument
985 if (dev == NULL || buffer == NULL || (configIndex > dev->deviceDescriptor.bNumConfigurations)) { in AdapterGetConfigDescriptor()
991 if (configIndex == dev->configDescriptors[i].desc->bConfigurationValue) { in AdapterGetConfigDescriptor()
Dliteos_adapter.c1185 static int32_t AdapterGetConfigDescriptor(const struct UsbDevice *dev, uint8_t configIndex, void *b… in AdapterGetConfigDescriptor() argument
/drivers/peripheral/usb/hdi_service/include/
Dusb_impl.h53 int32_t SetConfig(const UsbDev &dev, uint8_t configIndex) override;
54 int32_t GetConfig(const UsbDev &dev, uint8_t &configIndex) override;
/drivers/peripheral/usb/hdi_service/src/
Dusb_impl.cpp1106 int32_t UsbImpl::SetConfig(const UsbDev &dev, uint8_t configIndex) in SetConfig() argument
1124 if (configIndex == configIdOld) { in SetConfig()
1126 configIndex, configIdOld); in SetConfig()
1131 …MakeSetActiveUsbControlParams(&controlParams, &configIndex, length, static_cast<int32_t>(configInd… in SetConfig()
1141 if (ret != HDF_SUCCESS || configIndex != configIdNew) { in SetConfig()
1145 if (configIndex != 0) { in SetConfig()
1155 int32_t UsbImpl::GetConfig(const UsbDev &dev, uint8_t &configIndex) in GetConfig() argument
1165 MakeGetActiveUsbControlParams(&controlParams, &configIndex, length, 0, 0); in GetConfig()
/drivers/interface/usb/ddk/v1_0/
DIUsbDdk.idl75 …* @param configIndex Configuration index, which corresponds to <b>bConfigurationValue</b> in the U…
82 …GetConfigDescriptor([in] unsigned long deviceId, [in] unsigned char configIndex, [out] List<unsign…
/drivers/interface/usb/v1_0/
DIUsbInterface.idl137 * @param configIndex Indicates the configuration information of the USB device.
142 SetConfig([in] struct UsbDev dev, [in] unsigned char configIndex);
148 * @param configIndex Indicates the configuration information of the USB device.
153 GetConfig([in] struct UsbDev dev, [out] unsigned char configIndex);
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_dev_mgr.c52 info->configIndex = config->configurationValue; in GetInterfaceInfo()
/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp698 …e->info.interfaceClass, fnIface->info.subclass, fnIface->info.protocol, fnIface->info.configIndex); in UsbMtpDeviceParseEachPipe()
754 … iface->info.configIndex, iface->info.interfaceClass, iface->info.subclass, iface->info.protocol); in UsbFnInterfaceIsUsbMtpPtpDevice()

12