Lines Matching refs:block

223 	unsigned int		block;  member
400 b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
415 b->cpu, apic, b->bank, b->block, b->address, hi, lo); in lvt_off_valid()
528 static u32 smca_get_block_address(unsigned int bank, unsigned int block, in smca_get_block_address() argument
531 if (!block) in smca_get_block_address()
537 return MSR_AMD64_SMCA_MCx_MISCy(bank, block - 1); in smca_get_block_address()
541 unsigned int bank, unsigned int block, in get_block_address() argument
546 if ((bank >= per_cpu(mce_num_banks, cpu)) || (block >= NR_BLOCKS)) in get_block_address()
550 return smca_get_block_address(bank, block, cpu); in get_block_address()
553 switch (block) { in get_block_address()
569 prepare_threshold_block(unsigned int bank, unsigned int block, u32 addr, in prepare_threshold_block() argument
577 if (!block) in prepare_threshold_block()
583 b.block = block; in prepare_threshold_block()
683 unsigned int bank, block, cpu = smp_processor_id(); in mce_amd_feature_init() local
694 for (block = 0; block < NR_BLOCKS; ++block) { in mce_amd_feature_init()
695 address = get_block_address(address, low, high, bank, block, cpu); in mce_amd_feature_init()
709 offset = prepare_threshold_block(bank, block, address, offset, high); in mce_amd_feature_init()
904 static void log_and_reset_block(struct threshold_block *block) in log_and_reset_block() argument
909 if (!block) in log_and_reset_block()
912 if (rdmsr_safe(block->address, &low, &high)) in log_and_reset_block()
919 log_error_thresholding(block->bank, ((u64)high << 32) | low); in log_and_reset_block()
923 tr.b = block; in log_and_reset_block()
933 struct threshold_block *first_block = NULL, *block = NULL, *tmp = NULL; in amd_threshold_interrupt() local
958 list_for_each_entry_safe(block, tmp, &first_block->miscj, miscj) in amd_threshold_interrupt()
959 log_and_reset_block(block); in amd_threshold_interrupt()
1117 if (b->block < ARRAY_SIZE(smca_umc_block_names)) in get_name()
1118 return smca_umc_block_names[b->block]; in get_name()
1121 if (b && b->block) { in get_name()
1122 snprintf(buf_mcatype, MAX_MCATYPE_NAME_LEN, "th_block_%u", b->block); in get_name()
1141 unsigned int bank, unsigned int block, in allocate_threshold_blocks() argument
1148 if ((bank >= this_cpu_read(mce_num_banks)) || (block >= NR_BLOCKS)) in allocate_threshold_blocks()
1155 if (block) in allocate_threshold_blocks()
1169 b->block = block; in allocate_threshold_blocks()
1196 address = get_block_address(address, low, high, bank, ++block, cpu); in allocate_threshold_blocks()
1200 err = allocate_threshold_blocks(cpu, tb, bank, block, address); in allocate_threshold_blocks()