Home
last modified time | relevance | path

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

123

/linux/drivers/gpio/
A Dgpio-gpio-mm.c65 const unsigned int io_port = offset / 8; in gpiomm_gpio_direction_input() local
74 if (io_port == 2 || io_port == 5) { in gpiomm_gpio_direction_input()
77 gpiommgpio->io_state[io_port] |= 0xF0; in gpiomm_gpio_direction_input()
80 gpiommgpio->io_state[io_port] |= 0x0F; in gpiomm_gpio_direction_input()
84 gpiommgpio->io_state[io_port] |= 0xFF; in gpiomm_gpio_direction_input()
85 if (io_port == 0 || io_port == 3) in gpiomm_gpio_direction_input()
103 const unsigned int io_port = offset / 8; in gpiomm_gpio_direction_output() local
107 const unsigned int out_port = (io_port > 2) ? io_port + 1 : io_port; in gpiomm_gpio_direction_output()
114 if (io_port == 2 || io_port == 5) { in gpiomm_gpio_direction_output()
124 gpiommgpio->io_state[io_port] &= 0x00; in gpiomm_gpio_direction_output()
[all …]
A Dgpio-104-dio-48e.c71 const unsigned int io_port = offset / 8; in dio48e_gpio_direction_input() local
80 if (io_port == 2 || io_port == 5) { in dio48e_gpio_direction_input()
83 dio48egpio->io_state[io_port] |= 0xF0; in dio48e_gpio_direction_input()
86 dio48egpio->io_state[io_port] |= 0x0F; in dio48e_gpio_direction_input()
90 dio48egpio->io_state[io_port] |= 0xFF; in dio48e_gpio_direction_input()
91 if (io_port == 0 || io_port == 3) in dio48e_gpio_direction_input()
111 const unsigned int io_port = offset / 8; in dio48e_gpio_direction_output() local
115 const unsigned int out_port = (io_port > 2) ? io_port + 1 : io_port; in dio48e_gpio_direction_output()
122 if (io_port == 2 || io_port == 5) { in dio48e_gpio_direction_output()
132 dio48egpio->io_state[io_port] &= 0x00; in dio48e_gpio_direction_output()
[all …]
/linux/drivers/scsi/
A Daha1542.c255 outb(IRST, CONTROL(sh->io_port)); in aha1542_test_port()
328 aha1542_intr_reset(sh->io_port); in aha1542_interrupt()
543 aha1542_intr_reset(sh->io_port); in setup_mailboxes()
550 i = inb(STATUS(sh->io_port)); in aha1542_getconfig()
552 i = inb(DATA(sh->io_port)); in aha1542_getconfig()
558 aha1542_intr_reset(sh->io_port); in aha1542_getconfig()
628 aha1542_intr_reset(sh->io_port); in aha1542_mbenable()
645 aha1542_intr_reset(sh->io_port); in aha1542_mbenable()
655 i = inb(STATUS(sh->io_port)); in aha1542_query()
657 i = inb(DATA(sh->io_port)); in aha1542_query()
[all …]
A Dg_NCR5380.c326 hostdata->io_port = base; in generic_NCR5380_init_one()
336 hostdata->io_port += 8; in generic_NCR5380_init_one()
470 unsigned long io_port = hostdata->io_port; in generic_NCR5380_release_resources() local
480 if (io_port) in generic_NCR5380_release_resources()
481 release_region(io_port, region_size); in generic_NCR5380_release_resources()
544 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_precv()
545 insw(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
547 else if (hostdata->io_port) in generic_NCR5380_precv()
548 insb(hostdata->io_port + hostdata->c400_host_buf, in generic_NCR5380_precv()
623 if (hostdata->io_port && hostdata->io_width == 2) in generic_NCR5380_psend()
[all …]
A Daha152x.c731 shpnt->io_port = setup->io_port; in aha152x_probe_one()
736 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
737 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
857 if (shpnt->io_port) in aha152x_release()
2823 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2997 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
3012 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3096 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3099 override.io_port, in aha152x_init()
3117 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
[all …]
A Ddc395x.c3786 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3789 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3799 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3802 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3805 trms1040_wait_30us(io_port); in trms1040_write_cmd()
3839 trms1040_wait_30us(io_port); in trms1040_set_data()
3843 trms1040_wait_30us(io_port); in trms1040_set_data()
3846 trms1040_wait_30us(io_port); in trms1040_set_data()
3885 trms1040_wait_30us(io_port); in trms1040_write_all()
3894 trms1040_wait_30us(io_port); in trms1040_write_all()
[all …]
A Dzalon.c93 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET; in zalon_probe() local
123 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */ in zalon_probe()
124 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */ in zalon_probe()
125 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */ in zalon_probe()
132 device.slot.base_v = io_port; in zalon_probe()
A Dqlogicfas.c98 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()
A Dnsp32.c432 unsigned int base = SCpnt->host->io_port;
451 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autopara()
583 unsigned int base = SCpnt->device->host->io_port; in nsp32_selection_autoscsi()
1459 base = host->io_port; in nsp32_show_info()
1467 host->io_port, host->io_port + host->n_io_port - 1); in nsp32_show_info()
1535 unsigned int base = SCpnt->device->host->io_port; in nsp32_scsi_done()
2578 host->io_port = data->BaseAddress; in nsp32_detect()
2705 host->irq, host->io_port, host->n_io_port); in nsp32_detect()
2755 release_region(host->io_port, host->n_io_port); in nsp32_detect()
2793 if (host->io_port && host->n_io_port) { in nsp32_release()
[all …]
A Daha1740.c114 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_show_info()
225 base = host->io_port; in aha1740_intr_handle()
461 unsigned int base = SCpnt->device->host->io_port; in aha1740_queuecommand_lck()
587 shpnt->io_port = slotbase; in aha1740_probe()
642 release_region (shpnt->io_port, SLOTSIZE); in aha1740_remove()
/linux/sound/pci/ymfpci/
A 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()
95 switch (io_port) { in snd_ymfpci_create_gameport()
102 "invalid joystick port %#x", io_port); in snd_ymfpci_create_gameport()
[all …]
/linux/drivers/scsi/pcmcia/
A Dsym53c500_cs.c208 chip_init(int io_port) in chip_init() argument
210 REG1(io_port); in chip_init()
211 outb(0x01, io_port + PIO_STATUS); in chip_init()
212 outb(0x00, io_port + PIO_FLAG); in chip_init()
215 outb(C3_IMG, io_port + CONFIG3); in chip_init()
216 outb(C2_IMG, io_port + CONFIG2); in chip_init()
217 outb(C1_IMG, io_port + CONFIG1); in chip_init()
226 SYM53C500_int_host_reset(int io_port) in SYM53C500_int_host_reset() argument
232 chip_init(io_port); in SYM53C500_int_host_reset()
350 int port_base = dev->io_port; in SYM53C500_intr()
[all …]
A Dnsp_cs.c362 unsigned int base = SCpnt->device->host->io_port; in nsphw_start_selection()
500 unsigned int base = SCpnt->device->host->io_port; in nsp_start_timer()
514 unsigned int base = SCpnt->device->host->io_port; in nsp_negate_signal()
543 unsigned int base = SCpnt->device->host->io_port; in nsp_expect_signal()
576 unsigned int base = SCpnt->device->host->io_port; in nsp_xfer()
648 unsigned int base = SCpnt->device->host->io_port; in nsp_reselected()
687 unsigned int base = SCpnt->device->host->io_port; in nsp_fifo_count()
910 unsigned int base = SCpnt->device->host->io_port; in nsp_nexus()
1329 host->io_port = data->BaseAddress; in nsp_detect()
1339 host->io_port, host->io_port + host->n_io_port - 1, in nsp_detect()
[all …]
/linux/include/uapi/linux/
A 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/sound/pci/
A Des1968.c499 unsigned long io_port; member
1064 outw(1, chip->io_port + 0x04); in snd_es1968_playback_setup()
1066 outw(inw(chip->io_port + ESM_PORT_HOST_IRQ) | ESM_HIRQ_DSIE, chip->io_port + ESM_PORT_HOST_IRQ); in snd_es1968_playback_setup()
1192 outw(1, chip->io_port + 0x04); in snd_es1968_capture_setup()
1194 outw(inw(chip->io_port + ESM_PORT_HOST_IRQ) | ESM_HIRQ_DSIE, chip->io_port + ESM_PORT_HOST_IRQ); in snd_es1968_capture_setup()
1886 outb(0x88, chip->io_port + 0x1c); in es1968_update_hw_volume()
1887 outb(0x88, chip->io_port + 0x1d); in es1968_update_hw_volume()
1888 outb(0x88, chip->io_port + 0x1e); in es1968_update_hw_volume()
1965 outw(inw(chip->io_port + 4) & 1, chip->io_port + 4); in snd_es1968_interrupt()
2362 outb(w, chip->io_port + 0x1A); in snd_es1968_start_irq()
[all …]
A 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/drivers/video/fbdev/via/
A 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/include/linux/
A 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/arch/x86/include/asm/
A 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/arch/parisc/include/asm/
A Ddma.h94 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/arch/mips/include/asm/
A 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/arch/arm/kernel/
A 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/arch/alpha/kernel/
A Dsys_sio.c283 unsigned long io_port; in alphabook1_init_pci() local
286 io_port = dev->resource[0].start; in alphabook1_init_pci()
287 ctest4 = inb(io_port+0x21); in alphabook1_init_pci()
291 outb(ctest4 | 0x80, io_port+0x21); in alphabook1_init_pci()
/linux/arch/powerpc/include/asm/
A 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/arch/alpha/include/asm/
A Ddma.h349 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()

Completed in 78 milliseconds

123