tag | line | file | source code |
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 | 231 | arch/i386/kernel/vm86.c | #define pushb(base, ptr, val) \ |
base | 236 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 238 | arch/i386/kernel/vm86.c | #define pushw(base, ptr, val) \ |
base | 245 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 247 | arch/i386/kernel/vm86.c | #define pushl(base, ptr, val) \ |
base | 260 | arch/i386/kernel/vm86.c | : "r" (base), "q" (val), "0" (ptr)) |
base | 262 | arch/i386/kernel/vm86.c | #define popb(base, ptr) \ |
base | 267 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 268 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 271 | arch/i386/kernel/vm86.c | #define popw(base, ptr) \ |
base | 278 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 279 | arch/i386/kernel/vm86.c | : "0" (ptr), "1" (base), "2" (0)); \ |
base | 282 | arch/i386/kernel/vm86.c | #define popl(base, ptr) \ |
base | 295 | arch/i386/kernel/vm86.c | : "=r" (ptr), "=r" (base), "=q" (__res) \ |
base | 296 | 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 | 201 | drivers/block/cdu31a.c | unsigned short base; /* I/O Base Address */ |
base | 2843 | drivers/block/cdu31a.c | while ( (cdu31a_addresses[i].base != 0) |
base | 2846 | drivers/block/cdu31a.c | if (check_region(cdu31a_addresses[i].base, 4)) { |
base | 2850 | drivers/block/cdu31a.c | get_drive_configuration(cdu31a_addresses[i].base, |
base | 2067 | drivers/block/floppy.c | char *base; |
base | 2069 | drivers/block/floppy.c | base = CURRENT->buffer; |
base | 2075 | drivers/block/floppy.c | while ( bh && bh->b_data == base + size ){ |
base | 1826 | drivers/char/console.c | long base = (long) vc_scrbuf[currcons]; |
base | 1833 | drivers/char/console.c | pos = origin = video_mem_start = base; |
base | 1834 | drivers/char/console.c | scr_end = base + video_screen_size; |
base | 1835 | drivers/char/console.c | video_mem_end = base + video_screen_size; |
base | 831 | drivers/char/keyboard.c | if (accent_table[i].diacr == d && accent_table[i].base == ch) |
base | 1003 | drivers/char/keyboard.c | int base; |
base | 1009 | drivers/char/keyboard.c | base = 10; |
base | 1012 | drivers/char/keyboard.c | base = 16; |
base | 1018 | drivers/char/keyboard.c | npadch = npadch * base + value; |
base | 390 | drivers/net/3c507.c | int base; |
base | 395 | drivers/net/3c507.c | base = 0xf00000 + (mem_config & 0x08 ? 0x080000 |
base | 399 | drivers/net/3c507.c | base = 0x0c0000 + ( (mem_config & 0x18) << 12); |
base | 401 | drivers/net/3c507.c | dev->mem_start = base; |
base | 402 | drivers/net/3c507.c | dev->mem_end = base + size; |
base | 281 | drivers/net/depca.c | volatile long base; |
base | 287 | drivers/net/depca.c | volatile long base; |
base | 717 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)&lp->rx_ring[i].base, |
base | 718 | drivers/net/depca.c | (long)&lp->tx_ring[i].base); |
base | 722 | drivers/net/depca.c | printk("\t0x%8.8lx 0x%8.8lx\n",(long)lp->rx_ring[i].base, |
base | 723 | drivers/net/depca.c | (long)lp->tx_ring[i].base); |
base | 786 | drivers/net/depca.c | lp->rx_ring[i].base = (lp->dma_buffs + i*PKT_BUF_SZ) | R_OWN; |
base | 788 | drivers/net/depca.c | lp->tx_ring[i].base = (lp->dma_buffs + (i+lp->ringSize) * PKT_BUF_SZ) & |
base | 867 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
base | 871 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
base | 889 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= (T_ENP); |
base | 890 | drivers/net/depca.c | lp->tx_ring[entry].base |= (T_OWN|T_STP); |
base | 903 | drivers/net/depca.c | buf = (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
base | 907 | drivers/net/depca.c | while (lp->tx_ring[entry].base < 0); |
base | 926 | drivers/net/depca.c | if (skbL <= 0) lp->tx_ring[entry].base |= T_ENP; |
base | 927 | drivers/net/depca.c | lp->tx_ring[entry].base |= T_OWN; |
base | 932 | drivers/net/depca.c | (unsigned char *)((lp->tx_ring[entry].base+lp->bus_offset) & |
base | 937 | drivers/net/depca.c | lp->tx_ring[entry].base, -lp->tx_ring[entry].length); |
base | 945 | drivers/net/depca.c | if (lp->tx_ring[(entry+1) & lp->rmask].base >= 0) { |
base | 1023 | drivers/net/depca.c | for (; lp->rx_ring[entry].base >= 0; entry = (++lp->cur_rx) & lp->rmask) { |
base | 1024 | drivers/net/depca.c | int status = lp->rx_ring[entry].base >> 16 ; |
base | 1044 | drivers/net/depca.c | while ((status=(lp->rx_ring[(entry+1)&lp->rmask].base >> 16)) < 0); |
base | 1068 | drivers/net/depca.c | (unsigned char *)((lp->rx_ring[entry].base+lp->bus_offset) & |
base | 1080 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
base | 1083 | drivers/net/depca.c | lp->rx_ring[entry].base |= R_OWN; |
base | 1112 | drivers/net/depca.c | for (; dirty_tx!=(lp->cur_tx & lp->rmask) && lp->tx_ring[dirty_tx].base>0; |
base | 1115 | drivers/net/depca.c | int status = lp->tx_ring[dirty_tx].base >> 16; |
base | 169 | drivers/net/lance.c | int base; |
base | 175 | drivers/net/lance.c | int base; |
base | 632 | drivers/net/lance.c | lp->rx_ring[i].base = (lp->rx_buffs + i*PKT_BUF_SZ) | 0x80000000; |
base | 638 | drivers/net/lance.c | lp->tx_ring[i].base = 0; |
base | 675 | drivers/net/lance.c | lp->rx_ring[i].base, -lp->rx_ring[i].buf_length, |
base | 679 | drivers/net/lance.c | lp->tx_ring[i].base, -lp->tx_ring[i].length, |
base | 746 | drivers/net/lance.c | lp->tx_ring[entry].base = |
base | 751 | drivers/net/lance.c | lp->tx_ring[entry].base = (int)(skb->data) | 0x83000000; |
base | 763 | drivers/net/lance.c | if (lp->tx_ring[(entry+1) & TX_RING_MOD_MASK].base == 0) |
base | 810 | drivers/net/lance.c | int status = lp->tx_ring[entry].base; |
base | 815 | drivers/net/lance.c | lp->tx_ring[entry].base = 0; |
base | 899 | drivers/net/lance.c | while (lp->rx_ring[entry].base >= 0) { |
base | 900 | drivers/net/lance.c | int status = lp->rx_ring[entry].base >> 24; |
base | 913 | drivers/net/lance.c | lp->rx_ring[entry].base &= 0x03ffffff; |
base | 923 | drivers/net/lance.c | if (lp->rx_ring[(entry+i) & RX_RING_MOD_MASK].base < 0) |
base | 928 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 936 | drivers/net/lance.c | (unsigned char *)(lp->rx_ring[entry].base & 0x00ffffff), |
base | 945 | drivers/net/lance.c | lp->rx_ring[entry].base |= 0x80000000; |
base | 104 | drivers/net/ni52.c | #define make24(ptr32) ((char *) (ptr32) - p->base) |
base | 184 | drivers/net/ni52.c | unsigned long base; |
base | 254 | drivers/net/ni52.c | p->base = (unsigned long) where + size - 0x01000000; |
base | 256 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
base | 292 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
base | 401 | drivers/net/ni52.c | ((struct priv *) (dev->priv))->base = dev->mem_start + size - 0x01000000; |
base | 811 | drivers/net/ni52.c | memcpy( (char *) skb->data,(char *) p->base+(unsigned long) rbd->buffer, totlen); |
base | 321 | drivers/scsi/53c7,8xx.c | int base; /* Memory address - indicates memory mapped regs */ |
base | 369 | drivers/scsi/53c7,8xx.c | overrides[commandline_current].data.normal.base = ints[1]; |
base | 686 | drivers/scsi/53c7,8xx.c | int base, int io_port, int irq, int dma, int pci_valid, |
base | 712 | drivers/scsi/53c7,8xx.c | chip_str, base, io_port, irq); |
base | 758 | drivers/scsi/53c7,8xx.c | if (base) { |
base | 759 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char *) base; |
base | 816 | drivers/scsi/53c7,8xx.c | unsigned long base, io_port; |
base | 840 | drivers/scsi/53c7,8xx.c | PCI_BASE_ADDRESS_1, &base)) || |
base | 876 | drivers/scsi/53c7,8xx.c | if ((base & PCI_BASE_ADDRESS_SPACE) != PCI_BASE_ADDRESS_SPACE_MEMORY) { |
base | 879 | drivers/scsi/53c7,8xx.c | base = 0; |
base | 881 | drivers/scsi/53c7,8xx.c | base &= PCI_BASE_ADDRESS_MEM_MASK; |
base | 884 | drivers/scsi/53c7,8xx.c | if (!io_port && !base) { |
base | 916 | drivers/scsi/53c7,8xx.c | return normal_init (tpnt, board, chip, (int) base, (int) io_port, |
base | 954 | drivers/scsi/53c7,8xx.c | overrides[current_override].data.normal.base, |
base | 998 | drivers/scsi/53c7,8xx.c | unsigned long base; |
base | 1031 | drivers/scsi/53c7,8xx.c | base = (long) host->io_port; |
base | 1036 | drivers/scsi/53c7,8xx.c | base = (long) host->base; |
base | 1044 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_scratch, base + SCRATCHA_REG_800); |
base | 1045 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_sfbr, base + SFBR_REG); |
base | 1046 | drivers/scsi/53c7,8xx.c | patch_abs_32 (hostdata->script, 0, addr_temp, base + TEMP_REG); |
base | 1258 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
base | 117 | drivers/scsi/aha1542.c | #define aha1542_intr_reset(base) outb(IRST, CONTROL(base)) |
base | 154 | drivers/scsi/aha1542.c | static int aha1542_out(unsigned int base, unchar *cmdp, int len) |
base | 160 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 163 | drivers/scsi/aha1542.c | if(inb(STATUS(base)) & CDF) {restore_flags(flags); continue;} |
base | 164 | drivers/scsi/aha1542.c | outb(*cmdp, DATA(base)); |
base | 173 | drivers/scsi/aha1542.c | WAIT(STATUS(base), CDF, 0, CDF); |
base | 174 | drivers/scsi/aha1542.c | outb(*cmdp++, DATA(base)); |
base | 187 | drivers/scsi/aha1542.c | static int aha1542_in(unsigned int base, unchar *cmdp, int len) |
base | 195 | drivers/scsi/aha1542.c | WAIT(STATUS(base), DF, DF, 0); |
base | 196 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 209 | drivers/scsi/aha1542.c | static int aha1542_in1(unsigned int base, unchar *cmdp, int len) |
base | 217 | drivers/scsi/aha1542.c | WAITd(STATUS(base), DF, DF, 0, 100); |
base | 218 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(base)); |
base | 783 | drivers/scsi/aha1542.c | static int aha1542_mbenable(int base) |
base | 792 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,1); |
base | 793 | drivers/scsi/aha1542.c | if(aha1542_in1(base,mbenable_result,2)) |
base | 795 | drivers/scsi/aha1542.c | WAITd(INTRFLAGS(base),INTRMASK,HACC,0,100); |
base | 796 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 803 | drivers/scsi/aha1542.c | aha1542_out(base,mbenable_cmd,3); |
base | 804 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(base),INTRMASK,HACC,0); |
base | 810 | drivers/scsi/aha1542.c | aha1542_intr_reset(base); |
base | 38 | drivers/scsi/aha1542.h | #define STATUS(base) base |
base | 48 | drivers/scsi/aha1542.h | #define INTRFLAGS(base) (STATUS(base)+2) |
base | 57 | drivers/scsi/aha1542.h | #define CONTROL(base) STATUS(base) |
base | 64 | drivers/scsi/aha1542.h | #define DATA(base) (STATUS(base)+1) |
base | 52 | drivers/scsi/aha1740.c | static unsigned int slot, base; |
base | 444 | drivers/scsi/aha1740.c | base = SLOTBASE(slot); |
base | 450 | drivers/scsi/aha1740.c | if(check_region(base, 0x5c)) continue; /* See if in use */ |
base | 464 | drivers/scsi/aha1740.c | printk("Configuring Adaptec at IO:%x, IRQ %d\n",base, |
base | 474 | drivers/scsi/aha1740.c | request_region(base, 0x5c,"aha1740"); /* Reserve the space that we need to use */ |
base | 20 | drivers/scsi/aha1740.h | #define BASE (base) |
base | 23 | drivers/scsi/aha1740.h | #define HID0 (base + 0x0) |
base | 24 | drivers/scsi/aha1740.h | #define HID1 (base + 0x1) |
base | 25 | drivers/scsi/aha1740.h | #define HID2 (base + 0x2) |
base | 26 | drivers/scsi/aha1740.h | #define HID3 (base + 0x3) |
base | 27 | drivers/scsi/aha1740.h | #define EBCNTRL (base + 0x4) |
base | 28 | drivers/scsi/aha1740.h | #define PORTADR (base + 0x40) |
base | 29 | drivers/scsi/aha1740.h | #define BIOSADR (base + 0x41) |
base | 30 | drivers/scsi/aha1740.h | #define INTDEF (base + 0x42) |
base | 31 | drivers/scsi/aha1740.h | #define SCSIDEF (base + 0x43) |
base | 32 | drivers/scsi/aha1740.h | #define BUSDEF (base + 0x44) |
base | 33 | drivers/scsi/aha1740.h | #define RESV0 (base + 0x45) |
base | 34 | drivers/scsi/aha1740.h | #define RESV1 (base + 0x46) |
base | 35 | drivers/scsi/aha1740.h | #define RESV2 (base + 0x47) |
base | 155 | drivers/scsi/aha274x.c | int base; /* card base address */ |
base | 228 | drivers/scsi/aha274x.c | void debug_config(enum aha_type type, int base) |
base | 254 | drivers/scsi/aha274x.c | ioport2 = inb(HA_HOSTCONF(base)); |
base | 255 | drivers/scsi/aha274x.c | ioport3 = inb(HA_SCSICONF(base)); |
base | 256 | drivers/scsi/aha274x.c | ioport4 = inb(HA_INTDEF(base)); |
base | 259 | drivers/scsi/aha274x.c | printk("AHA284X AT SLOT %d:\n", base >> 12); |
base | 261 | drivers/scsi/aha274x.c | printk("AHA274X AT EISA SLOT %d:\n", base >> 12); |
base | 287 | drivers/scsi/aha274x.c | void debug_rate(int base, int rate) |
base | 289 | drivers/scsi/aha274x.c | int target = inb(O_SCSIID(base)) >> 4; |
base | 337 | drivers/scsi/aha274x.c | void aha274x_getscb(int base, struct aha274x_scb *scb) |
base | 342 | drivers/scsi/aha274x.c | outb(0x80, O_SCBCNT(base)); /* SCBAUTO */ |
base | 348 | drivers/scsi/aha274x.c | :"D" (scb), "c" (sizeof(*scb)), "d" (O_SCBARRAY(base)) |
base | 351 | drivers/scsi/aha274x.c | outb(0, O_SCBCNT(base)); |
base | 429 | drivers/scsi/aha274x.c | outb(0xe, O_HCNTRL(p->base)); /* IRQMS|PAUSE|INTEN */ \ |
base | 431 | drivers/scsi/aha274x.c | while ((inb(O_HCNTRL(p->base)) & 0x4) == 0) \ |
base | 440 | drivers/scsi/aha274x.c | outb(p->unpause, O_HCNTRL(p->base)) /* IRQMS|INTEN */ |
base | 448 | drivers/scsi/aha274x.c | outb(0x2, O_SEQCTL(p->base)); \ |
base | 449 | drivers/scsi/aha274x.c | } while (inw(O_SEQADDR(p->base)) != 0); \ |
base | 461 | drivers/scsi/aha274x.c | int base, intstat; |
base | 465 | drivers/scsi/aha274x.c | base = p->base; |
base | 475 | drivers/scsi/aha274x.c | outb(inb(O_HCNTRL(p->base)) ^ 0x8, O_HCNTRL(p->base)); |
base | 483 | drivers/scsi/aha274x.c | intstat = inb(O_INTSTAT(base)); |
base | 488 | drivers/scsi/aha274x.c | inb(O_ERROR(base)), inw(O_SEQADDR(base))); |
base | 493 | drivers/scsi/aha274x.c | int scbptr = inb(O_SCBPTR(base)); |
base | 494 | drivers/scsi/aha274x.c | int status = inb(O_SSTAT1(base)); |
base | 505 | drivers/scsi/aha274x.c | outb(status, O_CLRSINT1(base)); |
base | 507 | drivers/scsi/aha274x.c | outb(0x4, O_CLRINT(base)); /* undocumented */ |
base | 524 | drivers/scsi/aha274x.c | outb(0, O_SCSISEQ(base)); |
base | 531 | drivers/scsi/aha274x.c | outb(0, HA_MSG_FLAGS(base)); |
base | 548 | drivers/scsi/aha274x.c | outb(0x80, O_CLRSINT1(base)); /* CLRSELTIMO */ |
base | 551 | drivers/scsi/aha274x.c | outb(0x4, O_CLRINT(base)); /* undocumented */ |
base | 568 | drivers/scsi/aha274x.c | outb(0x4, O_CLRSINT1(base)); /* CLRSCSIPERR */ |
base | 571 | drivers/scsi/aha274x.c | outb(0x4, O_CLRINT(base)); /* undocumented */ |
base | 580 | drivers/scsi/aha274x.c | outb(status, O_CLRSINT1(base)); |
base | 582 | drivers/scsi/aha274x.c | outb(0x4, O_CLRINT(base)); /* undocumented */ |
base | 599 | drivers/scsi/aha274x.c | complete = inb(O_QOUTFIFO(base)); |
base | 621 | drivers/scsi/aha274x.c | old_scbptr = inb(O_SCBPTR(base)); |
base | 622 | drivers/scsi/aha274x.c | outb(complete, O_SCBPTR(base)); |
base | 624 | drivers/scsi/aha274x.c | aha274x_getscb(base, &scb); |
base | 625 | drivers/scsi/aha274x.c | outb(old_scbptr, O_SCBPTR(base)); |
base | 665 | drivers/scsi/aha274x.c | outb(0x2, O_CLRINT(base)); /* CLRCMDINT */ |
base | 667 | drivers/scsi/aha274x.c | } while (inb(O_QOUTCNT(base))); |
base | 688 | drivers/scsi/aha274x.c | inb(HA_REJBYTE(base))); |
base | 693 | drivers/scsi/aha274x.c | (inb(O_SELID(base)) >> 4) & 0xf); |
base | 697 | drivers/scsi/aha274x.c | (inb(O_SELID(base)) >> 4) & 0xf); |
base | 700 | drivers/scsi/aha274x.c | transfer = inb(HA_ARG_1(base)); |
base | 701 | drivers/scsi/aha274x.c | offset = inb(HA_ARG_2(base)); |
base | 703 | drivers/scsi/aha274x.c | outb(rate, HA_RETURN_1(base)); |
base | 704 | drivers/scsi/aha274x.c | debug_rate(base, rate); |
base | 709 | drivers/scsi/aha274x.c | intstat, inb(O_SCSISIGI(base))); |
base | 713 | drivers/scsi/aha274x.c | outb(0x1, O_CLRINT(base)); /* CLRSEQINT */ |
base | 781 | drivers/scsi/aha274x.c | char aha274x_type(int base) |
base | 788 | drivers/scsi/aha274x.c | switch (inb(O_SBLKCTL(base))) { |
base | 802 | drivers/scsi/aha274x.c | void aha274x_loadram(int base) |
base | 826 | drivers/scsi/aha274x.c | outb(0x83, O_SEQCTL(base)); /* PERRORDIS|SEQRESET|LOADRAM */ |
base | 832 | drivers/scsi/aha274x.c | :"S" (seqprog), "c" (sizeof(seqprog)), "d" (O_SEQRAM(base)) |
base | 845 | drivers/scsi/aha274x.c | outb(0, O_SEQCTL(base)); |
base | 852 | drivers/scsi/aha274x.c | outb(0x2, O_SEQCTL(base)); /* SEQRESET */ |
base | 854 | drivers/scsi/aha274x.c | } while (inw(O_SEQADDR(base)) != 0); |
base | 860 | drivers/scsi/aha274x.c | int base) |
base | 871 | drivers/scsi/aha274x.c | outb(1, O_HCNTRL(base)); /* CHIPRST */ |
base | 881 | drivers/scsi/aha274x.c | irq = inb(HA_INTDEF(base)) & 0xf; |
base | 890 | drivers/scsi/aha274x.c | request_region(O_MINREG(base), O_MAXREG(base)-O_MINREG(base), "aha27x"); |
base | 897 | drivers/scsi/aha274x.c | scsi_id = inb(HA_SCSICONF(base)) & 0x7; |
base | 899 | drivers/scsi/aha274x.c | switch (aha274x_type(base)) { |
base | 944 | drivers/scsi/aha274x.c | p->base = base; |
base | 978 | drivers/scsi/aha274x.c | debug_config(type, base); |
base | 985 | drivers/scsi/aha274x.c | aha274x_loadram(base); |
base | 986 | drivers/scsi/aha274x.c | outb(1, O_BCTL(base)); /* ENABLE */ |
base | 994 | drivers/scsi/aha274x.c | outb(0xff, HA_NEEDSDTR(base)); |
base | 995 | drivers/scsi/aha274x.c | outb(0, HA_MSG_FLAGS(base)); |
base | 1009 | drivers/scsi/aha274x.c | int found = 0, slot, base; |
base | 1013 | drivers/scsi/aha274x.c | base = SLOTBASE(slot); |
base | 1015 | drivers/scsi/aha274x.c | if (check_region(O_MINREG(base), |
base | 1016 | drivers/scsi/aha274x.c | O_MAXREG(base)-O_MINREG(base))) |
base | 1025 | drivers/scsi/aha274x.c | type = aha274x_probe(slot, O_BIDx(base)); |
base | 1033 | drivers/scsi/aha274x.c | found += aha274x_register(template, type, base); |
base | 1128 | drivers/scsi/aha274x.c | void aha274x_putscb(int base, struct aha274x_scb *scb) |
base | 1136 | drivers/scsi/aha274x.c | outb(0x80, O_SCBCNT(base)); /* SCBAUTO */ |
base | 1142 | drivers/scsi/aha274x.c | :"S" (scb), "c" (sizeof(*scb)), "d" (O_SCBARRAY(base)) |
base | 1145 | drivers/scsi/aha274x.c | outb(0, O_SCBCNT(base)); |
base | 1212 | drivers/scsi/aha274x.c | old_scbptr = inb(O_SCBPTR(p->base)); |
base | 1213 | drivers/scsi/aha274x.c | outb(empty, O_SCBPTR(p->base)); |
base | 1215 | drivers/scsi/aha274x.c | aha274x_putscb(p->base, &scb); |
base | 1217 | drivers/scsi/aha274x.c | outb(empty, O_QINFIFO(p->base)); |
base | 1218 | drivers/scsi/aha274x.c | outb(old_scbptr, O_SCBPTR(p->base)); |
base | 1290 | drivers/scsi/aha274x.c | queued = inb(O_QINCNT(p->base)); |
base | 1293 | drivers/scsi/aha274x.c | scbsave[i] = inb(O_QINFIFO(p->base)); |
base | 1303 | drivers/scsi/aha274x.c | outb(scbsave[i], O_QINFIFO(p->base)); |
base | 1315 | drivers/scsi/aha274x.c | if (inb(O_SCBPTR(p->base)) != scb) { |
base | 1327 | drivers/scsi/aha274x.c | if (inb(HA_MSG_FLAGS(p->base)) & 0x80) { |
base | 1333 | drivers/scsi/aha274x.c | outb(0x80, HA_MSG_FLAGS(p->base)); /* active message */ |
base | 1334 | drivers/scsi/aha274x.c | outb(1, HA_MSG_LEN(p->base)); /* length = 1 */ |
base | 1335 | drivers/scsi/aha274x.c | outb(message, HA_MSG_START(p->base)); /* message body */ |
base | 1342 | drivers/scsi/aha274x.c | outb(inb(HA_SIGSTATE(p->base)) | 0x10, O_SCSISIGO(p->base)); |
base | 1406 | drivers/scsi/aha274x.c | outb((1 << cmd->target), HA_NEEDSDTR(p->base)); |
base | 1434 | drivers/scsi/aha274x.c | outb(1, O_SCSISEQ(p->base)); /* SCSIRSTO */ |
base | 1436 | drivers/scsi/aha274x.c | outb(0, O_SCSISEQ(p->base)); /* !SCSIRSTO */ |
base | 1438 | drivers/scsi/aha274x.c | outb(0xff, HA_NEEDSDTR(p->base)); |
base | 186 | drivers/scsi/buslogic.c | static int setup_mailboxes(unsigned int base, struct Scsi_Host *shpnt); |
base | 189 | drivers/scsi/buslogic.c | #define INTR_RESET(base) outb(RINT, CONTROL(base)) |
base | 238 | drivers/scsi/buslogic.c | static void buslogic_stat(unsigned int base) |
base | 240 | drivers/scsi/buslogic.c | int s = inb(STATUS(base)), i = inb(INTERRUPT(base)); |
base | 249 | drivers/scsi/buslogic.c | static int buslogic_out(unsigned int base, const unsigned char *cmdp, |
base | 256 | drivers/scsi/buslogic.c | WAIT_WHILE(STATUS(base), CPRBSY); |
base | 259 | drivers/scsi/buslogic.c | if (!(inb(STATUS(base)) & CPRBSY)) { |
base | 260 | drivers/scsi/buslogic.c | outb(*cmdp, COMMAND_PARAMETER(base)); |
base | 270 | drivers/scsi/buslogic.c | WAIT_WHILE(STATUS(base), CPRBSY); |
base | 271 | drivers/scsi/buslogic.c | outb(*cmdp++, COMMAND_PARAMETER(base)); |
base | 279 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 286 | drivers/scsi/buslogic.c | static int buslogic_in(unsigned int base, unsigned char *cmdp, size_t len) |
base | 293 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(STATUS(base), DIRRDY); |
base | 294 | drivers/scsi/buslogic.c | *cmdp++ = inb(DATA_IN(base)); |
base | 302 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 448 | drivers/scsi/buslogic.c | int base, interrupt_flags, found, i; |
base | 460 | drivers/scsi/buslogic.c | base = shpnt->io_port; |
base | 469 | drivers/scsi/buslogic.c | interrupt_flags = inb(INTERRUPT(base)); |
base | 483 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 787 | drivers/scsi/buslogic.c | static int setup_mailboxes(unsigned int base, struct Scsi_Host *shpnt) |
base | 795 | drivers/scsi/buslogic.c | void *base PACKED; |
base | 802 | drivers/scsi/buslogic.c | INTR_RESET(base); /* reset interrupts, so they don't block */ |
base | 804 | drivers/scsi/buslogic.c | if (buslogic_out(base, (unsigned char *)&cmd, sizeof cmd)) |
base | 806 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 815 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 820 | drivers/scsi/buslogic.c | static int getconfig(unsigned int base, unsigned char *irq, |
base | 833 | drivers/scsi/buslogic.c | i = inb(STATUS(base)); |
base | 835 | drivers/scsi/buslogic.c | i = inb(DATA_IN(base)); |
base | 837 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 838 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 3)) |
base | 840 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 841 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 873 | drivers/scsi/buslogic.c | if (buslogic_out(base, inquiry_cmd, 2)) |
base | 875 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, inquiry_cmd[1])) |
base | 877 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 878 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) & CMDINV) |
base | 880 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 928 | drivers/scsi/buslogic.c | static int buslogic_query(unsigned int base, unsigned char *trans, |
base | 944 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) == 0xFF) |
base | 948 | drivers/scsi/buslogic.c | geo = inb(GEOMETRY(base)); |
base | 958 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 962 | drivers/scsi/buslogic.c | outb(RSOFT | RINT/* | RSBUS*/, CONTROL(base)); |
base | 969 | drivers/scsi/buslogic.c | WAIT(STATUS(base), INREQ | HARDY, DACT | DFAIL | CMDINV | DIRRDY | CPRBSY); |
base | 972 | drivers/scsi/buslogic.c | if (inb(INTERRUPT(base)) & INTRMASK) |
base | 980 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 981 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 4)) |
base | 984 | drivers/scsi/buslogic.c | if (inb(STATUS(base)) & DIRRDY) |
base | 986 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 987 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 998 | drivers/scsi/buslogic.c | if (getconfig(base, irq, dma, id, bus_type, max_sg, bios)) |
base | 1025 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 1026 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 1)) |
base | 1028 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1029 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1034 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 1); |
base | 1035 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, 1)) |
base | 1037 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1038 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1046 | drivers/scsi/buslogic.c | buslogic_out(base, inquiry_cmd, 2); |
base | 1047 | drivers/scsi/buslogic.c | if (buslogic_in(base, inquiry_result, inquiry_cmd[1])) |
base | 1049 | drivers/scsi/buslogic.c | WAIT_UNTIL_FAST(INTERRUPT(base), CMDC); |
base | 1050 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1096 | drivers/scsi/buslogic.c | unsigned int base; |
base | 1119 | drivers/scsi/buslogic.c | base = bases[indx]; |
base | 1123 | drivers/scsi/buslogic.c | if (buslogic_query(base, &bios_translation, &irq, &dma, &id, |
base | 1128 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 1163 | drivers/scsi/buslogic.c | if (setup_mailboxes(base, shpnt)) |
base | 1174 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1175 | drivers/scsi/buslogic.c | buslogic_out(base, oncmd, sizeof oncmd); |
base | 1176 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 1177 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1178 | drivers/scsi/buslogic.c | buslogic_out(base, offcmd, sizeof offcmd); |
base | 1179 | drivers/scsi/buslogic.c | WAIT_UNTIL(INTERRUPT(base), CMDC); |
base | 1184 | drivers/scsi/buslogic.c | INTR_RESET(base); |
base | 1195 | drivers/scsi/buslogic.c | base, irq); |
base | 1209 | drivers/scsi/buslogic.c | buslogic_stat(base); |
base | 1252 | drivers/scsi/buslogic.c | shpnt->base = (unsigned char *)bios; |
base | 1253 | drivers/scsi/buslogic.c | shpnt->io_port = base; |
base | 60 | drivers/scsi/buslogic.h | #define STATUS(base) (base) |
base | 70 | drivers/scsi/buslogic.h | #define DATA_IN(base) (STATUS(base) + 1) |
base | 72 | drivers/scsi/buslogic.h | #define INTERRUPT(base) (STATUS(base) + 2) |
base | 82 | drivers/scsi/buslogic.h | #define GEOMETRY(base) (STATUS(base) + 3) |
base | 90 | drivers/scsi/buslogic.h | #define CONTROL(base) STATUS(base) |
base | 97 | drivers/scsi/buslogic.h | #define COMMAND_PARAMETER(base) (STATUS(base) + 1) |
base | 149 | drivers/scsi/eata_dma.c | uint base; |
base | 160 | drivers/scsi/eata_dma.c | if (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ)) |
base | 169 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
base | 176 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 179 | drivers/scsi/eata_dma.c | "%lx, irq%d\n", base, (long)cp, eata_stat, hba_stat, |
base | 188 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 195 | drivers/scsi/eata_dma.c | eata_stat = inb(base + HA_RSTATUS); |
base | 198 | drivers/scsi/eata_dma.c | irq, base, cmd->pid, cmd->target, cmd->lun, |
base | 276 | drivers/scsi/eata_dma.c | inline uint eata_send_command(ulong addr, uint base, unchar command) |
base | 280 | drivers/scsi/eata_dma.c | while (inb(base + HA_RAUXSTAT) & HA_ABUSY) |
base | 284 | drivers/scsi/eata_dma.c | outb(addr & 0x000000ff, base + HA_WDMAADDR); |
base | 285 | drivers/scsi/eata_dma.c | outb((addr & 0x0000ff00) >> 8, base + HA_WDMAADDR + 1); |
base | 286 | drivers/scsi/eata_dma.c | outb((addr & 0x00ff0000) >> 16, base + HA_WDMAADDR + 2); |
base | 287 | drivers/scsi/eata_dma.c | outb((addr & 0xff000000) >> 24, base + HA_WDMAADDR + 3); |
base | 288 | drivers/scsi/eata_dma.c | outb(command, base + HA_WCOMMAND); |
base | 404 | drivers/scsi/eata_dma.c | if(eata_send_command((ulong) cp, (uint) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
base | 413 | drivers/scsi/eata_dma.c | (long)sh->base, cmd->pid, cmd->target, cmd->lun, y, sh->irq)); |
base | 453 | drivers/scsi/eata_dma.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 507 | drivers/scsi/eata_dma.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
base | 544 | drivers/scsi/eata_dma.c | inb((uint) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
base | 545 | drivers/scsi/eata_dma.c | eata_send_command(0, (uint) cmd->host->base, EATA_CMD_RESET); |
base | 595 | drivers/scsi/eata_dma.c | char * get_board_data(ulong base, uint irq, uint id) |
base | 627 | drivers/scsi/eata_dma.c | fake_int_base = base; |
base | 630 | drivers/scsi/eata_dma.c | eata_send_command((u32) &cp, (u32) base, EATA_CMD_DMA_SEND_CP); |
base | 647 | drivers/scsi/eata_dma.c | int check_blink_state(long base) |
base | 656 | drivers/scsi/eata_dma.c | state = inl((uint) base + 1); |
base | 668 | drivers/scsi/eata_dma.c | int get_conf_PIO(struct eata_register *base, struct get_conf *buf) |
base | 675 | drivers/scsi/eata_dma.c | if(check_region((int) base, 9)) { |
base | 676 | drivers/scsi/eata_dma.c | if ((int)base == 0x1f0 || (int)base == 0x170) { |
base | 684 | drivers/scsi/eata_dma.c | while (inb((uint) base + HA_RSTATUS) & HA_SBUSY) |
base | 689 | drivers/scsi/eata_dma.c | (long)base)); |
base | 690 | drivers/scsi/eata_dma.c | eata_send_command(0, (uint) base, EATA_CMD_PIO_READ_CONFIG); |
base | 694 | drivers/scsi/eata_dma.c | while (!(inb((uint) base + HA_RSTATUS) & HA_SDRQ)) |
base | 698 | drivers/scsi/eata_dma.c | *p = inw((uint) base + HA_RDATA); |
base | 700 | drivers/scsi/eata_dma.c | if (!(inb((uint) base + HA_RSTATUS) & HA_SERROR)) { /* Error ? */ |
base | 708 | drivers/scsi/eata_dma.c | "EATA Level: %x\n", (uint) base, (uint) (buf->version))); |
base | 710 | drivers/scsi/eata_dma.c | while (inb((uint) base + HA_RSTATUS) & HA_SDRQ) |
base | 711 | drivers/scsi/eata_dma.c | inw((uint) base + HA_RDATA); |
base | 715 | drivers/scsi/eata_dma.c | " This might lead to problems.", base); |
base | 720 | drivers/scsi/eata_dma.c | "for HBA at %lx\n", (long)base)); |
base | 741 | drivers/scsi/eata_dma.c | int register_HBA(long base, struct get_conf *gc, Scsi_Host_Template * tpnt) |
base | 778 | drivers/scsi/eata_dma.c | dma_channel, base); |
base | 788 | drivers/scsi/eata_dma.c | buff = get_board_data(base, gc->IRQ, gc->scsi_id[3]); |
base | 792 | drivers/scsi/eata_dma.c | printk("HBA at %#.4lx doesn't support DMA. Sorry\n", base); |
base | 794 | drivers/scsi/eata_dma.c | printk("HBA at %#.4lx didn't react on INQUIRY. Sorry.\n", base); |
base | 807 | drivers/scsi/eata_dma.c | &buff[16], base); |
base | 809 | drivers/scsi/eata_dma.c | request_region(base, 9, "eata_dma"); /* We already checked the |
base | 873 | drivers/scsi/eata_dma.c | sh->base = (char *) base; |
base | 874 | drivers/scsi/eata_dma.c | sh->io_port = (ushort) base; |
base | 951 | drivers/scsi/eata_dma.c | struct eata_register *base; |
base | 961 | drivers/scsi/eata_dma.c | base = (void *)0x1c88 + (i * 0x1000); |
base | 963 | drivers/scsi/eata_dma.c | p = (char *)base; |
base | 974 | drivers/scsi/eata_dma.c | if (get_conf_PIO(base, buf) == TRUE) { |
base | 981 | drivers/scsi/eata_dma.c | return ((ulong)base); |
base | 1022 | drivers/scsi/eata_dma.c | ulong base = 0; |
base | 1059 | drivers/scsi/eata_dma.c | PCI_BASE_ADDRESS_0, &base))){ |
base | 1062 | drivers/scsi/eata_dma.c | if (base & 0x01) { |
base | 1063 | drivers/scsi/eata_dma.c | base &= 0xfffffffe; |
base | 1065 | drivers/scsi/eata_dma.c | if ((inb(base) == 0x12) && (inb(base + 1) == 0x14)) |
base | 1067 | drivers/scsi/eata_dma.c | base += 0x10; /* Now, THIS is the real address */ |
base | 1068 | drivers/scsi/eata_dma.c | if (base != 0x1f8) { |
base | 1070 | drivers/scsi/eata_dma.c | if (get_conf_PIO((struct eata_register *)base, buf)) { |
base | 1079 | drivers/scsi/eata_dma.c | register_HBA(base, buf, tpnt); |
base | 1081 | drivers/scsi/eata_dma.c | if (base < 0x1000) { |
base | 1083 | drivers/scsi/eata_dma.c | if (ISAbases[x] == base) { |
base | 1088 | drivers/scsi/eata_dma.c | } else if ((base & 0x0fff) == 0x0c88) { |
base | 1089 | drivers/scsi/eata_dma.c | x = (base >> 12) & 0x0f; |
base | 1093 | drivers/scsi/eata_dma.c | } else if (check_blink_state(base)) { |
base | 1113 | drivers/scsi/eata_dma.c | ulong base = 0; |
base | 1127 | drivers/scsi/eata_dma.c | base = find_EISA(&gc); |
base | 1128 | drivers/scsi/eata_dma.c | if (base) |
base | 1129 | drivers/scsi/eata_dma.c | register_HBA(base, &gc, tpnt); |
base | 1133 | drivers/scsi/eata_dma.c | base = find_ISA(&gc); |
base | 1134 | drivers/scsi/eata_dma.c | if (base) |
base | 1135 | drivers/scsi/eata_dma.c | register_HBA(base, &gc, tpnt); |
base | 1158 | drivers/scsi/eata_dma.c | (u32) HBA_ptr->base, HBA_ptr->irq); |
base | 249 | drivers/scsi/hosts.h | unsigned char *base; |
base | 113 | drivers/scsi/in2000.c | static unsigned int base; |
base | 584 | drivers/scsi/in2000.c | base = base_tab[loop]; |
base | 620 | drivers/scsi/in2000.c | "\n",base, irq_level); |
base | 637 | drivers/scsi/in2000.c | shpnt->io_port = base; |
base | 640 | 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 | 155 | drivers/scsi/pas16.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 142 | drivers/scsi/t128.c | #define NO_BASES (sizeof (bases) / sizeof (struct base)) |
base | 197 | drivers/scsi/t128.c | unsigned char *base; |
base | 201 | drivers/scsi/t128.c | base = NULL; |
base | 204 | drivers/scsi/t128.c | base = overrides[current_override].address; |
base | 206 | drivers/scsi/t128.c | for (; !base && (current_base < NO_BASES); ++current_base) { |
base | 214 | drivers/scsi/t128.c | base = bases[current_base].address; |
base | 223 | drivers/scsi/t128.c | printk("scsi-t128 : base = %08x\n", (unsigned int) base); |
base | 226 | drivers/scsi/t128.c | if (!base) |
base | 230 | drivers/scsi/t128.c | instance->base = base; |
base | 256 | drivers/scsi/t128.c | instance->base); |
base | 316 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 323 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
base | 325 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
base | 331 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 334 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 360 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
base | 366 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
base | 368 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
base | 374 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
base | 377 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
base | 130 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 133 | drivers/scsi/t128.h | volatile unsigned char *base |
base | 136 | drivers/scsi/t128.h | base = (volatile unsigned char *) (instance)->base |
base | 138 | drivers/scsi/t128.h | #define T128_address(reg) (base + T_5380_OFFSET + ((reg) * 0x20)) |
base | 421 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
base | 439 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
base | 487 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
base | 48 | drivers/sound/ad1848.c | int base; |
base | 83 | drivers/sound/ad1848.c | #define io_Index_Addr(d) ((d)->base) |
base | 84 | drivers/sound/ad1848.c | #define io_Indexed_Data(d) ((d)->base+1) |
base | 85 | drivers/sound/ad1848.c | #define io_Status(d) ((d)->base+2) |
base | 86 | drivers/sound/ad1848.c | #define io_Polled_IO(d) ((d)->base+3) |
base | 151 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) |
base | 153 | drivers/sound/ad1848.c | if (INB (devc->base) == 0x80) |
base | 608 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) |
base | 630 | drivers/sound/ad1848.c | while (timeout > 0 && INB (devc->base) == 0x80) |
base | 673 | drivers/sound/ad1848.c | devc->base = io_base; |
base | 692 | drivers/sound/ad1848.c | if ((INB (devc->base) & 0x80) != 0x00) /* Not a AD1884 */ |
base | 44 | drivers/sound/mpu401.c | int base; /* |
base | 81 | drivers/sound/mpu401.c | #define DATAPORT(base) (base) |
base | 82 | drivers/sound/mpu401.c | #define COMDPORT(base) (base+1) |
base | 83 | drivers/sound/mpu401.c | #define STATPORT(base) (base+1) |
base | 85 | drivers/sound/mpu401.c | #define mpu401_status(base) INB(STATPORT(base)) |
base | 86 | drivers/sound/mpu401.c | #define input_avail(base) (!(mpu401_status(base)&INPUT_AVAIL)) |
base | 87 | drivers/sound/mpu401.c | #define output_ready(base) (!(mpu401_status(base)&OUTPUT_READY)) |
base | 88 | drivers/sound/mpu401.c | #define write_command(base, cmd) OUTB(cmd, COMDPORT(base)) |
base | 89 | drivers/sound/mpu401.c | #define read_data(base) INB(DATAPORT(base)) |
base | 91 | drivers/sound/mpu401.c | #define write_data(base, byte) OUTB(byte, DATAPORT(base)) |
base | 466 | drivers/sound/mpu401.c | while (input_avail (devc->base)) |
base | 468 | drivers/sound/mpu401.c | unsigned char c = read_data (devc->base); |
base | 506 | drivers/sound/mpu401.c | if (devc->base != 0 && (devc->opened & OPEN_READ || devc->mode == MODE_SYNTH)) |
base | 507 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 582 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 590 | drivers/sound/mpu401.c | for (timeout = 30000; timeout > 0 && !output_ready (devc->base); timeout--); /* |
base | 595 | drivers/sound/mpu401.c | if (!output_ready (devc->base)) |
base | 602 | drivers/sound/mpu401.c | write_data (devc->base, midi_byte); |
base | 628 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 636 | drivers/sound/mpu401.c | for (timeout = 500000; timeout > 0 && !output_ready (devc->base); timeout--); |
base | 639 | drivers/sound/mpu401.c | if (!output_ready (devc->base)) |
base | 646 | drivers/sound/mpu401.c | write_command (devc->base, cmd->cmd); |
base | 649 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 650 | drivers/sound/mpu401.c | if (mpu_input_scanner (devc, read_data (devc->base)) == MPU_ACK) |
base | 663 | drivers/sound/mpu401.c | for (timeout = 30000; timeout > 0 && !output_ready (devc->base); timeout--); |
base | 681 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 683 | drivers/sound/mpu401.c | cmd->data[i] = read_data (devc->base); |
base | 992 | drivers/sound/mpu401.c | devc->base = hw_config->io_base; |
base | 1121 | drivers/sound/mpu401.c | ok = output_ready (devc->base); |
base | 1123 | drivers/sound/mpu401.c | write_command (devc->base, MPU_RESET); /* |
base | 1135 | drivers/sound/mpu401.c | if (input_avail (devc->base)) |
base | 1136 | drivers/sound/mpu401.c | if (read_data (devc->base) == MPU_ACK) |
base | 1183 | drivers/sound/mpu401.c | tmp_devc.base = hw_config->io_base; |
base | 216 | fs/namei.c | struct inode * base, struct inode ** res_inode) |
base | 224 | fs/namei.c | if (!base) { |
base | 225 | fs/namei.c | base = current->fs->pwd; |
base | 226 | fs/namei.c | base->i_count++; |
base | 229 | fs/namei.c | iput(base); |
base | 230 | fs/namei.c | base = current->fs->root; |
base | 232 | fs/namei.c | base->i_count++; |
base | 240 | fs/namei.c | base->i_count++; |
base | 241 | fs/namei.c | error = lookup(base,thisname,len,&inode); |
base | 243 | fs/namei.c | iput(base); |
base | 246 | fs/namei.c | error = follow_link(base,inode,0,0,&base); |
base | 250 | fs/namei.c | if (!base->i_op || !base->i_op->lookup) { |
base | 251 | fs/namei.c | iput(base); |
base | 256 | fs/namei.c | *res_inode = base; |
base | 260 | fs/namei.c | static int _namei(const char * pathname, struct inode * base, |
base | 268 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&base); |
base | 271 | fs/namei.c | base->i_count++; /* lookup uses up base */ |
base | 272 | fs/namei.c | error = lookup(base,basename,namelen,&inode); |
base | 274 | fs/namei.c | iput(base); |
base | 278 | fs/namei.c | error = follow_link(base,inode,0,0,&inode); |
base | 282 | fs/namei.c | iput(base); |
base | 334 | fs/namei.c | struct inode ** res_inode, struct inode * base) |
base | 342 | fs/namei.c | error = dir_namei(pathname,&namelen,&basename,base,&dir); |
base | 73 | include/asm-i386/system.h | #define _set_base(addr,base) \ |
base | 82 | include/asm-i386/system.h | "d" (base) \ |
base | 98 | include/asm-i386/system.h | #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , base ) |
base | 203 | include/asm-i386/system.h | #define _set_seg_desc(gate_addr,type,dpl,base,limit) {\ |
base | 204 | include/asm-i386/system.h | *((gate_addr)+1) = ((base) & 0xff000000) | \ |
base | 205 | include/asm-i386/system.h | (((base) & 0x00ff0000)>>16) | \ |
base | 210 | include/asm-i386/system.h | *(gate_addr) = (((base) & 0x0000ffff)<<16) | \ |
base | 475 | include/linux/fs.h | struct inode ** res_inode, struct inode * base); |
base | 100 | include/linux/kd.h | u_char diacr, base, result; |
base | 30 | include/linux/ldt.h | extern int set_ldt_entry(int entry, unsigned long base, unsigned int limit, |
base | 79 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
base | 82 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
base | 92 | 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 | 103 | net/inet/af_inet.c | unsigned short get_new_socknum(struct proto *prot, unsigned short base) |
base | 117 | net/inet/af_inet.c | if (base == 0) |
base | 118 | net/inet/af_inet.c | base = PROT_SOCK+1+(start % 1024); |
base | 119 | net/inet/af_inet.c | if (base <= PROT_SOCK) |
base | 121 | net/inet/af_inet.c | base += PROT_SOCK+(start % 1024); |
base | 128 | net/inet/af_inet.c | sk = prot->sock_array[(i+base+1) &(SOCK_ARRAY_SIZE -1)]; |
base | 137 | net/inet/af_inet.c | return(i+base+1); |
base | 148 | net/inet/af_inet.c | while(sk_inuse(prot, base +best+1)) |
base | 152 | net/inet/af_inet.c | return(best+base+1); |