/drivers/peripheral/usb/sample/device/liteos/ |
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("%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/ |
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("%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/ |
D | usb_device_serial_func_test.cpp | 174 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/ |
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/ |
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/ |
D | ddk_sysfs_device.c | 31 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/ |
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/ |
D | cdcacm.c | 754 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/ |
D | adapter_if_liteos.c | 947 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()
|
D | usbfn_cfg_mgr.c | 1040 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()
|
D | adapter_if.c | 152 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/ |
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()
|