/drivers/peripheral/usb/sample/device/liteos/ |
H A D | prop_test.c | 104 static int32_t TestPropSet(const char *propName, const char *propValue) in TestPropSet() argument 111 if (!HdfSbufWriteString(g_data, propValue)) { in TestPropSet() 112 HDF_LOGE("%{public}s:failed to write propValue : %{public}s", __func__, propValue); in TestPropSet() 123 static int32_t TestPropRegist(const char *propName, const char *propValue) in TestPropRegist() argument 136 if (!HdfSbufWriteString(g_data, propValue)) { in TestPropRegist() 137 HDF_LOGE("%{public}s:failed to write propValue : %{public}s", __func__, propValue); in TestPropRegist() 154 static int32_t TestProp(const char *propName, const char *propValue, bool setProp, bool getProp, bool registProp) in TestProp() argument 163 ret = TestPropSet(propName, propValue); in TestProp() 175 const char *propValue = NULL; PropTest() local [all...] |
/drivers/peripheral/usb/sample/device/linux/ |
H A D | prop_test.c | 96 static int32_t TestPropSet(const char *propName, const char *propValue) in TestPropSet() argument 103 if (!HdfSbufWriteString(g_data, propValue)) { in TestPropSet() 104 HDF_LOGE("%{public}s:failed to write propValue : %{public}s", __func__, propValue); in TestPropSet() 115 static int32_t TestPropRegist(const char *propName, const char *propValue) in TestPropRegist() argument 128 if (!HdfSbufWriteString(g_data, propValue)) { in TestPropRegist() 129 HDF_LOGE("%{public}s:failed to write propValue : %{public}s", __func__, propValue); in TestPropRegist() 149 const char *propValue = NULL; in PropTest() local 158 propValue in PropTest() [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 144 (void)HdfSbufWriteString(g_data, propValue); 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 162 (void)HdfSbufWriteString(g_data, propValue); 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 191 if (propValue && tmp && strlen(tmp) > 0) { in acm_prop_read() 193 errno_t err = memcpy_s(propValue, maxLen, tmp, strlen(tmp)); in acm_prop_read()
|
/drivers/peripheral/usb/test/moduletest/common/liteos/ |
H A D | usb_device_serial_func_test.cpp | 213 const char *propValue = "a123"; in HWTEST_F() local 215 acm_prop_regist(propName, propValue); in HWTEST_F() 218 EXPECT_EQ(strcmp(const_cast<char *>(propValue), readBuf), 0); in HWTEST_F()
|
/drivers/peripheral/usb/ddk/device/include/ |
H A D | adapter_if.h | 96 uint16_t propValue; member 102 const char *propValue; member 225 int32_t (*writeProp)(const char *deviceName, const char *propName, uint32_t propValue);
|
/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_cfg_mgr.c | 1045 const char *propValue = NULL; in UsbFnCfgGetPropValueFromPropList() local 1080 if (drsOps->GetString(propNode, "value", &propValue, 0) != HDF_SUCCESS) { in UsbFnCfgGetPropValueFromPropList() 1083 return propValue; in UsbFnCfgGetPropValueFromPropList() 1095 const char *propValue = NULL; in UsbFnCfgGetPropValueFromHcs() local 1113 propValue = UsbFnCfgGetPropValueFromPropList(fnDevMgr, intf, drsOps, propListNode, name); in UsbFnCfgGetPropValueFromHcs() 1114 if (propValue) { in UsbFnCfgGetPropValueFromHcs() 1115 return propValue; in UsbFnCfgGetPropValueFromHcs() 1127 const char *propValue = NULL; in UsbFnCfgFindPropFromHcs() local 1147 propValue = UsbFnCfgGetPropValueFromHcs(fnDevMgr, intf, drsOps, customNode, name); in UsbFnCfgFindPropFromHcs() 1149 return propValue; in UsbFnCfgFindPropFromHcs() 1343 const char *propValue = UsbFnCfgFindPropFromHcs(intf, name); UsbFnCfgMgrGetProp() local 1386 const char *propValue = UsbFnCfgFindPropFromHcs(intf, name); UsbFnCfgMgrSetProp() local [all...] |
H A D | adapter_if_liteos.c | 959 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument 972 info.prop.propValue = (uint32_t)propValue; in UsbFnWriteProp() 1008 info.prop.propValue = stringValue; in UsbFnWriteDesString()
|
H A D | adapter_if.c | 154 static int32_t UsbFnWriteProp(const char *deviceName, const char *propName, uint32_t propValue) in UsbFnWriteProp() argument 169 ret = snprintf_s(tmpVal, MAX_NAMELEN, MAX_NAMELEN - 1, "0x%x", propValue); in UsbFnWriteProp()
|
/drivers/peripheral/usb/gadget/function/acm/ |
H A D | cdcacm.c | 761 char propValue[USB_MAX_PACKET_SIZE] = {0}; in UsbSerialGetProp() local 768 ret = UsbFnGetInterfaceProp(intf, propName, propValue); in UsbSerialGetProp() 772 if (!HdfSbufWriteString(reply, propValue)) { in UsbSerialGetProp() 788 const char *propValue = HdfSbufReadString(data); in UsbSerialSetProp() local 789 if (propValue == NULL) { in UsbSerialSetProp() 793 int32_t ret = snprintf_s(tmp, USB_MAX_PACKET_SIZE, USB_MAX_PACKET_SIZE - 1, "%s", propValue); in UsbSerialSetProp() 834 const char *propValue = HdfSbufReadString(data); in UsbSerialRegistProp() local 835 if (propValue == NULL) { in UsbSerialRegistProp() 839 registInfo.value = propValue; in UsbSerialRegistProp()
|