/Linux-v4.19/drivers/gpio/ |
D | gpio-gpio-mm.c | 70 const unsigned int io_port = offset / 8; in gpiomm_gpio_direction_input() local 71 const unsigned int control_port = io_port / 3; in gpiomm_gpio_direction_input() 79 if (io_port == 2 || io_port == 5) { in gpiomm_gpio_direction_input() 82 gpiommgpio->io_state[io_port] |= 0xF0; in gpiomm_gpio_direction_input() 85 gpiommgpio->io_state[io_port] |= 0x0F; in gpiomm_gpio_direction_input() 89 gpiommgpio->io_state[io_port] |= 0xFF; in gpiomm_gpio_direction_input() 90 if (io_port == 0 || io_port == 3) in gpiomm_gpio_direction_input() 108 const unsigned int io_port = offset / 8; in gpiomm_gpio_direction_output() local 109 const unsigned int control_port = io_port / 3; in gpiomm_gpio_direction_output() 112 const unsigned int out_port = (io_port > 2) ? io_port + 1 : io_port; in gpiomm_gpio_direction_output() [all …]
|
D | gpio-104-dio-48e.c | 76 const unsigned io_port = offset / 8; in dio48e_gpio_direction_input() local 77 const unsigned int control_port = io_port / 3; in dio48e_gpio_direction_input() 85 if (io_port == 2 || io_port == 5) { in dio48e_gpio_direction_input() 88 dio48egpio->io_state[io_port] |= 0xF0; in dio48e_gpio_direction_input() 91 dio48egpio->io_state[io_port] |= 0x0F; in dio48e_gpio_direction_input() 95 dio48egpio->io_state[io_port] |= 0xFF; in dio48e_gpio_direction_input() 96 if (io_port == 0 || io_port == 3) in dio48e_gpio_direction_input() 116 const unsigned io_port = offset / 8; in dio48e_gpio_direction_output() local 117 const unsigned int control_port = io_port / 3; in dio48e_gpio_direction_output() 120 const unsigned out_port = (io_port > 2) ? io_port + 1 : io_port; in dio48e_gpio_direction_output() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | aha1542.c | 191 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port() 197 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port() 199 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port() 204 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port() 208 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port() 214 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port() 217 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port() 219 inquiry_result[i] = inb(DATA(sh->io_port)); in aha1542_test_port() 223 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port() 227 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0)) in aha1542_test_port() [all …]
|
D | g_NCR5380.c | 325 hostdata->io_port = base; in generic_NCR5380_init_one() 335 hostdata->io_port += 8; in generic_NCR5380_init_one() 469 unsigned long io_port = hostdata->io_port; in generic_NCR5380_release_resources() local 479 if (io_port) in generic_NCR5380_release_resources() 480 release_region(io_port, region_size); in generic_NCR5380_release_resources() 543 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_precv() 544 insw(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv() 546 else if (hostdata->io_port) in generic_NCR5380_precv() 547 insb(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv() 622 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_psend() [all …]
|
D | zalon.c | 92 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET; in zalon_probe() local 122 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */ in zalon_probe() 123 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */ in zalon_probe() 124 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */ in zalon_probe() 131 device.slot.base_v = io_port; in zalon_probe()
|
D | aha152x.c | 741 shpnt->io_port = setup->io_port; in aha152x_probe_one() 746 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one() 747 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one() 749 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one() 750 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one() 788 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one() 867 if (shpnt->io_port) in aha152x_release() 868 release_region(shpnt->io_port, IO_RANGE); in aha152x_release() 2827 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info() 2995 static int aha152x_porttest(int io_port) in aha152x_porttest() argument [all …]
|
D | dc395x.c | 3937 static void trms1040_wait_30us(unsigned long io_port) in trms1040_wait_30us() argument 3940 outb(5, io_port + TRM_S1040_GEN_TIMER); in trms1040_wait_30us() 3941 while (!(inb(io_port + TRM_S1040_GEN_STATUS) & GTIMEOUT)) in trms1040_wait_30us() 3954 static void trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) in trms1040_write_cmd() argument 3965 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd() 3966 trms1040_wait_30us(io_port); in trms1040_write_cmd() 3968 io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd() 3969 trms1040_wait_30us(io_port); in trms1040_write_cmd() 3978 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd() 3979 trms1040_wait_30us(io_port); in trms1040_write_cmd() [all …]
|
D | qlogicfas.c | 98 hreg->io_port = qbase; in __qlogicfas_detect() 174 if (shost->io_port && shost->n_io_port) in qlogicfas_release() 175 release_region(shost->io_port, shost->n_io_port); in qlogicfas_release()
|
D | nsp32.c | 436 unsigned int base = SCpnt->host->io_port; 455 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autopara() 586 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autoscsi() 811 unsigned int base = SCpnt->device->host->io_port; in nsp32_reselection() 1454 base = host->io_port; in nsp32_show_info() 1460 …seq_printf(m, "IO: 0x%lx-0x%lx\n", host->io_port, host->io_port + host->n_io_po… in nsp32_show_info() 1523 unsigned int base = SCpnt->device->host->io_port; in nsp32_scsi_done() 1561 unsigned int base = SCpnt->device->host->io_port; in nsp32_busfree_occur() 1792 unsigned int base = SCpnt->device->host->io_port; in nsp32_msgout_occur() 1936 unsigned int base = SCpnt->device->host->io_port; in nsp32_msgin_occur() [all …]
|
D | aha1740.c | 114 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_show_info() 224 base = host->io_port; in aha1740_intr_handle() 457 unsigned int base = SCpnt->device->host->io_port; in aha1740_queuecommand_lck() 584 shpnt->io_port = slotbase; in aha1740_probe() 640 release_region (shpnt->io_port, SLOTSIZE); in aha1740_remove()
|
/Linux-v4.19/include/uapi/linux/ |
D | scc.h | 107 typedef unsigned long io_port; /* type definition for an 'io port address' */ typedef 145 io_port data_a; /* data port channel A */ 146 io_port ctrl_a; /* control port channel A */ 147 io_port data_b; /* data port channel B */ 148 io_port ctrl_b; /* control port channel B */ 149 io_port vector_latch; /* INTACK-Latch (#) */ 150 io_port special; /* special function port */
|
/Linux-v4.19/sound/pci/ymfpci/ |
D | ymfpci.c | 87 int io_port = joystick_port[dev]; in snd_ymfpci_create_gameport() local 89 if (!io_port) in snd_ymfpci_create_gameport() 94 if (io_port == 1) { in snd_ymfpci_create_gameport() 96 if (!(io_port = pci_resource_start(chip->pci, 2))) in snd_ymfpci_create_gameport() 100 if (io_port == 1) { in snd_ymfpci_create_gameport() 102 for (io_port = 0x201; io_port <= 0x205; io_port++) { in snd_ymfpci_create_gameport() 103 if (io_port == 0x203) in snd_ymfpci_create_gameport() 105 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL) in snd_ymfpci_create_gameport() 114 switch (io_port) { in snd_ymfpci_create_gameport() 121 "invalid joystick port %#x", io_port); in snd_ymfpci_create_gameport() [all …]
|
/Linux-v4.19/drivers/scsi/pcmcia/ |
D | sym53c500_cs.c | 217 chip_init(int io_port) in chip_init() argument 219 REG1(io_port); in chip_init() 220 outb(0x01, io_port + PIO_STATUS); in chip_init() 221 outb(0x00, io_port + PIO_FLAG); in chip_init() 223 outb(C4_IMG, io_port + CONFIG4); /* REG0(io_port); */ in chip_init() 224 outb(C3_IMG, io_port + CONFIG3); in chip_init() 225 outb(C2_IMG, io_port + CONFIG2); in chip_init() 226 outb(C1_IMG, io_port + CONFIG1); in chip_init() 228 outb(0x05, io_port + CLKCONV); /* clock conversion factor */ in chip_init() 229 outb(0x9C, io_port + SRTIMOUT); /* Selection timeout */ in chip_init() [all …]
|
D | nsp_cs.c | 367 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection() 505 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer() 519 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal() 548 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal() 581 unsigned int base = SCpnt->device->host->io_port; in nsp_xfer() 653 unsigned int base = SCpnt->device->host->io_port; in nsp_reselected() 692 unsigned int base = SCpnt->device->host->io_port; in nsp_fifo_count() 719 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_read() 818 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_write() 915 unsigned int base = SCpnt->device->host->io_port; in nsp_nexus() [all …]
|
/Linux-v4.19/drivers/video/fbdev/via/ |
D | via_i2c.c | 44 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setscl() 59 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setscl() 71 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getscl() 73 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x08) in via_i2c_getscl() 87 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getsda() 89 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x04) in via_i2c_getsda() 102 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setsda() 117 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setsda()
|
/Linux-v4.19/sound/pci/ |
D | es1968.c | 517 unsigned long io_port; member 592 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write() 593 outw(data, chip->io_port + ESM_DATA); in __maestro_write() 609 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read() 610 chip->maestro_map[reg] = inw(chip->io_port + ESM_DATA); in __maestro_read() 631 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait() 644 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait_poll() 658 outw(val, chip->io_port + ESM_AC97_DATA); in snd_es1968_ac97_write() 660 outb(reg, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_write() 671 outb(reg | 0x80, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_read() [all …]
|
D | als4000.c | 777 int io_port; in snd_als4000_create_gameport() local 783 for (io_port = 0x200; io_port <= 0x218; io_port += 8) { in snd_als4000_create_gameport() 784 r = request_region(io_port, 8, "ALS4000 gameport"); in snd_als4000_create_gameport() 789 io_port = joystick_port[dev]; in snd_als4000_create_gameport() 790 r = request_region(io_port, 8, "ALS4000 gameport"); in snd_als4000_create_gameport() 808 gp->io = io_port; in snd_als4000_create_gameport()
|
/Linux-v4.19/include/linux/ |
D | scc.h | 58 io_port ctrl; /* I/O address of CONTROL register */ 59 io_port data; /* I/O address of DATA register */ 60 io_port special; /* I/O address of special function port */
|
/Linux-v4.19/arch/x86/include/asm/ |
D | dma.h | 290 unsigned int io_port; in get_dma_residue() local 294 io_port = (dmanr <= 3) ? ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE in get_dma_residue() 297 count = 1 + dma_inb(io_port); in get_dma_residue() 298 count += dma_inb(io_port) << 8; in get_dma_residue()
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | dma.h | 94 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() local 100 count = 1 + dma_inb(io_port); in get_dma_residue() 101 count += dma_inb(io_port) << 8; in get_dma_residue()
|
/Linux-v4.19/arch/arm/kernel/ |
D | dma-isa.c | 49 unsigned int io_port = isa_dma_port[chan][ISA_DMA_COUNT]; in isa_get_dma_residue() local 52 count = 1 + inb(io_port); in isa_get_dma_residue() 53 count |= inb(io_port) << 8; in isa_get_dma_residue()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | dma.h | 293 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() local 299 count = 1 + dma_inb(io_port); in get_dma_residue() 300 count += dma_inb(io_port) << 8; in get_dma_residue()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | dma.h | 324 unsigned int io_port = (dmanr <= 3) in get_dma_residue() local 331 count = 1 + dma_inb(io_port); in get_dma_residue() 332 count += dma_inb(io_port) << 8; in get_dma_residue()
|
/Linux-v4.19/arch/alpha/kernel/ |
D | sys_sio.c | 284 unsigned long io_port; in alphabook1_init_pci() local 287 io_port = dev->resource[0].start; in alphabook1_init_pci() 288 ctest4 = inb(io_port+0x21); in alphabook1_init_pci() 292 outb(ctest4 | 0x80, io_port+0x21); in alphabook1_init_pci()
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | dma.h | 349 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() local 355 count = 1 + dma_inb(io_port); in get_dma_residue() 356 count += dma_inb(io_port) << 8; in get_dma_residue()
|