/drivers/peripheral/usb/sample/device/liteos/ |
H A D | prop_test.c | 80 static int32_t TestPropGet(const char *propName) in TestPropGet() argument 84 if (!HdfSbufWriteString(g_data, propName)) { in TestPropGet() 98 printf("%s: %s = %s\n", __func__, propName, propVal); in TestPropGet() 104 static int32_t TestPropSet(const char *propName, const char *propValue) in TestPropSet() argument 107 if (!HdfSbufWriteString(g_data, propName)) { in TestPropSet() 108 HDF_LOGE("%{public}s:failed to write propName : %{public}s", __func__, propName); in TestPropSet() 123 static int32_t TestPropRegist(const char *propName, const char *propValue) in TestPropRegist() argument 132 if (!HdfSbufWriteString(g_data, propName)) { in TestPropRegist() 133 HDF_LOGE("%{public}s:failed to write propName in TestPropRegist() 154 TestProp(const char *propName, const char *propValue, bool setProp, bool getProp, bool registProp) TestProp() argument 174 const char *propName = NULL; PropTest() local [all...] |
/drivers/peripheral/usb/sample/device/linux/ |
H A D | prop_test.c | 72 static int32_t TestPropGet(const char *propName) in TestPropGet() argument 76 if (!HdfSbufWriteString(g_data, propName)) { in TestPropGet() 90 HDF_LOGE("%{public}s: %{public}s = %{public}s", __func__, propName, propVal); in TestPropGet() 96 static int32_t TestPropSet(const char *propName, const char *propValue) in TestPropSet() argument 99 if (!HdfSbufWriteString(g_data, propName)) { in TestPropSet() 100 HDF_LOGE("%{public}s:failed to write propName : %{public}s", __func__, propName); in TestPropSet() 115 static int32_t TestPropRegist(const char *propName, const char *propValue) in TestPropRegist() argument 124 if (!HdfSbufWriteString(g_data, propName)) { in TestPropRegist() 125 HDF_LOGE("%{public}s:failed to write propName in TestPropRegist() 148 const char *propName = NULL; PropTest() local [all...] |
/drivers/peripheral/usb/test/moduletest/common/liteos/ |
H A D | usb_device_serial_func_test.cpp | 174 const char *propName = "idVendor"; in HWTEST_F() local 177 acm_prop_write(propName, writeBuf); in HWTEST_F() 178 acm_prop_read(propName, readBuf); in HWTEST_F() 193 const char *propName = "idVendor"; in HWTEST_F() local 196 acm_prop_write(propName, writeBuf); in HWTEST_F() 197 acm_prop_read(propName, readBuf); in HWTEST_F() 212 const char *propName = "testp"; in HWTEST_F() local 215 acm_prop_regist(propName, propValue); in HWTEST_F() 216 acm_prop_read(propName, readBuf); in HWTEST_F() 231 const char *propName in HWTEST_F() local [all...] |
/drivers/peripheral/usb/sample/device/liteos/lib/include/ |
H A D | lib_acm_test.h | 24 void acm_prop_regist(const char *propName, const char *propValue); 25 void acm_prop_write(const char *propName, const char *propValue); 26 void acm_prop_read(const char *propName, char *propValue);
|
/drivers/peripheral/usb/sample/device/liteos/lib/src/ |
H A D | lib_acm_test.c | 136 void acm_prop_regist(const char *propName, const char *propValue) in acm_prop_regist() argument 143 (void)HdfSbufWriteString(g_data, propName); in acm_prop_regist() 150 printf("prop_regist:%s = %s\n", propName, propValue); in acm_prop_regist() 153 void acm_prop_write(const char *propName, const char *propValue) in acm_prop_write() argument 161 (void)HdfSbufWriteString(g_data, propName); in acm_prop_write() 172 printf("prop_write:%s = %s\n", propName, propValue); in acm_prop_write() 175 void acm_prop_read(const char *propName, char *propValue) in acm_prop_read() argument 183 (void)HdfSbufWriteString(g_data, propName); in acm_prop_read()
|
/drivers/peripheral/usb/ddk/host/src/ |
H A D | ddk_sysfs_device.c | 32 static inline int32_t DdkSysfsGetBase(const char *propName) in DdkSysfsGetBase() argument 34 if (strcmp(propName, "idProduct") == 0 || strcmp(propName, "idVendor") == 0) { in DdkSysfsGetBase() 45 static int32_t DdkSysfsReadProperty(const char *deviceDir, const char *propName, int64_t *value, uint64_t maxVal) in DdkSysfsReadProperty() argument 48 int32_t num = sprintf_s(pathTmp, SYSFS_PATH_LEN, "%s%s/%s", SYSFS_DEVICES_DIR, deviceDir, propName); in DdkSysfsReadProperty() 51 "%{public}s: sprintf_s error deviceDir:%{public}s, propName:%{public}s", __func__, deviceDir, propName); in DdkSysfsReadProperty() 85 int64_t res = strtoll(buf, NULL, DdkSysfsGetBase(propName)); in DdkSysfsReadProperty()
|
/drivers/peripheral/usb/ddk/device/include/ |
H A D | adapter_if.h | 95 const char *propName; member 101 const char *propName; member 225 int32_t (*writeProp)(const char *deviceName, const char *propName, uint32_t propValue);
|
/drivers/peripheral/usb/gadget/function/acm/ |
H A D | cdcacm.c | 760 const char *propName = NULL; in UsbSerialGetProp() local 764 propName = HdfSbufReadString(data); in UsbSerialGetProp() 765 if (propName == NULL) { in UsbSerialGetProp() 768 ret = UsbFnGetInterfaceProp(intf, propName, propValue); in UsbSerialGetProp() 784 const char *propName = HdfSbufReadString(data); in UsbSerialSetProp() local 785 if (propName == NULL) { in UsbSerialSetProp() 798 ret = UsbFnSetInterfaceProp(intf, propName, tmp); in UsbSerialSetProp() 830 const char *propName = HdfSbufReadString(data); in UsbSerialRegistProp() local 831 if (propName == NULL) { in UsbSerialRegistProp() 838 registInfo.name = propName; in UsbSerialRegistProp() [all...] |
/drivers/peripheral/usb/ddk/device/src/ |
H A D | adapter_if_liteos.c | 959 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument 962 if (deviceName == NULL || propName == NULL) { in UsbFnWriteProp() 971 info.prop.propName = propName; in UsbFnWriteProp() 1007 info.prop.propName = stringName; in UsbFnWriteDesString()
|
H A D | usbfn_cfg_mgr.c | 1046 const char *propName = NULL; in UsbFnCfgGetPropValueFromPropList() local 1076 if (drsOps->GetString(propNode, "name", &propName, 0) != HDF_SUCCESS) { in UsbFnCfgGetPropValueFromPropList() 1079 if (strcmp(propName, name) == 0) { in UsbFnCfgGetPropValueFromPropList() 1172 const struct UsbFnDeviceMgr *fnDevMgr, struct UsbFnAdapterOps *fnOps, uint32_t index, const char *propName) in UsbFnCfgChangeStrings() 1181 fnOps->writeDesString(fnDevMgr->name, strings[i]->language, propName, strings[i]->strings[index].s); in UsbFnCfgChangeStrings() 1171 UsbFnCfgChangeStrings( const struct UsbFnDeviceMgr *fnDevMgr, struct UsbFnAdapterOps *fnOps, uint32_t index, const char *propName) UsbFnCfgChangeStrings() argument
|
H A D | adapter_if.c | 154 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument 159 if (deviceName == NULL || propName == NULL) { in UsbFnWriteProp() 163 ret = snprintf_s(tmp, MAX_PATHLEN, MAX_PATHLEN - 1, "%s/%s/%s", CONFIGFS_DIR, deviceName, propName); in UsbFnWriteProp()
|
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
H A D | usb_device_lite_sdk_if_test.c | 755 const char *propName = NULL; in UsbFnDviceTestSetProp004() local 756 int32_t ret = UsbFnSetInterfaceProp(g_acmDevice->ctrlIface.fn, propName, "hellotest"); in UsbFnDviceTestSetProp004()
|