/linux-6.6.21/arch/powerpc/platforms/85xx/ |
D | ge_imp3a.c | 138 reg = ioread16(imp3a_regs); in ge_imp3a_get_pcb_rev() 147 reg = ioread16(imp3a_regs + 0x2); in ge_imp3a_get_board_rev() 156 reg = ioread16(imp3a_regs + 0x2); in ge_imp3a_get_fpga_rev() 165 reg = ioread16(imp3a_regs + 0x6); in ge_imp3a_get_cpci_geo_addr() 174 reg = ioread16(imp3a_regs + 0x6); in ge_imp3a_get_cpci_is_syscon()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-highlander.c | 56 iowrite16(ioread16(dev->base + SMCR) | SMCR_IEIC, dev->base + SMCR); in highlander_i2c_irq_enable() 61 iowrite16(ioread16(dev->base + SMCR) & ~SMCR_IEIC, dev->base + SMCR); in highlander_i2c_irq_disable() 66 iowrite16(ioread16(dev->base + SMCR) | SMCR_START, dev->base + SMCR); in highlander_i2c_start() 71 iowrite16(ioread16(dev->base + SMCR) | SMCR_IRIC, dev->base + SMCR); in highlander_i2c_done() 78 smmr = ioread16(dev->base + SMMR); in highlander_i2c_setup() 130 while (ioread16(dev->base + SMCR) & SMCR_BBSY) { in highlander_i2c_wait_for_bbsy() 144 iowrite16(ioread16(dev->base + SMCR) | SMCR_RST, dev->base + SMCR); in highlander_i2c_reset() 150 u16 tmp = ioread16(dev->base + SMCR); in highlander_i2c_wait_for_ack() 177 smcr = ioread16(dev->base + SMCR); in highlander_i2c_poll() 243 data[i] = ioread16(dev->base + SMTRDR + (i * sizeof(u16))); in highlander_i2c_read() [all …]
|
/linux-6.6.21/drivers/net/wireless/intersil/orinoco/ |
D | orinoco_nortel.c | 71 ioread16(card->attr_io + COR_OFFSET); in orinoco_nortel_cor_reset() 96 if (ioread16(card->bridge_io) & 1) { in orinoco_nortel_hw_init() 106 if (ioread16(card->bridge_io) & 0x10) in orinoco_nortel_hw_init() 113 if (ioread16(card->attr_io + COR_OFFSET) & 1) { in orinoco_nortel_hw_init() 117 if (ioread16(card->attr_io + COR_OFFSET + 2) & 1) { in orinoco_nortel_hw_init() 121 if (ioread16(card->attr_io + COR_OFFSET + 4) & 1) { in orinoco_nortel_hw_init() 129 reg = ioread16(card->attr_io + COR_OFFSET); in orinoco_nortel_hw_init()
|
/linux-6.6.21/arch/arm/common/ |
D | scoop.c | 58 gpwr = ioread16(sdev->base + SCOOP_GPWR); in __scoop_gpio_set() 83 return !!(ioread16(sdev->base + SCOOP_GPRR) & (1 << (offset + 1))); in scoop_gpio_get() 95 gpcr = ioread16(sdev->base + SCOOP_GPCR); in scoop_gpio_direction_input() 115 gpcr = ioread16(sdev->base + SCOOP_GPCR); in scoop_gpio_direction_output() 127 return ioread16(sdev->base + reg); in read_scoop_reg() 145 mcr = ioread16(sdev->base + SCOOP_MCR); in check_scoop_reg() 155 sdev->scoop_gpwr = ioread16(sdev->base + SCOOP_GPWR); in scoop_suspend()
|
/linux-6.6.21/drivers/mmc/host/ |
D | toshsd.c | 221 data = ioread16(host->ioaddr + SD_RESPONSE0); in toshsd_cmd_irq() 224 data = ioread16(host->ioaddr + SD_RESPONSE1); in toshsd_cmd_irq() 227 data = ioread16(host->ioaddr + SD_RESPONSE2); in toshsd_cmd_irq() 230 data = ioread16(host->ioaddr + SD_RESPONSE3); in toshsd_cmd_irq() 233 data = ioread16(host->ioaddr + SD_RESPONSE4); in toshsd_cmd_irq() 236 data = ioread16(host->ioaddr + SD_RESPONSE5); in toshsd_cmd_irq() 239 data = ioread16(host->ioaddr + SD_RESPONSE6); in toshsd_cmd_irq() 242 data = ioread16(host->ioaddr + SD_RESPONSE7); in toshsd_cmd_irq() 246 data = ioread16(host->ioaddr + SD_RESPONSE0); in toshsd_cmd_irq() 249 data = ioread16(host->ioaddr + SD_RESPONSE1); in toshsd_cmd_irq() [all …]
|
D | tmio_mmc.h | 215 return ioread16(host->ctl + (addr << host->bus_shift)); in sd_ctrl_read16() 227 return ioread16(host->ctl + (addr << host->bus_shift)) | in sd_ctrl_read16_and_16_as_32() 228 ioread16(host->ctl + ((addr + 2) << host->bus_shift)) << 16; in sd_ctrl_read16_and_16_as_32()
|
/linux-6.6.21/drivers/spi/ |
D | spi-npcm-pspi.c | 70 val = ioread16(priv->base + NPCM_PSPI_CTL1); in npcm_pspi_irq_enable() 79 val = ioread16(priv->base + NPCM_PSPI_CTL1); in npcm_pspi_irq_disable() 88 val = ioread16(priv->base + NPCM_PSPI_CTL1); in npcm_pspi_enable() 97 val = ioread16(priv->base + NPCM_PSPI_CTL1); in npcm_pspi_disable() 123 regtemp = ioread16(priv->base + NPCM_PSPI_CTL1); in npcm_pspi_set_mode() 132 regtemp = ioread16(NPCM_PSPI_CTL1 + priv->base); in npcm_pspi_set_transfer_size() 154 regtemp = ioread16(NPCM_PSPI_CTL1 + priv->base); in npcm_pspi_set_baudrate() 238 val = ioread16(priv->base + NPCM_PSPI_DATA); in npcm_pspi_recv()
|
/linux-6.6.21/arch/alpha/kernel/ |
D | io.c | 26 unsigned int ioread16(const void __iomem *addr) in ioread16() function 30 ret = IO_CONCAT(__IO_PREFIX,ioread16)(addr); in ioread16() 78 EXPORT_SYMBOL(ioread16); 93 return ioread16(ioport_map(port, 2)); in inw() 327 *(unsigned short *)dst = ioread16(port); in ioread16_rep() 334 w = ioread16(port); in ioread16_rep() 335 w |= ioread16(port) << 16; in ioread16_rep() 341 *(unsigned short*)dst = ioread16(port); in ioread16_rep()
|
/linux-6.6.21/drivers/net/ethernet/rdc/ |
D | r6040.c | 208 cmd = ioread16(ioaddr + MMDIO); in r6040_phy_read() 217 return ioread16(ioaddr + MMRD); in r6040_phy_read() 232 cmd = ioread16(ioaddr + MMDIO); in r6040_phy_write() 362 md_csc = ioread16(ioaddr + MD_CSC); in r6040_reset_mac() 365 cmd = ioread16(ioaddr + MCR1); in r6040_reset_mac() 428 ioread16(ioaddr + MIER), in r6040_tx_timeout() 429 ioread16(ioaddr + MISR)); in r6040_tx_timeout() 594 err = ioread16(ioaddr + MLSR); in r6040_tx() 640 iowrite16(ioread16(ioaddr + MIER) | RX_INTS | TX_INTS, in r6040_poll() 655 misr = ioread16(ioaddr + MIER); in r6040_interrupt() [all …]
|
/linux-6.6.21/drivers/ata/ |
D | pata_opti.c | 86 ioread16(regio + 1); in opti_write_reg() 87 ioread16(regio + 1); in opti_write_reg() 126 clock = ioread16(regio + 5) & 1; in opti_set_piomode()
|
/linux-6.6.21/drivers/virtio/ |
D | virtio_pci_legacy_dev.c | 153 return ioread16(ldev->ioaddr + VIRTIO_MSI_QUEUE_VECTOR); in vp_legacy_queue_vector() 171 return ioread16(ldev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); in vp_legacy_config_vector() 215 return ioread16(ldev->ioaddr + VIRTIO_PCI_QUEUE_NUM); in vp_legacy_get_queue_size()
|
/linux-6.6.21/drivers/net/ethernet/dlink/ |
D | sundance.c | 723 if (! (ioread16(ioaddr + EECtrl) & 0x8000)) { in eeprom_read() 724 return ioread16(ioaddr + EEData); in eeprom_read() 902 ioread16(ioaddr + MACCtrl1), ioread16(ioaddr + MACCtrl0)); in netdev_open() 926 iowrite16 (ioread16 (ioaddr + MACCtrl0) | EnbFullDuplex, in check_duplex() 939 iowrite16(ioread16(ioaddr + MACCtrl0) | (duplex ? 0x20 : 0), ioaddr + MACCtrl0); in check_duplex() 953 dev->name, ioread16(ioaddr + IntrEnable), in netdev_timer() 1185 int intr_status = ioread16(ioaddr + IntrStatus); in intr_handler() 1205 tx_status = ioread16 (ioaddr + TxStatus); in intr_handler() 1237 iowrite16(ioread16(ioaddr + MACCtrl1) | TxEnable, ioaddr + MACCtrl1); in intr_handler() 1238 if (ioread16(ioaddr + MACCtrl1) & TxEnabled) in intr_handler() [all …]
|
/linux-6.6.21/arch/alpha/include/asm/ |
D | io.h | 152 REMAP1(unsigned int, ioread16, const) in REMAP1() 344 extern inline unsigned int ioread16(const void __iomem *addr) in ioread16() function 348 ret = IO_CONCAT(__IO_PREFIX,ioread16)(addr); in ioread16() 372 return ioread16(ioport_map(port, 2)); in inw() 387 #define ioread16 ioread16 macro 542 #define ioread16be(p) swab16(ioread16(p))
|
D | io_trivial.h | 16 IO_CONCAT(__IO_PREFIX,ioread16)(const void __iomem *a) in IO_CONCAT() argument 96 return IO_CONCAT(__IO_PREFIX,ioread16)(addr); in IO_CONCAT()
|
/linux-6.6.21/drivers/clk/mstar/ |
D | clk-msc313-cpupll.c | 75 value = ioread16(cpupll->base + reg + 4) << 16; in msc313_cpupll_reg_read32() 76 value |= ioread16(cpupll->base + reg); in msc313_cpupll_reg_read32() 104 while (!(ioread16(cpupll->base + REG_LPF_LOCK))) { in msc313_cpupll_setfreq()
|
/linux-6.6.21/drivers/net/can/softing/ |
D | softing_fw.c | 40 return ioread16(&card->dpram[DPRAM_FCT_RESULT]); in _softing_fct_cmd() 78 ret = ioread16(&card->dpram[DPRAM_RECEIPT]); in softing_bootloader_command() 292 rx_sum = ioread16(&card->dpram[DPRAM_RECEIPT + 2]); in softing_load_app_fw() 362 card->id.fw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 2]); in softing_chip_poweron() 363 card->id.hw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 4]); in softing_chip_poweron() 364 card->id.license = ioread16(&card->dpram[DPRAM_FCT_PARAM + 6]); in softing_chip_poweron() 365 card->id.chip[0] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 8]); in softing_chip_poweron() 366 card->id.chip[1] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 10]); in softing_chip_poweron()
|
/linux-6.6.21/drivers/cpufreq/ |
D | pcc-cpufreq.c | 129 if (ioread16(&pcch_hdr->status) & CMD_COMPLETE) in pcc_cmd() 168 status = ioread16(&pcch_hdr->status); in pcc_get_freq() 232 status = ioread16(&pcch_hdr->status); in pcc_cpufreq_target() 464 ioread16(&pcch_hdr->length), ioread8(&pcch_hdr->major), in pcc_cpufreq_evaluate() 466 ioread16(&pcch_hdr->command), ioread16(&pcch_hdr->status), in pcc_cpufreq_evaluate()
|
/linux-6.6.21/drivers/ntb/hw/intel/ |
D | ntb_hw_gen4.c | 62 reg_val = ioread16(ndev->self_mmio + GEN4_LINK_STATUS_OFFSET); in gen4_poll_link() 212 lnkctl = ioread16(ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in gen4_init_dev() 318 u.v16 = ioread16(mmio + GEN4_LINK_STATUS_OFFSET); in ndev_ntb4_debugfs_read() 417 reg_val16 = ioread16(mmio + idx_reg); in intel_ntb4_mw_set_trans() 474 lnkctl = ioread16(ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in intel_ntb4_link_enable() 511 lnkctl = ioread16(ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in intel_ntb4_link_disable()
|
/linux-6.6.21/drivers/ipack/carriers/ |
D | tpci200.c | 74 iowrite16(ioread16(addr) & (~mask), addr); in tpci200_clear_mask() 83 iowrite16(ioread16(addr) | mask, addr); in tpci200_set_mask() 137 status_reg = ioread16(&tpci200->info->interface_regs->status); in tpci200_interrupt() 373 return (ioread16(addr) & TPCI200_CLK32) ? 32 : 8; in tpci200_get_clockrate() 410 return (ioread16(addr) & mask) ? 1 : 0; in tpci200_get_error() 425 return (ioread16(addr) & mask) ? 1 : 0; in tpci200_get_timeout()
|
/linux-6.6.21/arch/sh/kernel/ |
D | iomap.c | 17 unsigned int ioread16(const void __iomem *addr) in ioread16() function 21 EXPORT_SYMBOL(ioread16);
|
/linux-6.6.21/drivers/comedi/drivers/ |
D | mf6x4.c | 88 data[1] = ioread16(dev->mmio + MF6X4_DIN_REG) & MF6X4_DIN_MASK; in mf6x4_di_insn_bits() 136 ioread16(dev->mmio + MF6X4_ADSTART_REG); in mf6x4_ai_insn_read() 143 d = ioread16(dev->mmio + MF6X4_ADDATA_REG); in mf6x4_ai_insn_read()
|
/linux-6.6.21/drivers/gpu/drm/mgag200/ |
D | mgag200_drv.c | 57 orig = ioread16(mem); in mgag200_probe_vram() 69 test1 = ioread16(mem + offset); in mgag200_probe_vram() 70 test2 = ioread16(mem); in mgag200_probe_vram()
|
/linux-6.6.21/drivers/net/ethernet/3com/ |
D | 3c59x.c | 915 if (vortex_probe1(device, ioaddr, ioread16(ioaddr + 0xC88) >> 12, in vortex_eisa_probe() 1496 if (!(ioread16(ioaddr + EL3_STATUS) & CmdInProgress)) in issue_and_wait() 1502 if (!(ioread16(ioaddr + EL3_STATUS) & CmdInProgress)) { in issue_and_wait() 1511 dev->name, cmd, ioread16(ioaddr + EL3_STATUS)); in issue_and_wait() 1889 ioread16(ioaddr + EL3_STATUS)); in vortex_tx_timeout() 1899 if (ioread16(ioaddr + EL3_STATUS) & IntLatch) { in vortex_tx_timeout() 1988 ioread16(ioaddr + EL3_STATUS) & StatsFull) { in vortex_error() 2076 if (ioread16(ioaddr + TxFree) > 1536) { in vortex_start_xmit() 2265 status = ioread16(ioaddr + EL3_STATUS); in _vortex_interrupt() 2305 if (ioread16(ioaddr + Wn7_MasterStatus) & 0x1000) { in _vortex_interrupt() [all …]
|
/linux-6.6.21/drivers/pci/switch/ |
D | switchtec.c | 407 int id = ioread16(&stdev->mmio_sys_info->gen3.component_id); in component_id_show() 698 if (ioread16(&si->cfg_running) == SWITCHTEC_GEN3_CFG0_RUNNING) in flash_part_info_gen3() 704 if (ioread16(&si->cfg_running) == SWITCHTEC_GEN3_CFG1_RUNNING) in flash_part_info_gen3() 710 if (ioread16(&si->img_running) == SWITCHTEC_GEN3_IMG0_RUNNING) in flash_part_info_gen3() 716 if (ioread16(&si->img_running) == SWITCHTEC_GEN3_IMG1_RUNNING) in flash_part_info_gen3() 774 if (ioread16(&si->key_running) == SWITCHTEC_GEN4_KEY0_RUNNING) in flash_part_info_gen4() 781 if (ioread16(&si->key_running) == SWITCHTEC_GEN4_KEY1_RUNNING) in flash_part_info_gen4() 788 if (ioread16(&si->bl2_running) == SWITCHTEC_GEN4_BL2_0_RUNNING) in flash_part_info_gen4() 795 if (ioread16(&si->bl2_running) == SWITCHTEC_GEN4_BL2_1_RUNNING) in flash_part_info_gen4() 802 if (ioread16(&si->cfg_running) == SWITCHTEC_GEN4_CFG0_RUNNING) in flash_part_info_gen4() [all …]
|
/linux-6.6.21/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 552 if ((ioread16(ioaddr + MII_Status) & 1) == 0) in mdio_read() 554 return ioread16(ioaddr + MII_Rd_Data); in mdio_read() 566 if ((ioread16(ioaddr + MII_Status) & 1) == 0) in mdio_write() 662 ioread16(ioaddr + IntrStatus)); in yellowfin_timer() 911 u16 intr_status = ioread16(ioaddr + IntrClear); in yellowfin_interrupt() 1037 ioread16(ioaddr + IntrStatus)); in yellowfin_interrupt() 1210 ioread16(ioaddr + TxStatus), in yellowfin_close() 1211 ioread16(ioaddr + RxStatus), in yellowfin_close() 1212 ioread16(ioaddr + IntrStatus)); in yellowfin_close() 1296 u16 cfg_value = ioread16(ioaddr + Cnfg); in set_rx_mode()
|