Home
last modified time | relevance | path

Searched refs:io_port (Results 1 - 25 of 141) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-gpio-mm.c65 const unsigned int io_port = offset / 8; in gpiomm_gpio_direction_input() local
66 const unsigned int control_port = io_port / 3; in gpiomm_gpio_direction_input()
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 in gpiomm_gpio_direction_output() local
[all...]
H A Dgpio-104-dio-48e.c71 const unsigned io_port = offset / 8; in dio48e_gpio_direction_input() local
72 const unsigned int control_port = io_port / 3; in dio48e_gpio_direction_input()
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 io_port in dio48e_gpio_direction_output() local
[all...]
/kernel/linux/linux-6.6/sound/pci/ymfpci/
H 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 in snd_ymfpci_create_gameport()
[all...]
/kernel/linux/linux-5.10/sound/pci/ymfpci/
H A Dymfpci.c72 int io_port = joystick_port[dev]; in snd_ymfpci_create_gameport() local
74 if (!io_port) in snd_ymfpci_create_gameport()
79 if (io_port == 1) { in snd_ymfpci_create_gameport()
81 io_port = pci_resource_start(chip->pci, 2); in snd_ymfpci_create_gameport()
82 if (!io_port) in snd_ymfpci_create_gameport()
86 if (io_port == 1) { in snd_ymfpci_create_gameport()
88 for (io_port = 0x201; io_port <= 0x205; io_port++) { in snd_ymfpci_create_gameport()
89 if (io_port in snd_ymfpci_create_gameport()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Daha1542.c199 if (inb(STATUS(sh->io_port)) == 0xff) in aha1542_test_port()
205 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port()
207 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port()
212 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port()
216 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port()
222 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port()
225 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port()
227 inquiry_result[i] = inb(DATA(sh->io_port)); in aha1542_test_port()
231 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port()
235 if (!wait_mask(INTRFLAGS(sh->io_port), HAC in aha1542_test_port()
[all...]
H 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 in generic_NCR5380_precv()
[all...]
H A Daha152x.c730 shpnt->io_port = setup->io_port; in aha152x_probe_one()
735 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
736 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
738 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
739 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
777 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
856 if (shpnt->io_port) in aha152x_release()
857 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2815 shpnt->io_port, shpn in aha152x_show_info()
2983 aha152x_porttest(int io_port) aha152x_porttest() argument
2998 tc1550_porttest(int io_port) tc1550_porttest() argument
[all...]
H 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()
/kernel/linux/linux-6.6/drivers/scsi/
H A 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), HAC in aha1542_test_port()
[all...]
H 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 in generic_NCR5380_precv()
[all...]
H A Daha152x.c749 shpnt->io_port = setup->io_port; in aha152x_probe_one()
754 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
755 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
757 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
758 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
796 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
875 if (shpnt->io_port) in aha152x_release()
876 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2867 shpnt->io_port, shpn in aha152x_show_info()
3036 aha152x_porttest(int io_port) aha152x_porttest() argument
3051 tc1550_porttest(int io_port) tc1550_porttest() argument
[all...]
H A 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()
/kernel/linux/linux-5.10/include/uapi/linux/
H 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 */
/kernel/linux/linux-6.6/include/uapi/linux/
H 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 */
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dscc.h92 typedef unsigned long io_port; typedef
120 io_port data_a;
121 io_port ctrl_a;
122 io_port data_b;
123 io_port ctrl_b;
124 io_port vector_latch;
125 io_port special;
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dscc.h80 typedef unsigned long io_port; typedef
109 io_port data_a;
110 io_port ctrl_a;
111 io_port data_b;
112 io_port ctrl_b;
113 io_port vector_latch;
114 io_port special;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dscc.h92 typedef unsigned long io_port; typedef
120 io_port data_a;
121 io_port ctrl_a;
122 io_port data_b;
123 io_port ctrl_b;
124 io_port vector_latch;
125 io_port special;
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c82 /* Hardware Registers: offsets from io_port (base) */
208 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()
214 outb(C4_IMG, io_port + CONFIG4); /* REG0(io_port); */ 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 in chip_init()
226 SYM53C500_int_host_reset(int io_port) SYM53C500_int_host_reset() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c82 /* Hardware Registers: offsets from io_port (base) */
214 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 in chip_init()
232 SYM53C500_int_host_reset(int io_port) SYM53C500_int_host_reset() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/
H A Des1968.c503 unsigned long io_port; member
578 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write()
579 outw(data, chip->io_port + ESM_DATA); in __maestro_write()
595 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read()
596 chip->maestro_map[reg] = inw(chip->io_port + ESM_DATA); in __maestro_read()
617 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait()
630 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait_poll()
644 outw(val, chip->io_port + ESM_AC97_DATA); in snd_es1968_ac97_write()
646 outb(reg, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_write()
657 outb(reg | 0x80, chip->io_port in snd_es1968_ac97_read()
[all...]
/kernel/linux/linux-6.6/sound/pci/
H A Des1968.c499 unsigned long io_port; member
574 outw(reg, chip->io_port + ESM_INDEX); in __maestro_write()
575 outw(data, chip->io_port + ESM_DATA); in __maestro_write()
591 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read()
592 chip->maestro_map[reg] = inw(chip->io_port + ESM_DATA); in __maestro_read()
613 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait()
626 if (!(inb(chip->io_port + ESM_AC97_INDEX) & 1)) in snd_es1968_ac97_wait_poll()
640 outw(val, chip->io_port + ESM_AC97_DATA); in snd_es1968_ac97_write()
642 outb(reg, chip->io_port + ESM_AC97_INDEX); in snd_es1968_ac97_write()
653 outb(reg | 0x80, chip->io_port in snd_es1968_ac97_read()
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/via/
H 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()
201 sprintf(adapter->name, "viafb i2c io_port idx 0x%02x", in create_i2c_bus()
/kernel/linux/linux-6.6/drivers/video/fbdev/via/
H 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()
201 sprintf(adapter->name, "viafb i2c io_port idx 0x%02x", in create_i2c_bus()
/kernel/linux/linux-5.10/include/linux/
H 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 */
/kernel/linux/linux-6.6/include/linux/
H 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 */

Completed in 26 milliseconds

123456