Lines Matching refs:hw_ip

53 	struct hl_info_hw_ip_info hw_ip = {0};  in hw_ip_info()  local
67 hw_ip.device_id = hdev->asic_funcs->get_pci_id(hdev); in hw_ip_info()
68 hw_ip.sram_base_address = prop->sram_user_base_address; in hw_ip_info()
69 hw_ip.dram_base_address = in hw_ip_info()
72 hw_ip.tpc_enabled_mask = prop->tpc_enabled_mask & 0xFF; in hw_ip_info()
73 hw_ip.tpc_enabled_mask_ext = prop->tpc_enabled_mask; in hw_ip_info()
75 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info()
79 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
82 if (hw_ip.dram_size > PAGE_SIZE) in hw_ip_info()
83 hw_ip.dram_enabled = 1; in hw_ip_info()
85 hw_ip.dram_page_size = prop->dram_page_size; in hw_ip_info()
86 hw_ip.device_mem_alloc_default_page_size = prop->device_mem_alloc_default_page_size; in hw_ip_info()
87 hw_ip.num_of_events = prop->num_of_events; in hw_ip_info()
89 memcpy(hw_ip.cpucp_version, prop->cpucp_info.cpucp_version, in hw_ip_info()
92 memcpy(hw_ip.card_name, prop->cpucp_info.card_name, in hw_ip_info()
95 hw_ip.cpld_version = le32_to_cpu(prop->cpucp_info.cpld_version); in hw_ip_info()
96 hw_ip.module_id = le32_to_cpu(prop->cpucp_info.card_location); in hw_ip_info()
98 hw_ip.psoc_pci_pll_nr = prop->psoc_pci_pll_nr; in hw_ip_info()
99 hw_ip.psoc_pci_pll_nf = prop->psoc_pci_pll_nf; in hw_ip_info()
100 hw_ip.psoc_pci_pll_od = prop->psoc_pci_pll_od; in hw_ip_info()
101 hw_ip.psoc_pci_pll_div_factor = prop->psoc_pci_pll_div_factor; in hw_ip_info()
103 hw_ip.decoder_enabled_mask = prop->decoder_enabled_mask; in hw_ip_info()
104 hw_ip.mme_master_slave_mode = prop->mme_master_slave_mode; in hw_ip_info()
105 hw_ip.first_available_interrupt_id = prop->first_available_user_interrupt; in hw_ip_info()
106 hw_ip.number_of_user_interrupts = prop->user_interrupt_count; in hw_ip_info()
107 hw_ip.tpc_interrupt_id = prop->tpc_interrupt_id; in hw_ip_info()
109 hw_ip.edma_enabled_mask = prop->edma_enabled_mask; in hw_ip_info()
110 hw_ip.server_type = prop->server_type; in hw_ip_info()
111 hw_ip.security_enabled = prop->fw_security_enabled; in hw_ip_info()
112 hw_ip.revision_id = hdev->pdev->revision; in hw_ip_info()
113 hw_ip.rotator_enabled_mask = prop->rotator_enabled_mask; in hw_ip_info()
114 hw_ip.engine_core_interrupt_reg_addr = prop->engine_core_interrupt_reg_addr; in hw_ip_info()
115 hw_ip.reserved_dram_size = dram_kmd_size; in hw_ip_info()
117 return copy_to_user(out, &hw_ip, in hw_ip_info()
118 min((size_t) size, sizeof(hw_ip))) ? -EFAULT : 0; in hw_ip_info()