tag | line | file | source code |
port | 88 | drivers/block/hd.c | #define port_read(port,buf,nr) \ |
port | 89 | drivers/block/hd.c | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
port | 91 | drivers/block/hd.c | #define port_write(port,buf,nr) \ |
port | 92 | drivers/block/hd.c | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
port | 191 | drivers/block/hd.c | unsigned short port; |
port | 207 | drivers/block/hd.c | port=HD_DATA; |
port | 208 | drivers/block/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
port | 209 | drivers/block/hd.c | outb_p(nsect,++port); |
port | 210 | drivers/block/hd.c | outb_p(sect,++port); |
port | 211 | drivers/block/hd.c | outb_p(cyl,++port); |
port | 212 | drivers/block/hd.c | outb_p(cyl>>8,++port); |
port | 213 | drivers/block/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
port | 214 | 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 | 138 | drivers/char/serial.c | #define C_P(card,port) (((card)<<6|(port)<<3) + 1) |
port | 210 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 211 | drivers/char/serial.c | return inb(info->port+1); |
port | 213 | drivers/char/serial.c | return inb(info->port + offset); |
port | 219 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 220 | drivers/char/serial.c | return inb_p(info->port+1); |
port | 222 | drivers/char/serial.c | return inb_p(info->port + offset); |
port | 228 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 229 | drivers/char/serial.c | outb(value, info->port+1); |
port | 231 | drivers/char/serial.c | outb(value, info->port+offset); |
port | 238 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
port | 239 | drivers/char/serial.c | outb_p(value, info->port+1); |
port | 241 | drivers/char/serial.c | outb_p(value, info->port+offset); |
port | 781 | drivers/char/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
port | 822 | drivers/char/serial.c | (void) inb((info->port & 0xFE0) | 0x01F); |
port | 844 | drivers/char/serial.c | unsigned short port; |
port | 855 | drivers/char/serial.c | if (!(port = info->port)) |
port | 1032 | drivers/char/serial.c | tmp.port = info->port; |
port | 1058 | drivers/char/serial.c | change_port = (new_serial.port != info->port) || (new_serial.hub6 != info->hub6); |
port | 1071 | drivers/char/serial.c | new_serial.port = 0; /* Prevent initialization below */ |
port | 1078 | drivers/char/serial.c | if ((new_serial.irq > 15) || (new_serial.port > 0xffff) || |
port | 1086 | drivers/char/serial.c | (rs_table[i].port == new_serial.port) && rs_table[i].type) |
port | 1094 | drivers/char/serial.c | if (new_serial.port && new_serial.type && new_serial.irq && |
port | 1134 | drivers/char/serial.c | info->port = new_serial.port; |
port | 1139 | drivers/char/serial.c | if (info->port && info->type && |
port | 1233 | drivers/char/serial.c | if (info->port && info->type) { |
port | 1256 | drivers/char/serial.c | if (!info->port) |
port | 1610 | drivers/char/serial.c | if (!info->port || !info->type) { |
port | 1695 | drivers/char/serial.c | unsigned short ICP=0, port = info->port; |
port | 1708 | drivers/char/serial.c | ICP = (port & 0xFE0) | 0x01F; |
port | 1749 | drivers/char/serial.c | unsigned port = info->port; |
port | 1755 | drivers/char/serial.c | if (!port) |
port | 1789 | drivers/char/serial.c | unsigned port = info->port; |
port | 1794 | drivers/char/serial.c | if (!port) |
port | 1920 | drivers/char/serial.c | info->port, info->irq); |
port | 283 | drivers/net/3c507.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x280, 0}; |
port | 302 | drivers/net/3c507.c | for (port = &ports[0]; *port; port++) { |
port | 303 | drivers/net/3c507.c | short ioaddr = *port; |
port | 308 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
port | 319 | drivers/net/3c507.c | && el16_probe1(dev, *port) == 0) |
port | 41 | drivers/net/3c509.c | #define port_read_l(port,buf,nr) \ |
port | 42 | drivers/net/3c509.c | __asm__("cld;rep;insl": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
port | 43 | drivers/net/3c509.c | #define port_write_l(port,buf,nr) \ |
port | 44 | drivers/net/3c509.c | __asm__("cld;rep;outsl": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
port | 137 | drivers/net/at1700.c | short *port, base_addr = dev->base_addr; |
port | 144 | drivers/net/at1700.c | for (port = &ports[0]; *port; port++) { |
port | 145 | drivers/net/at1700.c | int ioaddr = *port; |
port | 315 | drivers/net/eexpress.c | int *port, ports[] = {0x300, 0x270, 0x320, 0x340, 0}; |
port | 323 | drivers/net/eexpress.c | for (port = &ports[0]; *port; port++) { |
port | 324 | drivers/net/eexpress.c | short id_addr = *port + ID_PORT; |
port | 337 | drivers/net/eexpress.c | && eexp_probe1(dev, *port) == 0) |
port | 65 | drivers/net/hp.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240, 0}; |
port | 73 | drivers/net/hp.c | for (port = &ports[0]; *port; port++) { |
port | 75 | drivers/net/hp.c | if (check_region(*port, 32)) |
port | 78 | drivers/net/hp.c | if (inb_p(*port) != 0xff && hpprobe1(*port, dev)) { |
port | 22 | drivers/net/iow.h | extern inline void __outw(unsigned short value, unsigned short port) |
port | 26 | drivers/net/iow.h | :"a" (value),"d" (port)); |
port | 30 | drivers/net/iow.h | extern inline void __outwc(unsigned short value, unsigned short port) |
port | 34 | drivers/net/iow.h | :"a" (value),"i" (port)); |
port | 38 | drivers/net/iow.h | extern inline unsigned int __inw(unsigned short port) |
port | 42 | drivers/net/iow.h | :"=a" (_v):"d" (port),"0" (0)); |
port | 47 | drivers/net/iow.h | extern inline unsigned int __inwc(unsigned short port) |
port | 51 | drivers/net/iow.h | :"=a" (_v):"i" (port),"0" (0)); |
port | 55 | drivers/net/iow.h | extern inline void __outw_p(unsigned short value, unsigned short port) |
port | 59 | drivers/net/iow.h | :"a" (value),"d" (port)); |
port | 63 | drivers/net/iow.h | extern inline void __outwc_p(unsigned short value, unsigned short port) |
port | 67 | drivers/net/iow.h | :"a" (value),"i" (port)); |
port | 71 | drivers/net/iow.h | extern inline unsigned int __inw_p(unsigned short port) |
port | 75 | drivers/net/iow.h | :"=a" (_v):"d" (port),"0" (0)); |
port | 80 | drivers/net/iow.h | extern inline unsigned int __inwc_p(unsigned short port) |
port | 84 | drivers/net/iow.h | :"=a" (_v):"i" (port),"0" (0)); |
port | 94 | drivers/net/iow.h | #define outw(val,port) \ |
port | 95 | drivers/net/iow.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 96 | drivers/net/iow.h | __outwc((val),(port)) : \ |
port | 97 | drivers/net/iow.h | __outw((val),(port))) |
port | 99 | drivers/net/iow.h | #define inw(port) \ |
port | 100 | drivers/net/iow.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 101 | drivers/net/iow.h | __inwc(port) : \ |
port | 102 | drivers/net/iow.h | __inw(port)) |
port | 104 | drivers/net/iow.h | #define outw_p(val,port) \ |
port | 105 | drivers/net/iow.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 106 | drivers/net/iow.h | __outwc_p((val),(port)) : \ |
port | 107 | drivers/net/iow.h | __outw_p((val),(port))) |
port | 109 | drivers/net/iow.h | #define inw_p(port) \ |
port | 110 | drivers/net/iow.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 111 | drivers/net/iow.h | __inwc_p(port) : \ |
port | 112 | drivers/net/iow.h | __inw_p(port)) |
port | 118 | drivers/net/iow.h | #define port_read(port,buf,nr) \ |
port | 119 | drivers/net/iow.h | __asm__("cld;rep;insw": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
port | 120 | drivers/net/iow.h | #define port_write(port,buf,nr) \ |
port | 121 | drivers/net/iow.h | __asm__("cld;rep;outsw": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
port | 123 | drivers/net/iow.h | #define port_read_b(port,buf,nr) \ |
port | 124 | drivers/net/iow.h | __asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
port | 125 | drivers/net/iow.h | #define port_write_b(port,buf,nr) \ |
port | 126 | drivers/net/iow.h | __asm__("cld;rep;outsb": :"d" (port),"S" (buf),"c" (nr):"cx","si") |
port | 225 | drivers/net/lance.c | int *port, ports[] = {0x300, 0x320, 0x340, 0x360, 0}; |
port | 228 | drivers/net/lance.c | for (port = &ports[0]; *port; port++) { |
port | 229 | drivers/net/lance.c | int ioaddr = *port; |
port | 78 | drivers/net/ne.c | int *port, ports[] = {0x300, 0x280, 0x320, 0x340, 0x360, 0}; |
port | 86 | drivers/net/ne.c | for (port = &ports[0]; *port; port++) { |
port | 88 | drivers/net/ne.c | if (check_region(*port, 32)) |
port | 91 | drivers/net/ne.c | if (inb_p(*port) != 0xff && neprobe1(*port, dev, 0)) { |
port | 92 | drivers/net/ne.c | dev->base_addr = *port; |
port | 134 | drivers/net/skeleton.c | int *port, ports[] = {0x300, 0x280, 0}; |
port | 142 | drivers/net/skeleton.c | for (port = &ports[0]; *port; port++) { |
port | 143 | drivers/net/skeleton.c | int ioaddr = *port; |
port | 62 | drivers/net/smc-ultra.c | int *port, ports[] = {0x200, 0x220, 0x240, 0x280, 0x300, 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 | 338 | drivers/scsi/aha152x.c | #define insw( buf, count, port ) \ |
port | 340 | drivers/scsi/aha152x.c | ("cld;rep;insw": :"d" (port),"D" (buf),"c" (count):"cx","di" ) |
port | 342 | drivers/scsi/aha152x.c | #define outsw( buf, count, port ) \ |
port | 344 | drivers/scsi/aha152x.c | ("cld;rep;outsw": :"d" (port),"S" (buf),"c" (count):"cx","si") |
port | 288 | drivers/scsi/aha152x.h | unsigned short port; |
port | 300 | drivers/scsi/aha152x.h | #define cf_port port |
port | 75 | drivers/scsi/aha1542.c | #define WAIT(port, mask, allof, noneof) \ |
port | 79 | drivers/scsi/aha1542.c | WAITbits = inb(port) & (mask); \ |
port | 330 | drivers/scsi/fdomain.c | inline static unsigned short inw( unsigned short port ) |
port | 335 | drivers/scsi/fdomain.c | :"=a" (_v):"d" ((unsigned short) port) ); |
port | 339 | drivers/scsi/fdomain.c | inline static void outw( unsigned short value, unsigned short port ) |
port | 343 | drivers/scsi/fdomain.c | "d" ((unsigned short) port) ); |
port | 349 | drivers/scsi/fdomain.c | #define insw( buf, count, port ) \ |
port | 351 | drivers/scsi/fdomain.c | ("cld;rep;insw": :"d" (port),"D" (buf),"c" (count):"cx","di" ) |
port | 353 | drivers/scsi/fdomain.c | #define outsw( buf, count, port ) \ |
port | 355 | drivers/scsi/fdomain.c | ("cld;rep;outsw": :"d" (port),"S" (buf),"c" (count):"cx","si") |
port | 392 | drivers/scsi/fdomain.c | static int fdomain_is_valid_port( int port ) |
port | 398 | drivers/scsi/fdomain.c | inb( port + MSB_ID_Code ), inb( port + LSB_ID_Code ) ); |
port | 407 | drivers/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0xe9) { /* test for 0x6127 id */ |
port | 408 | drivers/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0x27) return 0; |
port | 409 | drivers/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x61) return 0; |
port | 412 | drivers/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x60) return 0; |
port | 422 | 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 | 305 | drivers/scsi/ultrastor.c | static inline void outl(unsigned int value, unsigned short port) |
port | 308 | drivers/scsi/ultrastor.c | : :"a" (value),"d" ((unsigned short) port)); |
port | 311 | drivers/scsi/ultrastor.c | static inline unsigned int inl(unsigned short port) |
port | 315 | drivers/scsi/ultrastor.c | :"=a" (_v):"d" ((unsigned short) port),"0" (0)); |
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 char port, unsigned char value) |
port | 57 | drivers/sound/sb_mixer.c | OUTB (port, MIXER_ADDR); /* Select register */ |
port | 65 | drivers/sound/sb_mixer.c | sb_getmixer (unsigned char port) |
port | 71 | drivers/sound/sb_mixer.c | OUTB (port, MIXER_ADDR); /* Select register */ |
port | 119 | drivers/sound/sound_calls.h | void sb_setmixer (unsigned char port, unsigned char value); |
port | 120 | drivers/sound/sound_calls.h | int sb_getmixer (unsigned char port); |
port | 28 | include/asm/io.h | extern inline void __outb(unsigned char value, unsigned short port) |
port | 32 | include/asm/io.h | :"a" (value),"d" (port)); |
port | 36 | include/asm/io.h | extern inline void __outbc(unsigned char value, unsigned short port) |
port | 40 | include/asm/io.h | :"a" (value),"i" (port)); |
port | 44 | include/asm/io.h | extern inline unsigned int __inb(unsigned short port) |
port | 48 | include/asm/io.h | :"=a" (_v):"d" (port),"0" (0)); |
port | 53 | include/asm/io.h | extern inline unsigned int __inbc(unsigned short port) |
port | 57 | include/asm/io.h | :"=a" (_v):"i" (port),"0" (0)); |
port | 61 | include/asm/io.h | extern inline void __outb_p(unsigned char value, unsigned short port) |
port | 65 | include/asm/io.h | :"a" (value),"d" (port)); |
port | 69 | include/asm/io.h | extern inline void __outbc_p(unsigned char value, unsigned short port) |
port | 73 | include/asm/io.h | :"a" (value),"i" (port)); |
port | 77 | include/asm/io.h | extern inline unsigned int __inb_p(unsigned short port) |
port | 81 | include/asm/io.h | :"=a" (_v):"d" (port),"0" (0)); |
port | 86 | include/asm/io.h | extern inline unsigned int __inbc_p(unsigned short port) |
port | 90 | include/asm/io.h | :"=a" (_v):"i" (port),"0" (0)); |
port | 100 | include/asm/io.h | #define outb(val,port) \ |
port | 101 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 102 | include/asm/io.h | __outbc((val),(port)) : \ |
port | 103 | include/asm/io.h | __outb((val),(port))) |
port | 105 | include/asm/io.h | #define inb(port) \ |
port | 106 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 107 | include/asm/io.h | __inbc(port) : \ |
port | 108 | include/asm/io.h | __inb(port)) |
port | 110 | include/asm/io.h | #define outb_p(val,port) \ |
port | 111 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 112 | include/asm/io.h | __outbc_p((val),(port)) : \ |
port | 113 | include/asm/io.h | __outb_p((val),(port))) |
port | 115 | include/asm/io.h | #define inb_p(port) \ |
port | 116 | include/asm/io.h | ((__builtin_constant_p((port)) && (port) < 256) ? \ |
port | 117 | include/asm/io.h | __inbc_p(port) : \ |
port | 118 | include/asm/io.h | __inb_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 | __asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","di") |
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); |