Lines Matching refs:pfs_header
97 struct intel_tpmi_pfs_entry pfs_header; member
184 pfs->pfs_header.entry_size > SZ_1K ? 0 : pfs->pfs_header.entry_size << 2; \
381 ret = tpmi_read_feature_status(tpmi_info, pfs->pfs_header.tpmi_id, &feature_state); in tpmi_pfs_dbg_show()
394 pfs->pfs_header.tpmi_id, pfs->pfs_header.num_entries, in tpmi_pfs_dbg_show()
395 pfs->pfs_header.entry_size, pfs->pfs_header.cap_offset, in tpmi_pfs_dbg_show()
396 pfs->pfs_header.attribute, pfs->vsec_offset, locked, disabled, in tpmi_pfs_dbg_show()
428 for (count = 0; count < pfs->pfs_header.num_entries; ++count) { in tpmi_mem_dump_show()
482 if (punit >= pfs->pfs_header.num_entries) { in mem_write()
550 snprintf(name, sizeof(name), "tpmi-id-%02x", pfs->pfs_header.tpmi_id); in tpmi_dbgfs_register()
610 ret = tpmi_read_feature_status(tpmi_info, pfs->pfs_header.tpmi_id, &feature_state); in tpmi_create_device()
621 name = intel_tpmi_name(pfs->pfs_header.tpmi_id); in tpmi_create_device()
625 res = kcalloc(pfs->pfs_header.num_entries, sizeof(*res), GFP_KERNEL); in tpmi_create_device()
637 for (i = 0, tmp = res; i < pfs->pfs_header.num_entries; i++, tmp++) { in tpmi_create_device()
638 u64 entry_size_bytes = pfs->pfs_header.entry_size * sizeof(u32); in tpmi_create_device()
647 feature_vsec_dev->num_resources = pfs->pfs_header.num_entries; in tpmi_create_device()
696 info_mem = ioremap(pfs->vsec_offset, pfs->pfs_header.entry_size * sizeof(u32)); in tpmi_process_info()
733 memcpy_fromio(&pfs->pfs_header, pfs_mem, sizeof(pfs->pfs_header)); in tpmi_fetch_pfs_header()
789 pfs->vsec_offset = pfs_start + pfs->pfs_header.cap_offset * TPMI_CAP_OFFSET_UNIT; in intel_vsec_tpmi_init()
798 if (pfs->pfs_header.tpmi_id == TPMI_INFO_ID) { in intel_vsec_tpmi_init()
804 if (pfs->pfs_header.tpmi_id == TPMI_CONTROL_ID) in intel_vsec_tpmi_init()