Home
last modified time | relevance | path

Searched refs:modeStr (Results 1 - 2 of 2) sorted by relevance

/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_port.cpp73 std::string modeStr; in WritePortFile() local
78 modeStr = PORT_MODE_HOST_STR; in WritePortFile()
82 modeStr = PORT_MODE_DEVICE_STR; in WritePortFile()
88 if (modeStr.empty()) { in WritePortFile()
89 HDF_LOGE("%{public}s: modeStr error", __func__); in WritePortFile()
93 uint32_t len = modeStr.size(); in WritePortFile()
100 int32_t ret = write(fd, modeStr.c_str(), len); in WritePortFile()
/drivers/peripheral/wlan/client/src/netlink/
H A Dnetlink_cmd_adapter.c1823 const char *modeStr = strTable[mode]; in FillHwprivIoctlData() local
1832 if (strncpy_s(ioctlData->data.point.buf, ioctlData->data.point.length, modeStr, strlen(modeStr)) != EOK) { in FillHwprivIoctlData()

Completed in 10 milliseconds