Lines Matching refs:fw_desc
1893 struct lkd_fw_comms_desc *fw_desc) in hl_fw_dynamic_validate_descriptor() argument
1903 if (le32_to_cpu(fw_desc->header.magic) != HL_COMMS_DESC_MAGIC) in hl_fw_dynamic_validate_descriptor()
1905 fw_desc->header.magic); in hl_fw_dynamic_validate_descriptor()
1907 if (fw_desc->header.version != HL_COMMS_DESC_VER) in hl_fw_dynamic_validate_descriptor()
1909 fw_desc->header.version); in hl_fw_dynamic_validate_descriptor()
1918 data_ptr = (u8 *)fw_desc + sizeof(struct comms_desc_header); in hl_fw_dynamic_validate_descriptor()
1919 data_size = le16_to_cpu(fw_desc->header.size); in hl_fw_dynamic_validate_descriptor()
1922 if (data_crc32 != le32_to_cpu(fw_desc->header.crc32)) { in hl_fw_dynamic_validate_descriptor()
1924 data_crc32, fw_desc->header.crc32); in hl_fw_dynamic_validate_descriptor()
1929 addr = le64_to_cpu(fw_desc->img_addr); in hl_fw_dynamic_validate_descriptor()
1990 struct lkd_fw_comms_desc *fw_desc; in hl_fw_dynamic_read_and_validate_descriptor() local
1997 fw_desc = &fw_loader->dynamic_loader.comm_desc; in hl_fw_dynamic_read_and_validate_descriptor()
2021 memcpy_fromio(fw_desc, src, sizeof(struct lkd_fw_comms_desc)); in hl_fw_dynamic_read_and_validate_descriptor()
2023 return hl_fw_dynamic_validate_descriptor(hdev, fw_loader, fw_desc); in hl_fw_dynamic_read_and_validate_descriptor()
2117 struct lkd_fw_comms_desc *fw_desc; in hl_fw_dynamic_copy_image() local
2123 fw_desc = &fw_loader->dynamic_loader.comm_desc; in hl_fw_dynamic_copy_image()
2124 addr = le64_to_cpu(fw_desc->img_addr); in hl_fw_dynamic_copy_image()
2149 struct lkd_fw_comms_desc *fw_desc; in hl_fw_dynamic_copy_msg() local
2155 fw_desc = &fw_loader->dynamic_loader.comm_desc; in hl_fw_dynamic_copy_msg()
2156 addr = le64_to_cpu(fw_desc->img_addr); in hl_fw_dynamic_copy_msg()