Lines Matching refs:addr2

899 	bus_space_handle_t addr2 = bsh2 + off2;  in bus_space_copy_region_1()  local
902 if (addr1 >= addr2) { in bus_space_copy_region_1()
904 for (; count != 0; count--, addr1++, addr2++) in bus_space_copy_region_1()
905 outb(addr2, inb(addr1)); in bus_space_copy_region_1()
908 for (addr1 += (count - 1), addr2 += (count - 1); in bus_space_copy_region_1()
909 count != 0; count--, addr1--, addr2--) in bus_space_copy_region_1()
910 outb(addr2, inb(addr1)); in bus_space_copy_region_1()
913 if (addr1 >= addr2) { in bus_space_copy_region_1()
915 for (; count != 0; count--, addr1++, addr2++) in bus_space_copy_region_1()
916 *(volatile u_int8_t *)(addr2) = in bus_space_copy_region_1()
920 for (addr1 += (count - 1), addr2 += (count - 1); in bus_space_copy_region_1()
921 count != 0; count--, addr1--, addr2--) in bus_space_copy_region_1()
922 *(volatile u_int8_t *)(addr2) = in bus_space_copy_region_1()
934 bus_space_handle_t addr2 = bsh2 + off2; in bus_space_copy_region_2() local
937 if (addr1 >= addr2) { in bus_space_copy_region_2()
939 for (; count != 0; count--, addr1 += 2, addr2 += 2) in bus_space_copy_region_2()
940 outw(addr2, inw(addr1)); in bus_space_copy_region_2()
943 for (addr1 += 2 * (count - 1), addr2 += 2 * (count - 1); in bus_space_copy_region_2()
944 count != 0; count--, addr1 -= 2, addr2 -= 2) in bus_space_copy_region_2()
945 outw(addr2, inw(addr1)); in bus_space_copy_region_2()
948 if (addr1 >= addr2) { in bus_space_copy_region_2()
950 for (; count != 0; count--, addr1 += 2, addr2 += 2) in bus_space_copy_region_2()
951 *(volatile u_int16_t *)(addr2) = in bus_space_copy_region_2()
955 for (addr1 += 2 * (count - 1), addr2 += 2 * (count - 1); in bus_space_copy_region_2()
956 count != 0; count--, addr1 -= 2, addr2 -= 2) in bus_space_copy_region_2()
957 *(volatile u_int16_t *)(addr2) = in bus_space_copy_region_2()
969 bus_space_handle_t addr2 = bsh2 + off2; in bus_space_copy_region_4() local
972 if (addr1 >= addr2) { in bus_space_copy_region_4()
974 for (; count != 0; count--, addr1 += 4, addr2 += 4) in bus_space_copy_region_4()
975 outl(addr2, inl(addr1)); in bus_space_copy_region_4()
978 for (addr1 += 4 * (count - 1), addr2 += 4 * (count - 1); in bus_space_copy_region_4()
979 count != 0; count--, addr1 -= 4, addr2 -= 4) in bus_space_copy_region_4()
980 outl(addr2, inl(addr1)); in bus_space_copy_region_4()
983 if (addr1 >= addr2) { in bus_space_copy_region_4()
985 for (; count != 0; count--, addr1 += 4, addr2 += 4) in bus_space_copy_region_4()
986 *(volatile u_int32_t *)(addr2) = in bus_space_copy_region_4()
990 for (addr1 += 4 * (count - 1), addr2 += 4 * (count - 1); in bus_space_copy_region_4()
991 count != 0; count--, addr1 -= 4, addr2 -= 4) in bus_space_copy_region_4()
992 *(volatile u_int32_t *)(addr2) = in bus_space_copy_region_4()