Lines Matching +full:lsb +full:- +full:first
1 // SPDX-License-Identifier: GPL-2.0-only
32 int lsb; in apei_mce_report_mem_error() local
34 if (!(mem_err->validation_bits & CPER_MEM_VALID_PA)) in apei_mce_report_mem_error()
38 * Even if the ->validation_bits are set for address mask, in apei_mce_report_mem_error()
42 if (mem_err->validation_bits & CPER_MEM_VALID_PA_MASK) in apei_mce_report_mem_error()
43 lsb = find_first_bit((void *)&mem_err->physical_addr_mask, PAGE_SHIFT); in apei_mce_report_mem_error()
45 lsb = PAGE_SHIFT; in apei_mce_report_mem_error()
48 m.bank = -1; in apei_mce_report_mem_error()
51 m.misc = (MCI_MISC_ADDR_PHYS << 6) | lsb; in apei_mce_report_mem_error()
61 m.addr = mem_err->physical_addr; in apei_mce_report_mem_error()
74 return -EINVAL; in apei_smca_report_x86_error()
78 * match with the first expected register in the register layout of in apei_smca_report_x86_error()
84 if ((ctx_info->msr_addr & MSR_AMD64_SMCA_MC0_STATUS) != in apei_smca_report_x86_error()
86 return -EINVAL; in apei_smca_report_x86_error()
98 if (ctx_info->reg_arr_size < 48) in apei_smca_report_x86_error()
99 return -EINVAL; in apei_smca_report_x86_error()
109 return -EINVAL; in apei_smca_report_x86_error()
114 m.bank = (ctx_info->msr_addr >> 4) & 0xFF; in apei_smca_report_x86_error()
136 * byte-packed.
162 rcd.sec_hdr.section_offset = (void *)&rcd.mce - (void *)&rcd; in apei_write_mce()
194 if (rc == -ENOENT) in apei_read_mce()