Home
last modified time | relevance | path

Searched refs:io_port (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.12.1/drivers/scsi/
Daha1542.c212 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port()
218 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port()
220 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port()
225 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port()
229 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port()
237 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port()
240 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port()
242 (void)inb(DATA(sh->io_port)); in aha1542_test_port()
246 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port()
250 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0)) in aha1542_test_port()
[all …]
Dg_NCR5380.c327 hostdata->io_port = base; in generic_NCR5380_init_one()
337 hostdata->io_port += 8; in generic_NCR5380_init_one()
471 unsigned long io_port = hostdata->io_port; in generic_NCR5380_release_resources() local
481 if (io_port) in generic_NCR5380_release_resources()
482 release_region(io_port, region_size); in generic_NCR5380_release_resources()
545 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_precv()
546 insw(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
548 else if (hostdata->io_port) in generic_NCR5380_precv()
549 insb(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
624 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_psend()
[all …]
Daha152x.c750 shpnt->io_port = setup->io_port; in aha152x_probe_one()
755 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
756 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
758 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
759 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
797 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
876 if (shpnt->io_port) in aha152x_release()
877 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2868 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
3030 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
[all …]
Dzalon.c94 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET; in zalon_probe() local
124 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */ in zalon_probe()
125 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */ in zalon_probe()
126 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */ in zalon_probe()
133 device.slot.base_v = io_port; in zalon_probe()
Ddc395x.c3762 static void trms1040_wait_30us(unsigned long io_port) in trms1040_wait_30us() argument
3765 outb(5, io_port + TRM_S1040_GEN_TIMER); in trms1040_wait_30us()
3766 while (!(inb(io_port + TRM_S1040_GEN_STATUS) & GTIMEOUT)) in trms1040_wait_30us()
3779 static void trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) in trms1040_write_cmd() argument
3790 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd()
3791 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3793 io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd()
3794 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3803 outb(send_data, io_port + TRM_S1040_GEN_NVRAM); in trms1040_write_cmd()
3804 trms1040_wait_30us(io_port); in trms1040_write_cmd()
[all …]
Dqlogicfas.c102 hreg->io_port = qbase; in __qlogicfas_detect()
178 if (shost->io_port && shost->n_io_port) in qlogicfas_release()
179 release_region(shost->io_port, shost->n_io_port); in qlogicfas_release()
Dnsp32.c433 unsigned int base = SCpnt->host->io_port;
452 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autopara()
584 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autoscsi()
810 unsigned int base = SCpnt->device->host->io_port; in nsp32_reselection()
1455 base = host->io_port; in nsp32_show_info()
1463 host->io_port, host->io_port + host->n_io_port - 1); in nsp32_show_info()
1531 unsigned int base = SCpnt->device->host->io_port; in nsp32_scsi_done()
1569 unsigned int base = SCpnt->device->host->io_port; in nsp32_busfree_occur()
1797 unsigned int base = SCpnt->device->host->io_port; in nsp32_msgout_occur()
1931 unsigned int base = SCpnt->device->host->io_port; in nsp32_msgin_occur()
[all …]
Daha1740.c118 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_show_info()
229 base = host->io_port; in aha1740_intr_handle()
465 unsigned int base = SCpnt->device->host->io_port; in aha1740_queuecommand_lck()
591 shpnt->io_port = slotbase; in aha1740_probe()
646 release_region (shpnt->io_port, SLOTSIZE); in aha1740_remove()
Datp870u.c1321 shpnt->io_port, shpnt->irq); in atp870_init()
1323 atpdev->ioport[0] = shpnt->io_port; in atp870_init()
1324 atpdev->pciport[0] = shpnt->io_port + 0x20; in atp870_init()
1366 atpdev->ioport[0] = shpnt->io_port + 0x40; in atp880_init()
1367 atpdev->pciport[0] = shpnt->io_port + 0x28; in atp880_init()
1373 shpnt->io_port, shpnt->irq); in atp880_init()
1453 shpnt->io_port, shpnt->irq); in atp885_init()
1455 atpdev->ioport[0] = shpnt->io_port + 0x80; in atp885_init()
1456 atpdev->ioport[1] = shpnt->io_port + 0xc0; in atp885_init()
1457 atpdev->pciport[0] = shpnt->io_port + 0x40; in atp885_init()
[all …]
/linux-6.12.1/sound/pci/ymfpci/
Dymfpci.c66 int io_port = joystick_port[dev]; in snd_ymfpci_create_gameport() local
68 if (!io_port) in snd_ymfpci_create_gameport()
73 if (io_port == 1) { in snd_ymfpci_create_gameport()
75 io_port = pci_resource_start(chip->pci, 2); in snd_ymfpci_create_gameport()
76 if (!io_port) in snd_ymfpci_create_gameport()
80 if (io_port == 1) { in snd_ymfpci_create_gameport()
82 for (io_port = 0x201; io_port <= 0x205; io_port++) { in snd_ymfpci_create_gameport()
83 if (io_port == 0x203) in snd_ymfpci_create_gameport()
85 r = request_region(io_port, 1, "YMFPCI gameport"); in snd_ymfpci_create_gameport()
95 switch (io_port) { in snd_ymfpci_create_gameport()
[all …]
/linux-6.12.1/include/uapi/linux/
Dscc.h108 typedef unsigned long io_port; /* type definition for an 'io port address' */ typedef
146 io_port data_a; /* data port channel A */
147 io_port ctrl_a; /* control port channel A */
148 io_port data_b; /* data port channel B */
149 io_port ctrl_b; /* control port channel B */
150 io_port vector_latch; /* INTACK-Latch (#) */
151 io_port special; /* special function port */
/linux-6.12.1/drivers/scsi/pcmcia/
Dsym53c500_cs.c214 chip_init(int io_port) in chip_init() argument
216 REG1(io_port); in chip_init()
217 outb(0x01, io_port + PIO_STATUS); in chip_init()
218 outb(0x00, io_port + PIO_FLAG); in chip_init()
220 outb(C4_IMG, io_port + CONFIG4); /* REG0(io_port); */ in chip_init()
221 outb(C3_IMG, io_port + CONFIG3); in chip_init()
222 outb(C2_IMG, io_port + CONFIG2); in chip_init()
223 outb(C1_IMG, io_port + CONFIG1); in chip_init()
225 outb(0x05, io_port + CLKCONV); /* clock conversion factor */ in chip_init()
226 outb(0x9C, io_port + SRTIMOUT); /* Selection timeout */ in chip_init()
[all …]
Dnsp_cs.c367 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection()
503 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer()
517 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal()
546 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal()
580 unsigned int base = SCpnt->device->host->io_port; in nsp_xfer()
653 unsigned int base = SCpnt->device->host->io_port; in nsp_reselected()
690 unsigned int base = SCpnt->device->host->io_port; in nsp_fifo_count()
718 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_read()
821 unsigned int base = SCpnt->device->host->io_port; in nsp_pio_write()
921 unsigned int base = SCpnt->device->host->io_port; in nsp_nexus()
[all …]
/linux-6.12.1/sound/pci/
Des1968.c497 unsigned long io_port; member
570 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write()
571 outw(data, chip->io_port + ESM_DATA); in __maestro_write()
587 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read()
588 chip->maestro_map[reg] = inw(chip->io_port + ESM_DATA); in __maestro_read()
609 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait()
622 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait_poll()
636 outw(val, chip->io_port + ESM_AC97_DATA); in snd_es1968_ac97_write()
638 outb(reg, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_write()
649 outb(reg | 0x80, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_read()
[all …]
Dals4000.c742 int io_port; in snd_als4000_create_gameport() local
748 for (io_port = 0x200; io_port <= 0x218; io_port += 8) { in snd_als4000_create_gameport()
749 r = devm_request_region(&acard->pci->dev, io_port, 8, in snd_als4000_create_gameport()
755 io_port = joystick_port[dev]; in snd_als4000_create_gameport()
756 r = devm_request_region(&acard->pci->dev, io_port, 8, in snd_als4000_create_gameport()
774 gp->io = io_port; in snd_als4000_create_gameport()
/linux-6.12.1/drivers/video/fbdev/via/
Dvia_i2c.c30 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setscl()
45 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setscl()
57 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getscl()
59 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x08) in via_i2c_getscl()
73 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getsda()
75 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x04) in via_i2c_getsda()
88 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setsda()
103 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setsda()
/linux-6.12.1/include/linux/
Dscc.h58 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-6.12.1/arch/x86/include/asm/
Ddma.h290 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-6.12.1/arch/parisc/include/asm/
Ddma.h96 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() local
102 count = 1 + dma_inb(io_port); in get_dma_residue()
103 count += dma_inb(io_port) << 8; in get_dma_residue()
/linux-6.12.1/drivers/base/regmap/
Dregmap-mmio.c430 if (config->use_relaxed_mmio && config->io_port) in regmap_mmio_gen_context()
449 if (config->io_port) { in regmap_mmio_gen_context()
461 if (config->io_port) { in regmap_mmio_gen_context()
473 if (config->io_port) { in regmap_mmio_gen_context()
496 if (config->io_port) { in regmap_mmio_gen_context()
505 if (config->io_port) { in regmap_mmio_gen_context()
514 if (config->io_port) { in regmap_mmio_gen_context()
/linux-6.12.1/arch/mips/include/asm/
Ddma.h293 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-6.12.1/arch/arm/mach-footbridge/
Ddma-isa.c46 unsigned int io_port = isa_dma_port[chan][ISA_DMA_COUNT]; in isa_get_dma_residue() local
49 count = 1 + inb(io_port); in isa_get_dma_residue()
50 count |= inb(io_port) << 8; in isa_get_dma_residue()
/linux-6.12.1/arch/powerpc/include/asm/
Ddma.h323 unsigned int io_port = (dmanr <= 3) in get_dma_residue() local
330 count = 1 + dma_inb(io_port); in get_dma_residue()
331 count += dma_inb(io_port) << 8; in get_dma_residue()
/linux-6.12.1/arch/alpha/include/asm/
Ddma.h342 unsigned int io_port = (dmanr<=3)? ((dmanr&3)<<1) + 1 + IO_DMA1_BASE in get_dma_residue() local
348 count = 1 + dma_inb(io_port); in get_dma_residue()
349 count += dma_inb(io_port) << 8; in get_dma_residue()
/linux-6.12.1/drivers/iio/addac/
Dstx104.c130 .io_port = true,
158 .io_port = true,
171 .io_port = true,
195 .io_port = true,

123