Home
last modified time | relevance | path

Searched refs:propName (Results 1 – 12 of 12) sorted by relevance

/drivers/peripheral/usb/sample/device/liteos/
Dprop_test.c80 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("%s:failed to write propName : %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("%s:failed to write propName : %s", __func__, propName); in TestPropRegist()
154 static int32_t TestProp(const char *propName, const char *propValue, bool setProp, bool getProp, bo… in TestProp() argument
[all …]
/drivers/peripheral/usb/sample/device/linux/
Dprop_test.c72 static int32_t TestPropGet(const char *propName) in TestPropGet() argument
76 if (!HdfSbufWriteString(g_data, propName)) { in TestPropGet()
90 HDF_LOGE("%s: %s = %s\n", __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("%s:failed to write propName : %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("%s:failed to write propName : %s", __func__, propName); in TestPropRegist()
148 const char *propName = NULL; in PropTest() local
[all …]
/drivers/peripheral/usb/test/moduletest/common/liteos/
Dusb_device_serial_func_test.cpp174 const char *propName = "idVendor"; variable
177 acm_prop_write(propName, writeBuf);
178 acm_prop_read(propName, readBuf);
193 const char *propName = "idVendor"; variable
196 acm_prop_write(propName, writeBuf);
197 acm_prop_read(propName, readBuf);
212 const char *propName = "testp"; variable
215 acm_prop_regist(propName, propValue);
216 acm_prop_read(propName, readBuf);
231 const char *propName = "testp"; variable
[all …]
/drivers/peripheral/usb/sample/device/liteos/lib/include/
Dlib_acm_test.h24 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/
Dlib_acm_test.c136 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/
Dddk_sysfs_device.c31 static inline int32_t DdkSysfsGetBase(const char *propName) in DdkSysfsGetBase() argument
33 if (strcmp(propName, "idProduct") == 0 || strcmp(propName, "idVendor") == 0) { in DdkSysfsGetBase()
44 static int32_t DdkSysfsReadProperty(const char *deviceDir, const char *propName, int64_t *value, ui… in DdkSysfsReadProperty() argument
47 …nt32_t num = sprintf_s(pathTmp, SYSFS_PATH_LEN, "%s%s/%s", SYSFS_DEVICES_DIR, deviceDir, propName); in DdkSysfsReadProperty()
50 …blic}s: sprintf_s error deviceDir:%{public}s, propName:%{public}s", __func__, deviceDir, propName); in DdkSysfsReadProperty()
84 int64_t res = strtoll(buf, NULL, DdkSysfsGetBase(propName)); in DdkSysfsReadProperty()
/drivers/peripheral/usb/ddk/device/include/
Dadapter_if.h95 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/
Dcdcacm.c754 const char *propName = NULL; in UsbSerialGetProp() local
758 propName = HdfSbufReadString(data); in UsbSerialGetProp()
759 if (propName == NULL) { in UsbSerialGetProp()
762 ret = UsbFnGetInterfaceProp(intf, propName, propValue); in UsbSerialGetProp()
778 const char *propName = HdfSbufReadString(data); in UsbSerialSetProp() local
779 if (propName == NULL) { in UsbSerialSetProp()
792 ret = UsbFnSetInterfaceProp(intf, propName, tmp); in UsbSerialSetProp()
824 const char *propName = HdfSbufReadString(data); in UsbSerialRegistProp() local
825 if (propName == NULL) { in UsbSerialRegistProp()
832 registInfo.name = propName; in UsbSerialRegistProp()
/drivers/peripheral/usb/ddk/device/src/
Dadapter_if_liteos.c947 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument
950 if (deviceName == NULL || propName == NULL) { in UsbFnWriteProp()
959 info.prop.propName = propName; in UsbFnWriteProp()
995 info.prop.propName = stringName; in UsbFnWriteDesString()
Dusbfn_cfg_mgr.c1040 const char *propName = NULL; in UsbFnCfgGetPropValueFromPropList() local
1070 if (drsOps->GetString(propNode, "name", &propName, 0) != HDF_SUCCESS) { in UsbFnCfgGetPropValueFromPropList()
1073 if (strcmp(propName, name) == 0) { in UsbFnCfgGetPropValueFromPropList()
1166 …ruct UsbFnDeviceMgr *fnDevMgr, struct UsbFnAdapterOps *fnOps, uint32_t index, const char *propName) in UsbFnCfgChangeStrings() argument
1175 …fnOps->writeDesString(fnDevMgr->name, strings[i]->language, propName, strings[i]->strings[index].s… in UsbFnCfgChangeStrings()
Dadapter_if.c152 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument
157 if (deviceName == NULL || propName == NULL) { in UsbFnWriteProp()
161 …et = 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/
Dusb_device_lite_sdk_if_test.c755 const char *propName = NULL; in UsbFnDviceTestSetProp004() local
756 int32_t ret = UsbFnSetInterfaceProp(g_acmDevice->ctrlIface.fn, propName, "hellotest"); in UsbFnDviceTestSetProp004()