Lines Matching refs:fw_hdr
4471 struct fw_header *fw_hdr, size_t size) in rtl8152_fw_verify_checksum() argument
4473 unsigned char checksum[sizeof(fw_hdr->checksum)]; in rtl8152_fw_verify_checksum()
4485 if (crypto_shash_digestsize(alg) != sizeof(fw_hdr->checksum)) { in rtl8152_fw_verify_checksum()
4500 len = size - sizeof(fw_hdr->checksum); in rtl8152_fw_verify_checksum()
4501 rc = crypto_shash_digest(sdesc, fw_hdr->version, len, checksum); in rtl8152_fw_verify_checksum()
4506 if (memcmp(fw_hdr->checksum, checksum, sizeof(fw_hdr->checksum))) { in rtl8152_fw_verify_checksum()
4520 struct fw_header *fw_hdr = (struct fw_header *)fw->data; in rtl8152_check_firmware() local
4525 if (fw->size < sizeof(*fw_hdr)) { in rtl8152_check_firmware()
4530 ret = rtl8152_fw_verify_checksum(tp, fw_hdr, fw->size); in rtl8152_check_firmware()
4536 for (i = sizeof(*fw_hdr); i < fw->size;) { in rtl8152_check_firmware()
5054 struct fw_header *fw_hdr; in rtl8152_apply_firmware() local
5063 fw_hdr = (struct fw_header *)fw->data; in rtl8152_apply_firmware()
5125 strscpy(rtl_fw->version, fw_hdr->version, RTL_VER_SIZE); in rtl8152_apply_firmware()