/linux-4.1.27/drivers/scsi/ |
H A D | pas16.c | 110 unsigned short io_port; member in struct:override 123 unsigned short io_port; member in struct:base 197 init_board( unsigned short io_port, int irq, int force_irq ) init_board() argument 204 outb( 0x30, io_port + P_TIMEOUT_COUNTER_REG ); /* Timeout counter */ init_board() 205 outb( 0x01, io_port + P_TIMEOUT_STATUS_REG_OFFSET ); /* Reset TC */ init_board() 206 outb( 0x01, io_port + WAIT_STATE ); /* 1 Wait state */ init_board() 214 tmp = inb( io_port + IO_CONFIG_3 ); init_board() 222 outb( 0x4d, io_port + SYS_CONFIG_4 ); init_board() 227 outb( tmp, io_port + IO_CONFIG_3 ); init_board() 230 outb( 0x6d, io_port + SYS_CONFIG_4 ); init_board() 249 unsigned short io_port = bases[ board_num ].io_port; pas16_hw_detect() local 258 enable_board( board_num, io_port ); pas16_hw_detect() 261 board_rev = inb( io_port + PCB_CONFIG ); pas16_hw_detect() 268 outb( tmp, io_port + PCB_CONFIG ); pas16_hw_detect() 269 tmp = inb( io_port + PCB_CONFIG ); pas16_hw_detect() 270 outb( board_rev, io_port + PCB_CONFIG ); pas16_hw_detect() 275 if( ( inb( io_port + OPERATION_MODE_1 ) & 0x03 ) != 0x03 ) pas16_hw_detect() 283 outb( 0x01, io_port + WAIT_STATE ); /* 1 Wait state */ pas16_hw_detect() 314 printk("pas16_setup : usage pas16=io_port,irq\n"); pas16_setup() 317 overrides[commandline_current].io_port = (unsigned short) ints[1]; pas16_setup() 320 if (bases[i].io_port == (unsigned short) ints[1]) { pas16_setup() 350 unsigned short io_port; pas16_detect() local 354 overrides[0].io_port = pas16_addr; pas16_detect() 361 if (bases[count].io_port == pas16_addr) { pas16_detect() 370 io_port = 0; pas16_detect() 372 if (overrides[current_override].io_port) pas16_detect() 374 io_port = overrides[current_override].io_port; pas16_detect() 375 enable_board( current_override, io_port ); pas16_detect() 376 init_board( io_port, overrides[current_override].irq, 1 ); pas16_detect() 379 for (; !io_port && (current_base < NO_BASES); ++current_base) { pas16_detect() 381 printk("scsi-pas16 : probing io_port %04x\n", (unsigned int) bases[current_base].io_port); pas16_detect() 385 io_port = bases[current_base].io_port; pas16_detect() 386 init_board( io_port, default_irqs[ current_base ], 0 ); pas16_detect() 395 printk("scsi-pas16 : io_port = %04x\n", (unsigned int) io_port); pas16_detect() 398 if (!io_port) pas16_detect() 405 instance->io_port = io_port; pas16_detect() 430 outb( 0x4d, io_port + SYS_CONFIG_4 ); pas16_detect() 431 outb( (inb(io_port + IO_CONFIG_3) & 0x0f), io_port + IO_CONFIG_3 ); pas16_detect() 498 register unsigned short reg = (unsigned short) (instance->io_port + NCR5380_pread() 504 while ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) ) NCR5380_pread() 509 if ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { NCR5380_pread() 510 outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); NCR5380_pread() 536 register unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET); NCR5380_pwrite() 541 while ( !((inb(instance->io_port + P_STATUS_REG_OFFSET)) & P_ST_RDY) ) NCR5380_pwrite() 546 if (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { NCR5380_pwrite() 547 outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); NCR5380_pwrite() 564 if (shost->io_port && shost->n_io_port) pas16_release() 565 release_region(shost->io_port, shost->n_io_port); pas16_release()
|
H A D | aha1542.c | 191 if (inb(STATUS(sh->io_port)) == 0xff) aha1542_test_port() 197 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ aha1542_test_port() 199 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); aha1542_test_port() 204 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) aha1542_test_port() 208 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) aha1542_test_port() 214 aha1542_outb(sh->io_port, CMD_INQUIRY); aha1542_test_port() 217 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) aha1542_test_port() 219 inquiry_result[i] = inb(DATA(sh->io_port)); aha1542_test_port() 223 if (inb(STATUS(sh->io_port)) & DF) aha1542_test_port() 227 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0)) aha1542_test_port() 231 outb(IRST, CONTROL(sh->io_port)); aha1542_test_port() 251 flag = inb(INTRFLAGS(sh->io_port)); aha1542_interrupt() 263 printk("status %02x\n", inb(STATUS(sh->io_port))); aha1542_interrupt() 270 flag = inb(INTRFLAGS(sh->io_port)); aha1542_interrupt() 284 aha1542_intr_reset(sh->io_port); aha1542_interrupt() 483 aha1542_outb(cmd->device->host->io_port, CMD_START_SCSI); 503 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ setup_mailboxes() 505 if (aha1542_out(sh->io_port, mb_cmd, 5)) setup_mailboxes() 507 aha1542_intr_reset(sh->io_port); setup_mailboxes() 514 i = inb(STATUS(sh->io_port)); aha1542_getconfig() 516 i = inb(DATA(sh->io_port)); aha1542_getconfig() 518 aha1542_outb(sh->io_port, CMD_RETCONF); aha1542_getconfig() 519 aha1542_in(sh->io_port, inquiry_result, 3, 0); aha1542_getconfig() 520 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) aha1542_getconfig() 522 aha1542_intr_reset(sh->io_port); aha1542_getconfig() 583 aha1542_outb(sh->io_port, CMD_EXTBIOS); aha1542_mbenable() 584 if (aha1542_in(sh->io_port, mbenable_result, 2, 100)) aha1542_mbenable() 586 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 100)) aha1542_mbenable() 588 aha1542_intr_reset(sh->io_port); aha1542_mbenable() 598 if (aha1542_out(sh->io_port, mbenable_cmd, 3)) aha1542_mbenable() 605 aha1542_intr_reset(sh->io_port); aha1542_mbenable() 615 i = inb(STATUS(sh->io_port)); aha1542_query() 617 i = inb(DATA(sh->io_port)); aha1542_query() 619 aha1542_outb(sh->io_port, CMD_INQUIRY); aha1542_query() 620 aha1542_in(sh->io_port, inquiry_result, 4, 0); aha1542_query() 621 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) aha1542_query() 623 aha1542_intr_reset(sh->io_port); aha1542_query() 670 aha1542_intr_reset(sh->io_port); aha1542_set_bus_times() 671 if (aha1542_out(sh->io_port, oncmd, 2)) aha1542_set_bus_times() 678 aha1542_intr_reset(sh->io_port); aha1542_set_bus_times() 679 if (aha1542_out(sh->io_port, offcmd, 2)) aha1542_set_bus_times() 686 aha1542_intr_reset(sh->io_port); aha1542_set_bus_times() 687 if (aha1542_out(sh->io_port, dmacmd, 2)) aha1542_set_bus_times() 690 aha1542_intr_reset(sh->io_port); aha1542_set_bus_times() 694 aha1542_intr_reset(sh->io_port); aha1542_set_bus_times() 717 sh->io_port = base_io; aha1542_hw_init() 781 if (sh->io_port && sh->n_io_port) aha1542_release() 782 release_region(sh->io_port, sh->n_io_port); aha1542_release() 840 aha1542_outb(sh->io_port, CMD_START_SCSI); aha1542_dev_reset() 863 outb(reset_cmd, CONTROL(cmd->device->host->io_port)); aha1542_reset() 865 if (!wait_mask(STATUS(cmd->device->host->io_port), aha1542_reset()
|
H A D | pas16.h | 113 volatile unsigned short io_port 116 volatile unsigned short io_port 119 io_port = (instance)->io_port 121 #define PAS16_io_port(reg) ( io_port + pas16_offset[(reg)] ) 128 (((unsigned char) printk("scsi%d : read register %d at io_port %04x\n"\ 132 (printk("scsi%d : write %02x to register %d at io_port %04x\n", \
|
H A D | zalon.c | 92 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET; zalon_probe() local 122 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */ zalon_probe() 123 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */ zalon_probe() 124 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */ zalon_probe() 131 device.slot.base_v = io_port; zalon_probe()
|
H A D | dmx3191d.c | 44 #define NCR5380_setup(instance) port = instance->io_port 93 shost->io_port = io; dmx3191d_probe_one() 127 release_region(shost->io_port, DMX3191D_REGION_LEN); dmx3191d_remove_one()
|
H A D | u14-34f.c | 14 * addr,... io_port=addr,... 25 * modprobe u14-34f io_port=0x340,0x330 linked_comm=1 tag_mode=0 \ 136 * io_port is now unsigned long. 296 * the io_port[] array. 366 * modprobe u14-34f io_port=0x230,0x340 linked_comm=1 have_old_firmware=0 \ 617 static unsigned long io_port[] = { variable 763 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { board_inquiry() 771 outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); board_inquiry() 774 outl(H2DEV(cpp->cp_dma_addr), sh[j]->io_port + REG_OGM); board_inquiry() 777 outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); board_inquiry() 899 sh[j]->io_port = port_base; port_detect() 913 sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); port_detect() 914 lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); port_detect() 923 if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); port_detect() 1005 BN(j), bus_type, (unsigned long)sh[j]->io_port, (int)sh[j]->base, port_detect() 1041 for (i = 0; i < argc; i++) io_port[i] = ints[i + 1]; internal_setup() 1043 io_port[i] = 0; internal_setup() 1092 /* io_port could have been modified when loading as a module */ u14_34f_detect() 1093 if(io_port[0] != SKIP) { u14_34f_detect() 1095 io_port[MAX_INT_PARAM] = 0; u14_34f_detect() 1101 for (k = 0; io_port[k]; k++) { u14_34f_detect() 1103 if (io_port[k] == SKIP) continue; u14_34f_detect() 1105 if (j < MAX_BOARDS && port_detect(io_port[k], j, tpnt)) j++; u14_34f_detect() 1313 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { u14_34f_queuecommand_lck() 1322 outl(H2DEV(cpp->cp_dma_addr), sh[j]->io_port + REG_OGM); u14_34f_queuecommand_lck() 1325 outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); u14_34f_queuecommand_lck() 1349 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { u14_34f_eh_abort() 1366 if (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) u14_34f_eh_abort() 1415 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { u14_34f_eh_host_reset() 1464 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { u14_34f_eh_host_reset() 1470 outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); u14_34f_eh_host_reset() 1702 if (wait_on_busy(sh[j]->io_port, MAXLOOP)) { flush_dev() 1711 outl(H2DEV(cpp->cp_dma_addr), sh[j]->io_port + REG_OGM); flush_dev() 1712 outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); flush_dev() 1726 if (!((reg = inb(sh[j]->io_port + REG_SYS_INTR)) & IRQ_ASSERTED)) goto none; ihdlr() 1734 if (wait_on_busy(sh[j]->io_port, 20 * MAXLOOP)) { ihdlr() 1735 outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); ihdlr() 1741 ret = inl(sh[j]->io_port + REG_ICM); ihdlr() 1744 outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); ihdlr() 1962 release_region(sh[j]->io_port, sh[j]->n_io_port); u14_34f_release()
|
H A D | aha152x.c | 739 shpnt->io_port = setup->io_port; aha152x_probe_one() 744 HOSTIOPORT0 = setup->io_port; aha152x_probe_one() 745 HOSTIOPORT1 = setup->io_port; aha152x_probe_one() 747 HOSTIOPORT0 = setup->io_port+0x10; aha152x_probe_one() 748 HOSTIOPORT1 = setup->io_port-0x10; aha152x_probe_one() 786 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, aha152x_probe_one() 865 if (shpnt->io_port) aha152x_release() 866 release_region(shpnt->io_port, IO_RANGE); aha152x_release() 2828 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); aha152x_show_info() 2998 static int aha152x_porttest(int io_port) aha152x_porttest() argument 3002 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ aha152x_porttest() 3004 SETPORT(io_port + O_STACK, i); aha152x_porttest() 3006 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ aha152x_porttest() 3007 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) aha152x_porttest() 3013 static int tc1550_porttest(int io_port) tc1550_porttest() argument 3017 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ tc1550_porttest() 3019 SETPORT(io_port + O_STACK, i); tc1550_porttest() 3021 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ tc1550_porttest() 3022 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) tc1550_porttest() 3032 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) checksetup() 3038 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { checksetup() 3039 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); checksetup() 3043 if( aha152x_porttest(setup->io_port) ) { checksetup() 3045 } else if( tc1550_porttest(setup->io_port) ) { checksetup() 3048 release_region(setup->io_port, IO_RANGE); checksetup() 3052 release_region(setup->io_port, IO_RANGE); checksetup() 3103 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { aha152x_init() 3106 override.io_port, aha152x_init() 3124 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { aha152x_init() 3127 override.io_port, aha152x_init() 3145 setup[setup_count].io_port = aha152x[0]; aha152x_init() 3154 if(io[0]!=0) setup[setup_count].io_port = io[0]; aha152x_init() 3169 setup[setup_count].io_port, aha152x_init() 3182 setup[setup_count].io_port = aha152x1[0]; aha152x_init() 3191 if(io[1]!=0) setup[setup_count].io_port = io[1]; aha152x_init() 3205 setup[setup_count].io_port, aha152x_init() 3233 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { aha152x_init() 3238 setup[setup_count].io_port = pnp_port_start(dev, 0); aha152x_init() 3251 setup[setup_count].io_port, setup[setup_count].irq); aha152x_init() 3280 if ((setup_count == 1) && (setup[0].io_port == ports[i])) aha152x_init() 3306 setup[setup_count].io_port = ports[i]; aha152x_init() 3326 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { aha152x_init() 3330 release_region(setup[i].io_port, IO_RANGE); aha152x_init() 3338 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); aha152x_init() 3377 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; aha152x_setup()
|
H A D | dc395x.c | 3939 * @io_port: base I/O address 3941 static void trms1040_wait_30us(unsigned long io_port) trms1040_wait_30us() argument 3944 outb(5, io_port + TRM_S1040_GEN_TIMER); trms1040_wait_30us() 3945 while (!(inb(io_port + TRM_S1040_GEN_STATUS) & GTIMEOUT)) trms1040_wait_30us() 3954 * @io_port: base I/O address 3958 static void trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) trms1040_write_cmd() argument 3969 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); trms1040_write_cmd() 3970 trms1040_wait_30us(io_port); trms1040_write_cmd() 3972 io_port + TRM_S1040_GEN_NVRAM); trms1040_write_cmd() 3973 trms1040_wait_30us(io_port); trms1040_write_cmd() 3982 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); trms1040_write_cmd() 3983 trms1040_wait_30us(io_port); trms1040_write_cmd() 3985 io_port + TRM_S1040_GEN_NVRAM); trms1040_write_cmd() 3986 trms1040_wait_30us(io_port); trms1040_write_cmd() 3988 outb(NVR_SELECT, io_port + TRM_S1040_GEN_NVRAM); trms1040_write_cmd() 3989 trms1040_wait_30us(io_port); trms1040_write_cmd() 3999 * @io_port: base I/O address 4003 static void trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) trms1040_set_data() argument 4009 trms1040_write_cmd(io_port, 0x05, addr); trms1040_set_data() 4017 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4018 trms1040_wait_30us(io_port); trms1040_set_data() 4019 outb((send_data | NVR_CLOCK), io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4020 trms1040_wait_30us(io_port); trms1040_set_data() 4022 outb(NVR_SELECT, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4023 trms1040_wait_30us(io_port); trms1040_set_data() 4026 outb(0, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4027 trms1040_wait_30us(io_port); trms1040_set_data() 4029 outb(NVR_SELECT, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4030 trms1040_wait_30us(io_port); trms1040_set_data() 4034 outb((NVR_SELECT | NVR_CLOCK), io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4035 trms1040_wait_30us(io_port); trms1040_set_data() 4037 outb(NVR_SELECT, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4038 trms1040_wait_30us(io_port); trms1040_set_data() 4040 if (inb(io_port + TRM_S1040_GEN_NVRAM) & NVR_BITIN) trms1040_set_data() 4045 outb(0, io_port + TRM_S1040_GEN_NVRAM); trms1040_set_data() 4055 * @io_port: the base io port 4057 static void trms1040_write_all(struct NvRamType *eeprom, unsigned long io_port) trms1040_write_all() argument 4063 outb((inb(io_port + TRM_S1040_GEN_CONTROL) | EN_EEPROM), trms1040_write_all() 4064 io_port + TRM_S1040_GEN_CONTROL); trms1040_write_all() 4067 trms1040_write_cmd(io_port, 0x04, 0xFF); trms1040_write_all() 4068 outb(0, io_port + TRM_S1040_GEN_NVRAM); trms1040_write_all() 4069 trms1040_wait_30us(io_port); trms1040_write_all() 4073 trms1040_set_data(io_port, addr, *b_eeprom); trms1040_write_all() 4076 trms1040_write_cmd(io_port, 0x04, 0x00); trms1040_write_all() 4077 outb(0, io_port + TRM_S1040_GEN_NVRAM); trms1040_write_all() 4078 trms1040_wait_30us(io_port); trms1040_write_all() 4081 outb((inb(io_port + TRM_S1040_GEN_CONTROL) & ~EN_EEPROM), trms1040_write_all() 4082 io_port + TRM_S1040_GEN_CONTROL); trms1040_write_all() 4092 * @io_port: base I/O address 4097 static u8 trms1040_get_data(unsigned long io_port, u8 addr) trms1040_get_data() argument 4104 trms1040_write_cmd(io_port, 0x06, addr); trms1040_get_data() 4108 outb((NVR_SELECT | NVR_CLOCK), io_port + TRM_S1040_GEN_NVRAM); trms1040_get_data() 4109 trms1040_wait_30us(io_port); trms1040_get_data() 4110 outb(NVR_SELECT, io_port + TRM_S1040_GEN_NVRAM); trms1040_get_data() 4113 read_byte = inb(io_port + TRM_S1040_GEN_NVRAM); trms1040_get_data() 4118 trms1040_wait_30us(io_port); trms1040_get_data() 4122 outb(0, io_port + TRM_S1040_GEN_NVRAM); trms1040_get_data() 4133 * @io_port: the base io port 4135 static void trms1040_read_all(struct NvRamType *eeprom, unsigned long io_port) trms1040_read_all() argument 4141 outb((inb(io_port + TRM_S1040_GEN_CONTROL) | EN_EEPROM), trms1040_read_all() 4142 io_port + TRM_S1040_GEN_CONTROL); trms1040_read_all() 4146 *b_eeprom = trms1040_get_data(io_port, addr); trms1040_read_all() 4149 outb((inb(io_port + TRM_S1040_GEN_CONTROL) & ~EN_EEPROM), trms1040_read_all() 4150 io_port + TRM_S1040_GEN_CONTROL); trms1040_read_all() 4163 * @io_port: io port to read from 4165 static void check_eeprom(struct NvRamType *eeprom, unsigned long io_port) check_eeprom() argument 4173 trms1040_read_all(eeprom, io_port); /* read eeprom */ check_eeprom() 4219 trms1040_write_all(eeprom, io_port); check_eeprom() 4344 * early (when this instance is created) and the io_port and irq 4424 host->io_port = acb->io_port_base; adapter_init_scsi_host() 4498 * @io_port: The base I/O port 4504 static int adapter_init(struct AdapterCtlBlk *acb, unsigned long io_port, adapter_init() argument 4507 if (!request_region(io_port, io_port_len, DC395X_NAME)) { adapter_init() 4508 dprintkl(KERN_ERR, "Failed to reserve IO region 0x%lx\n", io_port); adapter_init() 4512 acb->io_port_base = io_port; adapter_init() 4524 check_eeprom(&acb->eeprom, io_port); adapter_init()
|
H A D | qlogicfas.c | 98 hreg->io_port = qbase; __qlogicfas_detect() 174 if (shost->io_port && shost->n_io_port) qlogicfas_release() 175 release_region(shost->io_port, shost->n_io_port); qlogicfas_release()
|
H A D | g_NCR5380.h | 42 #define NCR5380_instance_name io_port
|
H A D | eata.c | 14 * addr,... io_port=addr,... 28 * modprobe eata io_port=0x7410,0x230 linked_comm=1 tag_mode=0 \ 180 * io_port is now unsigned long. 424 * modprobe eata io_port=0x7410,0x230 linked_comm=1 \ 844 static unsigned long io_port[] = { variable 1268 shost->io_port = port_base; port_detect() 1386 (unsigned long)shost->io_port, shost->irq, dma_name, port_detect() 1450 io_port[i] = ints[i + 1]; internal_setup() 1452 io_port[i] = 0; internal_setup() 1541 io_port[MAX_INT_PARAM + (rev_scan ? (MAX_PCI - k) : (1 + k))] = add_pci_ports() 1559 /* io_port could have been modified when loading as a module */ eata2x_detect() 1560 if (io_port[0] != SKIP) { eata2x_detect() 1562 io_port[MAX_INT_PARAM] = 0; eata2x_detect() 1566 for (k = MAX_INT_PARAM; io_port[k]; k++) eata2x_detect() 1567 if (io_port[k] == SKIP) eata2x_detect() 1569 else if (io_port[k] <= MAX_ISA_ADDR) { eata2x_detect() 1571 io_port[k] = SKIP; eata2x_detect() 1572 } else if (io_port[k] >= MIN_EISA_ADDR eata2x_detect() 1573 && io_port[k] <= MAX_EISA_ADDR) { eata2x_detect() 1575 io_port[k] = SKIP; eata2x_detect() 1585 for (k = 0; io_port[k]; k++) { eata2x_detect() 1587 if (io_port[k] == SKIP) eata2x_detect() 1590 if (j < MAX_BOARDS && port_detect(io_port[k], j, tpnt)) eata2x_detect() 1821 if (do_dma(shost->io_port, cpp->cp_dma_addr, SEND_CP_DMA)) { eata2x_queuecommand_lck() 1851 if (wait_on_busy(shost->io_port, MAXLOOP)) { eata2x_eh_abort() 1868 if (inb(shost->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) eata2x_eh_abort() 1920 if (wait_on_busy(shost->io_port, MAXLOOP)) { eata2x_eh_host_reset() 1975 if (do_dma(shost->io_port, 0, RESET_PIO)) { eata2x_eh_host_reset() 2270 if (do_dma(dev->host->io_port, cpp->cp_dma_addr, SEND_CP_DMA)) { flush_dev() 2294 if (!(inb(shost->io_port + REG_AUX_STATUS) & IRQ_ASSERTED)) ihdlr() 2304 if (wait_on_busy(shost->io_port, 20 * MAXLOOP)) { ihdlr() 2305 reg = inb(shost->io_port + REG_STATUS); ihdlr() 2321 reg = inb(shost->io_port + REG_STATUS); ihdlr() 2569 release_region(shost->io_port, shost->n_io_port); eata2x_release()
|
H A D | sym53c416.c | 330 int base = dev->io_port; sym53c416_intr_handle() 704 shpnt->io_port = hosts[i].base; sym53c416_detect() 724 int base = SChost->io_port; sym53c416_info() 743 base = SCpnt->device->host->io_port; sym53c416_queuecommand_lck() 775 base = SCpnt->device->host->io_port; sym53c416_host_reset() 793 if (shost->io_port && shost->n_io_port) sym53c416_release() 794 release_region(shost->io_port, shost->n_io_port); sym53c416_release()
|
H A D | nsp32.c | 439 unsigned int base = SCpnt->host->io_port; 458 unsigned int base = SCpnt->device->host->io_port; nsp32_selection_autopara() 589 unsigned int base = SCpnt->device->host->io_port; nsp32_selection_autoscsi() 814 unsigned int base = SCpnt->device->host->io_port; nsp32_reselection() 1457 base = host->io_port; nsp32_show_info() 1463 seq_printf(m, "IO: 0x%lx-0x%lx\n", host->io_port, host->io_port + host->n_io_port - 1); nsp32_show_info() 1526 unsigned int base = SCpnt->device->host->io_port; nsp32_scsi_done() 1564 unsigned int base = SCpnt->device->host->io_port; nsp32_busfree_occur() 1795 unsigned int base = SCpnt->device->host->io_port; nsp32_msgout_occur() 1939 unsigned int base = SCpnt->device->host->io_port; nsp32_msgin_occur() 2586 host->io_port = data->BaseAddress; nsp32_detect() 2711 host->irq, host->io_port, host->n_io_port); nsp32_detect() 2743 res = request_region(host->io_port, host->n_io_port, "nsp32"); nsp32_detect() 2761 release_region(host->io_port, host->n_io_port); nsp32_detect() 2799 if (host->io_port && host->n_io_port) { nsp32_release() 2800 release_region(host->io_port, host->n_io_port); nsp32_release() 2824 unsigned int base = SCpnt->device->host->io_port; nsp32_eh_abort() 2852 unsigned int base = SCpnt->device->host->io_port; nsp32_eh_bus_reset() 2912 unsigned int base = SCpnt->device->host->io_port; nsp32_eh_host_reset()
|
H A D | aha1740.c | 114 shpnt->io_port, shpnt->irq, host->edev->slot, aha1740_show_info() 224 base = host->io_port; aha1740_intr_handle() 456 unsigned int base = SCpnt->device->host->io_port; 584 shpnt->io_port = slotbase; aha1740_probe() 640 release_region (shpnt->io_port, SLOTSIZE); aha1740_remove()
|
H A D | dtc.c | 434 if (shost->io_port && shost->n_io_port) dtc_release() 435 release_region(shost->io_port, shost->n_io_port); dtc_release()
|
H A D | t128.c | 262 if (shost->io_port && shost->n_io_port) t128_release() 263 release_region(shost->io_port, shost->n_io_port); t128_release()
|
H A D | am53c974.c | 494 shost->io_port = pci_resource_start(pdev, 0); pci_esp_probe_one() 496 shost->unique_id = shost->io_port; pci_esp_probe_one()
|
H A D | aha152x.h | 318 int io_port; member in struct:aha152x_setup
|
H A D | eata_pio.c | 121 if (sh->io_port && sh->n_io_port) eata_pio_release() 122 release_region(sh->io_port, sh->n_io_port); eata_pio_release() 759 sh->io_port = base; register_pio_HBA()
|
H A D | ultrastor.c | 627 shpnt->io_port = config.port_address; 659 if (shost->io_port && shost->n_io_port) 660 release_region(shost->io_port, shost->n_io_port);
|
H A D | NCR53c406a.c | 568 shpnt->io_port = port_base; NCR53c406a_detect() 602 if (shost->io_port && shost->n_io_port) NCR53c406a_release() 603 release_region(shost->io_port, shost->n_io_port); NCR53c406a_release()
|
H A D | a100u2w.c | 1150 shost->io_port = host->base; inia100_probe_one() 1153 shost->unique_id = shost->io_port; inia100_probe_one() 1208 release_region(shost->io_port, 256); inia100_remove_one()
|
H A D | in2000.h | 98 /* IN2000 io_port offsets */
|
H A D | sun3_scsi.c | 596 instance->io_port = (unsigned long)ioaddr; sun3_scsi_probe()
|
H A D | atp870u.c | 2740 shpnt->io_port = base_io; atp870u_probe() 2913 shpnt->io_port = base_io; atp870u_probe() 2999 shpnt->io_port = base_io; atp870u_probe() 3106 seq_printf(m, " Base IO: %#.4lx\n", HBAptr->io_port); atp870u_show_info() 3141 release_region(pshost->io_port, pshost->n_io_port); atp870u_remove()
|
H A D | qla1280.c | 4326 host->io_port = pci_resource_start(ha->pdev, 0); qla1280_probe_one() 4327 if (!request_region(host->io_port, 0xff, "qla1280")) { qla1280_probe_one() 4330 host->io_port, host->io_port + 0xff); qla1280_probe_one() 4334 ha->iobase = (struct device_reg *)host->io_port; qla1280_probe_one() 4375 release_region(host->io_port, 0xff); qla1280_probe_one() 4409 release_region(host->io_port, 0xff); qla1280_remove_one()
|
H A D | fdomain.c | 968 shpnt->io_port = port_base; __fdomain_16x0_detect() 1746 if (shpnt->io_port && shpnt->n_io_port) fdomain_16x0_release() 1747 release_region(shpnt->io_port, shpnt->n_io_port); fdomain_16x0_release()
|
H A D | megaraid.c | 163 adapter->host->io_port + MBOX_PORT0); mega_setup_mailbox() 166 adapter->host->io_port + MBOX_PORT1); mega_setup_mailbox() 169 adapter->host->io_port + MBOX_PORT2); mega_setup_mailbox() 172 adapter->host->io_port + MBOX_PORT3); mega_setup_mailbox() 175 adapter->host->io_port + ENABLE_MBOX_REGION); mega_setup_mailbox() 4314 adapter->host->io_port = tbase; megaraid_probe_one()
|
H A D | in2000.c | 2010 instance->io_port = hostdata->io_base = base; in2000_detect() 2127 if (shost->io_port && shost->n_io_port) in2000_release() 2128 release_region(shost->io_port, shost->n_io_port); in2000_release()
|
H A D | advansys.c | 2517 printk(" base 0x%lx, io_port 0x%lx, irq %d,\n", asc_prt_scsi_host() 2518 (ulong)s->base, (ulong)s->io_port, boardp->irq); asc_prt_scsi_host() 2808 (ulong)shost->io_port, advansys_info() 2809 (ulong)shost->io_port + ASC_IOADR_GAP - 1, advansys_info() 2830 ASC_VERSION, busname, (ulong)shost->io_port, advansys_info() 2831 (ulong)shost->io_port + ASC_IOADR_GAP - 1, advansys_info() 3356 seq_printf(m, " io_port 0x%lx\n", shost->io_port); asc_prt_driver_conf() 7591 if (AscIsIntPending(shost->io_port)) { advansys_interrupt() 11635 shost->io_port = asc_dvc_varp->iop_base; advansys_board_found() 11652 shost->io_port = iop; advansys_board_found() 12155 ioport = shost->io_port; advansys_eisa_remove()
|
H A D | wd7000.c | 1541 if (shost->io_port && shost->n_io_port) wd7000_release() 1542 release_region(shost->io_port, shost->n_io_port); wd7000_release()
|
H A D | ppa.c | 1071 host->io_port = pb->base; __ppa_attach()
|
H A D | imm.c | 1205 host->io_port = pb->base; __imm_attach()
|
H A D | atari_NCR5380.c | 629 "%s, io_port 0x%lx, n_io_port %d, " prepare_info() 635 instance->hostt->name, instance->io_port, instance->n_io_port, prepare_info()
|
H A D | dpt_i2o.c | 2351 /* no IO ports, so don't have to set host->io_port and adpt_scsi_host_alloc() 2354 host->io_port = 0; adpt_scsi_host_alloc()
|
H A D | NCR5380.c | 631 "%s, io_port 0x%lx, n_io_port %d, " prepare_info() 640 instance->hostt->name, instance->io_port, instance->n_io_port, prepare_info()
|
H A D | hptiop.c | 1341 host->io_port = 0; hptiop_probe()
|
H A D | initio.c | 2923 shost->io_port = host->addr; initio_probe_one()
|
H A D | BusLogic.c | 2289 structure. The base, io_port, n_io_ports, irq, and dma_channel fields in the
|
H A D | hpsa.c | 4248 sh->io_port = 0; hpsa_register_scsi()
|
/linux-4.1.27/sound/pci/ymfpci/ |
H A D | ymfpci.c | 87 int io_port = joystick_port[dev]; snd_ymfpci_create_gameport() local 89 if (!io_port) snd_ymfpci_create_gameport() 94 if (io_port == 1) { snd_ymfpci_create_gameport() 96 if (!(io_port = pci_resource_start(chip->pci, 2))) snd_ymfpci_create_gameport() 100 if (io_port == 1) { snd_ymfpci_create_gameport() 102 for (io_port = 0x201; io_port <= 0x205; io_port++) { snd_ymfpci_create_gameport() 103 if (io_port == 0x203) snd_ymfpci_create_gameport() 105 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL) snd_ymfpci_create_gameport() 114 switch (io_port) { snd_ymfpci_create_gameport() 121 "invalid joystick port %#x", io_port); snd_ymfpci_create_gameport() 126 if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) { snd_ymfpci_create_gameport() 128 "joystick port %#x is in use.\n", io_port); snd_ymfpci_create_gameport() 144 gp->io = io_port; snd_ymfpci_create_gameport() 148 pci_write_config_word(chip->pci, PCIR_DSXG_JOYBASE, io_port); snd_ymfpci_create_gameport()
|
/linux-4.1.27/drivers/scsi/pcmcia/ |
H A D | sym53c500_cs.c | 91 /* Hardware Registers: offsets from io_port (base) */ 217 chip_init(int io_port) chip_init() argument 219 REG1(io_port); chip_init() 220 outb(0x01, io_port + PIO_STATUS); chip_init() 221 outb(0x00, io_port + PIO_FLAG); chip_init() 223 outb(C4_IMG, io_port + CONFIG4); /* REG0(io_port); */ chip_init() 224 outb(C3_IMG, io_port + CONFIG3); chip_init() 225 outb(C2_IMG, io_port + CONFIG2); chip_init() 226 outb(C1_IMG, io_port + CONFIG1); chip_init() 228 outb(0x05, io_port + CLKCONV); /* clock conversion factor */ chip_init() 229 outb(0x9C, io_port + SRTIMOUT); /* Selection timeout */ chip_init() 230 outb(0x05, io_port + SYNCPRD); /* Synchronous transfer period */ chip_init() 231 outb(SYNC_MODE, io_port + SYNCOFF); /* synchronous mode */ chip_init() 235 SYM53C500_int_host_reset(int io_port) SYM53C500_int_host_reset() argument 237 outb(C4_IMG, io_port + CONFIG4); /* REG0(io_port); */ SYM53C500_int_host_reset() 238 outb(CHIP_RESET, io_port + CMD_REG); SYM53C500_int_host_reset() 239 outb(SCSI_NOP, io_port + CMD_REG); /* required after reset */ SYM53C500_int_host_reset() 240 outb(SCSI_RESET, io_port + CMD_REG); SYM53C500_int_host_reset() 241 chip_init(io_port); SYM53C500_int_host_reset() 359 int port_base = dev->io_port; SYM53C500_intr() 527 if (shost->io_port && shost->n_io_port) SYM53C500_release() 528 release_region(shost->io_port, shost->n_io_port); SYM53C500_release() 545 SChost->io_port, SChost->irq, data->fast_pio ? "fast" : "slow"); SYM53C500_info() 553 int port_base = SCpnt->device->host->io_port; SYM53C500_queue_lck() 591 int port_base = SCpnt->device->host->io_port; SYM53C500_host_reset() 781 host->io_port = port_base; SYM53C500_config()
|
H A D | nsp_message.c | 13 unsigned int base = SCpnt->device->host->io_port; nsp_message_in()
|
H A D | nsp_cs.c | 192 /*unsigned int base = SCpnt->device->host->io_port;*/ nsp_queuecommand_lck() 368 unsigned int base = SCpnt->device->host->io_port; nsphw_start_selection() 506 unsigned int base = SCpnt->device->host->io_port; nsp_start_timer() 520 unsigned int base = SCpnt->device->host->io_port; nsp_negate_signal() 549 unsigned int base = SCpnt->device->host->io_port; nsp_expect_signal() 582 unsigned int base = SCpnt->device->host->io_port; nsp_xfer() 654 unsigned int base = SCpnt->device->host->io_port; nsp_reselected() 693 unsigned int base = SCpnt->device->host->io_port; nsp_fifo_count() 720 unsigned int base = SCpnt->device->host->io_port; nsp_pio_read() 819 unsigned int base = SCpnt->device->host->io_port; nsp_pio_write() 916 unsigned int base = SCpnt->device->host->io_port; nsp_nexus() 1336 host->io_port = data->BaseAddress; nsp_detect() 1346 host->io_port, host->io_port + host->n_io_port - 1, nsp_detect() 1382 seq_printf(m, "IO: 0x%lx-0x%lx\n", host->io_port, host->io_port + host->n_io_port - 1); nsp_show_info()
|
H A D | aha152x_stub.c | 163 s.io_port = link->resource[0]->start; aha152x_config_cs()
|
H A D | qlogic_stub.c | 110 shost->io_port = qbase; qlogic_detect()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | scc.h | 106 typedef unsigned long io_port; /* type definition for an 'io port address' */ typedef 144 io_port data_a; /* data port channel A */ 145 io_port ctrl_a; /* control port channel A */ 146 io_port data_b; /* data port channel B */ 147 io_port ctrl_b; /* control port channel B */ 148 io_port vector_latch; /* INTACK-Latch (#) */ 149 io_port special; /* special function port */
|
/linux-4.1.27/drivers/video/fbdev/via/ |
H A D | via_i2c.c | 44 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; via_i2c_setscl() 59 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); via_i2c_setscl() 71 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, via_i2c_getscl() 73 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x08) via_i2c_getscl() 87 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, via_i2c_getsda() 89 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x04) via_i2c_getsda() 102 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; via_i2c_setsda() 117 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); via_i2c_setsda() 215 sprintf(adapter->name, "viafb i2c io_port idx 0x%02x", create_i2c_bus()
|
/linux-4.1.27/include/linux/ |
H A D | scc.h | 57 io_port ctrl; /* I/O address of CONTROL register */ 58 io_port data; /* I/O address of DATA register */ 59 io_port special; /* I/O address of special function port */
|
H A D | via-core.h | 58 u16 io_port; member in struct:via_port_cfg
|
/linux-4.1.27/sound/pci/ |
H A D | es1968.c | 517 unsigned long io_port; member in struct:es1968 592 outw(reg, chip->io_port + ESM_INDEX); __maestro_write() 593 outw(data, chip->io_port + ESM_DATA); __maestro_write() 609 outw(reg, chip->io_port + ESM_INDEX); __maestro_read() 610 chip->maestro_map[reg] = inw(chip->io_port + ESM_DATA); __maestro_read() 631 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) snd_es1968_ac97_wait() 644 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) snd_es1968_ac97_wait_poll() 658 outw(val, chip->io_port + ESM_AC97_DATA); snd_es1968_ac97_write() 660 outb(reg, chip->io_port + ESM_AC97_INDEX); snd_es1968_ac97_write() 671 outb(reg | 0x80, chip->io_port + ESM_AC97_INDEX); snd_es1968_ac97_read() 675 data = inw(chip->io_port + ESM_AC97_DATA); snd_es1968_ac97_read() 752 outl(reg, chip->io_port + ASSP_INDEX); 753 outl(value, chip->io_port + ASSP_DATA); 763 outl(reg, chip->io_port + ASSP_INDEX); 764 value = inl(chip->io_port + ASSP_DATA); 777 outw(reg, chip->io_port + WC_INDEX); wave_set_register() 778 outw(value, chip->io_port + WC_DATA); wave_set_register() 788 outw(reg, chip->io_port + WC_INDEX); wave_get_register() 789 value = inw(chip->io_port + WC_DATA); wave_get_register() 1082 outw(1, chip->io_port + 0x04); snd_es1968_playback_setup() 1084 outw(inw(chip->io_port + ESM_PORT_HOST_IRQ) | ESM_HIRQ_DSIE, chip->io_port + ESM_PORT_HOST_IRQ); snd_es1968_playback_setup() 1210 outw(1, chip->io_port + 0x04); snd_es1968_capture_setup() 1212 outw(inw(chip->io_port + ESM_PORT_HOST_IRQ) | ESM_HIRQ_DSIE, chip->io_port + ESM_PORT_HOST_IRQ); snd_es1968_capture_setup() 1753 outw(1, chip->io_port + 0x04); /* clear WP interrupts */ es1968_measure_clock() 1754 outw(inw(chip->io_port + ESM_PORT_HOST_IRQ) | ESM_HIRQ_DSIE, chip->io_port + ESM_PORT_HOST_IRQ); /* enable WP ints */ es1968_measure_clock() 1901 x = inb(chip->io_port + 0x1c) & 0xee; es1968_update_hw_volume() 1903 outb(0x88, chip->io_port + 0x1c); es1968_update_hw_volume() 1904 outb(0x88, chip->io_port + 0x1d); es1968_update_hw_volume() 1905 outb(0x88, chip->io_port + 0x1e); es1968_update_hw_volume() 1906 outb(0x88, chip->io_port + 0x1f); es1968_update_hw_volume() 1978 if (!(event = inb(chip->io_port + 0x1A))) snd_es1968_interrupt() 1981 outw(inw(chip->io_port + 4) & 1, chip->io_port + 4); snd_es1968_interrupt() 1987 outb(0xFF, chip->io_port + 0x1A); snd_es1968_interrupt() 2063 unsigned long ioaddr = chip->io_port; snd_es1968_ac97_reset() 2170 chip->io_port + ESM_PORT_HOST_IRQ); snd_es1968_reset() 2172 outw(0x0000, chip->io_port + ESM_PORT_HOST_IRQ); snd_es1968_reset() 2183 unsigned long iobase = chip->io_port; snd_es1968_chip_init() 2376 outb(w, chip->io_port + 0x1A); snd_es1968_start_irq() 2377 outw(w, chip->io_port + ESM_PORT_HOST_IRQ); snd_es1968_start_irq() 2570 outw(val, chip->io_port + GPIO_DATA); snd_es1968_tea575x_set_pins() 2577 u16 val = inw(chip->io_port + GPIO_DATA); snd_es1968_tea575x_get_pins() 2591 unsigned long io = chip->io_port + GPIO_DATA; snd_es1968_tea575x_set_direction() 2623 if (chip->io_port) { snd_es1968_free() 2626 outw(1, chip->io_port + 0x04); /* clear WP interrupts */ snd_es1968_free() 2627 outw(0, chip->io_port + ESM_PORT_HOST_IRQ); /* disable IRQ */ snd_es1968_free() 2726 chip->io_port = pci_resource_start(pci, 0); snd_es1968_create() 2884 chip->io_port + ESM_MPU401_PORT, snd_es1968_probe() 2908 card->shortname, chip->io_port, chip->irq); snd_es1968_probe()
|
H A D | als4000.c | 777 int io_port; snd_als4000_create_gameport() local 783 for (io_port = 0x200; io_port <= 0x218; io_port += 8) { snd_als4000_create_gameport() 784 r = request_region(io_port, 8, "ALS4000 gameport"); snd_als4000_create_gameport() 789 io_port = joystick_port[dev]; snd_als4000_create_gameport() 790 r = request_region(io_port, 8, "ALS4000 gameport"); snd_als4000_create_gameport() 808 gp->io = io_port; snd_als4000_create_gameport()
|
H A D | ens1370.c | 1810 int io_port; snd_ensoniq_create_gameport() local 1812 io_port = snd_ensoniq_get_joystick_port(ensoniq, dev); snd_ensoniq_create_gameport() 1814 switch (io_port) { snd_ensoniq_create_gameport() 1819 for (io_port = 0x200; io_port <= 0x218; io_port += 8) snd_ensoniq_create_gameport() 1820 if (request_region(io_port, 8, "ens137x: gameport")) snd_ensoniq_create_gameport() 1822 if (io_port > 0x218) { snd_ensoniq_create_gameport() 1830 if (!request_region(io_port, 8, "ens137x: gameport")) { snd_ensoniq_create_gameport() 1833 io_port); snd_ensoniq_create_gameport() 1843 release_region(io_port, 8); snd_ensoniq_create_gameport() 1850 gp->io = io_port; snd_ensoniq_create_gameport() 1855 ensoniq->ctrl |= ES_1371_JOY_ASEL((io_port - 0x200) / 8); snd_ensoniq_create_gameport()
|
H A D | es1938.c | 90 #define SLIO_REG(chip, x) ((chip)->io_port + ESSIO_REG_##x) 199 unsigned long io_port; member in struct:es1938 1606 chip->io_port = pci_resource_start(pci, 0); snd_es1938_create() 1620 chip->io_port, chip->sb_port, chip->vc_port, chip->mpu_port, chip->game_port); snd_es1938_create()
|
H A D | cmipci.c | 2874 int i, io_port = 0; snd_cmipci_create_gameport() local 2881 io_port = ports[i]; snd_cmipci_create_gameport() 2882 r = request_region(io_port, 1, "CMIPCI gameport"); snd_cmipci_create_gameport() 2887 io_port = joystick_port[dev]; snd_cmipci_create_gameport() 2888 r = request_region(io_port, 1, "CMIPCI gameport"); snd_cmipci_create_gameport() 2905 gp->io = io_port; snd_cmipci_create_gameport()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | dma-isa.c | 49 unsigned int io_port = isa_dma_port[chan][ISA_DMA_COUNT]; isa_get_dma_residue() local 52 count = 1 + inb(io_port); isa_get_dma_residue() 53 count |= inb(io_port) << 8; isa_get_dma_residue()
|
/linux-4.1.27/drivers/scsi/sym53c8xx_2/ |
H A D | sym_nvram.h | 95 u_short io_port; /* PCI io_port address */ member in struct:Symbios_nvram::Symbios_host
|
H A D | sym_glue.c | 1422 unsigned long io_port = pci_resource_start(pdev, 0); sym_check_supported() local 1429 if (io_port) { sym_check_supported() 1431 if (sym_driver_setup.excludes[i] == io_port) sym_check_supported()
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | dma.h | 289 unsigned int io_port; get_dma_residue() local 293 io_port = (dmanr <= 3) ? ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE get_dma_residue() 296 count = 1 + dma_inb(io_port); get_dma_residue() 297 count += dma_inb(io_port) << 8; get_dma_residue()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | sys_sio.c | 260 unsigned long io_port; alphabook1_init_pci() local 263 io_port = dev->resource[0].start; alphabook1_init_pci() 264 ctest4 = inb(io_port+0x21); alphabook1_init_pci() 268 outb(ctest4 | 0x80, io_port+0x21); alphabook1_init_pci()
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | dma.h | 93 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE get_dma_residue() local 99 count = 1 + dma_inb(io_port); get_dma_residue() 100 count += dma_inb(io_port) << 8; get_dma_residue()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | dma.h | 292 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE get_dma_residue() local 298 count = 1 + dma_inb(io_port); get_dma_residue() 299 count += dma_inb(io_port) << 8; get_dma_residue()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | dma.h | 323 unsigned int io_port = (dmanr <= 3) get_dma_residue() local 330 count = 1 + dma_inb(io_port); get_dma_residue() 331 count += dma_inb(io_port) << 8; get_dma_residue()
|
H A D | immap_cpm2.h | 313 typedef struct io_port { struct
|
H A D | 8xx_immap.h | 313 typedef struct io_port { struct
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | dma.h | 348 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE get_dma_residue() local 354 count = 1 + dma_inb(io_port); get_dma_residue() 355 count += dma_inb(io_port) << 8; get_dma_residue()
|
/linux-4.1.27/drivers/scsi/arm/ |
H A D | cumana_1.c | 249 if (!(request_region(host->io_port, host->n_io_port, "CumanaSCSI-1"))) { cumanascsi1_probe()
|
H A D | acornscsi.c | 2788 , host->hostt->name, host->io_port, host->irq, acornscsi_info()
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | scc.c | 223 io_port chan_A; 224 io_port chan_B; 230 static io_port Vector_Latch; 241 static inline unsigned char InReg(io_port port, unsigned char reg) InReg() 260 static inline void OutReg(io_port port, unsigned char reg, unsigned char val) OutReg() 2131 io_port ctrl; scc_cleanup_driver()
|
/linux-4.1.27/drivers/message/fusion/ |
H A D | mptfc.c | 1252 sh->io_port = 0; mptfc_probe()
|
H A D | mptspi.c | 1433 sh->io_port = 0; mptspi_probe()
|
H A D | mptsas.c | 5204 sh->io_port = 0; mptsas_probe()
|
/linux-4.1.27/include/scsi/ |
H A D | scsi_host.h | 707 unsigned long io_port; member in struct:Scsi_Host
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_link.c | 13073 u8 *io_gpio, u8 *io_port) bnx2x_get_ext_phy_reset_gpio() 13082 *io_port = 0; bnx2x_get_ext_phy_reset_gpio() 13086 *io_port = 0; bnx2x_get_ext_phy_reset_gpio() 13090 *io_port = 0; bnx2x_get_ext_phy_reset_gpio() 13094 *io_port = 0; bnx2x_get_ext_phy_reset_gpio() 13098 *io_port = 1; bnx2x_get_ext_phy_reset_gpio() 13102 *io_port = 1; bnx2x_get_ext_phy_reset_gpio() 13106 *io_port = 1; bnx2x_get_ext_phy_reset_gpio() 13110 *io_port = 1; bnx2x_get_ext_phy_reset_gpio() 13113 /* Don't override the io_gpio and io_port */ bnx2x_get_ext_phy_reset_gpio() 13072 bnx2x_get_ext_phy_reset_gpio(struct bnx2x *bp, u32 shmem_base, u8 *io_gpio, u8 *io_port) bnx2x_get_ext_phy_reset_gpio() argument
|
/linux-4.1.27/drivers/block/ |
H A D | cciss_scsi.c | 854 sh->io_port = 0; // good enough? FIXME, cciss_scsi_detect()
|