tag | line | file | source code |
base | 96 | arch/alpha/kernel/bios32.c | unsigned int base, mask, size, reg; |
base | 108 | arch/alpha/kernel/bios32.c | pcibios_read_config_dword(bus->number, dev->devfn, reg, &base); |
base | 109 | arch/alpha/kernel/bios32.c | if (!base) { |
base | 117 | arch/alpha/kernel/bios32.c | if (base & PCI_BASE_ADDRESS_SPACE_IO) { |
base | 123 | arch/alpha/kernel/bios32.c | base &= PCI_BASE_ADDRESS_IO_MASK; |
base | 124 | arch/alpha/kernel/bios32.c | mask = (~base << 1) | 0x1; |
base | 125 | arch/alpha/kernel/bios32.c | size = (mask & base) & 0xffffffff; |
base | 126 | arch/alpha/kernel/bios32.c | base = ALIGN(io_base, size); |
base | 127 | arch/alpha/kernel/bios32.c | io_base = base + size; |
base | 129 | arch/alpha/kernel/bios32.c | reg, base | 0x1); |
base | 137 | arch/alpha/kernel/bios32.c | type = base & PCI_BASE_ADDRESS_MEM_TYPE_MASK; |
base | 138 | arch/alpha/kernel/bios32.c | base &= PCI_BASE_ADDRESS_MEM_MASK; |
base | 139 | arch/alpha/kernel/bios32.c | mask = (~base << 1) | 0x1; |
base | 140 | arch/alpha/kernel/bios32.c | size = (mask & base) & 0xffffffff; |
base | 186 | arch/alpha/kernel/bios32.c | base = ALIGN(mem_base, size); |
base | 195 | arch/alpha/kernel/bios32.c | if (((base / 16*MB) & 0x7) == 0) { |
base | 196 | arch/alpha/kernel/bios32.c | base &= ~(128*MB - 1); |
base | 197 | arch/alpha/kernel/bios32.c | base += 16*MB; |
base | 198 | arch/alpha/kernel/bios32.c | base = ALIGN(base, size); |
base | 200 | arch/alpha/kernel/bios32.c | if (base / 128*MB != (base + size) / 128*MB) { |
base | 201 | arch/alpha/kernel/bios32.c | base &= ~(128*MB - 1); |
base | 202 | arch/alpha/kernel/bios32.c | base += (128 + 16)*MB; |
base | 203 | arch/alpha/kernel/bios32.c | base = ALIGN(base, size); |
base | 206 | arch/alpha/kernel/bios32.c | mem_base = base + size; |
base | 208 | arch/alpha/kernel/bios32.c | reg, base); |
base | 15 | arch/i386/kernel/ioport.c | static void set_bitmap(unsigned long *bitmap, short base, short extent, int new_value) |
base | 18 | arch/i386/kernel/ioport.c | unsigned long *bitmap_base = bitmap + (base >> 5); |
base | 19 | arch/i386/kernel/ioport.c | unsigned short low_index = base & 0x1f; |
base | 41 | arch/i386/kernel/ldt.c | unsigned long base, limit; |
base | 56 | arch/i386/kernel/ldt.c | base = ldt_info.base_addr; |
base | 60 | arch/i386/kernel/ldt.c | limit += base; |
base | 61 | arch/i386/kernel/ldt.c | if (limit < base || limit >= 0xC0000000) |
base | 246 | arch/i386/kernel/smp.c | void smp_scan_config(unsigned long base, unsigned long length) |
base | 248 | arch/i386/kernel/smp.c | unsigned long *bp=(unsigned long *)base; |
base | 233 | arch/i386/kernel/vm86.c | #define pushb(base, ptr, val) \ |
base | 238 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 240 | arch/i386/kernel/vm86.c | #define pushw(base, ptr, val) \ |
base | 247 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 249 | arch/i386/kernel/vm86.c | #define pushl(base, ptr, val) \ |
base | 262 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 264 | arch/i386/kernel/vm86.c | #define popb(base, ptr) \ |
base | 269 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 270 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 273 | arch/i386/kernel/vm86.c | #define popw(base, ptr) \ |
base | 280 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 281 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 284 | arch/i386/kernel/vm86.c | #define popl(base, ptr) \ |
base | 297 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 298 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base)); \ |
base | 76 | arch/i386/math-emu/get_address.c | unsigned char ss,index,base; |
base | 81 | arch/i386/math-emu/get_address.c | base = get_fs_byte((char *) (*fpu_eip)); /* The SIB byte */ |
base | 84 | arch/i386/math-emu/get_address.c | ss = base >> 6; |
base | 85 | arch/i386/math-emu/get_address.c | index = (base >> 3) & 7; |
base | 86 | arch/i386/math-emu/get_address.c | base &= 7; |
base | 88 | arch/i386/math-emu/get_address.c | if ((mod == 0) && (base == 5)) |
base | 91 | arch/i386/math-emu/get_address.c | offset = REG_(base); |
base | 114 | arch/i386/math-emu/get_address.c | else if (mod == 2 || base == 5) /* The second condition also has mod==0 */ |
base | 19 | arch/mips/kernel/ioport.c | static void set_bitmap(unsigned long *bitmap, short base, short extent, int new_value) |
base | 22 | arch/mips/kernel/ioport.c | unsigned long *bitmap_base = bitmap + (base >> 5); |
base | 23 | arch/mips/kernel/ioport.c | unsigned short low_index = base & 0x1f; |
base | 2207 | drivers/block/floppy.c | char *base; |
base | 2209 | drivers/block/floppy.c | base = CURRENT->buffer; |
base | 2215 | drivers/block/floppy.c | while (bh && bh->b_data == base + size){ |
base | 351 | drivers/block/triton.c | unsigned short base, time; |
base | 354 | drivers/block/triton.c | base = bmiba; |
base | 357 | drivers/block/triton.c | base = bmiba + 8; |
base | 360 | drivers/block/triton.c | printk(" %s: BusMaster DMA at 0x%04x-0x%04x", hwif->name, base, base+7); |
base | 361 | drivers/block/triton.c | if (check_region(base, 8)) { |
base | 364 | drivers/block/triton.c | request_region(base, 8, hwif->name); |
base | 365 | drivers/block/triton.c | hwif->dma_base = base; |
base | 377 | drivers/block/triton.c | outl(virt_to_bus(hwif->dmatable), base + 4); |
base | 215 | drivers/cdrom/cdu31a.c | unsigned short base; /* I/O Base Address */ |
base | 3041 | drivers/cdrom/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
base | 3044 | drivers/cdrom/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
base | 3048 | drivers/cdrom/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
base | 1074 | drivers/cdrom/cm206.c | int probe_base_port(int base) |
base | 1082 | drivers/cdrom/cm206.c | if (base) b=e=base; |
base | 1083 | drivers/cdrom/cm206.c | for (base=b; base<=e; base += 0x10) { |
base | 1084 | drivers/cdrom/cm206.c | if (check_region(base, 0x10)) continue; |
base | 1085 | drivers/cdrom/cm206.c | fool = inw(base+2); /* empty possibly uart_receive_buffer */ |
base | 1086 | drivers/cdrom/cm206.c | if((inw(base+6) & 0xffef) != 0x0001 || /* line_status */ |
base | 1087 | drivers/cdrom/cm206.c | (inw(base) & 0xad00) != 0) /* data status */ |
base | 1090 | drivers/cdrom/cm206.c | outw(dc_normal | pattern1, base+8); |
base | 1091 | drivers/cdrom/cm206.c | if ((inw(base) & 0x7f) != pattern1) continue; |
base | 1092 | drivers/cdrom/cm206.c | outw(dc_normal | pattern2, base+8); |
base | 1093 | drivers/cdrom/cm206.c | if ((inw(base) & 0x7f) != pattern2) continue; |
base | 1094 | drivers/cdrom/cm206.c | outw(dc_normal | READ_AHEAD, base+8); |
base | 1096 | drivers/cdrom/cm206.c | return(base); |
base | 118 | drivers/cdrom/optcd.c | static short isp16_config( int base, u_char drive_type, int irq, int dma ); |
base | 1586 | drivers/cdrom/optcd.c | isp16_config( int base, u_char drive_type, int irq, int dma ) |
base | 1596 | drivers/cdrom/optcd.c | switch (base) { |
base | 1602 | drivers/cdrom/optcd.c | printk( "Base address 0x%03X not supported by cdrom interface on ISP16.\n", base ); |
base | 121 | drivers/cdrom/sjcd.c | static short isp16_cdi_config( int base, u_char drive_type, int irq, int dma ); |
base | 1751 | drivers/cdrom/sjcd.c | isp16_cdi_config( int base, u_char drive_type, int irq, int dma ) |
base | 1761 | drivers/cdrom/sjcd.c | switch (base) { |
base | 1767 | drivers/cdrom/sjcd.c | printk( "Base address 0x%03X not supported by cdrom interface on ISP16.\n", base ); |
base | 181 | drivers/char/console.c | extern int serial_echo_init (int base); |
base | 251 | drivers/char/console.c | serial_echo_init(int base) |
base | 255 | drivers/char/console.c | if (base != 0x2f8 && base != 0x3f8) { |
base | 259 | drivers/char/console.c | serial_echo_port = base; |
base | 1899 | drivers/char/console.c | long base = (long) vc_scrbuf[currcons]; |
base | 1907 | drivers/char/console.c | pos = origin = video_mem_start = base; |
base | 1908 | drivers/char/console.c | scr_end = base + video_screen_size; |
base | 1909 | drivers/char/console.c | video_mem_end = base + video_screen_size; |
base | 847 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
base | 1019 | drivers/char/keyboard.c | int base; |
base | 1025 | drivers/char/keyboard.c | base = 10; |
base | 1028 | drivers/char/keyboard.c | base = 16; |
base | 1034 | drivers/char/keyboard.c | npadch = npadch * base + value; |
base | 527 | drivers/char/lp.c | int base, size; |
base | 530 | drivers/char/lp.c | base = LP_B(offset); |
base | 531 | drivers/char/lp.c | size = (base == 0x3bc)? 3 : 8; |
base | 532 | drivers/char/lp.c | if (check_region(base, size) < 0) |
base | 535 | drivers/char/lp.c | outb_p(LP_DUMMY, base); |
base | 537 | drivers/char/lp.c | testvalue = inb_p(base); |
base | 541 | drivers/char/lp.c | printk("lp%d at 0x%04x, ", offset, base); |
base | 542 | drivers/char/lp.c | request_region(base, size, "lp"); |
base | 612 | drivers/char/lp.c | int base, size; |
base | 613 | drivers/char/lp.c | base = LP_B(offset); |
base | 614 | drivers/char/lp.c | size = (base == 0x3bc)? 3 : 8; |
base | 388 | drivers/net/3c507.c | int base; |
base | 393 | drivers/net/3c507.c | base = 0xf00000 + (mem_config & 0x08 ? 0x080000 |
base | 397 | drivers/net/3c507.c | base = 0x0c0000 + ( (mem_config & 0x18) << 12); |
base | 399 | drivers/net/3c507.c | dev->mem_start = base; |
base | 400 | drivers/net/3c507.c | dev->mem_end = base + size; |
base | 288 | drivers/net/depca.c | volatile s32 base; |
base | 294 | drivers/net/depca.c | volatile s32 base; |
base | 685 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->rx_ring[i].base); |
base | 688 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->rx_ring[i].base); |
base | 692 | drivers/net/depca.c | printk("0x%8.8lx ", (long) &lp->tx_ring[i].base); |
base | 695 | drivers/net/depca.c | printk("...0x%8.8lx\n", (long) &lp->tx_ring[i].base); |
base | 699 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->rx_ring[i].base)); |
base | 702 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->rx_ring[i].base)); |
base | 706 | drivers/net/depca.c | printk("0x%8.8x ", readl(&lp->tx_ring[i].base)); |
base | 709 | drivers/net/depca.c | printk("...0x%8.8x\n", readl(&lp->tx_ring[i].base)); |
base | 777 | drivers/net/depca.c | writel((p=lp->dma_buffs+i*RX_BUFF_SZ) | R_OWN, &lp->rx_ring[i].base); |
base | 783 | drivers/net/depca.c | &lp->tx_ring[i].base); |
base | 924 | drivers/net/depca.c | !(readl(&lp->rx_ring[entry].base) & R_OWN); |
base | 926 | drivers/net/depca.c | status = readl(&lp->rx_ring[entry].base) >> 16 ; |
base | 995 | drivers/net/depca.c | writel(readl(&lp->rx_ring[lp->rx_old].base) | R_OWN, |
base | 996 | drivers/net/depca.c | &lp->rx_ring[lp->rx_old].base); |
base | 998 | drivers/net/depca.c | writel(readl(&lp->rx_ring[entry].base) | R_OWN, &lp->rx_ring[entry].base); |
base | 1022 | drivers/net/depca.c | status = readl(&lp->tx_ring[entry].base) >> 16 ; |
base | 1567 | drivers/net/depca.c | if (!(readl(&lp->tx_ring[end].base) & T_OWN)) {/* Enough room? */ |
base | 1584 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) & ~T_FLAGS, &lp->tx_ring[i].base); |
base | 1590 | drivers/net/depca.c | writel(readl(&lp->tx_ring[end].base) & ~T_FLAGS, &lp->tx_ring[end].base); |
base | 1595 | drivers/net/depca.c | writel(readl(&lp->tx_ring[entry].base) | T_STP, &lp->tx_ring[entry].base); |
base | 1597 | drivers/net/depca.c | writel(readl(&lp->tx_ring[end].base) | T_ENP, &lp->tx_ring[end].base); |
base | 1601 | drivers/net/depca.c | writel(readl(&lp->tx_ring[i].base) | T_OWN, &lp->tx_ring[i].base); |
base | 1604 | drivers/net/depca.c | writel(readl(&lp->tx_ring[entry].base) | T_OWN, &lp->tx_ring[entry].base); |
base | 167 | drivers/net/lance.c | int base; |
base | 173 | drivers/net/lance.c | int base; |
base | 674 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
base | 680 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
base | 732 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
base | 736 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
base | 802 | drivers/net/lance.c | lp->tx_ring[entry].base = |
base | 807 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
base | 820 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
base | 870 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
base | 875 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
base | 966 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
base | 967 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
base | 980 | drivers/net/lance.c | lp->rx_ring[entry].base &= 0x03ffffff; |
base | 990 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
base | 995 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 1004 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
base | 1014 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 104 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
base | 181 | drivers/net/ni52.c | unsigned long base; |
base | 251 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
base | 253 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
base | 289 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
base | 400 | drivers/net/ni52.c | ((struct priv *) (dev->priv))->base = dev->mem_start + size - 0x01000000; |
base | 810 | drivers/net/ni52.c | memcpy(skb_put(skb,totlen),(char *) p->base+(unsigned long) rbd->buffer, totlen); |
base | 223 | drivers/net/pi2.c | switch (lp->base & 2) { |
base | 250 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 315 | drivers/net/pi2.c | if (lp->base & 2) { /* If A channel */ |
base | 323 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R1, INT_ALL_Rx | EXT_INT_ENAB); |
base | 334 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R15, CTSIE); |
base | 335 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, RES_EXT_INT); |
base | 351 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 407 | drivers/net/pi2.c | st = rdscc(lp->cardbase, lp->base + CTL, R0); /* Fetch status */ |
base | 410 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R0, RES_EXT_INT); |
base | 411 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 480 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R15, CTSIE | DCDIE); |
base | 517 | drivers/net/pi2.c | cmd = lp->base + CTL; |
base | 576 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, ERR_RES); /* error reset */ |
base | 592 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 682 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 781 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 945 | drivers/net/pi2.c | int base, tmr0, tmr1, tmrcmd; |
base | 949 | drivers/net/pi2.c | base = ioaddr & 0x3f0; |
base | 950 | drivers/net/pi2.c | tmr0 = TMR0 + base; |
base | 951 | drivers/net/pi2.c | tmr1 = TMR1 + base; |
base | 952 | drivers/net/pi2.c | tmrcmd = TMRCMD + base; |
base | 1006 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 1101 | drivers/net/pi2.c | cmd = CTL + lp->base; |
base | 1337 | drivers/net/pi2.c | lp->base = dev->base_addr; |
base | 1375 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R1, EXT_INT_ENAB); |
base | 1377 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV); |
base | 1481 | drivers/net/pi2.c | wrtscc(lp->cardbase, CTL + lp->base, R9, MIE | NV); |
base | 1560 | drivers/net/pi2.c | wrtscc(lp->cardbase, lp->base + CTL, R0, RES_H_IUS); |
base | 119 | drivers/net/pi2.h | int base; /* Base of I/O registers */ |
base | 495 | drivers/pci/pci.c | unsigned long base; |
base | 588 | drivers/pci/pci.c | base = l; |
base | 589 | drivers/pci/pci.c | if (!base) { |
base | 593 | drivers/pci/pci.c | if (base & PCI_BASE_ADDRESS_SPACE_IO) { |
base | 596 | drivers/pci/pci.c | base & PCI_BASE_ADDRESS_IO_MASK); |
base | 600 | drivers/pci/pci.c | if (base & PCI_BASE_ADDRESS_MEM_PREFETCH) { |
base | 605 | drivers/pci/pci.c | switch (base & PCI_BASE_ADDRESS_MEM_TYPE_MASK) { |
base | 615 | drivers/pci/pci.c | base |= ((u64) l) << 32; |
base | 621 | drivers/pci/pci.c | base & PCI_BASE_ADDRESS_MEM_MASK); |
base | 303 | drivers/scsi/53c7,8xx.c | int base; /* Memory address - indicates memory mapped regs */ |
base | 351 | drivers/scsi/53c7,8xx.c | overrides[commandline_current].data.normal.base = ints[1]; |
base | 681 | drivers/scsi/53c7,8xx.c | u32 base, int io_port, int irq, int dma, int pci_valid, |
base | 708 | drivers/scsi/53c7,8xx.c | chip_str, base, io_port, irq); |
base | 795 | drivers/scsi/53c7,8xx.c | if (base) { |
base | 796 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char*) (unsigned long) base; |
base | 864 | drivers/scsi/53c7,8xx.c | u32 base; |
base | 890 | drivers/scsi/53c7,8xx.c | PCI_BASE_ADDRESS_1, (int *) &base)) || |
base | 928 | drivers/scsi/53c7,8xx.c | if ((base & PCI_BASE_ADDRESS_SPACE) != PCI_BASE_ADDRESS_SPACE_MEMORY) { |
base | 931 | drivers/scsi/53c7,8xx.c | base = 0; |
base | 933 | drivers/scsi/53c7,8xx.c | base &= PCI_BASE_ADDRESS_MEM_MASK; |
base | 935 | drivers/scsi/53c7,8xx.c | base = 0; |
base | 938 | drivers/scsi/53c7,8xx.c | if (!io_port && !base) { |
base | 970 | drivers/scsi/53c7,8xx.c | return normal_init (tpnt, board, chip, (int) base, io_port, |
base | 1008 | drivers/scsi/53c7,8xx.c | overrides[current_override].data.normal.base, |
base | 1054 | drivers/scsi/53c7,8xx.c | u32 base; |
base | 1102 | drivers/scsi/53c7,8xx.c | base = (u32) host->io_port; |
base | 1107 | drivers/scsi/53c7,8xx.c | base = virt_to_phys(host->base); |
base | 1111 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800); |
base | 1112 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_sfbr, base + SFBR_REG); |
base | 1113 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG); |
base | 1323 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
base | 125 | drivers/scsi/aha1542.c | #define aha1542_intr_reset(base) outb(IRST, CONTROL(base)) |
base | 162 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
base | 169 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 171 | drivers/scsi/aha1542.c | if(inb(STATUS(base)) & CDF) {restore_flags(flags); continue;} |
base | 172 | drivers/scsi/aha1542.c | outb(*cmdp, DATA(base)); |
base | 180 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 181 | drivers/scsi/aha1542.c | outb(*cmdp++, DATA(base)); |
base | 194 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
base | 202 | drivers/scsi/aha1542.c | WAIT(STATUS(base), DF, DF, 0); |
base | 203 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 216 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
base | 224 | drivers/scsi/aha1542.c | WAITd(STATUS(base), DF, DF, 0, 100); |
base | 225 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 792 | drivers/scsi/aha1542.c | static int aha1542_mbenable(int base) |
base | 801 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,1); |
base | 802 | drivers/scsi/aha1542.c | if(aha1542_in1(base,mbenable_result,2)) |
base | 804 | drivers/scsi/aha1542.c | WAITd(INTRFLAGS(base),INTRMASK,HACC,0,100); |
base | 805 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 812 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,3); |
base | 813 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(base),INTRMASK,HACC,0); |
base | 819 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 39 | drivers/scsi/aha1542.h | #define STATUS(base) base |
base | 49 | drivers/scsi/aha1542.h | #define INTRFLAGS(base) (STATUS(base)+2) |
base | 58 | drivers/scsi/aha1542.h | #define CONTROL(base) STATUS(base) |
base | 65 | drivers/scsi/aha1542.h | #define DATA(base) (STATUS(base)+1) |
base | 62 | drivers/scsi/aha1740.c | static unsigned int slot, base; |
base | 450 | drivers/scsi/aha1740.c | base = SLOTBASE(slot); |
base | 456 | drivers/scsi/aha1740.c | if(check_region(base, 0x5c)) continue; /* See if in use */ |
base | 470 | drivers/scsi/aha1740.c | printk("Configuring Adaptec at IO:%x, IRQ %d\n",base, |
base | 480 | drivers/scsi/aha1740.c | request_region(base, 0x5c,"aha1740"); /* Reserve the space that we need to use */ |
base | 21 | drivers/scsi/aha1740.h | #define BASE (base) |
base | 24 | drivers/scsi/aha1740.h | #define HID0 (base + 0x0) |
base | 25 | drivers/scsi/aha1740.h | #define HID1 (base + 0x1) |
base | 26 | drivers/scsi/aha1740.h | #define HID2 (base + 0x2) |
base | 27 | drivers/scsi/aha1740.h | #define HID3 (base + 0x3) |
base | 28 | drivers/scsi/aha1740.h | #define EBCNTRL (base + 0x4) |
base | 29 | drivers/scsi/aha1740.h | #define PORTADR (base + 0x40) |
base | 30 | drivers/scsi/aha1740.h | #define BIOSADR (base + 0x41) |
base | 31 | drivers/scsi/aha1740.h | #define INTDEF (base + 0x42) |
base | 32 | drivers/scsi/aha1740.h | #define SCSIDEF (base + 0x43) |
base | 33 | drivers/scsi/aha1740.h | #define BUSDEF (base + 0x44) |
base | 34 | drivers/scsi/aha1740.h | #define RESV0 (base + 0x45) |
base | 35 | drivers/scsi/aha1740.h | #define RESV1 (base + 0x46) |
base | 36 | drivers/scsi/aha1740.h | #define RESV2 (base + 0x47) |
base | 819 | drivers/scsi/aic7xxx.c | outb(p->pause, HCNTRL(p->base)); \ |
base | 820 | drivers/scsi/aic7xxx.c | while ((inb(HCNTRL(p->base)) & PAUSE) == 0) \ |
base | 828 | drivers/scsi/aic7xxx.c | outb(p->unpause, HCNTRL(p->base)) |
base | 835 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL(p->base)); \ |
base | 836 | drivers/scsi/aic7xxx.c | } while (inb(SEQADDR0(p->base)) != 0 && \ |
base | 837 | drivers/scsi/aic7xxx.c | inb(SEQADDR1(p->base)) != 0); \ |
base | 1008 | drivers/scsi/aic7xxx.c | int base; /* card base address */ |
base | 1059 | drivers/scsi/aic7xxx.c | int base; /* I/O base */ |
base | 1133 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(p->base)); |
base | 1134 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(p->base)); |
base | 1161 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT EISA SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
base | 1165 | drivers/scsi/aic7xxx.c | printk("AIC7770%s AT VLB SLOT %d:\n", BUSW[p->bus_type], p->base >> 12); |
base | 1328 | drivers/scsi/aic7xxx.c | aic7xxx_loadseq(int base) |
base | 1352 | drivers/scsi/aic7xxx.c | outb(PERRORDIS | SEQRESET | LOADRAM, SEQCTL(base)); |
base | 1358 | drivers/scsi/aic7xxx.c | :"S" (seqprog), "c" (sizeof(seqprog)), "d" (SEQRAM(base)) |
base | 1377 | drivers/scsi/aic7xxx.c | outb(SEQRESET | FASTMODE, SEQCTL(base)); |
base | 1378 | drivers/scsi/aic7xxx.c | } while ((inb(SEQADDR0(base)) != 0) && (inb(SEQADDR1(base)) != 0)); |
base | 1684 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(int base, struct aic7xxx_scb *scb) |
base | 1691 | drivers/scsi/aic7xxx.c | outb(scb->position, QINFIFO(base)); |
base | 1702 | drivers/scsi/aic7xxx.c | aic7xxx_putscb_dma(int base, struct aic7xxx_scb *scb) |
base | 1710 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1716 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (31), "d" (SCBARRAY(base)) |
base | 1719 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1730 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(int base, struct aic7xxx_scb *scb) |
base | 1735 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 1741 | drivers/scsi/aic7xxx.c | :"D" (scb), "c" (SCB_UPLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 1744 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 1781 | drivers/scsi/aic7xxx.c | aic7xxx_unbusy_target(unsigned char target, char channel, int base) |
base | 1784 | drivers/scsi/aic7xxx.c | unsigned long active_port = HA_ACTIVE0(base); |
base | 1852 | drivers/scsi/aic7xxx.c | aic7xxx_add_waiting_scb(u_long base, |
base | 1859 | drivers/scsi/aic7xxx.c | curscb = inb(SCBPTR(base)); |
base | 1860 | drivers/scsi/aic7xxx.c | head = inb(WAITING_SCBH(base)); |
base | 1861 | drivers/scsi/aic7xxx.c | tail = inb(WAITING_SCBT(base)); |
base | 1874 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 1875 | drivers/scsi/aic7xxx.c | outb(head, SCBARRAY(base) + 30); |
base | 1886 | drivers/scsi/aic7xxx.c | outb(head, SCBPTR(base)); |
base | 1887 | drivers/scsi/aic7xxx.c | outb(tail, SCBARRAY(base) + 30); |
base | 1895 | drivers/scsi/aic7xxx.c | outb(head, SCBPTR(base)); |
base | 1896 | drivers/scsi/aic7xxx.c | third_scb = inb(SCBARRAY(base) + 30); |
base | 1897 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBARRAY(base) + 30); |
base | 1898 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 1899 | drivers/scsi/aic7xxx.c | outb(third_scb, SCBARRAY(base) + 30); |
base | 1903 | drivers/scsi/aic7xxx.c | outb(tail, SCBPTR(base)); |
base | 1905 | drivers/scsi/aic7xxx.c | outb(tail, SCBARRAY(base) + 30); |
base | 1910 | drivers/scsi/aic7xxx.c | outb(head, WAITING_SCBH(base)); |
base | 1911 | drivers/scsi/aic7xxx.c | outb(tail, WAITING_SCBT(base)); |
base | 1912 | drivers/scsi/aic7xxx.c | outb(curscb, SCBPTR(base)); |
base | 1930 | drivers/scsi/aic7xxx.c | int base = p->base; |
base | 1936 | drivers/scsi/aic7xxx.c | curscb = inb(SCBPTR(base)); |
base | 1937 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 1938 | drivers/scsi/aic7xxx.c | next = inb(SCBARRAY(base) + 30); |
base | 1943 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 1944 | drivers/scsi/aic7xxx.c | outb(SCB_LIST_NULL, SCBARRAY(base) + 30); |
base | 1945 | drivers/scsi/aic7xxx.c | aic7xxx_unbusy_target(target, channel, base); |
base | 1955 | drivers/scsi/aic7xxx.c | outb(next, WAITING_SCBH(base)); |
base | 1962 | drivers/scsi/aic7xxx.c | outb(prev, SCBPTR(base)); |
base | 1963 | drivers/scsi/aic7xxx.c | outb(next, SCBARRAY(base) + 30); |
base | 1968 | drivers/scsi/aic7xxx.c | if (inb(WAITING_SCBT(base)) == scb->position) |
base | 1970 | drivers/scsi/aic7xxx.c | outb(prev, WAITING_SCBT(base)); |
base | 1978 | drivers/scsi/aic7xxx.c | outb(curscb, SCBPTR(base)); |
base | 1998 | drivers/scsi/aic7xxx.c | int base = p->base; |
base | 2007 | drivers/scsi/aic7xxx.c | active_scb = inb(SCBPTR(base)); |
base | 2014 | drivers/scsi/aic7xxx.c | int queued = inb(QINCNT(base)); |
base | 2018 | drivers/scsi/aic7xxx.c | saved_queue[i] = inb(QINFIFO(base)); |
base | 2028 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 2029 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 2039 | drivers/scsi/aic7xxx.c | outb(saved_queue[queued], QINFIFO(base)); |
base | 2049 | drivers/scsi/aic7xxx.c | next = inb(WAITING_SCBH(base)); /* Start at head of list. */ |
base | 2065 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 2067 | drivers/scsi/aic7xxx.c | next = inb(SCBARRAY(base) + 30); |
base | 2086 | drivers/scsi/aic7xxx.c | aic7xxx_unbusy_target(target, channel, base); |
base | 2087 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 2088 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 2096 | drivers/scsi/aic7xxx.c | outb(active_scb, SCBPTR(base)); |
base | 2108 | drivers/scsi/aic7xxx.c | aic7xxx_reset_current_bus(int base) |
base | 2110 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(base)); |
base | 2112 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(base)); |
base | 2126 | drivers/scsi/aic7xxx.c | int base = p->base; |
base | 2142 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(base)); |
base | 2143 | drivers/scsi/aic7xxx.c | offset = HA_TARG_SCRATCH(base) + 8; |
base | 2144 | drivers/scsi/aic7xxx.c | offset_max = HA_TARG_SCRATCH(base) + 16; |
base | 2154 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(base)); |
base | 2155 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(base)); |
base | 2156 | drivers/scsi/aic7xxx.c | offset = HA_TARG_SCRATCH(base); |
base | 2157 | drivers/scsi/aic7xxx.c | offset_max = HA_TARG_SCRATCH(base) + 16; |
base | 2163 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(base)); |
base | 2164 | drivers/scsi/aic7xxx.c | offset = HA_TARG_SCRATCH(base); |
base | 2165 | drivers/scsi/aic7xxx.c | offset_max = HA_TARG_SCRATCH(base) + 8; |
base | 2188 | drivers/scsi/aic7xxx.c | sblkctl = inb(SBLKCTL(base)); |
base | 2195 | drivers/scsi/aic7xxx.c | outb(sblkctl ^ SELBUSB, SBLKCTL(base)); |
base | 2196 | drivers/scsi/aic7xxx.c | aic7xxx_reset_current_bus(base); |
base | 2197 | drivers/scsi/aic7xxx.c | outb(sblkctl, SBLKCTL(base)); |
base | 2206 | drivers/scsi/aic7xxx.c | aic7xxx_reset_current_bus(base); |
base | 2226 | drivers/scsi/aic7xxx.c | int base, intstat; |
base | 2246 | drivers/scsi/aic7xxx.c | while ((p != NULL) && !(inb(INTSTAT(p->base)) & INT_PEND)) |
base | 2293 | drivers/scsi/aic7xxx.c | base = p->base; |
base | 2298 | drivers/scsi/aic7xxx.c | intstat = inb(INTSTAT(base)); |
base | 2303 | drivers/scsi/aic7xxx.c | unsigned char errno = inb(ERROR(base)); |
base | 2315 | drivers/scsi/aic7xxx.c | inb(ERROR(base)), (inb(SEQADDR1(base)) << 8) | inb(SEQADDR0(base))); |
base | 2327 | drivers/scsi/aic7xxx.c | scsi_id = (inb(SCSIID(base)) >> 4) & 0x0F; |
base | 2330 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) & SELBUSB) |
base | 2344 | drivers/scsi/aic7xxx.c | rej_byte = inb(HA_REJBYTE(base)); |
base | 2352 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2364 | drivers/scsi/aic7xxx.c | scsi_id, channel, inb(SAVED_TCL(base))); |
base | 2370 | drivers/scsi/aic7xxx.c | printk("SAVED_TCL = 0x%x\n", inb(SAVED_TCL(base))); |
base | 2371 | drivers/scsi/aic7xxx.c | aic7xxx_unbusy_target(scsi_id, channel, base); |
base | 2372 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 2374 | drivers/scsi/aic7xxx.c | outb(CLRSELTIMEO, CLRSINT1(base)); |
base | 2385 | drivers/scsi/aic7xxx.c | transfer = (inb(HA_ARG_1(base)) << 2); |
base | 2386 | drivers/scsi/aic7xxx.c | offset = inb(ACCUM(base)); |
base | 2387 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2405 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2406 | drivers/scsi/aic7xxx.c | outb(scratch, SCSIRATE(base)); |
base | 2414 | drivers/scsi/aic7xxx.c | outb(SEND_REJ, HA_RETURN_1(base)); |
base | 2426 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); |
base | 2434 | drivers/scsi/aic7xxx.c | outb(SEND_SDTR, HA_RETURN_1(base)); |
base | 2443 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2452 | drivers/scsi/aic7xxx.c | bus_width = inb(ACCUM(base)); |
base | 2455 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2462 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); |
base | 2501 | drivers/scsi/aic7xxx.c | outb(bus_width | SEND_WDTR, HA_RETURN_1(base)); |
base | 2505 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2506 | drivers/scsi/aic7xxx.c | outb(scratch, SCSIRATE(base)); |
base | 2519 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2529 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2543 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2551 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2552 | drivers/scsi/aic7xxx.c | outb(scratch, SCSIRATE(base)); |
base | 2557 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2559 | drivers/scsi/aic7xxx.c | outb(0, HA_RETURN_1(base)); /* CHECK_CONDITION may change this */ |
base | 2569 | drivers/scsi/aic7xxx.c | aic7xxx_getscb(base, scb); |
base | 2618 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 2623 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (SCB_DOWNLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 2625 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 2626 | drivers/scsi/aic7xxx.c | outb(SCB_LIST_NULL, (SCBARRAY(base) + 30)); |
base | 2631 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE0(base)) | (inb(HA_ACTIVE1(base)) << 8); |
base | 2633 | drivers/scsi/aic7xxx.c | outb(active & 0xFF, HA_ACTIVE0(base)); |
base | 2634 | drivers/scsi/aic7xxx.c | outb((active >> 8) & 0xFF, HA_ACTIVE1(base)); |
base | 2636 | drivers/scsi/aic7xxx.c | aic7xxx_add_waiting_scb(base, scb, LIST_HEAD); |
base | 2637 | drivers/scsi/aic7xxx.c | outb(SEND_SENSE, HA_RETURN_1(base)); |
base | 2679 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2704 | drivers/scsi/aic7xxx.c | actual -= ((inb(SCBARRAY(base + 17)) << 16) | |
base | 2705 | drivers/scsi/aic7xxx.c | (inb(SCBARRAY(base + 16)) << 8) | |
base | 2706 | drivers/scsi/aic7xxx.c | inb(SCBARRAY(base + 15))); |
base | 2712 | drivers/scsi/aic7xxx.c | cmd->target, cmd->underflow, actual, inb(SCBARRAY(base + 18))); |
base | 2721 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2746 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2763 | drivers/scsi/aic7xxx.c | outb(MSG_BUS_DEVICE_RESET, HA_MSG_START(base)); |
base | 2764 | drivers/scsi/aic7xxx.c | outb(1, HA_MSG_LEN(base)); |
base | 2775 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2784 | drivers/scsi/aic7xxx.c | aic7xxx_unbusy_target(scsi_id, channel, base); |
base | 2789 | drivers/scsi/aic7xxx.c | scratch = inb(HA_TARG_SCRATCH(base) + scratch_offset); |
base | 2791 | drivers/scsi/aic7xxx.c | outb(scratch, HA_TARG_SCRATCH(base)); |
base | 2802 | drivers/scsi/aic7xxx.c | intstat, inb(SCSISIGI(base))); |
base | 2805 | drivers/scsi/aic7xxx.c | outb(CLRSEQINT, CLRINT(base)); |
base | 2811 | drivers/scsi/aic7xxx.c | int status = inb(SSTAT1(base)); |
base | 2813 | drivers/scsi/aic7xxx.c | scb_index = inb(SCBPTR(base)); |
base | 2823 | drivers/scsi/aic7xxx.c | outb(status, CLRSINT1(base)); |
base | 2825 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2849 | drivers/scsi/aic7xxx.c | outb(ENRSELI, SCSISEQ(base)); |
base | 2855 | drivers/scsi/aic7xxx.c | ha_flags = inb(HA_FLAGS(base)); |
base | 2856 | drivers/scsi/aic7xxx.c | outb(ha_flags & ~ACTIVE_MSG, HA_FLAGS(base)); |
base | 2860 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE1(base)); |
base | 2862 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE1(base)); |
base | 2866 | drivers/scsi/aic7xxx.c | active = inb(HA_ACTIVE0(base)); |
base | 2868 | drivers/scsi/aic7xxx.c | outb(active, HA_ACTIVE0(base)); |
base | 2871 | drivers/scsi/aic7xxx.c | outb(SCB_NEEDDMA, SCBARRAY(base)); |
base | 2888 | drivers/scsi/aic7xxx.c | outb(CLRSELTIMEO, CLRSINT1(base)); |
base | 2890 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2895 | drivers/scsi/aic7xxx.c | waiting = inb(WAITING_SCBH(base)); |
base | 2896 | drivers/scsi/aic7xxx.c | outb(waiting, SCBPTR(base)); |
base | 2897 | drivers/scsi/aic7xxx.c | waiting = inb(SCBARRAY(base) + 30); |
base | 2898 | drivers/scsi/aic7xxx.c | outb(waiting, WAITING_SCBH(base)); |
base | 2925 | drivers/scsi/aic7xxx.c | outb(CLRSCSIPERR, CLRSINT1(base)); |
base | 2928 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2940 | drivers/scsi/aic7xxx.c | outb(status, CLRSINT1(base)); |
base | 2942 | drivers/scsi/aic7xxx.c | outb(CLRSCSIINT, CLRINT(base)); |
base | 2960 | drivers/scsi/aic7xxx.c | complete = inb(QOUTFIFO(base)); |
base | 2968 | drivers/scsi/aic7xxx.c | complete, inb(QOUTFIFO(base)), |
base | 2970 | drivers/scsi/aic7xxx.c | outb(CLRCMDINT, CLRINT(base)); |
base | 2997 | drivers/scsi/aic7xxx.c | outb(CLRCMDINT, CLRINT(base)); |
base | 3050 | drivers/scsi/aic7xxx.c | } while (inb(QOUTCNT(base))); |
base | 3077 | drivers/scsi/aic7xxx.c | aic7xxx_probe(int slot, int base) |
base | 3099 | drivers/scsi/aic7xxx.c | outb(0x80 + i, base); |
base | 3100 | drivers/scsi/aic7xxx.c | buf[i] = inb(base + i); |
base | 3110 | drivers/scsi/aic7xxx.c | if (inb(base + 4) & 1) |
base | 3145 | drivers/scsi/aic7xxx.c | read_2840_seeprom(int base, struct seeprom_config *sc) |
base | 3158 | drivers/scsi/aic7xxx.c | while ((inb(STATUS_2840(base)) & EEPROM_TF) == 0) \ |
base | 3162 | drivers/scsi/aic7xxx.c | (void) inb(SEECTL_2840(base)); |
base | 3175 | drivers/scsi/aic7xxx.c | outb(CK_2840 | CS_2840, SEECTL_2840(base)); |
base | 3176 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3185 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3186 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3188 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3189 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3199 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3200 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3202 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3203 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3215 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3216 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3218 | drivers/scsi/aic7xxx.c | seeprom[k] = (seeprom[k] << 1) | (inb(STATUS_2840(base)) & DI_2840); |
base | 3219 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL_2840(base)); |
base | 3220 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3236 | drivers/scsi/aic7xxx.c | outb(0, SEECTL_2840(base)); |
base | 3237 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3238 | drivers/scsi/aic7xxx.c | outb(CK_2840, SEECTL_2840(base)); |
base | 3239 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3240 | drivers/scsi/aic7xxx.c | outb(0, SEECTL_2840(base)); |
base | 3241 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3318 | drivers/scsi/aic7xxx.c | read_seeprom(int base, int offset, struct seeprom_config *sc) |
base | 3332 | drivers/scsi/aic7xxx.c | while ((inb(SEECTL(base)) & SEERDY) == 0) \ |
base | 3344 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 3346 | drivers/scsi/aic7xxx.c | while ((jiffies < timeout) && ((inb(SEECTL(base)) & SEERDY) == 0)) |
base | 3350 | drivers/scsi/aic7xxx.c | if ((inb(SEECTL(base)) & SEERDY) == 0) |
base | 3352 | drivers/scsi/aic7xxx.c | outb(0, SEECTL(base)); |
base | 3367 | drivers/scsi/aic7xxx.c | outb(SEEMS | SEECK | SEECS, SEECTL(base)); |
base | 3368 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3377 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3378 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3380 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3381 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3391 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3392 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3394 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3395 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3407 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3408 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3410 | drivers/scsi/aic7xxx.c | seeprom[k] = (seeprom[k] << 1) | (inb(SEECTL(base)) & SEEDI); |
base | 3411 | drivers/scsi/aic7xxx.c | outb(temp, SEECTL(base)); |
base | 3412 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3429 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 3430 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3431 | drivers/scsi/aic7xxx.c | outb(SEEMS | SEECK, SEECTL(base)); |
base | 3432 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3433 | drivers/scsi/aic7xxx.c | outb(SEEMS, SEECTL(base)); |
base | 3434 | drivers/scsi/aic7xxx.c | CLOCK_PULSE(base); |
base | 3440 | drivers/scsi/aic7xxx.c | outb(0, SEECTL(base)); |
base | 3474 | drivers/scsi/aic7xxx.c | detect_maxscb(aha_type type, int base, int walk_scbs) |
base | 3492 | drivers/scsi/aic7xxx.c | sblkctl_reg = inb(SBLKCTL(base)) ^ AUTOFLUSHDIS; |
base | 3493 | drivers/scsi/aic7xxx.c | outb(sblkctl_reg, SBLKCTL(base)); |
base | 3494 | drivers/scsi/aic7xxx.c | if (inb(SBLKCTL(base)) == sblkctl_reg) |
base | 3500 | drivers/scsi/aic7xxx.c | outb(sblkctl_reg ^ AUTOFLUSHDIS, SBLKCTL(base)); |
base | 3543 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR(base)); |
base | 3544 | drivers/scsi/aic7xxx.c | scb_byte = ~(inb(SCBARRAY(base))); /* complement the byte */ |
base | 3545 | drivers/scsi/aic7xxx.c | outb(scb_byte, SCBARRAY(base)); /* write it back out */ |
base | 3546 | drivers/scsi/aic7xxx.c | if (inb(SCBARRAY(base)) != scb_byte) |
base | 3574 | drivers/scsi/aic7xxx.c | int found = 1, base; |
base | 3583 | drivers/scsi/aic7xxx.c | base = config->base; |
base | 3588 | drivers/scsi/aic7xxx.c | request_region(MINREG(base), MAXREG(base) - MINREG(base), "aic7xxx"); |
base | 3594 | drivers/scsi/aic7xxx.c | printk("aha274x: HCNTRL:0x%x\n", inb(HCNTRL(base))); |
base | 3606 | drivers/scsi/aic7xxx.c | config->unpause = (inb(HCNTRL(base)) & IRQMS) | INTEN; |
base | 3610 | drivers/scsi/aic7xxx.c | outb(config->pause | CHIPRST, HCNTRL(base)); |
base | 3612 | drivers/scsi/aic7xxx.c | if (inb(HCNTRL(base)) & CHIPRST) |
base | 3616 | drivers/scsi/aic7xxx.c | outb(config->pause, HCNTRL(base)); |
base | 3622 | drivers/scsi/aic7xxx.c | config->irq = inb(HA_INTDEF(base)) & 0x0F; |
base | 3623 | drivers/scsi/aic7xxx.c | if ((inb(HA_274_BIOSCTRL(base)) & BIOSMODE) == BIOSDISABLED) |
base | 3627 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(base)); |
base | 3631 | drivers/scsi/aic7xxx.c | outb(host_conf & DFTHRSH, BUSSPD(base)); |
base | 3632 | drivers/scsi/aic7xxx.c | outb((host_conf << 2) & BOFF, BUSTIME(base)); |
base | 3643 | drivers/scsi/aic7xxx.c | printk("aha284x: HCNTRL:0x%x\n", inb(HCNTRL(base))); |
base | 3645 | drivers/scsi/aic7xxx.c | outb(CHIPRST, HCNTRL(base)); |
base | 3649 | drivers/scsi/aic7xxx.c | outb(config->pause, HCNTRL(base)); |
base | 3652 | drivers/scsi/aic7xxx.c | config->irq = inb(HA_INTDEF(base)) & 0x0F; |
base | 3653 | drivers/scsi/aic7xxx.c | if ((inb(HA_274_BIOSCTRL(base)) & BIOSMODE) == BIOSDISABLED) |
base | 3657 | drivers/scsi/aic7xxx.c | host_conf = inb(HA_HOSTCONF(base)); |
base | 3660 | drivers/scsi/aic7xxx.c | have_seeprom = read_2840_seeprom(base, &sc); |
base | 3681 | drivers/scsi/aic7xxx.c | outb(host_conf & DFTHRSH, BUSSPD(base)); |
base | 3682 | drivers/scsi/aic7xxx.c | outb((host_conf << 2) & BOFF, BUSTIME(base)); |
base | 3694 | drivers/scsi/aic7xxx.c | printk("aic%s HCNTRL:0x%x\n", board_name[config->type], inb(HCNTRL(base))); |
base | 3697 | drivers/scsi/aic7xxx.c | outb(CHIPRST, HCNTRL(base)); |
base | 3701 | drivers/scsi/aic7xxx.c | outb(config->pause, HCNTRL(base)); |
base | 3707 | drivers/scsi/aic7xxx.c | have_seeprom = read_seeprom(base, config->chan_num * (sizeof(sc) / 2), &sc); |
base | 3736 | drivers/scsi/aic7xxx.c | outb(inb(DSPCISTATUS(base)) | DFTHRESH, DSPCISTATUS(base)); |
base | 3737 | drivers/scsi/aic7xxx.c | outb(config->scsi_id | DFTHRESH, HA_SCSICONF(base)); |
base | 3742 | drivers/scsi/aic7xxx.c | outb(config->scsi_id, (HA_SCSICONF(base) + 1)); |
base | 3752 | drivers/scsi/aic7xxx.c | config->maxscb = detect_maxscb(config->type, base, config->walk_scbs); |
base | 3770 | drivers/scsi/aic7xxx.c | sblkctl = inb(SBLKCTL(base)); |
base | 3774 | drivers/scsi/aic7xxx.c | config->scsi_id = inb(HA_SCSICONF(base)) & 0x07; |
base | 3776 | drivers/scsi/aic7xxx.c | outb(SINGLE_BUS, HA_FLAGS(base)); |
base | 3780 | drivers/scsi/aic7xxx.c | config->scsi_id = inb(HA_SCSICONF(base) + 1) & 0x0F; |
base | 3784 | drivers/scsi/aic7xxx.c | outb(WIDE_BUS, HA_FLAGS(base)); |
base | 3788 | drivers/scsi/aic7xxx.c | config->scsi_id = inb(HA_SCSICONF(base)) & 0x07; |
base | 3790 | drivers/scsi/aic7xxx.c | config->scsi_id_b = inb(HA_SCSICONF(base) + 1) & 0x07; |
base | 3794 | drivers/scsi/aic7xxx.c | outb(TWIN_BUS, HA_FLAGS(base)); |
base | 3799 | drivers/scsi/aic7xxx.c | outb(0, HA_FLAGS(base)); |
base | 3805 | drivers/scsi/aic7xxx.c | "mail deang@ims.com\n", inb(SBLKCTL(base))); |
base | 3806 | drivers/scsi/aic7xxx.c | outb(0, HA_FLAGS(base)); |
base | 3815 | drivers/scsi/aic7xxx.c | outb(sblkctl & ~(DIAGLEDEN | DIAGLEDON), SBLKCTL(base)); |
base | 3912 | drivers/scsi/aic7xxx.c | p->base = base; |
base | 3968 | drivers/scsi/aic7xxx.c | aic7xxx_loadseq(base); |
base | 3973 | drivers/scsi/aic7xxx.c | outb(FASTMODE, SEQCTL(base)); |
base | 3977 | drivers/scsi/aic7xxx.c | outb(ENABLE, BCTL(base)); |
base | 3990 | drivers/scsi/aic7xxx.c | outb((sblkctl & ~SELBUS_MASK) | SELBUSB, SBLKCTL(base)); |
base | 3992 | drivers/scsi/aic7xxx.c | outb(config->scsi_id_b, SCSIID(base)); |
base | 3993 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(base) + 1) & (ENSPCHK | STIMESEL); |
base | 3994 | drivers/scsi/aic7xxx.c | outb(scsi_conf | ENSTIMER | ACTNEGEN | STPWEN, SXFRCTL1(base)); |
base | 3995 | drivers/scsi/aic7xxx.c | outb(ENSELTIMO | ENSCSIPERR, SIMODE1(base)); |
base | 3998 | drivers/scsi/aic7xxx.c | outb(ULTRAEN, SXFRCTL0(base)); |
base | 4004 | drivers/scsi/aic7xxx.c | outb((sblkctl & ~SELBUS_MASK) | SELSINGLE, SBLKCTL(base)); |
base | 4006 | drivers/scsi/aic7xxx.c | outb(config->scsi_id, SCSIID(base)); |
base | 4007 | drivers/scsi/aic7xxx.c | scsi_conf = inb(HA_SCSICONF(base)) & (ENSPCHK | STIMESEL); |
base | 4008 | drivers/scsi/aic7xxx.c | outb(scsi_conf | ENSTIMER | ACTNEGEN | STPWEN, SXFRCTL1(base)); |
base | 4009 | drivers/scsi/aic7xxx.c | outb(ENSELTIMO | ENSCSIPERR, SIMODE1(base)); |
base | 4012 | drivers/scsi/aic7xxx.c | outb(ULTRAEN, SXFRCTL0(base)); |
base | 4053 | drivers/scsi/aic7xxx.c | p->discenable = ~((inb(HA_DISC_DSB(base + 1)) << 8) | |
base | 4054 | drivers/scsi/aic7xxx.c | inb(HA_DISC_DSB(base))); |
base | 4078 | drivers/scsi/aic7xxx.c | target_settings = inb(HA_TARG_SCRATCH(base) + i); |
base | 4098 | drivers/scsi/aic7xxx.c | outb(target_settings, (HA_TARG_SCRATCH(base) + i)); |
base | 4114 | drivers/scsi/aic7xxx.c | outb(i, SCBPTR(base)); |
base | 4115 | drivers/scsi/aic7xxx.c | outb(0, SCBARRAY(base)); |
base | 4122 | drivers/scsi/aic7xxx.c | outb(config->maxscb, HA_SCBCOUNT(base)); |
base | 4127 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE0(base)); |
base | 4128 | drivers/scsi/aic7xxx.c | outb(0, HA_ACTIVE1(base)); |
base | 4133 | drivers/scsi/aic7xxx.c | outb(SCB_LIST_NULL, WAITING_SCBH(base)); |
base | 4134 | drivers/scsi/aic7xxx.c | outb(SCB_LIST_NULL, WAITING_SCBT(base)); |
base | 4157 | drivers/scsi/aic7xxx.c | outb((sblkctl & ~SELBUS_MASK) | SELBUSB, SBLKCTL(base)); |
base | 4159 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(base)); |
base | 4161 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(base)); |
base | 4166 | drivers/scsi/aic7xxx.c | outb((sblkctl & ~SELBUS_MASK) | SELSINGLE, SBLKCTL(base)); |
base | 4169 | drivers/scsi/aic7xxx.c | outb(SCSIRSTO, SCSISEQ(base)); |
base | 4171 | drivers/scsi/aic7xxx.c | outb(0, SCSISEQ(base)); |
base | 4198 | drivers/scsi/aic7xxx.c | int found = 0, slot, base; |
base | 4228 | drivers/scsi/aic7xxx.c | base = SLOTBASE(slot); |
base | 4230 | drivers/scsi/aic7xxx.c | if (check_region(MINREG(base), MAXREG(base) - MINREG(base))) |
base | 4239 | drivers/scsi/aic7xxx.c | type = aic7xxx_probe(slot, HID0(base)); |
base | 4248 | drivers/scsi/aic7xxx.c | printk("aic7xxx: HCNTRL:0x%x\n", inb(HCNTRL(base))); |
base | 4249 | drivers/scsi/aic7xxx.c | outb(inb(HCNTRL(base)) | CHIPRST, HCNTRL(base)); |
base | 4258 | drivers/scsi/aic7xxx.c | config.base = base; |
base | 4399 | drivers/scsi/aic7xxx.c | base = io_port - 0xC01; |
base | 4409 | drivers/scsi/aic7xxx.c | config.base = base; |
base | 4667 | drivers/scsi/aic7xxx.c | curscb = inb(SCBPTR(p->base)); |
base | 4668 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(p->base)); |
base | 4669 | drivers/scsi/aic7xxx.c | aic7xxx_putscb_dma(p->base, scb); |
base | 4670 | drivers/scsi/aic7xxx.c | outb(curscb, SCBPTR(p->base)); |
base | 4711 | drivers/scsi/aic7xxx.c | aic7xxx_putscb(p->base, scb); |
base | 4748 | drivers/scsi/aic7xxx.c | int base = p->base; |
base | 4789 | drivers/scsi/aic7xxx.c | active_scb = inb(SCBPTR(base)); |
base | 4791 | drivers/scsi/aic7xxx.c | control = inb(SCBARRAY(base)); |
base | 4796 | drivers/scsi/aic7xxx.c | outb(scb->position, SCBPTR(base)); |
base | 4797 | drivers/scsi/aic7xxx.c | if (inb(SCBARRAY(base)) & SCB_DIS) |
base | 4804 | drivers/scsi/aic7xxx.c | outb(SCBAUTO, SCBCNT(base)); |
base | 4809 | drivers/scsi/aic7xxx.c | :"S" (scb), "c" (SCB_DOWNLOAD_SIZE), "d" (SCBARRAY(base)) |
base | 4811 | drivers/scsi/aic7xxx.c | outb(0, SCBCNT(base)); |
base | 4812 | drivers/scsi/aic7xxx.c | aic7xxx_add_waiting_scb(base, scb, LIST_SECOND); |
base | 4822 | drivers/scsi/aic7xxx.c | unsigned char flags = inb(HA_FLAGS(base)); |
base | 4839 | drivers/scsi/aic7xxx.c | outb(flags | ACTIVE_MSG, HA_FLAGS(base)); |
base | 4840 | drivers/scsi/aic7xxx.c | outb(1, HA_MSG_LEN(base)); |
base | 4841 | drivers/scsi/aic7xxx.c | outb(MSG_BUS_DEVICE_RESET, HA_MSG_START(base)); |
base | 172 | drivers/scsi/aic7xxx_proc.c | size += sprintf(BLS, " Base IO: %#.4x\n", p->base); |
base | 161 | drivers/scsi/eata_dma.c | uint base; |
base | 172 | drivers/scsi/eata_dma.c | if (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ)) |
base | 180 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 182 | drivers/scsi/eata_dma.c | "received. CCB pointer not set.\n", base, (long)cp); |
base | 187 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
base | 194 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 197 | drivers/scsi/eata_dma.c | "%lx, irq%d\n", base, (long)cp, eata_stat, hba_stat, |
base | 206 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 213 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 216 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
base | 310 | drivers/scsi/eata_dma.c | inline int eata_send_command(u32 addr, u32 base, u8 command) |
base | 314 | drivers/scsi/eata_dma.c | while (inb(base + HA_RAUXSTAT) & HA_ABUSY) |
base | 319 | drivers/scsi/eata_dma.c | outb( addr & 0x000000ff, base + HA_WDMAADDR); |
base | 320 | drivers/scsi/eata_dma.c | outb((addr & 0x0000ff00) >> 8, base + HA_WDMAADDR + 1); |
base | 321 | drivers/scsi/eata_dma.c | outb((addr & 0x00ff0000) >> 16, base + HA_WDMAADDR + 2); |
base | 322 | drivers/scsi/eata_dma.c | outb((addr & 0xff000000) >> 24, base + HA_WDMAADDR + 3); |
base | 323 | drivers/scsi/eata_dma.c | outb(command, base + HA_WCOMMAND); |
base | 328 | drivers/scsi/eata_dma.c | inline int eata_send_immediate(u32 addr, u32 base, u8 cmnd, u8 cmnd2, u8 id, |
base | 332 | drivers/scsi/eata_dma.c | outb( addr & 0x000000ff, base + HA_WDMAADDR); |
base | 333 | drivers/scsi/eata_dma.c | outb((addr & 0x0000ff00) >> 8, base + HA_WDMAADDR + 1); |
base | 334 | drivers/scsi/eata_dma.c | outb((addr & 0x00ff0000) >> 16, base + HA_WDMAADDR + 2); |
base | 335 | drivers/scsi/eata_dma.c | outb((addr & 0xff000000) >> 24, base + HA_WDMAADDR + 3); |
base | 337 | drivers/scsi/eata_dma.c | outb(id, base + HA_WSUBCODE); |
base | 338 | drivers/scsi/eata_dma.c | outb(lun, base + HA_WSUBLUN); |
base | 341 | drivers/scsi/eata_dma.c | outb(cmnd2, base + HA_WCOMMAND2); |
base | 342 | drivers/scsi/eata_dma.c | outb(cmnd, base + HA_WCOMMAND); |
base | 511 | drivers/scsi/eata_dma.c | if(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
base | 522 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
base | 544 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 600 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 639 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
base | 640 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
base | 692 | drivers/scsi/eata_dma.c | char * get_board_data(u32 base, u32 irq, u32 id) |
base | 731 | drivers/scsi/eata_dma.c | fake_int_base = base; |
base | 735 | drivers/scsi/eata_dma.c | eata_send_command((u32) cp, (u32) base, EATA_CMD_DMA_SEND_CP); |
base | 751 | drivers/scsi/eata_dma.c | inb((u32) (base) + HA_RSTATUS); |
base | 752 | drivers/scsi/eata_dma.c | eata_send_command(0, base, EATA_CMD_RESET); |
base | 761 | drivers/scsi/eata_dma.c | int check_blink_state(long base) |
base | 771 | drivers/scsi/eata_dma.c | state = inl((uint) base + 1); |
base | 783 | drivers/scsi/eata_dma.c | int get_conf_PIO(u32 base, struct get_conf *buf) |
base | 788 | drivers/scsi/eata_dma.c | if(check_region(base, 9)) |
base | 793 | drivers/scsi/eata_dma.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 798 | drivers/scsi/eata_dma.c | printk("Issuing PIO READ CONFIG to HBA at %#x\n", base)); |
base | 799 | drivers/scsi/eata_dma.c | eata_send_command(0, base, EATA_CMD_PIO_READ_CONFIG); |
base | 804 | drivers/scsi/eata_dma.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 809 | drivers/scsi/eata_dma.c | *p = inw(base + HA_RDATA); |
base | 812 | drivers/scsi/eata_dma.c | if (!(inb(base + HA_RSTATUS) & HA_SERROR)) { /* Error ? */ |
base | 815 | drivers/scsi/eata_dma.c | "EATA Level: %x\n", (uint) base, |
base | 818 | drivers/scsi/eata_dma.c | while (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 819 | drivers/scsi/eata_dma.c | inw(base + HA_RDATA); |
base | 824 | drivers/scsi/eata_dma.c | "for HBA at %lx\n", (long)base)); |
base | 848 | drivers/scsi/eata_dma.c | short register_HBA(u32 base, struct get_conf *gc, Scsi_Host_Template * tpnt, |
base | 864 | drivers/scsi/eata_dma.c | "Please use the EATA-PIO driver.\n", base); |
base | 894 | drivers/scsi/eata_dma.c | dma_channel, base); |
base | 907 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
base | 916 | drivers/scsi/eata_dma.c | printk("HBA at %#.4x doesn't support DMA. Sorry\n", base); |
base | 919 | drivers/scsi/eata_dma.c | base); |
base | 935 | drivers/scsi/eata_dma.c | &buff[16], base); |
base | 937 | drivers/scsi/eata_dma.c | request_region(base, 9, "eata_dma"); /* We already checked the |
base | 1034 | drivers/scsi/eata_dma.c | sh->unique_id = base; |
base | 1035 | drivers/scsi/eata_dma.c | sh->base = (char *) base; |
base | 1036 | drivers/scsi/eata_dma.c | sh->io_port = base; |
base | 1112 | drivers/scsi/eata_dma.c | u32 base; |
base | 1122 | drivers/scsi/eata_dma.c | base = 0x1c88 + (i * 0x1000); |
base | 1124 | drivers/scsi/eata_dma.c | pal1 = inb((u16)base - 8); |
base | 1125 | drivers/scsi/eata_dma.c | pal2 = inb((u16)base - 7); |
base | 1126 | drivers/scsi/eata_dma.c | pal3 = inb((u16)base - 6); |
base | 1134 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
base | 1137 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_EISA); |
base | 1141 | drivers/scsi/eata_dma.c | if (check_blink_state(base)) |
base | 1184 | drivers/scsi/eata_dma.c | u32 base = 0; |
base | 1225 | drivers/scsi/eata_dma.c | PCI_BASE_ADDRESS_0, (int *) &base))){ |
base | 1228 | drivers/scsi/eata_dma.c | if (base & 0x01) { |
base | 1229 | drivers/scsi/eata_dma.c | base &= 0xfffffffe; |
base | 1231 | drivers/scsi/eata_dma.c | pal1 = inb(base); |
base | 1232 | drivers/scsi/eata_dma.c | pal2 = inb(base + 1); |
base | 1233 | drivers/scsi/eata_dma.c | pal3 = inb(base + 2); |
base | 1239 | drivers/scsi/eata_dma.c | base += 0x08; |
base | 1241 | drivers/scsi/eata_dma.c | base += 0x10; /* Now, THIS is the real address */ |
base | 1243 | drivers/scsi/eata_dma.c | if (base != 0x1f8) { |
base | 1245 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
base | 1252 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt, IS_PCI); |
base | 1254 | drivers/scsi/eata_dma.c | if (base < 0x1000) { |
base | 1256 | drivers/scsi/eata_dma.c | if (ISAbases[x] == base) { |
base | 1261 | drivers/scsi/eata_dma.c | } else if ((base & 0x0fff) == 0x0c88) |
base | 1262 | drivers/scsi/eata_dma.c | EISAbases[(base >> 12) & 0x0f] = 0; |
base | 1264 | drivers/scsi/eata_dma.c | } else if (check_blink_state(base) == TRUE) { |
base | 1330 | drivers/scsi/eata_dma.c | (u32) HBA_ptr->base, HBA_ptr->irq); |
base | 147 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 210 | drivers/scsi/eata_dma_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 133 | drivers/scsi/eata_pio.c | uint base; |
base | 146 | drivers/scsi/eata_pio.c | if (inb((uint)sh->base + HA_RSTATUS) & HA_SBUSY) |
base | 155 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
base | 159 | drivers/scsi/eata_pio.c | stat=inb(base+HA_RSTATUS); |
base | 173 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA,cmd->SCp.ptr,x); |
base | 178 | drivers/scsi/eata_pio.c | zwickel=inw(base+HA_RDATA); |
base | 185 | drivers/scsi/eata_pio.c | zwickel=inw(base+HA_RDATA); |
base | 198 | drivers/scsi/eata_pio.c | outw(zwickel,base+HA_RDATA); |
base | 203 | drivers/scsi/eata_pio.c | outsw(base+HA_RDATA,cmd->SCp.ptr,x); |
base | 215 | drivers/scsi/eata_pio.c | outw(zwickel,base+HA_RDATA); |
base | 231 | drivers/scsi/eata_pio.c | if (!(inb(base+HA_RSTATUS)&HA_SERROR)) |
base | 242 | drivers/scsi/eata_pio.c | eata_stat = inb(base + HA_RSTATUS); |
base | 267 | drivers/scsi/eata_pio.c | inline uint eata_pio_send_command(uint base, unchar command) |
base | 271 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 275 | drivers/scsi/eata_pio.c | outb(command, base + HA_WCOMMAND); |
base | 283 | drivers/scsi/eata_pio.c | uint base; |
base | 296 | drivers/scsi/eata_pio.c | base = (uint) sh->base; |
base | 378 | drivers/scsi/eata_pio.c | if (eata_pio_send_command(base, EATA_CMD_PIO_SEND_CP)) |
base | 388 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)); |
base | 389 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, cp, hd->cplen); |
base | 390 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_TRUNC, base + HA_WCOMMAND); |
base | 391 | drivers/scsi/eata_pio.c | for (x = 0; x < hd->cppadlen; x++) outw(0, base + HA_RDATA); |
base | 394 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
base | 416 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 493 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
base | 536 | drivers/scsi/eata_pio.c | char * get_pio_board_data(ulong base, uint irq, uint id, ulong cplen, ushort cppadlen) |
base | 561 | drivers/scsi/eata_pio.c | if (eata_pio_send_command((uint) base, EATA_CMD_PIO_SEND_CP)) |
base | 563 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)); |
base | 564 | drivers/scsi/eata_pio.c | outsw(base + HA_RDATA, &cp, cplen); |
base | 565 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_TRUNC, base + HA_WCOMMAND); |
base | 566 | drivers/scsi/eata_pio.c | for (z = 0; z < cppadlen; z++) outw(0, base + HA_RDATA); |
base | 568 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY); |
base | 569 | drivers/scsi/eata_pio.c | if (inb(base + HA_RSTATUS) & HA_SERROR) |
base | 571 | drivers/scsi/eata_pio.c | else if (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 575 | drivers/scsi/eata_pio.c | insw(base+HA_RDATA, &buff, 127); |
base | 576 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS)&HA_SDRQ) inw(base + HA_RDATA); |
base | 581 | drivers/scsi/eata_pio.c | int get_pio_conf_PIO(u32 base, struct get_conf *buf) |
base | 587 | drivers/scsi/eata_pio.c | if(check_region(base, 9)) |
base | 592 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 597 | drivers/scsi/eata_pio.c | printk("Issuing PIO READ CONFIG to HBA at %#x\n", base)); |
base | 598 | drivers/scsi/eata_pio.c | eata_pio_send_command(base, EATA_CMD_PIO_READ_CONFIG); |
base | 603 | drivers/scsi/eata_pio.c | while (!(inb(base + HA_RSTATUS) & HA_SDRQ)) |
base | 608 | drivers/scsi/eata_pio.c | *p = inw(base + HA_RDATA); |
base | 610 | drivers/scsi/eata_pio.c | if (!(inb(base + HA_RSTATUS) & HA_SERROR)) { /* Error ? */ |
base | 613 | drivers/scsi/eata_pio.c | "EATA Level: %x\n", base, |
base | 616 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 617 | drivers/scsi/eata_pio.c | inw(base + HA_RDATA); |
base | 620 | drivers/scsi/eata_pio.c | if (base == ISAbases[z]) { |
base | 629 | drivers/scsi/eata_pio.c | "for HBA at %x\n", base)); |
base | 649 | drivers/scsi/eata_pio.c | static uint print_selftest(uint base) |
base | 657 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY); |
base | 658 | drivers/scsi/eata_pio.c | outb(EATA_CMD_PIO_SETUPTEST, base + HA_WCOMMAND); |
base | 660 | drivers/scsi/eata_pio.c | while (inb(base + HA_RSTATUS) & HA_SBUSY) |
base | 662 | drivers/scsi/eata_pio.c | if (inb(base + HA_RSTATUS) & HA_SDRQ) |
base | 664 | drivers/scsi/eata_pio.c | insw(base + HA_RDATA, &buffer, 256); |
base | 671 | drivers/scsi/eata_pio.c | } while (inb(base+HA_RSTATUS) & (HA_SBUSY|HA_SDRQ)); |
base | 673 | drivers/scsi/eata_pio.c | return (!(inb(base+HA_RSTATUS) & HA_SERROR)); |
base | 676 | drivers/scsi/eata_pio.c | int register_pio_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
base | 688 | drivers/scsi/eata_pio.c | printk("HBA at %#.4lx supports DMA. Please use EATA-DMA driver.\n",base); |
base | 693 | drivers/scsi/eata_pio.c | if ((buff = get_pio_board_data((uint)base, gc->IRQ, gc->scsi_id[3], |
base | 697 | drivers/scsi/eata_pio.c | printk("HBA at %#lx didn't react on INQUIRY. Sorry.\n", (ulong) base); |
base | 701 | drivers/scsi/eata_pio.c | if (print_selftest(base) == FALSE && ALLOW_DMA_BOARDS == FALSE) |
base | 704 | drivers/scsi/eata_pio.c | (ulong) base); |
base | 727 | drivers/scsi/eata_pio.c | request_region(base, 8, "eata_pio"); |
base | 785 | drivers/scsi/eata_pio.c | sh->unique_id = base; |
base | 786 | drivers/scsi/eata_pio.c | sh->base = (char *) base; |
base | 787 | drivers/scsi/eata_pio.c | sh->io_port = base; |
base | 836 | drivers/scsi/eata_pio.c | u32 base; |
base | 846 | drivers/scsi/eata_pio.c | base = 0x1c88 + (i * 0x1000); |
base | 848 | drivers/scsi/eata_pio.c | pal1 = inb((u16)base - 8); |
base | 849 | drivers/scsi/eata_pio.c | pal2 = inb((u16)base - 7); |
base | 850 | drivers/scsi/eata_pio.c | pal3 = inb((u16)base - 6); |
base | 858 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
base | 861 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
base | 884 | drivers/scsi/eata_pio.c | u32 base = 0; |
base | 923 | drivers/scsi/eata_pio.c | PCI_BASE_ADDRESS_0, (int *) &base))){ |
base | 926 | drivers/scsi/eata_pio.c | if (base & 0x01) { |
base | 927 | drivers/scsi/eata_pio.c | base &= 0xfffffffe; |
base | 929 | drivers/scsi/eata_pio.c | if ((inb(base) == 0x12) && (inb(base + 1) == 0x14)) |
base | 931 | drivers/scsi/eata_pio.c | base += 0x10; /* Now, THIS is the real address */ |
base | 932 | drivers/scsi/eata_pio.c | if (base != 0x1f8) { |
base | 934 | drivers/scsi/eata_pio.c | if (get_pio_conf_PIO(base, buf) == TRUE) { |
base | 943 | drivers/scsi/eata_pio.c | register_pio_HBA(base, buf, tpnt); |
base | 945 | drivers/scsi/eata_pio.c | if (base < 0x1000) { |
base | 947 | drivers/scsi/eata_pio.c | if (ISAbases[x] == base) { |
base | 952 | drivers/scsi/eata_pio.c | } else if ((base & 0x0fff) == 0x0c88) { |
base | 953 | drivers/scsi/eata_pio.c | x = (base >> 12) & 0x0f; |
base | 1012 | drivers/scsi/eata_pio.c | (uint) HBA_ptr->base, HBA_ptr->irq, SD(HBA_ptr)->channel, |
base | 83 | drivers/scsi/eata_pio_proc.c | size = sprintf(buffer + len, "Base IO : %#.4x\n", (u32) HBA_ptr->base); |
base | 580 | drivers/scsi/fdomain.c | static int fdomain_get_irq( int base ) |
base | 582 | drivers/scsi/fdomain.c | int options = inb( base + Configuration1 ); |
base | 603 | drivers/scsi/fdomain.c | int base; |
base | 618 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fa2) |
base | 622 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fa3) |
base | 626 | drivers/scsi/fdomain.c | base = *((char *)bios_base + 0x1fcc) |
base | 632 | drivers/scsi/fdomain.c | printk( " %x,", base ); |
base | 636 | drivers/scsi/fdomain.c | if (base == ports[i]) |
base | 640 | drivers/scsi/fdomain.c | if (flag && fdomain_is_valid_port( base )) { |
base | 641 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( base ); |
base | 642 | drivers/scsi/fdomain.c | *iobase = base; |
base | 665 | drivers/scsi/fdomain.c | base = ports[i]; |
base | 666 | drivers/scsi/fdomain.c | if (check_region( base, 0x10 )) { |
base | 668 | drivers/scsi/fdomain.c | printk( " (%x inuse),", base ); |
base | 673 | drivers/scsi/fdomain.c | printk( " %x,", base ); |
base | 675 | drivers/scsi/fdomain.c | if ((flag = fdomain_is_valid_port( base ))) break; |
base | 680 | drivers/scsi/fdomain.c | *irq = fdomain_get_irq( base ); |
base | 681 | drivers/scsi/fdomain.c | *iobase = base; |
base | 271 | drivers/scsi/hosts.h | unsigned char *base; |
base | 122 | drivers/scsi/in2000.c | static unsigned int base; |
base | 596 | drivers/scsi/in2000.c | base = base_tab[loop]; |
base | 632 | drivers/scsi/in2000.c | "\n",base, irq_level); |
base | 649 | drivers/scsi/in2000.c | shpnt->io_port = base; |
base | 652 | drivers/scsi/in2000.c | request_region(base, 12,"in2000"); /* Prevent other drivers from using this space */ |
base | 14 | drivers/scsi/in2000.h | #define INSTAT (base + 0x0) /* R: Auxiliary Status; W: register select */ |
base | 15 | drivers/scsi/in2000.h | #define INDATA (base + 0x1) /* R/W: Data port */ |
base | 16 | drivers/scsi/in2000.h | #define INFIFO (base + 0x2) /* R/W FIFO, Word access only */ |
base | 17 | drivers/scsi/in2000.h | #define INREST (base + 0x3) /* W: Reset everything */ |
base | 18 | drivers/scsi/in2000.h | #define INFCNT (base + 0x4) /* R: FIFO byte count */ |
base | 19 | drivers/scsi/in2000.h | #define INFRST (base + 0x5) /* W: Reset Fifo count and to write */ |
base | 20 | drivers/scsi/in2000.h | #define INFWRT (base + 0x7) /* W: Set FIFO to read */ |
base | 21 | drivers/scsi/in2000.h | #define INFLED (base + 0x8) /* W: Set LED; R: Dip Switch settings */ |
base | 22 | drivers/scsi/in2000.h | #define INNLED (base + 0x9) /* W: reset LED */ |
base | 23 | drivers/scsi/in2000.h | #define INVERS (base + 0xa) /* R: Read hw version, end-reset */ |
base | 24 | drivers/scsi/in2000.h | #define ININTR (base + 0xc) /* W: Interrupt Mask Port */ |
base | 166 | drivers/scsi/pas16.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 147 | drivers/scsi/t128.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 202 | drivers/scsi/t128.c | unsigned char *base; |
base | 208 | drivers/scsi/t128.c | base = NULL; |
base | 211 | drivers/scsi/t128.c | base = overrides[current_override].address; |
base | 213 | drivers/scsi/t128.c | for (; !base && (current_base < NO_BASES); ++current_base) { |
base | 221 | drivers/scsi/t128.c | base = bases[current_base].address; |
base | 230 | drivers/scsi/t128.c | printk("scsi-t128 : base = %08x\n", (unsigned int) base); |
base | 233 | drivers/scsi/t128.c | if (!base) |
base | 237 | drivers/scsi/t128.c | instance->base = base; |
base | 263 | drivers/scsi/t128.c | instance->base); |
base | 323 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 330 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 332 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 338 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 341 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 367 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 373 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 375 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
base | 381 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 384 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 131 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 134 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 137 | drivers/scsi/t128.h | base = (volatile unsigned char *) (instance)->base |
base | 139 | drivers/scsi/t128.h | #define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20)) |
base | 436 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
base | 454 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
base | 507 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
base | 53 | drivers/sound/ad1848.c | int base; |
base | 111 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
base | 112 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
base | 113 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
base | 114 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
base | 137 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) /*Are we initializing */ |
base | 156 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) /*Are we initializing */ |
base | 180 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) & 0x80) |
base | 182 | drivers/sound/ad1848.c | if (inb (devc->base) & 0x80) |
base | 235 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) /*Are we initializing */ |
base | 260 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) /*Are we initializing */ |
base | 969 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) |
base | 983 | drivers/sound/ad1848.c | while (timeout > 0 && inb (devc->base) == 0x80) |
base | 1133 | drivers/sound/ad1848.c | devc->base = io_base; |
base | 1152 | drivers/sound/ad1848.c | if ((inb (devc->base) & 0x80) != 0x00) /* Not a AD1848 */ |
base | 1155 | drivers/sound/ad1848.c | inb (devc->base))); |
base | 1270 | drivers/sound/ad1848.c | if (devc->base != MOZART_PORT + 4) |
base | 1368 | drivers/sound/ad1848.c | request_region (devc->base, 4, devc->chip_name); |
base | 1517 | drivers/sound/ad1848.c | if (dev_info[i].base == io_base) |
base | 1525 | drivers/sound/ad1848.c | release_region (devc->base, 4); |
base | 78 | drivers/sound/cs4232.c | int base = hw_config->io_base, irq = hw_config->irq; |
base | 85 | drivers/sound/cs4232.c | if (check_region (base, 4)) |
base | 87 | drivers/sound/cs4232.c | printk ("cs4232.c: I/O port 0x%03x not free\n", base); |
base | 125 | drivers/sound/cs4232.c | CS_OUT3 (0x47, (base >> 8) & 0xff, base & 0xff); /* WSSbase */ |
base | 172 | drivers/sound/cs4232.c | int base = hw_config->io_base, irq = hw_config->irq; |
base | 178 | drivers/sound/cs4232.c | ad1848_init ("CS4232", base, |
base | 218 | drivers/sound/cs4232.c | int base = hw_config->io_base, irq = hw_config->irq; |
base | 224 | drivers/sound/cs4232.c | ad1848_unload (base, |
base | 52 | drivers/sound/mpu401.c | int base; /* |
base | 90 | drivers/sound/mpu401.c | #define DATAPORT(base) (base) |
base | 91 | drivers/sound/mpu401.c | #define COMDPORT(base) (base+1) |
base | 92 | drivers/sound/mpu401.c | #define STATPORT(base) (base+1) |
base | 94 | drivers/sound/mpu401.c | #define mpu401_status(devc) inb( STATPORT(devc->base)) |
base | 97 | drivers/sound/mpu401.c | #define write_command(devc, cmd) outb( cmd, COMDPORT(devc->base)) |
base | 98 | drivers/sound/mpu401.c | #define read_data(devc) inb( DATAPORT(devc->base)) |
base | 100 | drivers/sound/mpu401.c | #define write_data(devc, byte) outb( byte, DATAPORT(devc->base)) |
base | 478 | drivers/sound/mpu401.c | if (devc->base != 0 && (devc->opened & OPEN_READ || devc->mode == MODE_SYNTH)) |
base | 1037 | drivers/sound/mpu401.c | devc->base = hw_config->io_base; |
base | 1270 | drivers/sound/mpu401.c | tmp_devc.base = hw_config->io_base; |
base | 37 | drivers/sound/pss.c | #define REG(x) (devc->base+x) |
base | 77 | drivers/sound/pss.c | int base; |
base | 97 | drivers/sound/pss.c | devc->base = hw_config->io_base; |
base | 102 | drivers/sound/pss.c | if (devc->base != 0x220 && devc->base != 0x240) |
base | 103 | drivers/sound/pss.c | if (devc->base != 0x230 && devc->base != 0x250) /* Some cards use these */ |
base | 106 | drivers/sound/pss.c | if (check_region (devc->base, 16)) |
base | 158 | drivers/sound/pss.c | set_io_base (pss_config * devc, int dev, int base) |
base | 161 | drivers/sound/pss.c | unsigned short bits = (base & 0x0ffc) << 4; |
base | 333 | drivers/sound/pss.c | devc->base = hw_config->io_base; |
base | 860 | drivers/sound/sb_dsp.c | smw_putmem (int base, int addr, unsigned char val) |
base | 867 | drivers/sound/sb_dsp.c | outb (addr & 0xff, base + 1); /* Low address bits */ |
base | 868 | drivers/sound/sb_dsp.c | outb (addr >> 8, base + 2); /* High address bits */ |
base | 869 | drivers/sound/sb_dsp.c | outb (val, base); /* Data */ |
base | 875 | drivers/sound/sb_dsp.c | smw_getmem (int base, int addr) |
base | 883 | drivers/sound/sb_dsp.c | outb (addr & 0xff, base + 1); /* Low address bits */ |
base | 884 | drivers/sound/sb_dsp.c | outb (addr >> 8, base + 2); /* High address bits */ |
base | 885 | drivers/sound/sb_dsp.c | val = inb (base); /* Data */ |
base | 68 | drivers/sound/sscape.c | #define PORT(name) (devc->base+name) |
base | 91 | drivers/sound/sscape.c | int base, irq, dma; |
base | 413 | drivers/sound/sscape.c | if (inb (devc->base + HOST_CTRL) & 0x80) |
base | 416 | drivers/sound/sscape.c | if (inb (devc->base) != 0x00) |
base | 1036 | drivers/sound/sscape.c | devc->base = hw_config->io_base; |
base | 1099 | drivers/sound/sscape.c | inb (devc->base + ODIE_ADDR); |
base | 60 | drivers/sound/trix.c | download_boot (int base) |
base | 66 | drivers/sound/trix.c | outb (0x01, base + 6); /* Clear the internal data pointer */ |
base | 67 | drivers/sound/trix.c | outb (0x00, base + 6); /* Restart */ |
base | 73 | drivers/sound/trix.c | outb (0x01, base + 6); /* Clear the internal data pointer */ |
base | 80 | drivers/sound/trix.c | outb (0x00, base + 6); /* Reset */ |
base | 215 | fs/namei.c | struct inode * base, struct inode ** res_inode) |
base | 223 | fs/namei.c | if (!base) { |
base | 224 | fs/namei.c | base = current->fs->pwd; |
base | 225 | fs/namei.c | base->i_count++; |
base | 228 | fs/namei.c | iput(base); |
base | 229 | fs/namei.c | base = current->fs->root; |
base | 231 | fs/namei.c | base->i_count++; |
base | 239 | fs/namei.c | base->i_count++; |
base | 240 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
base | 242 | fs/namei.c | iput(base); |
base | 245 | fs/namei.c | error = follow_link(base,inode,0,0,&base); |
base | 249 | fs/namei.c | if (!base->i_op || !base->i_op->lookup) { |
base | 250 | fs/namei.c | iput(base); |
base | 255 | fs/namei.c | *res_inode = base; |
base | 259 | fs/namei.c | static int _namei(const char * pathname, struct inode * base, |
base | 267 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&base); |
base | 270 | fs/namei.c | base->i_count++; /* lookup uses up base */ |
base | 271 | fs/namei.c | error = lookup(base,basename,namelen,&inode); |
base | 273 | fs/namei.c | iput(base); |
base | 277 | fs/namei.c | error = follow_link(base,inode,0,0,&inode); |
base | 281 | fs/namei.c | iput(base); |
base | 333 | fs/namei.c | struct inode ** res_inode, struct inode * base) |
base | 341 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&dir); |
base | 229 | fs/read_write.c | void * base; |
base | 232 | fs/read_write.c | base = vector->iov_base; |
base | 236 | fs/read_write.c | nr = fn(inode, file, base, len); |
base | 127 | include/asm-i386/system.h | #define _set_base(addr,base) \ |
base | 136 | include/asm-i386/system.h | "d" (base) \ |
base | 152 | include/asm-i386/system.h | #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , base ) |
base | 258 | include/asm-i386/system.h | #define _set_seg_desc(gate_addr,type,dpl,base,limit) {\ |
base | 259 | include/asm-i386/system.h | *((gate_addr)+1) = ((base) & 0xff000000) | \ |
base | 260 | include/asm-i386/system.h | (((base) & 0x00ff0000)>>16) | \ |
base | 265 | include/asm-i386/system.h | *(gate_addr) = (((base) & 0x0000ffff)<<16) | \ |
base | 41 | include/linux/etherdevice.h | unsigned char *src, int length, int base); |
base | 482 | include/linux/fs.h | struct inode ** res_inode, struct inode * base); |
base | 118 | include/linux/kd.h | u_char diacr, base, result; |
base | 80 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
base | 83 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
base | 103 | include/linux/lp.h | int base; |
base | 6 | include/linux/pipe_fs_i.h | char * base; |
base | 17 | include/linux/pipe_fs_i.h | #define PIPE_BASE(inode) ((inode).u.pipe_i.base) |
base | 17 | lib/vsprintf.c | unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base) |
base | 21 | lib/vsprintf.c | if (!base) { |
base | 22 | lib/vsprintf.c | base = 10; |
base | 24 | lib/vsprintf.c | base = 8; |
base | 28 | lib/vsprintf.c | base = 16; |
base | 33 | lib/vsprintf.c | ? toupper(*cp) : *cp)-'A'+10) < base) { |
base | 34 | lib/vsprintf.c | result = result*base + value; |
base | 62 | lib/vsprintf.c | #define do_div(n,base) ({ \ |
base | 64 | lib/vsprintf.c | __res = ((unsigned long) n) % (unsigned) base; \ |
base | 65 | lib/vsprintf.c | n = ((unsigned long) n) / (unsigned) base; \ |
base | 68 | lib/vsprintf.c | static char * number(char * str, long num, int base, int size, int precision |
base | 79 | lib/vsprintf.c | if (base < 2 || base > 36) |
base | 97 | lib/vsprintf.c | if (base == 16) |
base | 99 | lib/vsprintf.c | else if (base == 8) |
base | 106 | lib/vsprintf.c | tmp[i++] = digits[do_div(num,base)]; |
base | 116 | lib/vsprintf.c | if (base==8) |
base | 118 | lib/vsprintf.c | else if (base==16) { |
base | 138 | lib/vsprintf.c | int i, base; |
base | 204 | lib/vsprintf.c | base = 10; |
base | 255 | lib/vsprintf.c | base = 8; |
base | 261 | lib/vsprintf.c | base = 16; |
base | 290 | lib/vsprintf.c | str = number(str, num, base, field_width, precision, flags); |
base | 265 | net/ethernet/eth.c | void eth_copy_and_sum(struct sk_buff *dest, unsigned char *src, int length, int base) |
base | 293 | net/ethernet/eth.c | dest->csum=csum_partial_copy(src+sizeof(struct iphdr)+ETH_HLEN,dest->data+sizeof(struct iphdr)+ETH_HLEN,length,base); |
base | 125 | net/ipv4/af_inet.c | unsigned short get_new_socknum(struct proto *prot, unsigned short base) |
base | 139 | net/ipv4/af_inet.c | if (base == 0) |
base | 140 | net/ipv4/af_inet.c | base = PROT_SOCK+1+(start % 1024); |
base | 141 | net/ipv4/af_inet.c | if (base <= PROT_SOCK) |
base | 143 | net/ipv4/af_inet.c | base += PROT_SOCK+(start % 1024); |
base | 153 | net/ipv4/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
base | 162 | net/ipv4/af_inet.c | return(i+base+1); |
base | 173 | net/ipv4/af_inet.c | while(sk_inuse(prot, base +best+1)) |
base | 177 | net/ipv4/af_inet.c | return(best+base+1); |
base | 1343 | net/ipv4/tcp.c | unsigned long saddr, unsigned long daddr, unsigned long base) |
base | 1345 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
base | 205 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
base | 207 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |