Home
last modified time | relevance | path

Searched refs:crc32 (Results 1 – 25 of 90) sorted by relevance

1234

/drivers/nvmem/
Du-boot-env.c36 __le32 crc32; member
41 __le32 crc32; member
49 __le32 crc32; member
146 uint32_t crc32; in u_boot_env_parse() local
166 crc32_offset = offsetof(struct u_boot_env_image_single, crc32); in u_boot_env_parse()
171 crc32_offset = offsetof(struct u_boot_env_image_redundant, crc32); in u_boot_env_parse()
176 crc32_offset = offsetof(struct u_boot_env_image_broadcom, crc32); in u_boot_env_parse()
181 crc32 = le32_to_cpu(*(__le32 *)(buf + crc32_offset)); in u_boot_env_parse()
185 calc = crc32(~0, buf + crc32_data_offset, crc32_data_len) ^ ~0L; in u_boot_env_parse()
186 if (calc != crc32) { in u_boot_env_parse()
[all …]
/drivers/gpu/drm/vkms/
Dvkms_composer.c181 u32 *crc32, struct line_buffer *stage_buffer, in blend() argument
209 *crc32 = crc32_le(*crc32, (void *)output_buffer->pixels, row_size); in blend()
246 u32 *crc32) in compose_active_planes() argument
283 blend(active_wb, crtc_state, crc32, &stage_buffer, in compose_active_planes()
312 u32 crc32 = 0; in vkms_composer_worker() local
349 ret = compose_active_planes(active_wb, crtc_state, &crc32); in vkms_composer_worker()
351 ret = compose_active_planes(NULL, crtc_state, &crc32); in vkms_composer_worker()
367 drm_crtc_add_crc_entry(crtc, true, frame_start++, &crc32); in vkms_composer_worker()
/drivers/gpu/drm/i915/gt/uc/
Dintel_gsc_binary_headers.h37 u32 crc32; member
58 u32 crc32; member
90 u32 crc32; member
/drivers/net/ethernet/cavium/liquidio/
Dliquidio_image.h37 __be32 crc32; /* crc32 of image */ member
51 __be32 crc32; /* header checksum */ member
Docteon_console.c833 crc32_result = crc32((unsigned int)~0, data, in octeon_download_firmware()
836 if (crc32_result != be32_to_cpu(h->crc32)) { in octeon_download_firmware()
838 crc32_result, be32_to_cpu(h->crc32)); in octeon_download_firmware()
/drivers/net/wireless/ath/carl9170/
Dfw.c139 u32 crc32; in carl9170_fw_checksum() local
174 crc32 = crc32_le(~0, data, len); in carl9170_fw_checksum()
175 if (cpu_to_le32(crc32) != chk_desc->fw_crc32) { in carl9170_fw_checksum()
180 crc32 = crc32_le(crc32, (void *)otus_desc, dsc_len); in carl9170_fw_checksum()
181 if (cpu_to_le32(crc32) != chk_desc->hdr_crc32) { in carl9170_fw_checksum()
/drivers/gpu/drm/i915/gvt/
Dfirmware.c42 u32 crc32; /* protect the data after this field */ member
108 h->crc32 = crc32_le(0, firmware + crc32_start, size - crc32_start); in expose_firmware_sysfs()
156 crc32_start = offsetofend(struct gvt_firmware_header, crc32); in verify_firmware()
167 VERIFY("crc32", h->crc32, crc32_le(0, mem, fw->size - crc32_start)); in verify_firmware()
/drivers/misc/
Dpci_endpoint_test.c505 u32 crc32; in pci_endpoint_test_write() local
555 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_write()
557 crc32); in pci_endpoint_test_write()
605 u32 crc32; in pci_endpoint_test_read() local
671 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_read()
672 if (crc32 == pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_CHECKSUM)) in pci_endpoint_test_read()
/drivers/mtd/ubi/
Dio.c756 crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC); in ubi_io_read_ec_hdr()
817 crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC); in ubi_io_write_ec_hdr()
1009 crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC); in ubi_io_read_vid_hdr()
1067 crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC); in ubi_io_write_vid_hdr()
1170 crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC); in self_check_peb_ec_hdr()
1260 crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC); in self_check_peb_vid_hdr()
Dvtbl.c101 crc = crc32(UBI_CRC32_INIT, vtbl_rec, UBI_VTBL_RECORD_SIZE_CRC); in ubi_change_vtbl_record()
141 crc = crc32(UBI_CRC32_INIT, vtbl_rec, in ubi_vtbl_rename_volumes()
176 crc = crc32(UBI_CRC32_INIT, &vtbl[i], UBI_VTBL_RECORD_SIZE_CRC); in vtbl_check()
Deba.c711 uint32_t crc1 = crc32(UBI_CRC32_INIT, buf, len); in ubi_eba_read_leb()
851 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in try_recover_peb()
1152 crc = crc32(UBI_CRC32_INIT, buf, data_size); in ubi_eba_write_leb_st()
1236 crc = crc32(UBI_CRC32_INIT, buf, len); in ubi_eba_atomic_leb_change()
1412 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in ubi_eba_copy_leb()
/drivers/crypto/stm32/
DMakefile2 obj-$(CONFIG_CRYPTO_DEV_STM32_CRC) += stm32-crc32.o
/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c156 u32 crc32; in atl1e_hash_mc_addr() local
160 crc32 = ether_crc_le(6, mc_addr); in atl1e_hash_mc_addr()
162 value |= (((crc32 >> i) & 1) << (31 - i)); in atl1e_hash_mc_addr()
/drivers/accel/qaic/
Dqaic_control.c53 __le32 crc32; /* crc of everything following this field in the message */ member
257 crc = crc32(crc, &w->msg, w->len); in gen_crc()
277 crc = le32_to_cpu(hdr->crc32); in valid_crc()
278 hdr->crc32 = 0; in valid_crc()
279 ret = (crc32(~0, msg, le32_to_cpu(hdr->len)) ^ ~0) == crc; in valid_crc()
280 hdr->crc32 = cpu_to_le32(crc); in valid_crc()
1219 msg->hdr.crc32 = cpu_to_le32(qdev->gen_crc(wrappers)); in qaic_manage_msg_xfer()
1529 msg->hdr.crc32 = cpu_to_le32(qdev->gen_crc(wrappers)); in qaic_release_usr()
/drivers/accel/habanalabs/include/common/
Dhl_boot_if.h529 __le32 crc32; /* CRC32 of the descriptor w/o header */ member
538 __le32 crc32; /* CRC32 of the message w/o header */ member
/drivers/scsi/libfc/
Dfc_frame.c33 crc = ~crc32(~0, bp, len); in fc_frame_crc_check()
/drivers/crypto/intel/qat/qat_common/
Dicp_qat_fw_comp.h314 __u32 crc32; member
376 __u32 crc32; member
/drivers/staging/rtl8723bs/include/
Drtl8723b_recv.h15 u32 crc32:1; member
/drivers/thunderbolt/
Dctl.c431 __be32 crc32; in tb_ctl_rx_callback() local
446 crc32 = tb_crc(pkg->buffer, frame->size); in tb_ctl_rx_callback()
455 if (*(__be32 *)(pkg->buffer + frame->size) != crc32) { in tb_ctl_rx_callback()
470 if (*(__be32 *)(pkg->buffer + frame->size) != crc32) { in tb_ctl_rx_callback()
/drivers/mtd/parsers/
Dparser_trx.c22 uint32_t crc32; member
/drivers/gpu/drm/radeon/
Dradeon_ucode.h166 uint32_t crc32; /* crc32 checksum of the payload */ member
Dradeon_ucode.c43 DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32)); in radeon_ucode_print_common_hdr()
/drivers/net/ethernet/qlogic/qed/
Dqed_selftest.c160 calc_crc = crc32(0xffffffff, buf, image_att.len - 4); in qed_selftest_nvram()
/drivers/crypto/cavium/zip/
Dzip_deflate.c174 zip_ops->csum = result_ptr->s.crc32; in zip_deflate()
/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c205 u32 crc32; in atl1c_hash_mc_addr() local
209 crc32 = ether_crc_le(6, mc_addr); in atl1c_hash_mc_addr()
211 value |= (((crc32 >> i) & 1) << (31 - i)); in atl1c_hash_mc_addr()

1234