Home
last modified time | relevance | path

Searched refs:readw (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/linux/drivers/scsi/qla4xxx/
A Dql4_dbg.c46 readw(&ha->reg->mailbox[i])); in qla4xxx_dump_registers()
51 readw(&ha->reg->flash_address)); in qla4xxx_dump_registers()
54 readw(&ha->reg->flash_data)); in qla4xxx_dump_registers()
57 readw(&ha->reg->ctrl_status)); in qla4xxx_dump_registers()
62 readw(&ha->reg->u1.isp4010.nvram)); in qla4xxx_dump_registers()
66 readw(&ha->reg->u1.isp4022.intr_mask)); in qla4xxx_dump_registers()
69 readw(&ha->reg->u1.isp4022.nvram)); in qla4xxx_dump_registers()
76 readw(&ha->reg->req_q_in)); in qla4xxx_dump_registers()
79 readw(&ha->reg->rsp_q_out)); in qla4xxx_dump_registers()
96 readw(&ha->reg->u2.isp4010.gp_out)); in qla4xxx_dump_registers()
[all …]
/linux/drivers/rtc/
A Drtc-msc313.c55 seconds = readw(priv->rtc_base + REG_RTC_MATCH_VAL_L) in msc313_rtc_read_alarm()
60 if (!(readw(priv->rtc_base + REG_RTC_CTRL) & INT_MASK_BIT)) in msc313_rtc_read_alarm()
71 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_alarm_irq_enable()
96 return readw(priv->rtc_base + REG_RTC_CTRL) & CNT_EN_BIT; in msc313_rtc_get_enabled()
103 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_set_enabled()
117 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_read_time()
121 while (readw(priv->rtc_base + REG_RTC_CTRL) & READ_EN_BIT) in msc313_rtc_read_time()
124 seconds = readw(priv->rtc_base + REG_RTC_CNT_VAL_L) in msc313_rtc_read_time()
143 reg = readw(priv->rtc_base + REG_RTC_CTRL); in msc313_rtc_set_time()
166 reg = readw(priv->rtc_base + REG_RTC_STATUS_INT); in msc313_rtc_interrupt()
[all …]
A Drtc-mxc.c97 day = readw(ioaddr + RTC_DAYR); in get_alarm_or_time()
98 hr_min = readw(ioaddr + RTC_HOURMIN); in get_alarm_or_time()
99 sec = readw(ioaddr + RTC_SECOND); in get_alarm_or_time()
102 day = readw(ioaddr + RTC_DAYALARM); in get_alarm_or_time()
103 hr_min = readw(ioaddr + RTC_ALRM_HM) & 0xffff; in get_alarm_or_time()
104 sec = readw(ioaddr + RTC_ALRM_SEC); in get_alarm_or_time()
162 writew(readw(ioaddr + RTC_RTCISR), ioaddr + RTC_RTCISR); in rtc_update_alarm()
175 reg = readw(ioaddr + RTC_RTCIENR); in mxc_rtc_irq_enable()
196 status = readw(ioaddr + RTC_RTCISR) & readw(ioaddr + RTC_RTCIENR); in mxc_rtc_interrupt()
265 alrm->pending = ((readw(ioaddr + RTC_RTCISR) & RTC_ALM_BIT)) ? 1 : 0; in mxc_rtc_read_alarm()
[all …]
/linux/drivers/scsi/arm/
A Dcumana_1.c130 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
131 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
132 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
133 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
134 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
135 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
136 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
137 *laddr++ = readw(dma) | (readw(dma) << 16); in cumanascsi_pread()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Daltr_tse_pcs.c71 val = readw(base + TSE_PCS_CONTROL_REG); in tse_pcs_reset()
76 val = readw(base + TSE_PCS_CONTROL_REG); in tse_pcs_reset()
116 val = readw(tse_pcs_base + TSE_PCS_STATUS_REG); in pcs_link_timer_callback()
137 val = readw(tse_pcs_base + TSE_PCS_STATUS_REG); in auto_nego_timer_callback()
181 val = readw(tse_pcs_base + TSE_PCS_CONTROL_REG); in auto_nego_timer_callback()
214 val = readw(tse_pcs_base + TSE_PCS_CONTROL_REG); in tse_pcs_fix_mac_speed()
218 val = readw(tse_pcs_base + TSE_PCS_IF_MODE_REG); in tse_pcs_fix_mac_speed()
222 val = readw(tse_pcs_base + TSE_PCS_CONTROL_REG); in tse_pcs_fix_mac_speed()
232 val = readw(tse_pcs_base + TSE_PCS_CONTROL_REG); in tse_pcs_fix_mac_speed()
236 val = readw(tse_pcs_base + TSE_PCS_IF_MODE_REG); in tse_pcs_fix_mac_speed()
[all …]
/linux/drivers/input/keyboard/
A Dimx_keypad.c93 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
97 reg_val = readw(keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
103 reg_val = readw(keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
112 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
126 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
134 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
292 reg_val = readw(keypad->mmio_base + KPSR); in imx_keypad_irq_handler()
320 reg_val = readw(keypad->mmio_base + KPCR); in imx_keypad_config()
326 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_config()
337 reg_val = readw(keypad->mmio_base + KPSR); in imx_keypad_config()
[all …]
/linux/drivers/i2c/busses/
A Di2c-wmt.c149 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write()
153 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write()
170 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_write()
188 val = readw(i2c_dev->base + REG_CSR); in wmt_i2c_write()
228 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
232 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
237 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
243 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
260 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
280 val = readw(i2c_dev->base + REG_CR); in wmt_i2c_read()
[all …]
/linux/drivers/tty/
A Dmoxa.c563 ret = readw(ofsAddr + FuncArg); in moxafuncret()
573 rptr = readw(ofsAddr + RXrptr); in moxa_low_water_check()
574 wptr = readw(ofsAddr + RXwptr); in moxa_low_water_check()
2178 tail = readw(ofsAddr + TXwptr); in MoxaPortWriteData()
2179 head = readw(ofsAddr + TXrptr); in MoxaPortWriteData()
2234 head = readw(ofsAddr + RXrptr); in MoxaPortReadData()
2235 tail = readw(ofsAddr + RXwptr); in MoxaPortReadData()
2289 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxQueue()
2290 wptr = readw(ofsAddr + TXwptr); in MoxaPortTxQueue()
2300 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxFree()
[all …]
/linux/drivers/media/pci/netup_unidvb/
A Dnetup_unidvb_i2c.c72 reg = readw(&i2c->regs->twi_ctrl0_stat); in netup_i2c_interrupt()
95 tmp = readw(&i2c->regs->rx_fifo.stat_ctrl); in netup_i2c_interrupt()
103 tmp = readw(&i2c->regs->tx_fifo.stat_ctrl); in netup_i2c_interrupt()
135 (readw(&i2c->regs->tx_fifo.stat_ctrl) & 0x3f); in netup_i2c_fifo_tx()
148 writew(readw(&i2c->regs->tx_fifo.stat_ctrl) | FIFO_IRQEN, in netup_i2c_fifo_tx()
172 writew(readw(&i2c->regs->rx_fifo.stat_ctrl) | FIFO_IRQEN, in netup_i2c_fifo_rx()
180 u16 reg = readw(&i2c->regs->twi_ctrl0_stat); in netup_i2c_start_xfer()
188 __func__, readw(&i2c->regs->length), in netup_i2c_start_xfer()
189 readw(&i2c->regs->twi_addr_ctrl1), in netup_i2c_start_xfer()
190 readw(&i2c->regs->twi_ctrl0_stat)); in netup_i2c_start_xfer()
[all …]
A Dnetup_unidvb_ci.c60 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_ts_ctl()
66 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_ts_ctl()
91 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_reset()
99 ci_stat = readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET); in netup_unidvb_ci_slot_reset()
123 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_poll_ci_slot_status()
124 ci_stat = readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET); in netup_unidvb_poll_ci_slot_status()
/linux/arch/m68k/coldfire/
A Dm527x.c59 par = readw(MCFGPIO_PAR_TIMER); in m527x_qspi_init()
87 par = readw(MCFGPIO_PAR_FECI2C); in m527x_i2c_init()
103 sepmask = readw(MCFGPIO_PAR_UART); in m527x_uarts_init()
121 par = readw(MCFGPIO_PAR_FECI2C); in m527x_fec_init()
127 par = readw(MCFGPIO_PAR_FECI2C); in m527x_fec_init()
A Dm53xx.c191 writew(readw(MCFGPIO_PAR_UART) | 0x0FFF, MCFGPIO_PAR_UART); in m53xx_uarts_init()
557 temp = readw(MCF_CCM_CDR) & MCF_CCM_CDR_SSIDIV(0xF); in clock_limp()
562 writew(readw(MCF_CCM_MISCCR) | MCF_CCM_MISCCR_LIMP, MCF_CCM_MISCCR); in clock_limp()
572 writew(readw(MCF_CCM_MISCCR) & ~MCF_CCM_MISCCR_LIMP, MCF_CCM_MISCCR); in clock_exit_limp()
575 while (!(readw(MCF_CCM_MISCCR) & MCF_CCM_MISCCR_PLL_LOCK)) in clock_exit_limp()
588 if (readw(MCF_CCM_MISCCR) & MCF_CCM_MISCCR_LIMP) { in get_sys_clock()
589 divider = readw(MCF_CCM_CDR) & MCF_CCM_CDR_LPDIV(0xF); in get_sys_clock()
/linux/drivers/pci/
A Drom.c94 if (readw(image) != 0xAA55) { in pci_get_rom_size()
96 readw(image)); in pci_get_rom_size()
100 pds = image + readw(image + 24); in pci_get_rom_size()
107 length = readw(pds + 16); in pci_get_rom_size()
113 if (readw(image) != 0xAA55) { in pci_get_rom_size()
/linux/sound/isa/msnd/
A Dmsnd_midi.c74 tail = readw(mpu->dev->MIDQ + JQS_wTail); in snd_msndmidi_input_drop()
111 head = readw(mpu->dev->MIDQ + JQS_wHead); in snd_msndmidi_input_read()
112 tail = readw(mpu->dev->MIDQ + JQS_wTail); in snd_msndmidi_input_read()
113 size = readw(mpu->dev->MIDQ + JQS_wSize); in snd_msndmidi_input_read()
117 unsigned char val = readw(pwMIDQData + 2 * head); in snd_msndmidi_input_read()
/linux/arch/m68k/include/asm/
A Dio_no.h65 #define readw readw macro
66 static inline u16 readw(const volatile void __iomem *addr) in readw() function
102 #define readw __raw_readw macro
/linux/drivers/net/ethernet/packetengines/
A Dhamachi.c832 return readw(ioaddr + MII_Rd_Data); in mdio_read()
985 dev->name, readw(ioaddr + RxStatus), readw(ioaddr + TxStatus)); in hamachi_open()
1039 readw(ioaddr + 0x0e0), in hamachi_timer()
1040 readw(ioaddr + 0x0e2), in hamachi_timer()
1041 readw(ioaddr + 0x0e4), in hamachi_timer()
1042 readw(ioaddr + 0x0e6), in hamachi_timer()
1043 readw(ioaddr + 0x0e8), in hamachi_timer()
1044 readw(ioaddr + 0x0eA)); in hamachi_timer()
1233 status=readw(hmp->base + TxStatus); in hamachi_start_xmit()
1273 status=readw(hmp->base + TxStatus); in hamachi_start_xmit()
[all …]
/linux/arch/arm/mach-spear/
A Dtime.c86 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
98 u16 val = readw(gpt_base + CR(CLKEVT)); in timer_shutdown()
119 val = readw(gpt_base + CR(CLKEVT)); in spear_set_oneshot()
138 val = readw(gpt_base + CR(CLKEVT)); in spear_set_periodic()
160 u16 val = readw(gpt_base + CR(CLKEVT)); in clockevent_next_event()
/linux/drivers/comedi/drivers/
A Ddaqboard2000.c312 status = readw(dev->mmio + DB2K_REG_ACQ_STATUS); in db2k_ai_status()
373 data[i] = readw(dev->mmio + DB2K_REG_ACQ_RESULTS_FIFO); in db2k_ai_insn_read()
389 status = readw(dev->mmio + DB2K_REG_DAC_STATUS); in db2k_ao_eoc()
471 cpld = readw(dev->mmio + DB2K_REG_CPLD_STATUS); in db2k_wait_cpld_init()
487 if (readw(dev->mmio + DB2K_REG_CPLD_STATUS) & in db2k_wait_cpld_txready()
508 if (!(readw(dev->mmio + DB2K_REG_CPLD_STATUS) & DB2K_CPLD_STATUS_INIT)) in db2k_write_cpld()
574 new_cpld = (readw(dev->mmio + DB2K_REG_CPLD_STATUS) & in db2k_load_firmware()
631 val = readw(dev->mmio + DB2K_REG_DAC_STATUS); in db2k_activate_reference_dacs()
641 val = readw(dev->mmio + DB2K_REG_DAC_STATUS); in db2k_activate_reference_dacs()
675 return readw(dev->mmio + iobase + port * 2); in db2k_8255_cb()
A Dme_daq.c203 val = readw(mmio_porta); in me_dio_insn_bits()
208 val |= (readw(mmio_portb) << 16); in me_dio_insn_bits()
222 status = readw(dev->mmio + ME_STATUS_REG); in me_ai_eoc()
274 readw(dev->mmio + ME_CTRL1_REG); in me_ai_insn_read()
282 val = readw(dev->mmio + ME_AI_FIFO_REG) & s->maxdata; in me_ai_insn_read()
323 readw(dev->mmio + ME_DAC_CTRL_REG); in me_ao_insn_write()
334 readw(dev->mmio + ME_CTRL2_REG); in me_ao_insn_write()
352 value = readw(dev->mmio + XILINX_DOWNLOAD_RESET); in me2600_xilinx_download()
/linux/drivers/dma/ioat/
A Ddca.c137 readw(ioatdca->dca_base + IOAT3_DCA_GREQID_OFFSET); in ioat_dca_add_requester()
163 readw(ioatdca->dca_base + IOAT3_DCA_GREQID_OFFSET); in ioat_dca_remove_requester()
218 global_req_table = readw(iobase + dca_offset + IOAT3_DCA_GREQID_OFFSET); in ioat_dca_count_dca_slots()
270 dca_offset = readw(iobase + IOAT_DCAOFFSET_OFFSET); in ioat_dca_init()
289 csi_fsb_control = readw(ioatdca->dca_base + IOAT3_CSI_CONTROL_OFFSET); in ioat_dca_init()
295 pcie_control = readw(ioatdca->dca_base + IOAT3_PCI_CONTROL_OFFSET); in ioat_dca_init()
/linux/drivers/pwm/
A Dpwm-tiecap.c75 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
97 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
116 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_set_polarity()
144 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_enable()
160 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_disable()
279 pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2); in ecap_pwm_save_context()
/linux/drivers/pci/controller/
A Dpci-v3-semi.c444 status = readw(v3->base + V3_PCI_STAT); in v3_irq()
781 if (readw(v3->base + V3_SYSTEM) & V3_SYSTEM_M_LOCK) in v3_pci_probe()
785 val = readw(v3->base + V3_PCI_CMD); in v3_pci_probe()
790 val = readw(v3->base + V3_SYSTEM); in v3_pci_probe()
795 val = readw(v3->base + V3_PCI_CFG); in v3_pci_probe()
800 val = readw(v3->base + V3_LB_CFG); in v3_pci_probe()
808 val = readw(v3->base + V3_PCI_CMD); in v3_pci_probe()
856 val = readw(v3->base + V3_LB_CFG); in v3_pci_probe()
870 val = readw(v3->base + V3_PCI_CMD); in v3_pci_probe()
881 val = readw(v3->base + V3_SYSTEM); in v3_pci_probe()
[all …]
/linux/drivers/watchdog/
A Dmenz69_wdt.c39 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
51 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_stop()
64 val = readw(drv->base + MEN_Z069_WVR); in men_z069_wdt_ping()
80 reg = readw(drv->base + MEN_Z069_WVR); in men_z069_wdt_set_timeout()
/linux/drivers/spi/
A Dspi-pl022.c444 tmp = readw(SSP_CSR(pl022->virtbase)); in internal_cs_control()
523 writew((readw(SSP_CR1(pl022->virtbase)) & in giveback()
540 readw(SSP_DR(pl022->virtbase)); in flush()
686 readw(SSP_DR(pl022->virtbase)); in readwriter()
690 readw(SSP_DR(pl022->virtbase)) & 0xFFU; in readwriter()
694 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
735 readw(SSP_DR(pl022->virtbase)); in readwriter()
743 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
1288 writew((readw(SSP_CR1(pl022->virtbase)) & in pl022_interrupt_handler()
1485 read_sr = readw(SSP_SR(pl022->virtbase)); in print_current_status()
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv50/
A Dheadc57d.c147 writew(readw(mem - 8), mem + 0); in headc57d_olut_load_8()
148 writew(readw(mem - 6), mem + 2); in headc57d_olut_load_8()
149 writew(readw(mem - 4), mem + 4); in headc57d_olut_load_8()
167 writew(readw(mem - 8), mem + 0); in headc57d_olut_load()
168 writew(readw(mem - 6), mem + 2); in headc57d_olut_load()
169 writew(readw(mem - 4), mem + 4); in headc57d_olut_load()

Completed in 59 milliseconds

12345678910>>...14