Lines Matching defs:length
53 static bool ReadStrBuf(struct HdfSBuf *reply, void *buf, uint32_t length)
60 if (strncpy_s(buf, length, tempStr, strlen(tempStr)) == EOK) {
101 static bool ObtainSbufData(struct HdfSBuf *reply, int32_t cmd, void *out, uint32_t length)
117 ret = ReadStrBuf(reply, out, length);
360 static int32_t GetChipName(uint32_t devIndex, char *chipName, uint32_t length)
362 return GetDevStringInfo(devIndex, chipName, length, CHIP_NAME_LEN, GET_CHIP_NAME);
365 static int32_t GetChipInfo(uint32_t devIndex, char *chipInfo, uint32_t length)
367 return GetDevStringInfo(devIndex, chipInfo, length, CHIP_INFO_LEN, GET_CHIP_INFO);
370 static int32_t GetVendorName(uint32_t devIndex, char *vendorName, uint32_t length)
372 return GetDevStringInfo(devIndex, vendorName, length, VENDOR_NAME_LEN, GET_VENDOR_NAME);
406 static int32_t RunCapacitanceTest(uint32_t devIndex, uint32_t testType, char *result, uint32_t length)
414 (result == NULL) || (length < SELF_TEST_RESULT_LEN)) {
433 if (strncpy_s(result, length, testInfo.testResult, SELF_TEST_RESULT_LEN - 1) != EOK) {