Lines Matching refs:fw
29 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu()
151 dev = core->fw.dev; in venus_boot_no_tz()
155 iommu = core->fw.iommu_domain; in venus_boot_no_tz()
156 core->fw.mapped_mem_size = mem_size; in venus_boot_no_tz()
172 const size_t mapped = core->fw.mapped_mem_size; in venus_shutdown_no_tz()
176 struct device *dev = core->fw.dev; in venus_shutdown_no_tz()
194 iommu = core->fw.iommu_domain; in venus_shutdown_no_tz()
196 if (core->fw.mapped_mem_size && iommu) { in venus_shutdown_no_tz()
202 core->fw.mapped_mem_size = 0; in venus_shutdown_no_tz()
232 core->fw.mem_size = mem_size; in venus_boot()
233 core->fw.mem_phys = mem_phys; in venus_boot()
305 core->fw.dev = &pdev->dev; in venus_firmware_init()
309 dev_err(core->fw.dev, "Failed to allocate iommu domain\n"); in venus_firmware_init()
314 ret = iommu_attach_device(iommu_dom, core->fw.dev); in venus_firmware_init()
316 dev_err(core->fw.dev, "could not attach device\n"); in venus_firmware_init()
320 core->fw.iommu_domain = iommu_dom; in venus_firmware_init()
338 if (!core->fw.dev) in venus_firmware_deinit()
341 iommu = core->fw.iommu_domain; in venus_firmware_deinit()
343 iommu_detach_device(iommu, core->fw.dev); in venus_firmware_deinit()
345 if (core->fw.iommu_domain) { in venus_firmware_deinit()
347 core->fw.iommu_domain = NULL; in venus_firmware_deinit()
350 platform_device_unregister(to_platform_device(core->fw.dev)); in venus_firmware_deinit()