/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/ |
H A D | qe_io.c | 31 in_be32(&par_io->ioport[port].dir2) : in qe_config_iopin() 32 in_be32(&par_io->ioport[port].dir1); in qe_config_iopin() 35 out_be32(&par_io->ioport[port].dir2, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 36 out_be32(&par_io->ioport[port].dir2, pin_2bit_dir | tmp_val); in qe_config_iopin() 38 out_be32(&par_io->ioport[port].dir1, ~pin_2bit_mask & tmp_val); in qe_config_iopin() 39 out_be32(&par_io->ioport[port].dir1, pin_2bit_dir | tmp_val); in qe_config_iopin() 46 tmp_val = in_be32(&par_io->ioport[port].podr); in qe_config_iopin() 48 out_be32(&par_io->ioport[port].podr, pin_1bit_mask | tmp_val); in qe_config_iopin() 50 out_be32(&par_io->ioport[port].podr, ~pin_1bit_mask & tmp_val); in qe_config_iopin() 55 in_be32(&par_io->ioport[port].ppar2): in qe_config_iopin() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | pvpanic-isa.c | 30 * use ioport. 35 uint16_t ioport; member 59 *pvpanic_port = cpu_to_le16(s->ioport); in pvpanic_isa_realizefn() 63 isa_register_ioport(d, &ps->mr, s->ioport); in pvpanic_isa_realizefn() 76 aml_io(AML_DECODE16, s->ioport, s->ioport, 1, 1) in build_pvpanic_isa_aml() 81 aml_int(s->ioport), 1)); in build_pvpanic_isa_aml() 102 DEFINE_PROP_UINT16(PVPANIC_IOPORT_PROP, PVPanicISAState, ioport, 0x505),
|
H A D | pc-testdev.c | 49 MemoryRegion ioport; member 177 memory_region_init_io(&dev->ioport, OBJECT(dev), &test_ioport_ops, dev, in testdev_realizefn() 178 "pc-testdev-ioport", 4); in testdev_realizefn() 181 "pc-testdev-ioport-byte", 4); in testdev_realizefn() 189 memory_region_add_subregion(io, 0xe0, &dev->ioport); in testdev_realizefn()
|
/openbmc/linux/drivers/scsi/ |
H A D | FlashPoint.c | 182 #define RD_HARPOON(ioport) inb((u32)ioport) argument 183 #define RDW_HARPOON(ioport) inw((u32)ioport) argument 184 #define RD_HARP32(ioport,offset,data) (data = inl((u32)(ioport + offset))) argument 185 #define WR_HARPOON(ioport,val) outb((u8) val, (u32)ioport) argument 186 #define WRW_HARPOON(ioport,val) outw((u16)val, (u32)ioport) argument 187 #define WR_HARP32(ioport,offset,data) outl(data, (u32)(ioport + offset)) argument 252 u32 ioPort; member 780 static unsigned char FPT_ChkIfChipInitialized(u32 ioPort); 916 u32 ioport; in FlashPoint_ProbeHostAdapter() local 919 ioport = pCardInfo->si_baseaddr; in FlashPoint_ProbeHostAdapter() [all …]
|
/openbmc/u-boot/drivers/ata/ |
H A D | sata_sil3114.c | 30 static void sata_port (struct sata_ioports *ioport); 353 static void sata_port (struct sata_ioports *ioport) in sata_port() argument 355 ioport->data_addr = ioport->cmd_addr + ATA_REG_DATA; in sata_port() 356 ioport->error_addr = ioport->cmd_addr + ATA_REG_ERR; in sata_port() 357 ioport->feature_addr = ioport->cmd_addr + ATA_REG_FEATURE; in sata_port() 358 ioport->nsect_addr = ioport->cmd_addr + ATA_REG_NSECT; in sata_port() 359 ioport->lbal_addr = ioport->cmd_addr + ATA_REG_LBAL; in sata_port() 360 ioport->lbam_addr = ioport->cmd_addr + ATA_REG_LBAM; in sata_port() 361 ioport->lbah_addr = ioport->cmd_addr + ATA_REG_LBAH; in sata_port() 362 ioport->device_addr = ioport->cmd_addr + ATA_REG_DEVICE; in sata_port() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | smsc37b787_wdt.c | 51 #include <linux/ioport.h> 72 #define IOPORT 0x3F0 macro 92 outb(0x55, IOPORT); in open_io_config() 94 outb(0x55, IOPORT); in open_io_config() 100 outb(0xAA, IOPORT); in close_io_config() 106 outb(0x07, IOPORT); in select_io_device() 107 outb(devno, IOPORT+1); in select_io_device() 113 outb(reg, IOPORT); in write_io_cr() 114 outb(data, IOPORT+1); in write_io_cr() 120 outb(reg, IOPORT); in read_io_cr() [all …]
|
H A D | mixcomwd.c | 46 #include <linux/ioport.h> 69 int ioport; member 263 for (i = 0; !found && mixcomwd_io_info[i].ioport != 0; i++) { in mixcomwd_init() 264 if (checkcard(mixcomwd_io_info[i].ioport, in mixcomwd_init() 267 watchdog_port = mixcomwd_io_info[i].ioport; in mixcomwd_init()
|
/openbmc/linux/Documentation/driver-api/media/drivers/ |
H A D | radiotrack.rst | 53 CONTROLLING THE CARD WITH IOPORT 56 The RadioTrack (base) ioport is configurable for 0x30c or 0x20c. Only one 57 ioport seems to be involved. The ioport decoding circuitry must be pretty 58 simple, as individual ioport bits are directly matched to specific functions 60 parallel with one write to the ioport. The only feedback available through 63 The bits of the ioport are arranged as follows: 91 Results available by reading ioport >60 msec after last port write. 151 x <-- BASE (read ioport)
|
/openbmc/linux/Documentation/scsi/ |
H A D | aha152x.rst | 26 IOPORT base io address (0x340/0x140) 48 - DSETUP0="{ IOPORT, IRQ, SCSI_ID, RECONNECT, PARITY, SYNCHRONOUS, DELAY, EXT_TRANS }" 51 - DSETUP1="{ IOPORT, IRQ, SCSI_ID, RECONNECT, PARITY, SYNCHRONOUS, DELAY, EXT_TRANS }" 66 …aha152x=<IOPORT>[,<IRQ>[,<SCSI-ID>[,<RECONNECT>[,<PARITY>[,<SYNCHRONOUS>[,<DELAY> [,<EXT_TRANS]]]]… 82 aha152x=IOPORT,IRQ,SCSI_ID,RECONNECT,PARITY,SYNCHRONOUS,DELAY,EXT_TRANS 88 aha152x1=IOPORT,IRQ,SCSI_ID,RECONNECT,PARITY,SYNCHRONOUS,DELAY,EXT_TRANS 95 IOPORT for first and second controller
|
/openbmc/qemu/docs/specs/ |
H A D | fw_cfg.rst | 18 * Location: platform dependent (IOport or MMIO) 20 * Endianness: little-endian (if IOport), or big-endian (if MMIO) 57 * Location: platform dependent (IOport\ [#placement]_ or MMIO) 58 * Width: 8-bit (if IOport), 8/16/32/64-bit (if MMIO) 62 On platforms where the data register is exposed as an IOport, its 88 * Selector Register IOport: 0x510 89 * Data Register IOport: 0x511 90 * DMA Address IOport: 0x514 105 inventory of in-use IOport or MMIO regions.
|
/openbmc/linux/drivers/acpi/apei/ |
H A D | apei-base.c | 289 .ioport = LIST_HEAD_INIT(apei_resources_all.ioport), 383 apei_res_clean(&resources->ioport); in apei_resources_fini() 399 list_for_each_entry(res, &resources2->ioport, list) { in apei_resources_merge() 400 rc = apei_res_add(&resources1->ioport, res->start, in apei_resources_merge() 416 return apei_res_add(&resources->ioport, start, size); in apei_resources_add() 433 return apei_res_sub(&resources1->ioport, &resources2->ioport); in apei_resources_sub() 510 list_for_each_entry(res, &resources->ioport, list) { in apei_resources_request() 531 list_for_each_entry(res, &resources->ioport, list) { in apei_resources_request() 559 list_for_each_entry(res, &resources->ioport, list) in apei_resources_release() 733 return apei_res_add(&resources->ioport, paddr, in collect_res_callback()
|
H A D | apei-internal.h | 99 struct list_head ioport; member 105 INIT_LIST_HEAD(&resources->ioport); in apei_resources_init()
|
/openbmc/linux/drivers/input/gameport/ |
H A D | ns558.c | 14 #include <linux/ioport.h> 180 int ioport, iolen; in ns558_pnp_probe() local 189 ioport = pnp_port_start(dev, 0); in ns558_pnp_probe() 192 if (!request_region(ioport, iolen, "ns558-pnp")) in ns558_pnp_probe() 204 ns558->io = ioport; in ns558_pnp_probe() 212 port->io = ioport; in ns558_pnp_probe()
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | jensen.h | 321 #define IOPORT(OS, NS) \ macro 337 IOPORT(b, 8) 338 IOPORT(w, 16) 339 IOPORT(l, 32) 340 IOPORT(q, 64) 342 #undef IOPORT
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A D | bochs.c | 98 static void bochs_vga_writeb(struct bochs_device *bochs, u16 ioport, u8 val) in bochs_vga_writeb() argument 100 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_writeb() 104 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_writeb() 108 outb(val, ioport); in bochs_vga_writeb() 112 static u8 bochs_vga_readb(struct bochs_device *bochs, u16 ioport) in bochs_vga_readb() argument 114 if (WARN_ON(ioport < 0x3c0 || ioport > 0x3df)) in bochs_vga_readb() 118 int offset = ioport - 0x3c0 + 0x400; in bochs_vga_readb() 122 return inb(ioport); in bochs_vga_readb()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-bq4802.c | 22 unsigned long ioport; member 32 return inb(p->ioport + off); in bq4802_read_io() 37 outb(val, p->ioport + off); in bq4802_write_io() 160 p->ioport = p->r->start; in bq4802_probe()
|
/openbmc/qemu/hw/ide/ |
H A D | meson.build | 9 system_ss.add(when: 'CONFIG_IDE_ISA', if_true: files('isa.c', 'ioport.c')) 13 system_ss.add(when: 'CONFIG_IDE_PIIX', if_true: files('piix.c', 'ioport.c'))
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | n411.c | 196 module_param_hw(dio_addr, ulong, ioport, 0); 198 module_param_hw(cio_addr, ulong, ioport, 0); 200 module_param_hw(c2io_addr, ulong, ioport, 0);
|
/openbmc/linux/include/pcmcia/ |
H A D | ss.h | 231 * - pccard_static_ops iomem and ioport areas are assigned statically 232 * - pccard_iodyn_ops iomem areas is assigned statically, ioport 236 * - pccard_nonstatic_ops iomem and ioport areas are assigned dynamically.
|
/openbmc/linux/Documentation/pcmcia/ |
H A D | driver-changes.rst | 17 - CONF_AUTO_SET_IO : set ioport resources (->resource[0,1]) 28 `struct pcmcia_device *p_dev->resource[2,3,4,5]` for up to four ioport 35 `struct pcmcia_device *p_dev->resource[0,1]` for up to two ioport
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | perf-kvm.txt | 54 of KVM events. Currently, vmexit, mmio (x86 only) and ioport (x86 only) 98 ioport (x86 only). (default: vmexit) 136 mmio (x86 only), ioport (x86 only).
|
/openbmc/qemu/hw/audio/ |
H A D | pcspk.c | 48 MemoryRegion ioport; member 177 memory_region_init_io(&s->ioport, OBJECT(s), &pcspk_io_ops, s, "pcspk", 1); in pcspk_initfn() 190 isa_register_ioport(isadev, &s->ioport, s->iobase); in pcspk_realizefn()
|
/openbmc/qemu/hw/isa/ |
H A D | isa-bus.c | 121 static inline void isa_init_ioport(ISADevice *dev, uint16_t ioport) in isa_init_ioport() argument 123 if (dev && (dev->ioport_id == 0 || ioport < dev->ioport_id)) { in isa_init_ioport() 124 dev->ioport_id = ioport; in isa_init_ioport()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-gpio-mm.c | 11 #include <linux/ioport.h> 28 module_param_hw_array(base, uint, ioport, &num_gpiomm, 0);
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.c | 714 u32 ioport = (port & MWIFIEX_SDIO_IO_PORT_MASK); in mwifiex_write_data_sync() local 724 ret = sdio_writesb(card->func, ioport, buffer, blk_cnt * blk_size); in mwifiex_write_data_sync() 743 u32 ioport = (port & MWIFIEX_SDIO_IO_PORT_MASK); in mwifiex_read_data_sync() local 748 ret = sdio_readsb(card->func, buffer, ioport, blk_cnt * blk_size); in mwifiex_read_data_sync() 1037 adapter->ioport = MEM_PORT; in mwifiex_init_sdio_new_mode() 1077 adapter->ioport = 0; in mwifiex_init_sdio_ioport() 1087 adapter->ioport |= (reg & 0xff); in mwifiex_init_sdio_ioport() 1092 adapter->ioport |= ((reg & 0xff) << 8); in mwifiex_init_sdio_ioport() 1097 adapter->ioport |= ((reg & 0xff) << 16); in mwifiex_init_sdio_ioport() 1102 "info: SDIO FUNC1 IO port: %#x\n", adapter->ioport); in mwifiex_init_sdio_ioport() [all …]
|