Lines Matching refs:dmc_info
69 } dmc_info[DMC_FW_MAX]; member
382 return dmc && dmc->dmc_info[dmc_id].payload; in has_dmc_id_fw()
556 dmc->dmc_info[dmc_id].mmioaddr[i], in dmc_mmiodata()
557 dmc->dmc_info[dmc_id].mmiodata[i])) in dmc_mmiodata()
563 return dmc->dmc_info[dmc_id].mmiodata[i]; in dmc_mmiodata()
593 for (i = 0; i < dmc->dmc_info[dmc_id].dmc_fw_size; i++) { in intel_dmc_load_program()
595 DMC_PROGRAM(dmc->dmc_info[dmc_id].start_mmioaddr, i), in intel_dmc_load_program()
596 dmc->dmc_info[dmc_id].payload[i]); in intel_dmc_load_program()
603 for (i = 0; i < dmc->dmc_info[dmc_id].mmio_count; i++) { in intel_dmc_load_program()
604 intel_de_write(i915, dmc->dmc_info[dmc_id].mmioaddr[i], in intel_dmc_load_program()
641 !intel_de_read(i915, DMC_PROGRAM(dmc->dmc_info[DMC_FW_MAIN].start_mmioaddr, 0)), in assert_dmc_loaded()
692 if (dmc->dmc_info[dmc_id].present) in dmc_set_fw_offset()
696 dmc->dmc_info[dmc_id].present = true; in dmc_set_fw_offset()
697 dmc->dmc_info[dmc_id].dmc_offset = fw_info[i].offset; in dmc_set_fw_offset()
740 struct dmc_fw_info *dmc_info = &dmc->dmc_info[dmc_id]; in parse_dmc_fw_header() local
746 BUILD_BUG_ON(ARRAY_SIZE(dmc_info->mmioaddr) < DMC_V3_MAX_MMIO_COUNT || in parse_dmc_fw_header()
747 ARRAY_SIZE(dmc_info->mmioaddr) < DMC_V1_MAX_MMIO_COUNT); in parse_dmc_fw_header()
812 dmc_info->mmioaddr[i] = _MMIO(mmioaddr[i]); in parse_dmc_fw_header()
813 dmc_info->mmiodata[i] = mmiodata[i]; in parse_dmc_fw_header()
817 is_dmc_evt_ctl_reg(i915, dmc_id, dmc_info->mmioaddr[i]) ? " (EVT_CTL)" : in parse_dmc_fw_header()
818 is_dmc_evt_htp_reg(i915, dmc_id, dmc_info->mmioaddr[i]) ? " (EVT_HTP)" : "", in parse_dmc_fw_header()
819 disable_dmc_evt(i915, dmc_id, dmc_info->mmioaddr[i], in parse_dmc_fw_header()
820 dmc_info->mmiodata[i]) ? " (disabling)" : ""); in parse_dmc_fw_header()
822 dmc_info->mmio_count = mmio_count; in parse_dmc_fw_header()
823 dmc_info->start_mmioaddr = start_mmioaddr; in parse_dmc_fw_header()
836 dmc_info->dmc_fw_size = dmc_header->fw_size; in parse_dmc_fw_header()
838 dmc_info->payload = kmalloc(payload_size, GFP_KERNEL); in parse_dmc_fw_header()
839 if (!dmc_info->payload) in parse_dmc_fw_header()
843 memcpy(dmc_info->payload, payload, payload_size); in parse_dmc_fw_header()
964 if (!dmc->dmc_info[dmc_id].present) in parse_dmc_fw()
967 offset = readcount + dmc->dmc_info[dmc_id].dmc_offset * 4; in parse_dmc_fw()
1180 kfree(dmc->dmc_info[dmc_id].payload); in intel_dmc_fini()
1263 intel_de_read(i915, DMC_PROGRAM(dmc->dmc_info[DMC_FW_MAIN].start_mmioaddr, 0))); in intel_dmc_debugfs_status_show()