Lines Matching refs:prop
359 struct asic_fixed_properties *prop = &hdev->asic_prop;
402 if (prop->fw_app_cpu_boot_dev_sts0 & CPU_BOOT_DEV_STS0_PKT_PI_ACK_EN)
432 if (!prop->supports_advanced_cpucp_rc) {
855 struct asic_fixed_properties *prop = &hdev->asic_prop;
893 memcpy(&prop->cpucp_info, cpucp_info_cpu_addr,
894 sizeof(prop->cpucp_info));
896 rc = hl_build_hwmon_channel_info(hdev, prop->cpucp_info.sensors);
904 kernel_ver = extract_fw_ver_from_str(prop->cpucp_info.kernel_version);
914 if (prop->fw_cpu_boot_dev_sts0_valid) {
915 prop->fw_app_cpu_boot_dev_sts0 = RREG32(sts_boot_dev_sts0_reg);
916 if (prop->fw_app_cpu_boot_dev_sts0 &
921 if (prop->fw_cpu_boot_dev_sts1_valid)
922 prop->fw_app_cpu_boot_dev_sts1 = RREG32(sts_boot_dev_sts1_reg);
1168 struct asic_fixed_properties *prop = &hdev->asic_prop;
1173 dynamic_pll = !!(prop->fw_app_cpu_boot_dev_sts0 &
1197 pll_byte = prop->cpucp_info.pll_map[fw_pll_idx >> 3];
1516 struct asic_fixed_properties *prop;
1520 prop = &hdev->asic_prop;
1539 prop->fw_cpu_boot_dev_sts0_valid = true;
1540 prop->fw_preboot_cpu_boot_dev_sts0 = reg_val;
1545 prop->fw_cpu_boot_dev_sts1_valid = true;
1546 prop->fw_preboot_cpu_boot_dev_sts1 = reg_val;
1549 prop->dynamic_fw_load = !!(prop->fw_preboot_cpu_boot_dev_sts0 &
1556 prop->dynamic_fw_load ? "dynamic" : "legacy");
1563 struct asic_fixed_properties *prop = &hdev->asic_prop;
1576 dest = prop->uboot_ver;
1582 dest = prop->preboot_ver;
1605 boot_ver = extract_fw_ver_from_str(prop->uboot_ver);
1611 preboot_ver = strnstr(prop->preboot_ver, "Preboot",
1613 if (preboot_ver && preboot_ver != prop->preboot_ver) {
1614 strscpy(btl_ver, prop->preboot_ver,
1615 min((int) (preboot_ver - prop->preboot_ver),
1620 preboot_ver = extract_fw_ver_from_str(prop->preboot_ver);
1642 struct asic_fixed_properties *prop = &hdev->asic_prop;
1645 cpu_boot_dev_sts0 = prop->fw_preboot_cpu_boot_dev_sts0;
1646 cpu_boot_dev_sts1 = prop->fw_preboot_cpu_boot_dev_sts1;
1657 prop->hard_reset_done_by_fw = !!(cpu_boot_dev_sts0 & CPU_BOOT_DEV_STS0_FW_HARD_RST_EN);
1659 prop->fw_security_enabled = !!(cpu_boot_dev_sts0 & CPU_BOOT_DEV_STS0_SECURITY_EN);
1668 prop->hard_reset_done_by_fw ? "enabled" : "disabled");
1671 prop->fw_security_enabled ? "enabled" : "disabled");
1674 prop->gic_interrupts_enable ? "enabled" : "disabled");
2269 struct asic_fixed_properties *prop = &hdev->asic_prop;
2276 strscpy(prop->uboot_ver, fw_version, VERSION_MAX_LEN);
2277 boot_ver = extract_fw_ver_from_str(prop->uboot_ver);
2285 strscpy(prop->preboot_ver, fw_version, VERSION_MAX_LEN);
2286 preboot_ver = strnstr(prop->preboot_ver, "Preboot", VERSION_MAX_LEN);
2289 if (preboot_ver && preboot_ver != prop->preboot_ver) {
2290 strscpy(btl_ver, prop->preboot_ver,
2291 min((int) (preboot_ver - prop->preboot_ver), 31));
2298 preboot_ver = extract_fw_ver_from_str(prop->preboot_ver);
2392 struct asic_fixed_properties *prop = &hdev->asic_prop;
2397 if (prop->fw_preboot_cpu_boot_dev_sts0 & CPU_BOOT_DEV_STS0_ENABLED) {
2398 prop->fw_bootfit_cpu_boot_dev_sts0 =
2401 prop->hard_reset_done_by_fw = !!(prop->fw_bootfit_cpu_boot_dev_sts0 &
2405 prop->fw_bootfit_cpu_boot_dev_sts0);
2408 if (prop->fw_cpu_boot_dev_sts1_valid) {
2409 prop->fw_bootfit_cpu_boot_dev_sts1 =
2413 prop->fw_bootfit_cpu_boot_dev_sts1);
2417 prop->hard_reset_done_by_fw ? "enabled" : "disabled");
2589 struct asic_fixed_properties *prop = &hdev->asic_prop;
2594 if (prop->fw_cpu_boot_dev_sts0_valid) {
2595 prop->fw_app_cpu_boot_dev_sts0 = RREG32(cpu_boot_dev_sts0_reg);
2597 prop->hard_reset_done_by_fw = !!(prop->fw_app_cpu_boot_dev_sts0 &
2600 if (prop->fw_app_cpu_boot_dev_sts0 &
2602 prop->gic_interrupts_enable = false;
2606 prop->fw_app_cpu_boot_dev_sts0);
2609 prop->gic_interrupts_enable ?
2613 if (prop->fw_cpu_boot_dev_sts1_valid) {
2614 prop->fw_app_cpu_boot_dev_sts1 = RREG32(cpu_boot_dev_sts1_reg);
2618 prop->fw_app_cpu_boot_dev_sts1);
2622 prop->hard_reset_done_by_fw ? "enabled" : "disabled");
3074 struct asic_fixed_properties *prop = &hdev->asic_prop;
3077 return prop->dynamic_fw_load ?