tag | line | file | source code |
port | 185 | drivers/block/hd.c | unsigned short port; |
port | 201 | drivers/block/hd.c | port=HD_DATA; |
port | 202 | drivers/block/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
port | 203 | drivers/block/hd.c | outb_p(nsect,++port); |
port | 204 | drivers/block/hd.c | outb_p(sect,++port); |
port | 205 | drivers/block/hd.c | outb_p(cyl,++port); |
port | 206 | drivers/block/hd.c | outb_p(cyl>>8,++port); |
port | 207 | drivers/block/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
port | 208 | drivers/block/hd.c | outb_p(cmd,++port); |
port | 385 | drivers/block/xd.c | static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long timeout) |
port | 389 | drivers/block/xd.c | while (((inb(port) & mask) != flags) && (jiffies < expiry)) |
port | 144 | drivers/char/serial.c | #define C_P(card,port) (((card)<<6|(port)<<3) + 1) |
port | 216 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 217 | drivers/char/serial.c | return inb(info->port+1); |
port | 219 | drivers/char/serial.c | return inb(info->port + offset); |
port | 225 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 226 | drivers/char/serial.c | return inb_p(info->port+1); |
port | 228 | drivers/char/serial.c | return inb_p(info->port + offset); |
port | 234 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 235 | drivers/char/serial.c | outb(value, info->port+1); |
port | 237 | drivers/char/serial.c | outb(value, info->port+offset); |
port | 244 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 245 | drivers/char/serial.c | outb_p(value, info->port+1); |
port | 247 | drivers/char/serial.c | outb_p(value, info->port+offset); |
port | 726 | drivers/char/serial.c | if (!info->port || !info->type) { |
port | 795 | drivers/char/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
port | 885 | drivers/char/serial.c | (void) inb((info->port & 0xFE0) | 0x01F); |
port | 912 | drivers/char/serial.c | unsigned short port; |
port | 923 | drivers/char/serial.c | if (!(port = info->port)) |
port | 1109 | drivers/char/serial.c | tmp.port = info->port; |
port | 1135 | drivers/char/serial.c | change_port = (new_serial.port != info->port) || (new_serial.hub6 != info->hub6); |
port | 1154 | drivers/char/serial.c | if ((new_serial.irq > 15) || (new_serial.port > 0xffff) || |
port | 1162 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && rs_table[i].type) |
port | 1170 | drivers/char/serial.c | if (new_serial.port && new_serial.type && new_serial.irq && |
port | 1205 | drivers/char/serial.c | info->port = new_serial.port; |
port | 1210 | drivers/char/serial.c | if (!info->port || !info->type) |
port | 1306 | drivers/char/serial.c | if (!info->port) |
port | 1776 | drivers/char/serial.c | unsigned short ICP=0, port = info->port; |
port | 1789 | drivers/char/serial.c | ICP = (port & 0xFE0) | 0x01F; |
port | 1830 | drivers/char/serial.c | unsigned port = info->port; |
port | 1836 | drivers/char/serial.c | if (!port) |
port | 1870 | drivers/char/serial.c | unsigned port = info->port; |
port | 1875 | drivers/char/serial.c | if (!port) |
port | 2013 | drivers/char/serial.c | info->port, info->irq); |
port | 282 | drivers/net/3c507.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x280, 0}; |
port | 301 | drivers/net/3c507.c | for (port = &ports[0]; *port; port++) { |
port | 302 | drivers/net/3c507.c | short ioaddr = *port; |
port | 307 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
port | 318 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
port | 136 | drivers/net/at1700.c | short *port, base_addr = dev->base_addr; |
port | 143 | drivers/net/at1700.c | for (port = &ports[0]; *port; port++) { |
port | 144 | drivers/net/at1700.c | int ioaddr = *port; |
port | 162 | drivers/net/atp.c | int *port, ports[] = {0x378, 0x278, 0x3bc, 0}; |
port | 170 | drivers/net/atp.c | for (port = ports; *port; port++) { |
port | 171 | drivers/net/atp.c | int ioaddr = *port; |
port | 84 | drivers/net/atp.h | extern inline unsigned char inbyte(unsigned short port) |
port | 87 | drivers/net/atp.h | __asm__ __volatile__ ("inb %w1,%b0" :"=a" (_v):"d" (port)); |
port | 93 | drivers/net/atp.h | extern inline unsigned char read_nibble(short port, unsigned char offset) |
port | 96 | drivers/net/atp.h | outb(EOC+offset, port + PAR_DATA); |
port | 97 | drivers/net/atp.h | outb(RdAddr+offset, port + PAR_DATA); |
port | 98 | drivers/net/atp.h | inbyte(port + PAR_STATUS); /* Settling time delay */ |
port | 99 | drivers/net/atp.h | retval = inbyte(port + PAR_STATUS); |
port | 100 | drivers/net/atp.h | outb(EOC+offset, port + PAR_DATA); |
port | 158 | drivers/net/atp.h | write_reg(short port, unsigned char reg, unsigned char value) |
port | 161 | drivers/net/atp.h | outb(EOC | reg, port + PAR_DATA); |
port | 163 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 164 | drivers/net/atp.h | outb(outval, port + PAR_DATA); /* Double write for PS/2. */ |
port | 168 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 170 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 171 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 173 | drivers/net/atp.h | outb(EOC | outval, port + PAR_DATA); |
port | 177 | drivers/net/atp.h | write_reg_high(short port, unsigned char reg, unsigned char value) |
port | 181 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 183 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 184 | drivers/net/atp.h | outb(outval, port + PAR_DATA); /* Double write for PS/2. */ |
port | 187 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 189 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 190 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 192 | drivers/net/atp.h | outb(EOC | HNib | outval, port + PAR_DATA); |
port | 197 | drivers/net/atp.h | write_reg_byte(short port, unsigned char reg, unsigned char value) |
port | 200 | drivers/net/atp.h | outb(EOC | reg, port + PAR_DATA); /* Reset the address register. */ |
port | 202 | drivers/net/atp.h | outb(outval, port + PAR_DATA); |
port | 203 | drivers/net/atp.h | outb(outval, port + PAR_DATA); /* Double write for PS/2. */ |
port | 205 | drivers/net/atp.h | outb((outval & 0xf0) | (value & 0x0f), port + PAR_DATA); |
port | 206 | drivers/net/atp.h | outb(value & 0x0f, port + PAR_DATA); |
port | 208 | drivers/net/atp.h | outb(value, port + PAR_DATA); |
port | 209 | drivers/net/atp.h | outb(0x10 | value, port + PAR_DATA); |
port | 210 | drivers/net/atp.h | outb(0x10 | value, port + PAR_DATA); |
port | 212 | drivers/net/atp.h | outb(EOC | value, port + PAR_DATA); /* Reset the address register. */ |
port | 314 | drivers/net/eexpress.c | int *port, ports[] = {0x300, 0x270, 0x320, 0x340, 0}; |
port | 322 | drivers/net/eexpress.c | for (port = &ports[0]; *port; port++) { |
port | 323 | drivers/net/eexpress.c | short id_addr = *port + ID_PORT; |
port | 336 | drivers/net/eexpress.c | && eexp_probe1(dev, *port) == 0) |
port | 69 | drivers/net/hp.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240, 0}; |
port | 77 | drivers/net/hp.c | for (port = &ports[0]; *port; port++) { |
port | 78 | drivers/net/hp.c | if (check_region(*port, HP_IO_EXTENT)) |
port | 80 | drivers/net/hp.c | if (hpprobe1(dev, *port) == 0) { |
port | 224 | drivers/net/lance.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x360, 0}; |
port | 226 | drivers/net/lance.c | for (port = &ports[0]; *port; port++) { |
port | 227 | drivers/net/lance.c | int ioaddr = *port; |
port | 75 | drivers/net/ne.c | int *port, ports[] = {0x300, 0x280, 0x320, 0x340, 0x360, 0}; |
port | 83 | drivers/net/ne.c | for (port = &ports[0]; *port; port++) { |
port | 85 | drivers/net/ne.c | if (check_region(*port, 32)) |
port | 88 | drivers/net/ne.c | if (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) { |
port | 89 | drivers/net/ne.c | dev->base_addr = *port; |
port | 133 | drivers/net/skeleton.c | int *port, ports[] = {0x300, 0x280, 0}; |
port | 141 | drivers/net/skeleton.c | for (port = &ports[0]; *port; port++) { |
port | 142 | drivers/net/skeleton.c | int ioaddr = *port; |
port | 62 | drivers/net/smc-ultra.c | int *port, ports[] = {0x200, 0x220, 0x240, 0x280, 0x300, 0x340, 0x380, 0}; |
port | 70 | drivers/net/smc-ultra.c | for (port = &ports[0]; *port; port++) { |
port | 71 | drivers/net/smc-ultra.c | if (check_region(*port, 32)) |
port | 73 | drivers/net/smc-ultra.c | if ((inb(*port + 7) & 0xF0) == 0x20 /* Check chip ID nibble. */ |
port | 74 | drivers/net/smc-ultra.c | && ultraprobe1(*port, dev) == 0) |
port | 71 | drivers/net/wd.c | int *port, ports[] = {0x300, 0x280, 0x380, 0x240, 0}; |
port | 79 | drivers/net/wd.c | for (port = &ports[0]; *port; port++) { |
port | 80 | drivers/net/wd.c | if (check_region(*port, 32)) |
port | 82 | drivers/net/wd.c | if (inb(*port + 8) != 0xff |
port | 83 | drivers/net/wd.c | && inb(*port + 9) != 0xff /* Extra check to avoid soundcard. */ |
port | 84 | drivers/net/wd.c | && wdprobe1(*port, dev)) |
port | 288 | drivers/scsi/aha152x.h | unsigned short port; |
port | 300 | drivers/scsi/aha152x.h | #define cf_port port |
port | 81 | drivers/scsi/aha1542.c | #define WAIT(port, mask, allof, noneof) \ |
port | 85 | drivers/scsi/aha1542.c | WAITbits = inb(port) & (mask); \ |
port | 362 | drivers/scsi/fdomain.c | static int fdomain_is_valid_port( int port ) |
port | 368 | drivers/scsi/fdomain.c | inb( port + MSB_ID_Code ), inb( port + LSB_ID_Code ) ); |
port | 377 | drivers/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0xe9) { /* test for 0x6127 id */ |
port | 378 | drivers/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0x27) return 0; |
port | 379 | drivers/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x61) return 0; |
port | 382 | drivers/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x60) return 0; |
port | 392 | drivers/scsi/fdomain.c | options = inb( port + Configuration1 ); |
port | 75 | drivers/scsi/g_NCR5380.c | int port; |
port | 103 | drivers/scsi/g_NCR5380.c | overrides[commandline_current].port = ints[1]; |
port | 131 | drivers/scsi/g_NCR5380.c | if (!(overrides[current_override].port)) |
port | 135 | drivers/scsi/g_NCR5380.c | instance->io_port = overrides[current_override].port; |
port | 66 | drivers/scsi/g_NCR5380.h | int port |
port | 69 | drivers/scsi/g_NCR5380.h | register int port |
port | 72 | drivers/scsi/g_NCR5380.h | port = (instance)->io_port |
port | 74 | drivers/scsi/g_NCR5380.h | #define NCR5380_read(reg) (inb(port + (reg))) |
port | 75 | drivers/scsi/g_NCR5380.h | #define NCR5380_write(reg, value) (outb((value), (port + (reg)))) |
port | 162 | drivers/scsi/pas16.c | void enable_board( int board_num, unsigned short port ) |
port | 165 | drivers/scsi/pas16.c | outb( port >> 2, MASTER_ADDRESS_PTR ); |
port | 217 | drivers/scsi/pas16.c | unsigned short port = bases[ board_num ].io_port; |
port | 226 | drivers/scsi/pas16.c | enable_board( board_num, port ); |
port | 229 | drivers/scsi/pas16.c | board_rev = inb( port + PCB_CONFIG ); |
port | 236 | drivers/scsi/pas16.c | outb( tmp, port + PCB_CONFIG ); |
port | 237 | drivers/scsi/pas16.c | tmp = inb( port + PCB_CONFIG ); |
port | 238 | drivers/scsi/pas16.c | outb( board_rev, port + PCB_CONFIG ); |
port | 243 | drivers/scsi/pas16.c | if( ( inb( port + OPERATION_MODE_1 ) & 0x03 ) != 0x03 ) |
port | 191 | drivers/scsi/ultrastor.c | #define U14F_PRODUCT_ID(port) ((port) + 0x4) |
port | 192 | drivers/scsi/ultrastor.c | #define CONFIG(port) ((port) + 0x6) |
port | 195 | drivers/scsi/ultrastor.c | #define LCL_DOORBELL_MASK(port) ((port) + 0x0) |
port | 196 | drivers/scsi/ultrastor.c | #define LCL_DOORBELL_INTR(port) ((port) + 0x1) |
port | 197 | drivers/scsi/ultrastor.c | #define SYS_DOORBELL_MASK(port) ((port) + 0x2) |
port | 198 | drivers/scsi/ultrastor.c | #define SYS_DOORBELL_INTR(port) ((port) + 0x3) |
port | 101 | drivers/scsi/wd7000.c | #define WAIT(port, mask, allof, noneof) \ |
port | 105 | drivers/scsi/wd7000.c | WAITbits = inb(port) & (mask); \ |
port | 52 | drivers/sound/sb_mixer.c | sb_setmixer (unsigned int port, unsigned int value) |
port | 57 | drivers/sound/sb_mixer.c | OUTB ((unsigned char)(port & 0xff), MIXER_ADDR); /* Select register */ |
port | 65 | drivers/sound/sb_mixer.c | sb_getmixer (unsigned int port) |
port | 71 | drivers/sound/sb_mixer.c | OUTB ((unsigned char)(port & 0xff), MIXER_ADDR); /* Select register */ |
port | 134 | drivers/sound/sound_calls.h | void sb_setmixer (unsigned int port, unsigned int value); |
port | 135 | drivers/sound/sound_calls.h | int sb_getmixer (unsigned int port); |
port | 32 | include/asm/io.h | extern inline void __out##s(unsigned x value, unsigned short port) { |
port | 38 | include/asm/io.h | __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); } \ |
port | 39 | include/asm/io.h | __OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); } \ |
port | 40 | include/asm/io.h | __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); SLOW_DOWN_IO; } \ |
port | 41 | include/asm/io.h | __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "i" (port)); SLOW_DOWN_IO; } |
port | 44 | include/asm/io.h | extern inline unsigned int __in##s(unsigned short port) { unsigned int _v; |
port | 50 | include/asm/io.h | __IN1(s) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \ |
port | 51 | include/asm/io.h | __IN1(s##c) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); return _v; } \ |
port | 52 | include/asm/io.h | __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \ |
port | 53 | include/asm/io.h | __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "i" (port) ,##i ); SLOW_DOWN_IO; return _v; } |
port | 56 | include/asm/io.h | extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \ |
port | 58 | include/asm/io.h | : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
port | 61 | include/asm/io.h | extern inline void outs##s(unsigned short port, void * addr, unsigned long count) \ |
port | 63 | include/asm/io.h | : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } |
port | 86 | include/asm/io.h | #define outb(val,port) \ |
port | 87 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 88 | include/asm/io.h | __outbc((val),(port)) : \ |
port | 89 | include/asm/io.h | __outb((val),(port))) |
port | 91 | include/asm/io.h | #define inb(port) \ |
port | 92 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 93 | include/asm/io.h | __inbc(port) : \ |
port | 94 | include/asm/io.h | __inb(port)) |
port | 96 | include/asm/io.h | #define outb_p(val,port) \ |
port | 97 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 98 | include/asm/io.h | __outbc_p((val),(port)) : \ |
port | 99 | include/asm/io.h | __outb_p((val),(port))) |
port | 101 | include/asm/io.h | #define inb_p(port) \ |
port | 102 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 103 | include/asm/io.h | __inbc_p(port) : \ |
port | 104 | include/asm/io.h | __inb_p(port)) |
port | 106 | include/asm/io.h | #define outw(val,port) \ |
port | 107 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 108 | include/asm/io.h | __outwc((val),(port)) : \ |
port | 109 | include/asm/io.h | __outw((val),(port))) |
port | 111 | include/asm/io.h | #define inw(port) \ |
port | 112 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 113 | include/asm/io.h | __inwc(port) : \ |
port | 114 | include/asm/io.h | __inw(port)) |
port | 116 | include/asm/io.h | #define outw_p(val,port) \ |
port | 117 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 118 | include/asm/io.h | __outwc_p((val),(port)) : \ |
port | 119 | include/asm/io.h | __outw_p((val),(port))) |
port | 121 | include/asm/io.h | #define inw_p(port) \ |
port | 122 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 123 | include/asm/io.h | __inwc_p(port) : \ |
port | 124 | include/asm/io.h | __inw_p(port)) |
port | 126 | include/asm/io.h | #define outl(val,port) \ |
port | 127 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 128 | include/asm/io.h | __outlc((val),(port)) : \ |
port | 129 | include/asm/io.h | __outl((val),(port))) |
port | 131 | include/asm/io.h | #define inl(port) \ |
port | 132 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 133 | include/asm/io.h | __inlc(port) : \ |
port | 134 | include/asm/io.h | __inl(port)) |
port | 136 | include/asm/io.h | #define outl_p(val,port) \ |
port | 137 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 138 | include/asm/io.h | __outlc_p((val),(port)) : \ |
port | 139 | include/asm/io.h | __outl_p((val),(port))) |
port | 141 | include/asm/io.h | #define inl_p(port) \ |
port | 142 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 143 | include/asm/io.h | __inlc_p(port) : \ |
port | 144 | include/asm/io.h | __inl_p(port)) |
port | 73 | include/linux/kd.h | unsigned short port; |
port | 70 | include/linux/mcd.h | #define READ_DATA(port, buf, nr) \ |
port | 71 | include/linux/mcd.h | insb(port, buf, nr) |
port | 23 | include/linux/serial.h | int port; |
port | 75 | include/linux/tty.h | int port; |
port | 124 | include/linux/xd.h | static inline u_char xd_waitport (u_short port,u_char flags,u_char mask,u_long timeout); |