Lines Matching refs:target
523 unsigned long target = ((unsigned long)bar) | offset; in calgary_reg() local
524 return (void __iomem*)target; in calgary_reg()
548 void __iomem *target; in calgary_tce_cache_blast() local
551 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast()
552 aer = readl(target); in calgary_tce_cache_blast()
553 writel(0, target); in calgary_tce_cache_blast()
556 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_tce_cache_blast()
557 val = readl(target); in calgary_tce_cache_blast()
560 target = calgary_reg(bbar, split_queue_offset(tbl->it_busno)); in calgary_tce_cache_blast()
562 val = readq(target); in calgary_tce_cache_blast()
569 target = calgary_reg(bbar, tar_offset(tbl->it_busno)); in calgary_tce_cache_blast()
570 writeq(tbl->tar_val, target); in calgary_tce_cache_blast()
573 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast()
574 writel(aer, target); in calgary_tce_cache_blast()
575 (void)readl(target); /* flush */ in calgary_tce_cache_blast()
581 void __iomem *target; in calioc2_tce_cache_blast() local
593 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); in calioc2_tce_cache_blast()
594 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
595 printk(KERN_DEBUG "1a. read 0x%x [LE] from %p\n", val, target); in calioc2_tce_cache_blast()
597 printk(KERN_DEBUG "1b. writing 0x%x [LE] to %p\n", val, target); in calioc2_tce_cache_blast()
598 writel(cpu_to_be32(val), target); in calioc2_tce_cache_blast()
602 target = calgary_reg(bbar, split_queue_offset(bus)); in calioc2_tce_cache_blast()
604 val64 = readq(target); in calioc2_tce_cache_blast()
611 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_DEBUG); in calioc2_tce_cache_blast()
612 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
613 printk(KERN_DEBUG "3. read 0x%x [LE] from %p\n", val, target); in calioc2_tce_cache_blast()
626 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); in calioc2_tce_cache_blast()
627 printk(KERN_DEBUG "5a. slamming into HardStop by reading %p\n", target); in calioc2_tce_cache_blast()
628 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
629 printk(KERN_DEBUG "5b. read 0x%x [LE] from %p\n", val, target); in calioc2_tce_cache_blast()
630 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_DEBUG); in calioc2_tce_cache_blast()
631 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
632 printk(KERN_DEBUG "5c. read 0x%x [LE] from %p (debug)\n", val, target); in calioc2_tce_cache_blast()
636 target = calgary_reg(bbar, tar_offset(bus)); in calioc2_tce_cache_blast()
637 writeq(tbl->tar_val, target); in calioc2_tce_cache_blast()
641 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); in calioc2_tce_cache_blast()
642 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
643 printk(KERN_DEBUG "7b. read 0x%x [LE] from %p\n", val, target); in calioc2_tce_cache_blast()
647 target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); in calioc2_tce_cache_blast()
649 printk(KERN_DEBUG "8b. writing 0x%x [LE] to %p\n", val, target); in calioc2_tce_cache_blast()
650 writel(cpu_to_be32(val), target); in calioc2_tce_cache_blast()
651 val = be32_to_cpu(readl(target)); in calioc2_tce_cache_blast()
652 printk(KERN_DEBUG "8c. read 0x%x [LE] from %p\n", val, target); in calioc2_tce_cache_blast()
669 void __iomem *target; in calgary_reserve_peripheral_mem_1() local
677 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_1_LOW); in calgary_reserve_peripheral_mem_1()
678 low = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_1()
679 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_1_HIGH); in calgary_reserve_peripheral_mem_1()
680 high = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_1()
681 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_1_SIZE); in calgary_reserve_peripheral_mem_1()
682 sizelow = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_1()
692 void __iomem *target; in calgary_reserve_peripheral_mem_2() local
701 target = calgary_reg(bbar, phb_offset(busnum) | PHB_CONFIG_RW_OFFSET); in calgary_reserve_peripheral_mem_2()
702 val32 = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_2()
706 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_2_LOW); in calgary_reserve_peripheral_mem_2()
707 low = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_2()
708 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_2_HIGH); in calgary_reserve_peripheral_mem_2()
709 high = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_2()
710 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_2_SIZE_LOW); in calgary_reserve_peripheral_mem_2()
711 sizelow = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_2()
712 target = calgary_reg(bbar, phb_offset(busnum) | PHB_MEM_2_SIZE_HIGH); in calgary_reserve_peripheral_mem_2()
713 sizehigh = be32_to_cpu(readl(target)); in calgary_reserve_peripheral_mem_2()
757 void __iomem *target; in calgary_setup_tar() local
784 target = calgary_reg(bbar, tar_offset(dev->bus->number)); in calgary_setup_tar()
785 val64 = be64_to_cpu(readq(target)); in calgary_setup_tar()
798 writeq(tbl->tar_val, target); in calgary_setup_tar()
799 readq(target); /* flush */ in calgary_setup_tar()
808 void __iomem *target; in calgary_free_bus() local
811 target = calgary_reg(tbl->bbar, tar_offset(dev->bus->number)); in calgary_free_bus()
812 val64 = be64_to_cpu(readq(target)); in calgary_free_bus()
814 writeq(cpu_to_be64(val64), target); in calgary_free_bus()
815 readq(target); /* flush */ in calgary_free_bus()
832 void __iomem *target; in calgary_dump_error_regs() local
835 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_CSR_OFFSET); in calgary_dump_error_regs()
836 csr = be32_to_cpu(readl(target)); in calgary_dump_error_regs()
838 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_dump_error_regs()
839 plssr = be32_to_cpu(readl(target)); in calgary_dump_error_regs()
850 void __iomem *target; in calioc2_dump_error_regs() local
857 target = calgary_reg(bbar, phboff | PHB_CSR_OFFSET); in calioc2_dump_error_regs()
858 csr = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
860 target = calgary_reg(bbar, phboff | PHB_PLSSR_OFFSET); in calioc2_dump_error_regs()
861 plssr = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
863 target = calgary_reg(bbar, phboff | 0x290); in calioc2_dump_error_regs()
864 csmr = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
866 target = calgary_reg(bbar, phboff | 0x800); in calioc2_dump_error_regs()
867 mck = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
879 target = calgary_reg(bbar, phboff | erroff); in calioc2_dump_error_regs()
880 errregs[i] = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
886 target = calgary_reg(bbar, phboff | PHB_ROOT_COMPLEX_STATUS); in calioc2_dump_error_regs()
887 rcstat = be32_to_cpu(readl(target)); in calioc2_dump_error_regs()
898 void __iomem *target; in calgary_watchdog() local
900 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_CSR_OFFSET); in calgary_watchdog()
901 val32 = be32_to_cpu(readl(target)); in calgary_watchdog()
908 writel(0, target); in calgary_watchdog()
911 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | in calgary_watchdog()
913 val32 = be32_to_cpu(readl(target)); in calgary_watchdog()
915 writel(cpu_to_be32(val32), target); in calgary_watchdog()
916 readl(target); /* flush */ in calgary_watchdog()
927 void __iomem *target; in calgary_set_split_completion_timeout() local
944 target = calgary_reg(bbar, CALGARY_CONFIG_REG); in calgary_set_split_completion_timeout()
945 val64 = be64_to_cpu(readq(target)); in calgary_set_split_completion_timeout()
951 writeq(cpu_to_be64(val64), target); in calgary_set_split_completion_timeout()
952 readq(target); /* flush */ in calgary_set_split_completion_timeout()
959 void __iomem *target; in calioc2_handle_quirks() local
965 target = calgary_reg(bbar, phb_offset(busnum) | PHB_SAVIOR_L2); in calioc2_handle_quirks()
966 val = cpu_to_be32(readl(target)); in calioc2_handle_quirks()
968 writel(cpu_to_be32(val), target); in calioc2_handle_quirks()
988 void __iomem *target; in calgary_enable_translation() local
997 target = calgary_reg(bbar, phb_offset(busnum) | PHB_CONFIG_RW_OFFSET); in calgary_enable_translation()
998 val32 = be32_to_cpu(readl(target)); in calgary_enable_translation()
1007 writel(cpu_to_be32(val32), target); in calgary_enable_translation()
1008 readl(target); /* flush */ in calgary_enable_translation()
1020 void __iomem *target; in calgary_disable_translation() local
1029 target = calgary_reg(bbar, phb_offset(busnum) | PHB_CONFIG_RW_OFFSET); in calgary_disable_translation()
1030 val32 = be32_to_cpu(readl(target)); in calgary_disable_translation()
1034 writel(cpu_to_be32(val32), target); in calgary_disable_translation()
1035 readl(target); /* flush */ in calgary_disable_translation()
1089 void __iomem *target; in calgary_locate_bbars() local
1108 target = calgary_reg(bbar, offset); in calgary_locate_bbars()
1110 val = be32_to_cpu(readl(target)); in calgary_locate_bbars()
1327 void __iomem *target; in get_tce_space_from_tar() local
1345 target = calgary_reg(bus_info[bus].bbar, in get_tce_space_from_tar()
1347 tce_space = be64_to_cpu(readq(target)); in get_tce_space_from_tar()