Lines Matching refs:branch
67 #define to_channel(ch, branch) ((((branch)) << 1) | (ch)) argument
69 #define to_csrow(slot, ch, branch) \ argument
70 (to_channel(ch, branch) | ((slot) << 2))
411 unsigned branch, channel, bank, rank, cas, ras; in i7300_process_fbd_error() local
428 branch = (GET_FBD_FAT_IDX(error_reg) == 2) ? 1 : 0; in i7300_process_fbd_error()
450 branch, -1, rank, in i7300_process_fbd_error()
464 branch = (GET_FBD_NF_IDX(error_reg) == 2) ? 1 : 0; in i7300_process_fbd_error()
482 channel = (branch << 1); in i7300_process_fbd_error()
498 branch >> 1, channel % 2, rank, in i7300_process_fbd_error()
586 int slot, int ch, int branch, in decode_mtr() argument
592 channel = to_channel(ch, branch); in decode_mtr()
594 mtr = pvt->mtr[slot][branch]; in decode_mtr()
751 int ch, branch, slot, channel, max_channel, max_branch; in i7300_init_csrows() local
767 for (branch = 0; branch < max_branch; branch++) { in i7300_init_csrows()
769 channel = to_channel(0, branch); in i7300_init_csrows()
770 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch], in i7300_init_csrows()
779 channel = to_channel(1, branch); in i7300_init_csrows()
780 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch], in i7300_init_csrows()
790 for (branch = 0; branch < max_branch; branch++) { in i7300_init_csrows()
791 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch], in i7300_init_csrows()
793 &pvt->mtr[slot][branch]); in i7300_init_csrows()
795 int channel = to_channel(ch, branch); in i7300_init_csrows()
797 dimm = edac_get_dimm(mci, branch, ch, slot); in i7300_init_csrows()
801 mtr = decode_mtr(pvt, slot, ch, branch, in i7300_init_csrows()
912 int branch; in i7300_put_devices() local
917 for (branch = 0; branch < MAX_CH_PER_BRANCH; branch++) in i7300_put_devices()
918 pci_dev_put(pvt->pci_dev_2x_0_fbd_branch[branch]); in i7300_put_devices()