Home
last modified time | relevance | path

Searched refs:iowrite16 (Results 1 – 25 of 134) sorted by relevance

123456

/openbmc/linux/drivers/net/can/softing/
H A Dsofting_fw.c25 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()
582 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
583 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
584 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
[all …]
/openbmc/linux/arch/arm/common/
H A Dscoop.c44 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 …]
/openbmc/linux/drivers/net/ethernet/rdc/
H A Dr6040.c227 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 …]
/openbmc/linux/drivers/net/wireless/intersil/orinoco/
H A Dorinoco_nortel.c70 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 …]
/openbmc/linux/drivers/clk/mstar/
H A Dclk-msc313-cpupll.c85 iowrite16(l, cpupll->base + reg); in msc313_cpupll_reg_write32()
86 iowrite16(h, cpupll->base + reg + 4); in msc313_cpupll_reg_write32()
95 iowrite16(0x1, cpupll->base + REG_LPF_MYSTERYONE); in msc313_cpupll_setfreq()
96 iowrite16(0x6, cpupll->base + REG_LPF_MYSTERYTWO); in msc313_cpupll_setfreq()
97 iowrite16(0x8, cpupll->base + REG_LPF_UPDATE_COUNT); in msc313_cpupll_setfreq()
98 iowrite16(BIT(12), cpupll->base + REG_LPF_TRANSITIONCTRL); in msc313_cpupll_setfreq()
100 iowrite16(0, cpupll->base + REG_LPF_TOGGLE); in msc313_cpupll_setfreq()
101 iowrite16(1, cpupll->base + REG_LPF_TOGGLE); in msc313_cpupll_setfreq()
112 iowrite16(0, cpupll->base + REG_LPF_TOGGLE); in msc313_cpupll_setfreq()
/openbmc/linux/drivers/mmc/host/
H A Dtoshsd.c43 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 …]
H A Dtmio_mmc.h245 iowrite16(val, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write16()
260 iowrite16(val & 0xffff, host->ctl + (addr << host->bus_shift)); in sd_ctrl_write32_as_16_and_16()
261 iowrite16(val >> 16, host->ctl + ((addr + 2) << host->bus_shift)); in sd_ctrl_write32_as_16_and_16()
/openbmc/linux/drivers/video/fbdev/
H A Dsh7760fb.c91 iowrite16(intr, par->base + LDINTR); in sh7760fb_blank()
92 iowrite16(cntr, par->base + LDCNTR); in sh7760fb_blank()
252 iowrite16(ldmtr, par->base + LDMTR); /* polarities */ in sh7760fb_set_par()
253 iowrite16(lddfr, par->base + LDDFR); /* color/depth */ in sh7760fb_set_par()
259 iowrite16(((htcn >> 3) - 1) | (((hdcn >> 3) - 1) << 8), in sh7760fb_set_par()
261 iowrite16(vdln - 1, par->base + LDVDLNR); in sh7760fb_set_par()
262 iowrite16(vtln - 1, par->base + LDVTLNR); in sh7760fb_set_par()
265 iowrite16(((hsynp >> 3) - 1) | (((hsynw >> 3) - 1) << 12), in sh7760fb_set_par()
268 iowrite16(par->pd->ldaclnr, par->base + LDACLNR); in sh7760fb_set_par()
294 iowrite16(stride, par->base + LDLAOR); in sh7760fb_set_par()
[all …]
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_legacy_dev.c150 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_queue_vector()
151 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_QUEUE_VECTOR); in vp_legacy_queue_vector()
168 iowrite16(vector, ldev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); in vp_legacy_config_vector()
184 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_set_queue_address()
199 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_get_queue_enable()
214 iowrite16(index, ldev->ioaddr + VIRTIO_PCI_QUEUE_SEL); in vp_legacy_get_queue_size()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-highlander.c56 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()
/openbmc/linux/drivers/staging/vt6655/
H A Dmac.c53 iowrite16(reg_value | (bit_mask), iobase + reg_offset); in vt6655_mac_word_reg_bits_on()
69 iowrite16(reg_value & ~(bit_mask), iobase + reg_offset); in vt6655_mac_word_reg_bits_off()
729 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetMISCFifo()
731 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetMISCFifo()
795 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry()
797 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetKeyEntry()
810 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry()
812 iowrite16(MISCFFCTL_WRITE, io_base + MAC_REG_MISCFFCTL); in MACvSetKeyEntry()
820 iowrite16(offset + ii, io_base + MAC_REG_MISCFFNDEX); in MACvSetKeyEntry()
848 iowrite16(offset, io_base + MAC_REG_MISCFFNDEX); in MACvDisableKeyEntry()
[all …]
H A Dcard.c333 iowrite16(wBeaconInterval, priv->port_offset + MAC_REG_BI); in CARDbSetBeaconPeriod()
592 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_6); in CARDvSetRSPINF()
598 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_9); in CARDvSetRSPINF()
604 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_12); in CARDvSetRSPINF()
610 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_18); in CARDvSetRSPINF()
616 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_24); in CARDvSetRSPINF()
623 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_36); in CARDvSetRSPINF()
630 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_48); in CARDvSetRSPINF()
637 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_54); in CARDvSetRSPINF()
644 iowrite16(MAKEWORD(byTxRate, byRsvTime), priv->port_offset + MAC_REG_RSPINF_A_72); in CARDvSetRSPINF()
H A Dpower.c55 iowrite16(C_PWBT, priv->port_offset + MAC_REG_PWBT); in PSvEnablePowerSaving()
58 iowrite16(wAID, priv->port_offset + MAC_REG_AIDATIM); in PSvEnablePowerSaving()
/openbmc/linux/drivers/net/ethernet/micrel/
H A Dks8851_par.c117 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()
H A Dks8842.c173 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 …]
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c59x.c1494 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 …]
/openbmc/linux/drivers/gpu/drm/mgag200/
H A Dmgag200_drv.c58 iowrite16(0, mem); in mgag200_probe_vram()
66 iowrite16(0xaa55, mem + offset); in mgag200_probe_vram()
67 iowrite16(0xaa55, mem + offset + 0x100); in mgag200_probe_vram()
72 iowrite16(orig1, mem + offset); in mgag200_probe_vram()
73 iowrite16(orig2, mem + offset + 0x100); in mgag200_probe_vram()
82 iowrite16(orig, mem); in mgag200_probe_vram()
/openbmc/linux/drivers/spi/
H A Dspi-npcm-pspi.c72 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()
/openbmc/linux/drivers/net/ethernet/packetengines/
H A Dyellowfin.c550 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 …]
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c877 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()
1599 iowrite16(addr16, np->base + StationAddr); in __set_mac_addr()
1601 iowrite16(addr16, np->base + StationAddr+2); in __set_mac_addr()
1603 iowrite16(addr16, np->base + StationAddr+4); in __set_mac_addr()
1842 iowrite16(0x0000, ioaddr + IntrEnable); in netdev_close()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dio.c59 void iowrite16(u16 b, void __iomem *addr) in iowrite16() function
62 IO_CONCAT(__IO_PREFIX,iowrite16)(b, addr); in iowrite16()
82 EXPORT_SYMBOL(iowrite16);
108 iowrite16(b, ioport_map(port, 2)); in outw()
420 iowrite16(*(unsigned short *)src, port); in iowrite16_rep()
430 iowrite16(w >> 0, port); in iowrite16_rep()
431 iowrite16(w >> 16, port); in iowrite16_rep()
435 iowrite16(*(unsigned short *)src, port); in iowrite16_rep()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_pci_modern.c158 iowrite16(le16_to_cpu(w), priv->device + offset); in virtio_pci_set_config()
270 iowrite16(index, &cfg->queue_select); in virtio_pci_setup_vq()
290 iowrite16(virtqueue_get_vring_size(vq), &cfg->queue_size); in virtio_pci_setup_vq()
304 iowrite16(1, &cfg->queue_enable); in virtio_pci_setup_vq()
317 iowrite16(index, &priv->common->queue_select); in virtio_pci_del_vq()
320 iowrite16(0, &priv->common->queue_enable); in virtio_pci_del_vq()
358 iowrite16(vq->index, &priv->common->queue_select); in virtio_pci_notify()
367 iowrite16(vq->index, in virtio_pci_notify()
/openbmc/linux/drivers/comedi/drivers/
H A Dmf6x4.c99 iowrite16(s->state, dev->mmio + MF6X4_DOUT_REG); in mf6x4_do_insn_bits()
132 iowrite16(MF6X4_ADCTRL_CHAN(chan), dev->mmio + MF6X4_ADCTRL_REG); in mf6x4_ai_insn_read()
149 iowrite16(0x0, dev->mmio + MF6X4_ADCTRL_REG); in mf6x4_ai_insn_read()
172 iowrite16(val, dev->mmio + MF6X4_DAC_REG(chan)); in mf6x4_ao_insn_write()
/openbmc/linux/arch/alpha/include/asm/
H A Dio.h161 REMAP2(u16, iowrite16, /**/) in REMAP1()
359 extern inline void iowrite16(u16 b, void __iomem *addr) in iowrite16() function
362 IO_CONCAT(__IO_PREFIX, iowrite16)(b, addr); in iowrite16()
382 iowrite16(b, ioport_map(port, 2)); in outw()
389 #define iowrite16 iowrite16 macro
544 #define iowrite16be(v,p) iowrite16(swab16(v), (p))
/openbmc/linux/arch/sh/kernel/
H A Diomap.c47 void iowrite16(u16 val, void __iomem *addr) in iowrite16() function
51 EXPORT_SYMBOL(iowrite16);

123456