Home
last modified time | relevance | path

Searched refs:cpucp_info (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/drivers/accel/habanalabs/common/
Dsysfs.c82 struct cpucp_info *cpucp_info; in vrm_ver_show() local
84 cpucp_info = &hdev->asic_prop.cpucp_info; in vrm_ver_show()
86 if (cpucp_info->infineon_second_stage_version) in vrm_ver_show()
87 return sprintf(buf, "%#04x %#04x\n", le32_to_cpu(cpucp_info->infineon_version), in vrm_ver_show()
88 le32_to_cpu(cpucp_info->infineon_second_stage_version)); in vrm_ver_show()
90 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version)); in vrm_ver_show()
113 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in armcp_kernel_ver_show()
121 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in armcp_ver_show()
130 le32_to_cpu(hdev->asic_prop.cpucp_info.cpld_version)); in cpld_ver_show()
138 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in cpucp_kernel_ver_show()
[all …]
Dfirmware_if.c863 cpucp_info_cpu_addr = hl_cpu_accessible_dma_pool_alloc(hdev, sizeof(struct cpucp_info), in hl_fw_cpucp_info_get()
871 memset(cpucp_info_cpu_addr, 0, sizeof(struct cpucp_info)); in hl_fw_cpucp_info_get()
876 pkt.data_max_size = cpu_to_le32(sizeof(struct cpucp_info)); in hl_fw_cpucp_info_get()
893 memcpy(&prop->cpucp_info, cpucp_info_cpu_addr, in hl_fw_cpucp_info_get()
894 sizeof(prop->cpucp_info)); in hl_fw_cpucp_info_get()
896 rc = hl_build_hwmon_channel_info(hdev, prop->cpucp_info.sensors); in hl_fw_cpucp_info_get()
904 kernel_ver = extract_fw_ver_from_str(prop->cpucp_info.kernel_version); in hl_fw_cpucp_info_get()
925 hl_cpu_accessible_dma_pool_free(hdev, sizeof(struct cpucp_info), cpucp_info_cpu_addr); in hl_fw_cpucp_info_get()
1197 pll_byte = prop->cpucp_info.pll_map[fw_pll_idx >> 3]; in get_used_pll_index()
Dhabanalabs_ioctl.c84 memcpy(hw_ip.cpucp_version, prop->cpucp_info.cpucp_version, in hw_ip_info()
87 memcpy(hw_ip.card_name, prop->cpucp_info.card_name, in hw_ip_info()
90 hw_ip.cpld_version = le32_to_cpu(prop->cpucp_info.cpld_version); in hw_ip_info()
91 hw_ip.module_id = le32_to_cpu(prop->cpucp_info.card_location); in hw_ip_info()
Dhwmon.c887 prop->cpucp_info.card_name, hdev, in hl_hwmon_init()
Dhabanalabs.h697 struct cpucp_info cpucp_info; member
/linux-6.6.21/drivers/accel/habanalabs/goya/
Dgoya_hwmgr.c368 struct cpucp_info *cpucp_info; in infineon_ver_show() local
370 cpucp_info = &hdev->asic_prop.cpucp_info; in infineon_ver_show()
372 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version)); in infineon_ver_show()
Dgoya.c469 strncpy(prop->cpucp_info.card_name, GOYA_DEFAULT_CARD_NAME, in goya_set_fixed_properties()
5110 dram_size = le64_to_cpu(prop->cpucp_info.dram_size); in goya_cpucp_info_get()
5124 if (!strlen(prop->cpucp_info.card_name)) in goya_cpucp_info_get()
5125 strncpy(prop->cpucp_info.card_name, GOYA_DEFAULT_CARD_NAME, in goya_cpucp_info_get()
/linux-6.6.21/drivers/accel/habanalabs/include/common/
Dcpucp_if.h1143 struct cpucp_info { struct
1354 struct cpucp_info info; /* assumed to be 64bit aligned */
/linux-6.6.21/drivers/accel/habanalabs/gaudi/
Dgaudi.c663 strncpy(prop->cpucp_info.card_name, GAUDI_DEFAULT_CARD_NAME, in gaudi_set_fixed_properties()
8002 if (!strlen(prop->cpucp_info.card_name)) in gaudi_cpucp_info_get()
8003 strncpy(prop->cpucp_info.card_name, GAUDI_DEFAULT_CARD_NAME, in gaudi_cpucp_info_get()
8006 hdev->card_type = le32_to_cpu(hdev->asic_prop.cpucp_info.card_type); in gaudi_cpucp_info_get()
9092 struct cpucp_info *cpucp_info; in infineon_ver_show() local
9094 cpucp_info = &hdev->asic_prop.cpucp_info; in infineon_ver_show()
9096 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version)); in infineon_ver_show()
/linux-6.6.21/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c2434 strncpy(prop->cpucp_info.card_name, GAUDI2_DEFAULT_CARD_NAME, CARD_NAME_MAX_LEN); in gaudi2_set_fixed_properties()
2815 rc = gaudi2_set_cluster_binning_masks_common(hdev, prop->cpucp_info.xbar_binning_mask); in gaudi2_set_cluster_binning_masks()
2870 dram_size = le64_to_cpu(prop->cpucp_info.dram_size); in gaudi2_cpucp_info_get()
2886 if (!strlen(prop->cpucp_info.card_name)) in gaudi2_cpucp_info_get()
2887 strncpy(prop->cpucp_info.card_name, GAUDI2_DEFAULT_CARD_NAME, CARD_NAME_MAX_LEN); in gaudi2_cpucp_info_get()
2890 hdev->dram_binning = prop->cpucp_info.dram_binning_mask; in gaudi2_cpucp_info_get()
2891 hdev->edma_binning = prop->cpucp_info.edma_binning_mask; in gaudi2_cpucp_info_get()
2892 hdev->tpc_binning = le64_to_cpu(prop->cpucp_info.tpc_binning_mask); in gaudi2_cpucp_info_get()
2893 hdev->decoder_binning = lower_32_bits(le64_to_cpu(prop->cpucp_info.decoder_binning_mask)); in gaudi2_cpucp_info_get()