tag | line | file | source code |
port | 12 | include/asm/io.h | extern void inline outb(char value, unsigned short port) |
port | 15 | include/asm/io.h | ::"a" ((char) value),"d" ((unsigned short) port)); |
port | 18 | include/asm/io.h | extern void inline outb_p(char value, unsigned short port) |
port | 27 | include/asm/io.h | ::"a" ((char) value),"d" ((unsigned short) port)); |
port | 30 | include/asm/io.h | extern unsigned char inline inb(unsigned short port) |
port | 34 | include/asm/io.h | :"=a" (_v):"d" ((unsigned short) port)); |
port | 38 | include/asm/io.h | extern unsigned char inline inb_p(unsigned short port) |
port | 48 | include/asm/io.h | :"=a" (_v):"d" ((unsigned short) port)); |
port | 74 | include/linux/tty.h | unsigned short port; |
port | 73 | include/sys/kd.h | unsigned short port; |
port | 78 | kernel/blk_drv/floppy.c | #define immoutb_p(val,port) \ |
port | 79 | kernel/blk_drv/floppy.c | __asm__("outb %0,%1\n\tjmp 1f\n1:\tjmp 1f\n1:"::"a" ((char) (val)),"i" (port)) |
port | 80 | kernel/blk_drv/hd.c | #define port_read(port,buf,nr) \ |
port | 81 | kernel/blk_drv/hd.c | __asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di") |
port | 83 | kernel/blk_drv/hd.c | #define port_write(port,buf,nr) \ |
port | 84 | kernel/blk_drv/hd.c | __asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si") |
port | 133 | kernel/blk_drv/hd.c | unsigned short port; |
port | 147 | kernel/blk_drv/hd.c | port=HD_DATA; |
port | 148 | kernel/blk_drv/hd.c | outb_p(hd_info[drive].wpcom>>2,++port); |
port | 149 | kernel/blk_drv/hd.c | outb_p(nsect,++port); |
port | 150 | kernel/blk_drv/hd.c | outb_p(sect,++port); |
port | 151 | kernel/blk_drv/hd.c | outb_p(cyl,++port); |
port | 152 | kernel/blk_drv/hd.c | outb_p(cyl>>8,++port); |
port | 153 | kernel/blk_drv/hd.c | outb_p(0xA0|(drive<<4)|head,++port); |
port | 154 | kernel/blk_drv/hd.c | outb_p(cmd,++port); |
port | 67 | kernel/blk_drv/scsi/7000fasst.c | #define WAIT(port, mask, allof, noneof) \ |
port | 71 | kernel/blk_drv/scsi/7000fasst.c | WAITbits = inb(port) & (mask); \ |
port | 45 | kernel/blk_drv/scsi/aha1542.c | #define WAIT(port, mask, allof, noneof) \ |
port | 49 | kernel/blk_drv/scsi/aha1542.c | WAITbits = inb(port) & (mask); \ |
port | 200 | kernel/blk_drv/scsi/fdomain.c | static unsigned short inline inw( unsigned short port ) |
port | 205 | kernel/blk_drv/scsi/fdomain.c | :"=a" (_v):"d" ((unsigned short) port)); |
port | 209 | kernel/blk_drv/scsi/fdomain.c | static void inline outw( unsigned short value, unsigned short port ) |
port | 213 | kernel/blk_drv/scsi/fdomain.c | "d" ((unsigned short) port)); |
port | 217 | kernel/blk_drv/scsi/fdomain.c | #define inw( port ) \ |
port | 220 | kernel/blk_drv/scsi/fdomain.c | : "=a" (_v) : "d" ((unsigned short) port)); \ |
port | 226 | kernel/blk_drv/scsi/fdomain.c | "d" ((unsigned short) port)) |
port | 232 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
port | 234 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
port | 236 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port) \ |
port | 238 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
port | 255 | kernel/blk_drv/scsi/fdomain.c | static int fdomain_is_valid_port( int port ) |
port | 261 | kernel/blk_drv/scsi/fdomain.c | inb( port + MSB_ID_Code ), inb( port + LSB_ID_Code ) ); |
port | 270 | kernel/blk_drv/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0xe9) { /* test for 0x6127 id */ |
port | 271 | kernel/blk_drv/scsi/fdomain.c | if (inb( port + LSB_ID_Code ) != 0x27) return 0; |
port | 272 | kernel/blk_drv/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x61) return 0; |
port | 274 | kernel/blk_drv/scsi/fdomain.c | if (inb( port + MSB_ID_Code ) != 0x60) return 0; |
port | 284 | kernel/blk_drv/scsi/fdomain.c | options = inb( port + Option_Select ); |
port | 60 | kernel/blk_drv/scsi/ultrastor.h | #define LCL_DOORBELL_MASK(port) ((port) + 0x0) |
port | 61 | kernel/blk_drv/scsi/ultrastor.h | #define LCL_DOORBELL_INTR(port) ((port) + 0x1) |
port | 62 | kernel/blk_drv/scsi/ultrastor.h | #define SYS_DOORBELL_MASK(port) ((port) + 0x2) |
port | 63 | kernel/blk_drv/scsi/ultrastor.h | #define SYS_DOORBELL_INTR(port) ((port) + 0x3) |
port | 64 | kernel/blk_drv/scsi/ultrastor.h | #define PRODUCT_ID(port) ((port) + 0x4) |
port | 65 | kernel/blk_drv/scsi/ultrastor.h | #define CONFIG(port) ((port) + 0x6) |
port | 66 | kernel/blk_drv/scsi/ultrastor.h | #define OGM_DATA_PTR(port) ((port) + 0x8) |
port | 67 | kernel/blk_drv/scsi/ultrastor.h | #define ICM_DATA_PTR(port) ((port) + 0xC) |
port | 37 | kernel/chr_drv/serial.c | unsigned short port; |
port | 43 | kernel/chr_drv/serial.c | if (!(port = info->port)) |
port | 45 | kernel/chr_drv/serial.c | port += 3; |
port | 48 | kernel/chr_drv/serial.c | outb_p(inb_p(port) | 0x40,port); |
port | 50 | kernel/chr_drv/serial.c | outb_p(inb_p(port) & 0xbf,port); |
port | 64 | kernel/chr_drv/serial.c | unsigned short port = info->port; |
port | 72 | kernel/chr_drv/serial.c | while (inb_p(info->port+5) & 0x20) { |
port | 78 | kernel/chr_drv/serial.c | outb(c,port); |
port | 91 | kernel/chr_drv/serial.c | unsigned short port = info->port; |
port | 98 | kernel/chr_drv/serial.c | queue->buf[head] = inb(port); |
port | 103 | kernel/chr_drv/serial.c | } while (inb(port+5) & 1); |
port | 110 | kernel/chr_drv/serial.c | unsigned char status = inb(info->port+5); |
port | 117 | kernel/chr_drv/serial.c | unsigned char status = inb(info->port+6); |
port | 142 | kernel/chr_drv/serial.c | if (!info || !info->tty || !info->port) |
port | 145 | kernel/chr_drv/serial.c | ident = inb(info->port+2) & 7; |
port | 161 | kernel/chr_drv/serial.c | if (!info->tty || !info->port) |
port | 242 | kernel/chr_drv/serial.c | unsigned short port = info->port; |
port | 244 | kernel/chr_drv/serial.c | if (inb(port+5) == 0xff) { |
port | 249 | kernel/chr_drv/serial.c | scratch = inb(port+7); |
port | 250 | kernel/chr_drv/serial.c | outb_p(0xa5, port+7); |
port | 251 | kernel/chr_drv/serial.c | status1 = inb(port+7); |
port | 252 | kernel/chr_drv/serial.c | outb_p(0x5a, port+7); |
port | 253 | kernel/chr_drv/serial.c | status2 = inb(port+7); |
port | 255 | kernel/chr_drv/serial.c | outb_p(scratch, port+7); |
port | 256 | kernel/chr_drv/serial.c | outb_p(0x01, port+2); |
port | 257 | kernel/chr_drv/serial.c | scratch = inb(port+2) >> 6; |
port | 267 | kernel/chr_drv/serial.c | outb_p(0x00, port+2); |
port | 271 | kernel/chr_drv/serial.c | outb_p(0xc7, port+2); |
port | 276 | kernel/chr_drv/serial.c | outb_p(0x80,port+3); /* set DLAB of line control reg */ |
port | 277 | kernel/chr_drv/serial.c | outb_p(0x30,port); /* LS of divisor (48 -> 2400 bps) */ |
port | 278 | kernel/chr_drv/serial.c | outb_p(0x00,port+1); /* MS of divisor */ |
port | 279 | kernel/chr_drv/serial.c | outb_p(0x03,port+3); /* reset DLAB */ |
port | 280 | kernel/chr_drv/serial.c | outb_p(0x00,port+4); /* reset DTR,RTS, OUT_2 */ |
port | 281 | kernel/chr_drv/serial.c | outb_p(0x00,port+1); /* disable all intrs */ |
port | 282 | kernel/chr_drv/serial.c | (void)inb(port); /* read data port to reset things (?) */ |
port | 293 | kernel/chr_drv/serial.c | if (!info->port) |
port | 295 | kernel/chr_drv/serial.c | outb(0x00,info->port+4); /* reset DTR, RTS, */ |
port | 302 | kernel/chr_drv/serial.c | static void startup(unsigned short port) |
port | 306 | kernel/chr_drv/serial.c | outb_p(0x03,port+3); /* reset DLAB */ |
port | 307 | kernel/chr_drv/serial.c | outb_p(0x0b,port+4); /* set DTR,RTS, OUT_2 */ |
port | 308 | kernel/chr_drv/serial.c | outb_p(0x0f,port+1); /* enable all intrs */ |
port | 309 | kernel/chr_drv/serial.c | inb_p(port+2); |
port | 310 | kernel/chr_drv/serial.c | inb_p(port+6); |
port | 311 | kernel/chr_drv/serial.c | inb_p(port+2); |
port | 312 | kernel/chr_drv/serial.c | inb_p(port+5); |
port | 314 | kernel/chr_drv/serial.c | inb_p(port+0); |
port | 315 | kernel/chr_drv/serial.c | if (!(inb_p(port+5) & 1)) |
port | 318 | kernel/chr_drv/serial.c | inb_p(port+2); |
port | 319 | kernel/chr_drv/serial.c | inb_p(port+5); |
port | 325 | kernel/chr_drv/serial.c | unsigned short port,quot; |
port | 337 | kernel/chr_drv/serial.c | if (!(port = info->port)) |
port | 341 | kernel/chr_drv/serial.c | outb(0x00,port+4); |
port | 342 | kernel/chr_drv/serial.c | else if (!inb(port+4)) |
port | 343 | kernel/chr_drv/serial.c | startup(port); |
port | 352 | kernel/chr_drv/serial.c | outb_p(cval | 0x80,port+3); /* set DLAB */ |
port | 353 | kernel/chr_drv/serial.c | outb_p(quot & 0xff,port); /* LS of divisor */ |
port | 354 | kernel/chr_drv/serial.c | outb_p(quot >> 8,port+1); /* MS of divisor */ |
port | 355 | kernel/chr_drv/serial.c | outb(cval,port+3); /* reset DLAB */ |
port | 371 | kernel/chr_drv/serial.c | unsigned short port; |
port | 381 | kernel/chr_drv/serial.c | if (!(port = info->port)) |
port | 388 | kernel/chr_drv/serial.c | startup(port); |
port | 418 | kernel/chr_drv/serial.c | if (!(new_port = tmp.port)) |
port | 419 | kernel/chr_drv/serial.c | new_port = info->port; |
port | 437 | kernel/chr_drv/serial.c | if (new_port != info->port) { |
port | 438 | kernel/chr_drv/serial.c | outb(0x00,info->port+4); /* reset DTR, RTS, */ |
port | 439 | kernel/chr_drv/serial.c | info->port = new_port; |
port | 475 | kernel/chr_drv/serial.c | printk("serial port at 0x%04x (irq = %d)",info->port,info->irq); |