Lines Matching refs:buf_len
630 int IOT_OTA_FetchYield(void *handle, char *buf, uint32_t buf_len, in IOT_OTA_FetchYield() argument
636 if ((NULL == handle) || (NULL == buf) || (0 == buf_len)) { in IOT_OTA_FetchYield()
675 ret = ofc_Fetch(h_ota->ch_fetch, buf, buf_len, timeout_s); in IOT_OTA_FetchYield()
712 int IOT_OTA_Ioctl(void *handle, IOT_OTA_CmdType_t type, void *buf, int buf_len) in IOT_OTA_Ioctl() argument
716 if ((NULL == handle) || (NULL == buf) || (0 == buf_len)) { in IOT_OTA_Ioctl()
748 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()
836 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()
847 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()
857 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()
868 strncpy(buf, h_ota->version, buf_len); in IOT_OTA_Ioctl()
869 ((char *)buf)[buf_len - 1] = '\0'; in IOT_OTA_Ioctl()
874 strncpy(buf, h_ota->md5sum, buf_len); in IOT_OTA_Ioctl()
875 ((char *)buf)[buf_len - 1] = '\0'; in IOT_OTA_Ioctl()
879 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()
905 if ((4 != buf_len) || (0 != ((unsigned long)buf & 0x3))) { in IOT_OTA_Ioctl()