/linux/drivers/net/can/softing/ |
A D | softing_fw.c | 25 iowrite16(cmd, &card->dpram[DPRAM_FCT_PARAM]); in _softing_fct_cmd() 71 iowrite16(RES_NONE, &card->dpram[DPRAM_RECEIPT]); in softing_bootloader_command() 72 iowrite16(cmd, &card->dpram[DPRAM_COMMAND]); in softing_bootloader_command() 286 iowrite16(len, &card->dpram[DPRAM_COMMAND + 10]); in softing_load_app_fw() 496 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() 505 iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 536 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() 581 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 582 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 583 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop() [all …]
|
/linux/arch/arm/common/ |
A D | scoop.c | 44 iowrite16(0x0100, sdev->base + SCOOP_MCR); /* 00 */ in reset_scoop() 45 iowrite16(0x0000, sdev->base + SCOOP_CDR); /* 04 */ in reset_scoop() 46 iowrite16(0x0000, sdev->base + SCOOP_CCR); /* 10 */ in reset_scoop() 50 iowrite16(0x0000, sdev->base + SCOOP_IRM); in reset_scoop() 63 iowrite16(gpwr, sdev->base + SCOOP_GPWR); in __scoop_gpio_set() 97 iowrite16(gpcr, sdev->base + SCOOP_GPCR); in scoop_gpio_direction_input() 117 iowrite16(gpcr, sdev->base + SCOOP_GPCR); in scoop_gpio_direction_output() 133 iowrite16(data, sdev->base + reg); in write_scoop_reg() 147 iowrite16(0x0101, sdev->base + SCOOP_MCR); in check_scoop_reg() 203 iowrite16(0x0140, devptr->base + SCOOP_MCR); in scoop_probe() [all …]
|
/linux/drivers/net/ethernet/rdc/ |
A D | r6040.c | 227 iowrite16(val, ioaddr + MMWD); in r6040_phy_write() 363 iowrite16(MAC_RST, ioaddr + MCR1); in r6040_reset_mac() 372 iowrite16(0, ioaddr + MAC_SM); in r6040_reset_mac() 386 iowrite16(MSK_INT, ioaddr + MIER); in r6040_init_mac_regs() 406 iowrite16(0, ioaddr + MT_ICR); in r6040_init_mac_regs() 407 iowrite16(0, ioaddr + MR_ICR); in r6040_init_mac_regs() 418 iowrite16(TM2TX, ioaddr + MTPR); in r6040_init_mac_regs() 663 iowrite16(misr, ioaddr + MIER); in r6040_interrupt() 685 iowrite16(misr, ioaddr + MIER); in r6040_interrupt() 833 iowrite16(TM2TX, ioaddr + MTPR); in r6040_start_xmit() [all …]
|
/linux/drivers/net/wireless/intersil/orinoco/ |
A D | orinoco_nortel.c | 70 iowrite16(8, card->bridge_io + 2); in orinoco_nortel_cor_reset() 72 iowrite16(0x80, card->attr_io + COR_OFFSET); in orinoco_nortel_cor_reset() 76 iowrite16(0, card->attr_io + COR_OFFSET); in orinoco_nortel_cor_reset() 77 iowrite16(0, card->attr_io + COR_OFFSET); in orinoco_nortel_cor_reset() 81 iowrite16(COR_VALUE, card->attr_io + COR_OFFSET); in orinoco_nortel_cor_reset() 85 iowrite16(0x228, card->bridge_io + 2); in orinoco_nortel_cor_reset() 100 iowrite16(0x118, card->bridge_io + 2); in orinoco_nortel_hw_init() 101 iowrite16(0x108, card->bridge_io + 2); in orinoco_nortel_hw_init() 103 iowrite16(0x8, card->bridge_io + 2); in orinoco_nortel_hw_init() 137 iowrite16(1, card->bridge_io + 10); in orinoco_nortel_hw_init() [all …]
|
/linux/drivers/mmc/host/ |
A D | toshsd.c | 43 iowrite16(0, host->ioaddr + SD_SOFTWARERESET); /* assert */ in toshsd_init() 49 iowrite16(0, host->ioaddr + SD_CARDCLOCKCTRL); in toshsd_init() 52 iowrite16(0, host->ioaddr + SD_STOPINTERNAL); in toshsd_init() 70 iowrite16(0x1000, host->ioaddr + SD_TRANSACTIONCTRL); in toshsd_init() 99 iowrite16(clk, host->ioaddr + SD_CARDCLOCKCTRL); in __toshsd_set_ios() 103 iowrite16(0, host->ioaddr + SD_CARDCLOCKCTRL); in __toshsd_set_ios() 284 iowrite16(0, host->ioaddr + SD_STOPINTERNAL); in toshsd_data_end_irq() 410 iowrite16(SD_STOPINT_ISSUE_CMD12, in toshsd_start_cmd() 458 iowrite16(SD_STOPINT_AUTO_ISSUE_CMD12, in toshsd_start_cmd() 471 iowrite16(c, host->ioaddr + SD_CMD); in toshsd_start_cmd() [all …]
|
A D | tmio_mmc.h | 258 iowrite16(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write16() 273 iowrite16(val & 0xffff, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32_as_16_and_16() 274 iowrite16(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); in sd_ctrl_write32_as_16_and_16()
|
/linux/drivers/gpu/drm/mgag200/ |
A D | mgag200_mm.c | 46 iowrite16(0, mem); in mgag200_probe_vram() 57 iowrite16(0xaa55, mem + offset); in mgag200_probe_vram() 58 iowrite16(0xaa55, mem + offset + 0x100); in mgag200_probe_vram() 63 iowrite16(orig1, mem + offset); in mgag200_probe_vram() 64 iowrite16(orig2, mem + offset + 0x100); in mgag200_probe_vram() 73 iowrite16(orig, mem); in mgag200_probe_vram()
|
/linux/drivers/video/fbdev/ |
A D | sh7760fb.c | 91 iowrite16(intr, par->base + LDINTR); in sh7760fb_blank() 92 iowrite16(cntr, par->base + LDCNTR); in sh7760fb_blank() 250 iowrite16(ldmtr, par->base + LDMTR); /* polarities */ in sh7760fb_set_par() 251 iowrite16(lddfr, par->base + LDDFR); /* color/depth */ in sh7760fb_set_par() 257 iowrite16(((htcn >> 3) - 1) | (((hdcn >> 3) - 1) << 8), in sh7760fb_set_par() 259 iowrite16(vdln - 1, par->base + LDVDLNR); in sh7760fb_set_par() 260 iowrite16(vtln - 1, par->base + LDVTLNR); in sh7760fb_set_par() 263 iowrite16(((hsynp >> 3) - 1) | (((hsynw >> 3) - 1) << 12), in sh7760fb_set_par() 266 iowrite16(par->pd->ldaclnr, par->base + LDACLNR); in sh7760fb_set_par() 292 iowrite16(stride, par->base + LDLAOR); in sh7760fb_set_par() [all …]
|
/linux/drivers/virtio/ |
A D | virtio_pci_legacy_dev.c | 148 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_queue_vector() 149 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_QUEUE_VECTOR); in vp_legacy_queue_vector() 166 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); in vp_legacy_config_vector() 182 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_set_queue_address() 197 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_get_queue_enable() 212 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_get_queue_size()
|
/linux/drivers/i2c/busses/ |
A 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() 86 iowrite16(smmr, dev->base + SMMR); in highlander_i2c_setup() 120 iowrite16(cmd, dev->base + SMSADR + i); in highlander_i2c_command() 144 iowrite16(ioread16(dev->base + SMCR) | SMCR_RST, dev->base + SMCR); in highlander_i2c_reset() 263 iowrite16(data[i], dev->base + SMTRDR + (i * sizeof(u16))); in highlander_i2c_write() 329 iowrite16(tmp, dev->base + SMMR); in highlander_i2c_smbus_xfer() 335 iowrite16((addr << 1) | read_write, dev->base + SMSMADR); in highlander_i2c_smbus_xfer()
|
/linux/drivers/net/ethernet/3com/ |
A D | 3c59x.c | 1494 iowrite16(cmd, ioaddr + EL3_CMD); in issue_and_wait() 1651 iowrite16(StartCoax, ioaddr + EL3_CMD); in vortex_up() 1879 iowrite16(FakeIntr, ioaddr + EL3_CMD); in vortex_timer() 1930 iowrite16(TxEnable, ioaddr + EL3_CMD); in vortex_tx_timeout() 1991 iowrite16(SetIntrEnb | in vortex_error() 2036 iowrite16(TxEnable, ioaddr + EL3_CMD); in vortex_error() 2700 iowrite16(RxDisable, ioaddr + EL3_CMD); in vortex_down() 2701 iowrite16(TxDisable, ioaddr + EL3_CMD); in vortex_down() 2708 iowrite16(StopCoax, ioaddr + EL3_CMD); in vortex_down() 3069 iowrite16(new_mode, ioaddr + EL3_CMD); in set_rx_mode() [all …]
|
/linux/drivers/staging/vt6655/ |
A D | mac.c | 720 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetMISCFifo() 722 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetMISCFifo() 786 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry() 788 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetKeyEntry() 801 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry() 803 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetKeyEntry() 811 iowrite16(offset + ii, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry() 813 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetKeyEntry() 839 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvDisableKeyEntry() 841 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvDisableKeyEntry()
|
/linux/drivers/net/ethernet/micrel/ |
A D | ks8851_par.c | 117 iowrite16(BE3 | BE2 | KS_CIDER, ksp->hw_addr_cmd); in ks_check_endian() 141 iowrite16(ksp->cmd_reg_cache, ksp->hw_addr_cmd); in ks8851_wrreg16_par() 142 iowrite16(val, ksp->hw_addr); in ks8851_wrreg16_par() 157 iowrite16(ksp->cmd_reg_cache, ksp->hw_addr_cmd); in ks8851_rdreg16_par() 207 iowrite16(fid, ksp->hw_addr); in ks8851_wrfifo_par() 208 iowrite16(txp->len, ksp->hw_addr); in ks8851_wrfifo_par()
|
A D | ks8842.c | 173 iowrite16(bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_select_bank() 187 iowrite16(value, adapter->hw_addr + offset); in ks8842_write16() 197 iowrite16(reg, adapter->hw_addr + offset); in ks8842_enable_bits() 207 iowrite16(reg, adapter->hw_addr + offset); in ks8842_clear_bits() 243 iowrite16(0, adapter->hw_addr + REG_GRR); in ks8842_reset() 339 iowrite16(ENABLED_IRQS_DMA_IP, adapter->hw_addr + REG_TIMB_IER); in ks8842_reset_hw() 343 iowrite16(ENABLED_IRQS, in ks8842_reset_hw() 488 iowrite16(*ptr16++, adapter->hw_addr + REG_QMU_DATA_LO); in ks8842_tx_frame() 489 iowrite16(*ptr16++, adapter->hw_addr + REG_QMU_DATA_HI); in ks8842_tx_frame() 787 iowrite16(entry_bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_tasklet() [all …]
|
/linux/drivers/spi/ |
A D | spi-npcm-pspi.c | 72 iowrite16(val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_irq_enable() 81 iowrite16(val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_irq_disable() 90 iowrite16(val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_enable() 99 iowrite16(val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_disable() 125 iowrite16(regtemp | mode_val, priv->base + NPCM_PSPI_CTL1); in npcm_pspi_set_mode() 143 iowrite16(regtemp, NPCM_PSPI_CTL1 + priv->base); in npcm_pspi_set_transfer_size() 156 iowrite16(regtemp | (ckdiv << 9), NPCM_PSPI_CTL1 + priv->base); in npcm_pspi_set_baudrate() 214 iowrite16(val, NPCM_PSPI_DATA + priv->base); in npcm_pspi_send()
|
/linux/drivers/net/ethernet/dlink/ |
A D | sundance.c | 877 iowrite16(0, ioaddr + IntrEnable); in netdev_open() 878 iowrite16(0, ioaddr + DownCounter); in netdev_open() 910 iowrite16(DEFAULT_INTR, ioaddr + IntrEnable); in netdev_open() 969 iowrite16(0, ioaddr + IntrEnable); in tx_timeout() 1144 iowrite16 (TxDisable, ioaddr + MACCtrl1); in reset_tx() 1244 iowrite16 (0, ioaddr + TxStatus); in intr_handler() 1601 iowrite16(addr16, np->base + StationAddr); in __set_mac_addr() 1603 iowrite16(addr16, np->base + StationAddr+2); in __set_mac_addr() 1605 iowrite16(addr16, np->base + StationAddr+4); in __set_mac_addr() 1844 iowrite16(0x0000, ioaddr + IntrEnable); in netdev_close() [all …]
|
/linux/drivers/net/ethernet/packetengines/ |
A D | yellowfin.c | 550 iowrite16(1, ioaddr + MII_Cmd); in mdio_read() 562 iowrite16(value, ioaddr + MII_Wr_Data); in mdio_write() 607 iowrite16(fifo_cfg, ioaddr + FIFOcfg); in yellowfin_open() 623 iowrite16(0x01CF, ioaddr + Cnfg); in yellowfin_open() 626 iowrite16(0x1018, ioaddr + FrameGap1); in yellowfin_open() 1219 iowrite16(0x0000, ioaddr + IntrEnb); in yellowfin_close() 1301 iowrite16(0x000F, ioaddr + AddrMode); in set_rx_mode() 1305 iowrite16(0x000B, ioaddr + AddrMode); in set_rx_mode() 1331 iowrite16(0x0003, ioaddr + AddrMode); in set_rx_mode() 1333 iowrite16(0x0001, ioaddr + AddrMode); in set_rx_mode() [all …]
|
/linux/arch/alpha/kernel/ |
A D | io.c | 50 void iowrite16(u16 b, void __iomem *addr) in iowrite16() function 53 IO_CONCAT(__IO_PREFIX,iowrite16)(b, addr); in iowrite16() 66 EXPORT_SYMBOL(iowrite16); 91 iowrite16(b, ioport_map(port, 2)); in outw() 403 iowrite16(*(unsigned short *)src, port); in iowrite16_rep() 413 iowrite16(w >> 0, port); in iowrite16_rep() 414 iowrite16(w >> 16, port); in iowrite16_rep() 418 iowrite16(*(unsigned short *)src, port); in iowrite16_rep()
|
/linux/drivers/ata/ |
A D | pata_bk3710.c | 98 iowrite16(val16, base + BK3710_UDMACTL); in pata_bk3710_setudmamode() 130 iowrite16(val16, base + BK3710_UDMACTL); in pata_bk3710_setmwdmamode() 245 iowrite16(BIT(15), base + BK3710_IDETIMP); in pata_bk3710_chipinit() 253 iowrite16(0, base + BK3710_UDMACTL); in pata_bk3710_chipinit() 277 iowrite16(0xE, base + BK3710_BMISP); in pata_bk3710_chipinit()
|
/linux/drivers/mfd/ |
A D | tc6393xb.c | 337 iowrite16(mode->pixclock, tc6393xb->scr + SCR_PLL1CR + 0); in tc6393xb_lcd_mode() 338 iowrite16(mode->pixclock >> 16, tc6393xb->scr + SCR_PLL1CR + 2); in tc6393xb_lcd_mode() 665 iowrite16(tcpd->scr_pll2cr, tc6393xb->scr + SCR_PLL2CR); in tc6393xb_probe() 666 iowrite16(SCR_CCR_UNK1 | SCR_CCR_HCLK_48, in tc6393xb_probe() 668 iowrite16(SCR_MCR_RDY_OPENDRAIN | SCR_MCR_RDY_UNK | SCR_MCR_RDY_EN | in tc6393xb_probe() 671 iowrite16(tcpd->scr_gper, tc6393xb->scr + SCR_GPER); in tc6393xb_probe() 802 iowrite16(tcpd->scr_pll2cr, tc6393xb->scr + SCR_PLL2CR); in tc6393xb_resume() 803 iowrite16(tc6393xb->suspend_state.ccr, tc6393xb->scr + SCR_CCR); in tc6393xb_resume() 804 iowrite16(SCR_MCR_RDY_OPENDRAIN | SCR_MCR_RDY_UNK | SCR_MCR_RDY_EN | in tc6393xb_resume() 807 iowrite16(tcpd->scr_gper, tc6393xb->scr + SCR_GPER); in tc6393xb_resume()
|
/linux/drivers/comedi/drivers/ |
A D | mf6x4.c | 100 iowrite16(s->state, dev->mmio + MF6X4_DOUT_REG); in mf6x4_do_insn_bits() 133 iowrite16(MF6X4_ADCTRL_CHAN(chan), dev->mmio + MF6X4_ADCTRL_REG); in mf6x4_ai_insn_read() 150 iowrite16(0x0, dev->mmio + MF6X4_ADCTRL_REG); in mf6x4_ai_insn_read() 173 iowrite16(val, dev->mmio + MF6X4_DAC_REG(chan)); in mf6x4_ao_insn_write()
|
/linux/arch/alpha/include/asm/ |
A D | io.h | 162 REMAP2(u16, iowrite16, /**/) in REMAP1() 334 extern inline void iowrite16(u16 b, void __iomem *addr) in iowrite16() function 337 IO_CONCAT(__IO_PREFIX, iowrite16)(b, addr); in iowrite16() 357 iowrite16(b, ioport_map(port, 2)); in outw() 494 #define iowrite16be(v,p) iowrite16(swab16(v), (p))
|
/linux/drivers/net/ethernet/cirrus/ |
A D | cs89x0.c | 219 iowrite16(tmp16, lp->virt_addr + portno); in writewords() 228 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg() 237 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg() 238 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg() 526 iowrite16(TX_AFTER_ALL, lp->virt_addr + TX_CMD_PORT); in send_test_pkt() 527 iowrite16(ETH_ZLEN, lp->virt_addr + TX_LEN_PORT); in send_test_pkt() 1161 iowrite16(lp->send_cmd, lp->virt_addr + TX_CMD_PORT); in net_send_packet() 1162 iowrite16(skb->len, lp->virt_addr + TX_LEN_PORT); in net_send_packet() 1338 iowrite16(PP_ChipID, ioaddr + ADD_PORT); in cs89x0_probe1() 1577 iowrite16(PP_ChipID, lp->virt_addr + ADD_PORT); in cs89x0_probe1() [all …]
|
/linux/drivers/ntb/hw/intel/ |
A D | ntb_hw_gen4.c | 57 iowrite16(GEN4_SLOTSTS_DLLSCS, ndev->self_mmio + GEN4_SLOTSTS); in gen4_poll_link() 199 iowrite16(lnkctl, ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in gen4_init_dev() 401 iowrite16(base_idx, mmio + idx_reg); in intel_ntb4_mw_set_trans() 406 iowrite16(0, mmio + idx_reg); in intel_ntb4_mw_set_trans() 461 iowrite16(lnkctl, ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in intel_ntb4_link_enable() 498 iowrite16(lnkctl, ndev->self_mmio + GEN4_LINK_CTRL_OFFSET); in intel_ntb4_link_disable()
|
/linux/drivers/cpufreq/ |
A D | pcc-cpufreq.c | 157 iowrite16(CMD_GET_FREQ, &pcch_hdr->command); in pcc_get_freq() 173 iowrite16(0, &pcch_hdr->status); in pcc_get_freq() 192 iowrite16(0, &pcch_hdr->status); in pcc_get_freq() 224 iowrite16(CMD_SET_FREQ, &pcch_hdr->command); in pcc_cpufreq_target() 232 iowrite16(0, &pcch_hdr->status); in pcc_cpufreq_target()
|