Home
last modified time | relevance | path

Searched refs:inw (Results 1 – 25 of 256) sorted by relevance

1234567891011

/linux-3.4.99/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c39 stat = inw(chip->port + PDAUDIOCF_REG_ISR); in pdacf_interrupt()
56 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_mono16()
57 inw(rdp_port); in pdacf_transfer_mono16()
66 val1 = inw(rdp_port); in pdacf_transfer_mono32()
67 val2 = inw(rdp_port); in pdacf_transfer_mono32()
68 inw(rdp_port); in pdacf_transfer_mono32()
76 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
77 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
86 val1 = inw(rdp_port); in pdacf_transfer_stereo32()
87 val2 = inw(rdp_port); in pdacf_transfer_stereo32()
[all …]
Dpdaudiocf_core.c71 while (inw(chip->port + PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_write()
88 inw(chip->port + PDAUDIOCF_REG_WDP));
90 inw(chip->port + PDAUDIOCF_REG_RDP));
92 inw(chip->port + PDAUDIOCF_REG_TCR));
94 inw(chip->port + PDAUDIOCF_REG_SCR));
96 inw(chip->port + PDAUDIOCF_REG_ISR));
98 inw(chip->port + PDAUDIOCF_REG_IER));
100 inw(chip->port + PDAUDIOCF_REG_AK_IFR));
257 val = inw(chip->port + PDAUDIOCF_REG_IER); in snd_pdacf_powerdown()
272 val = inw(chip->port + PDAUDIOCF_REG_IER); in snd_pdacf_suspend()
/linux-3.4.99/drivers/net/ethernet/seeq/
Dseeq8005.c90 #define tx_done(dev) (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
178 old_stat = inw(SEEQ_STATUS); /* read status register */ in seeq8005_probe1()
192 old_rear = inw(SEEQ_REA); in seeq8005_probe1()
195 if (inw(SEEQ_REA) == 0xffff) { /* assume that 0xffff == no device */ in seeq8005_probe1()
208 old_cfg2 = inw(SEEQ_CFG2); /* read CFG2 register */ in seeq8005_probe1()
209 old_cfg1 = inw(SEEQ_CFG1); in seeq8005_probe1()
210 old_dmaar = inw(SEEQ_DMAAR); in seeq8005_probe1()
227 j+= SA_prom[i] = inw(SEEQ_BUFFER) & 0xff; in seeq8005_probe1()
282 …while ( ((inw(SEEQ_STATUS) & SEEQSTAT_FIFO_EMPTY) != SEEQSTAT_FIFO_EMPTY) && time_before(jiffies, … in seeq8005_probe1()
285 …while ( ((inw(SEEQ_STATUS) & SEEQSTAT_WINDOW_INT) != SEEQSTAT_WINDOW_INT) && time_before(jiffies, … in seeq8005_probe1()
[all …]
/linux-3.4.99/drivers/net/ethernet/3com/
D3c509.c327 if (inw(ioaddr) != 0x6d50) { in el3_isa_match()
377 if (inw(ioaddr) != 0x6d50) in el3_isa_resume()
694 irq = inw(ioaddr + WN0_IRQ) >> 12; in el3_eisa_probe()
695 if_port = inw(ioaddr + 6)>>14; in el3_eisa_probe()
748 return inw(ioaddr + 12); in read_eeprom()
791 dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); in el3_open()
797 dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); in el3_open()
809 dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS), in el3_tx_timeout()
810 inw(ioaddr + TX_FREE)); in el3_tx_timeout()
833 dev->name, skb->len, inw(ioaddr + EL3_STATUS)); in el3_start_xmit()
[all …]
D3c589_cs.c365 if (!(inw(dev->base_addr + EL3_STATUS) & 0x1000)) break; in tc589_wait_for_completion()
380 if ((inw(ioaddr + 10) & EEPROM_BUSY) == 0) in read_eeprom()
382 return inw(ioaddr + 12); in read_eeprom()
417 inw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS), in dump_status()
418 inb(ioaddr+TX_STATUS), inw(ioaddr+TX_FREE)); in dump_status()
421 inw(ioaddr+0x04), inw(ioaddr+0x06), inw(ioaddr+0x08), in dump_status()
422 inw(ioaddr+0x0a)); in dump_status()
448 inw(ioaddr + 10); in tc589_reset()
449 inw(ioaddr + 12); in tc589_reset()
512 dev->name, inw(dev->base_addr + EL3_STATUS)); in el3_open()
[all …]
D3c515.c453 if ((inw(ioaddr + 0x2002) & 0x1f0) != (ioaddr & 0x1f0)) { in check_device()
462 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in check_device()
465 if (inw(ioaddr + Wn0EepromData) != 0x6d50) { in check_device()
536 inl(ioaddr + 0x2002), inw(ioaddr + 0x2000)); in corkscrew_scan()
555 inl(ioaddr + 0x2002), inw(ioaddr + 0x2000)); in corkscrew_scan()
592 irq = inw(ioaddr + 0x2002) & 15; in corkscrew_setup()
595 irq = inw(ioaddr + 0x2002) & 15; in corkscrew_setup()
600 dev->dma = inw(ioaddr + 0x2000) & 7; in corkscrew_setup()
640 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in corkscrew_setup()
643 eeprom[i] = inw(ioaddr + Wn0EepromData); in corkscrew_setup()
[all …]
D3c574_cs.c479 inw(ioaddr+EL3_STATUS), in dump_status()
480 inw(ioaddr+RxStatus), inb(ioaddr+TxStatus), in dump_status()
481 inw(ioaddr+TxFree)); in dump_status()
484 inw(ioaddr+0x04), inw(ioaddr+0x06), in dump_status()
485 inw(ioaddr+0x08), inw(ioaddr+0x0a)); in dump_status()
497 if (!(inw(dev->base_addr + EL3_STATUS) & 0x1000)) break; in tc574_wait_for_completion()
511 if ((inw(ioaddr + Wn0EepromCmd) & 0x8000) == 0) in read_eeprom()
514 return inw(ioaddr + Wn0EepromData); in read_eeprom()
563 retval = (retval << 1) | ((inw(mdio_addr) & MDIO_DATA_READ) ? 1 : 0); in mdio_read()
637 inw(ioaddr + 10); in tc574_reset()
[all …]
/linux-3.4.99/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c262 #define set_bits(v, p) outw(inw(p)|(v), (p))
263 #define mask_bits(v, p) outw(inw(p)&(v), (p))
555 wait = ((CTL_RELOAD | CTL_STORE) & inw(ioaddr + CONTROL)); in mot_setup()
562 addr = inw(ioaddr + GENERAL); in mot_setup()
704 inw(link->resource[0]->start + OSITECH_AUI_PWR), in osi_setup()
705 inw(link->resource[0]->start + OSITECH_RESET_ISR)); in osi_setup()
771 if (inw(ioaddr + BANK_SELECT) >> 8 != 0x33) { in check_sig()
787 s = inw(ioaddr + BASE_ADDR); in check_sig()
788 if ((inw(ioaddr + BANK_SELECT) >> 8 == 0x33) && in check_sig()
791 s = inw(ioaddr + REVISION); in check_sig()
[all …]
Dsmc9194.c353 outw( inw( ioaddr + CONTROL ) | CTL_AUTO_RELEASE , ioaddr + CONTROL ); in smc_reset()
413 outw( inw( ioaddr + CONTROL ), CTL_POWERDOWN, ioaddr + CONTROL ); in smc_shutdown()
889 bank = inw( ioaddr + BANK_SELECT ); in smc_probe()
897 bank = inw( ioaddr + BANK_SELECT ); in smc_probe()
907 base_address_register = inw( ioaddr + BASE ); in smc_probe()
926 revision_register = inw( ioaddr + REVISION ); in smc_probe()
953 address = inw( ioaddr + ADDR0 + i ); in smc_probe()
961 memory_info_register = inw( ioaddr + MIR ); in smc_probe()
962 memory_cfg_register = inw( ioaddr + MCR ); in smc_probe()
972 revision_register = inw( ioaddr + REVISION ); in smc_probe()
[all …]
/linux-3.4.99/drivers/net/ethernet/8390/
Dhp-plus.c190 if (inw(ioaddr + HP_ID) != 0x4850 || in hpp_probe1()
191 (inw(ioaddr + HP_PAGING) & 0xfff0) != 0x5300) { in hpp_probe1()
220 printk(" ID %4.4x", inw(ioaddr + 12)); in hpp_probe1()
227 int option = inw(ioaddr + HPP_OPTION); in hpp_probe1()
231 mem_start = inw(ioaddr + 9) << 8; in hpp_probe1()
278 outw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION); in hpp_probe1()
303 option_reg = inw(ioaddr + HPP_OPTION); in hpp_open()
323 int option_reg = inw(ioaddr + HPP_OPTION); in hpp_close()
337 int option_reg = inw(ioaddr + HPP_OPTION); in hpp_reset_8390()
379 buf[count-1] = inw(ioaddr + HP_DATAPORT); in hpp_io_block_input()
[all …]
/linux-3.4.99/drivers/net/ethernet/amd/
Dlance.c505 reset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */ in lance_probe1()
513 if (inw(ioaddr+LANCE_DATA) != 0x0004) in lance_probe1()
518 if (inw(ioaddr+LANCE_ADDR) != 88) { in lance_probe1()
521 int chip_version = inw(ioaddr+LANCE_DATA); in lance_probe1()
523 chip_version |= inw(ioaddr+LANCE_DATA) << 16; in lance_probe1()
579 inw(ioaddr+LANCE_ADDR); in lance_probe1()
582 inw(ioaddr+LANCE_ADDR); in lance_probe1()
585 inw(ioaddr+LANCE_ADDR); in lance_probe1()
600 short reset_val = inw(ioaddr+LANCE_RESET); in lance_probe1()
607 bus_info = inw(ioaddr+LANCE_BUS_IF); in lance_probe1()
[all …]
/linux-3.4.99/drivers/net/ethernet/fujitsu/
Dat1700.c289 read_eeprom(ioaddr, 6), inw(ioaddr + EEPROM_Ctrl)); in at1700_probe1()
569 inw (ioaddr + STATUS), inb (ioaddr + TX_STATUS) & 0x80 in net_tx_timeout()
572 dev->name, inw(ioaddr + TX_STATUS), inw(ioaddr + TX_INTR), inw(ioaddr + TX_MODE), in net_tx_timeout()
573 inw(ioaddr + CONFIG_0), inw(ioaddr + DATAPORT), inw(ioaddr + TX_START), in net_tx_timeout()
574 inw(ioaddr + MODE13 - 1), inw(ioaddr + RX_CTRL)); in net_tx_timeout()
667 status = inw(ioaddr + TX_STATUS); in net_interrupt()
727 ushort status = inw(ioaddr + DATAPORT); in net_rx()
728 ushort pkt_len = inw(ioaddr + DATAPORT); in net_rx()
754 inw(ioaddr + DATAPORT); inw(ioaddr + DATAPORT); in net_rx()
764 inw(ioaddr + DATAPORT); inw(ioaddr + DATAPORT); in net_rx()
[all …]
/linux-3.4.99/arch/parisc/lib/
Dio.c182 l = cpu_to_le16(inw(port)) << 16; in insw()
183 l |= cpu_to_le16(inw(port)); in insw()
188 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
193 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
199 l = cpu_to_le16(inw(port)) << 16; in insw()
200 l |= cpu_to_le16(inw(port)); in insw()
205 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
215 l = cpu_to_le16(inw(port)); in insw()
220 l2 = cpu_to_le16(inw(port)); in insw()
/linux-3.4.99/drivers/input/touchscreen/
Dmk712.c114 last_x = inw(mk712_io + MK712_X) & 0x0fff; in mk712_interrupt()
115 last_y = inw(mk712_io + MK712_Y) & 0x0fff; in mk712_interrupt()
163 if ((inw(mk712_io + MK712_X) & 0xf000) || /* Sanity check */ in mk712_init()
164 (inw(mk712_io + MK712_Y) & 0xf000) || in mk712_init()
165 (inw(mk712_io + MK712_STATUS) & 0xf333)) { in mk712_init()
/linux-3.4.99/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci3120.c178 (unsigned short) inw(devpriv->iobase + APCI3120_RD_STATUS); in i_APCI3120_InsnReadAnalogInput()
198 inw(devpriv->iobase + APCI3120_RESET_FIFO); in i_APCI3120_InsnReadAnalogInput()
229 inw(devpriv->iobase); in i_APCI3120_InsnReadAnalogInput()
260 (unsigned short) inw(dev->iobase + APCI3120_RD_STATUS); in i_APCI3120_InsnReadAnalogInput()
267 inw(devpriv->iobase + in i_APCI3120_InsnReadAnalogInput()
273 us_TmpValue = inw(devpriv->iobase + 0); in i_APCI3120_InsnReadAnalogInput()
276 inw(devpriv->iobase + APCI3120_RESET_FIFO); in i_APCI3120_InsnReadAnalogInput()
283 inw(devpriv->iobase); in i_APCI3120_InsnReadAnalogInput()
285 inw(devpriv->iobase + APCI3120_RESET_FIFO); in i_APCI3120_InsnReadAnalogInput()
334 inw(devpriv->iobase); in i_APCI3120_InsnReadAnalogInput()
[all …]
Dhwdrv_apci1516.c83 ui_TmpValue = (unsigned int) inw(devpriv->iobase + APCI1516_DIGITAL_IP); in i_APCI1516_Read1DigitalInput()
127 *data = (unsigned int) inw(devpriv->iobase + APCI1516_DIGITAL_IP); in i_APCI1516_ReadMoreDigitalInput()
211 ui_Temp = inw(devpriv->iobase + APCI1516_DIGITAL_OP); in i_APCI1516_WriteDigitalOutput()
369 *data = inw(devpriv->iobase + APCI1516_DIGITAL_OP_RW); in i_APCI1516_ReadDigitalOutput()
516 data[0] = inw(devpriv->i_IobaseAddon + APCI1516_WATCHDOG_STATUS) & 0x1; in i_APCI1516_ReadWatchdog()
Dhwdrv_apci2200.c83 ui_TmpValue = (unsigned int) inw(devpriv->iobase + APCI2200_DIGITAL_IP); in i_APCI2200_Read1DigitalInput()
125 *data = (unsigned int) inw(devpriv->iobase + APCI2200_DIGITAL_IP); in i_APCI2200_ReadMoreDigitalInput()
206 ui_Temp = inw(devpriv->iobase + APCI2200_DIGITAL_OP); in i_APCI2200_WriteDigitalOutput()
364 *data = inw(devpriv->iobase + APCI2200_DIGITAL_OP); in i_APCI2200_ReadDigitalOutput()
516 inw(devpriv->iobase + APCI2200_WATCHDOG + in i_APCI2200_ReadWatchdog()
/linux-3.4.99/drivers/input/gameport/
Dfm801-gp.c49 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
52 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
54 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
57 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
/linux-3.4.99/drivers/ide/
Dopti621.c40 inw(reg_base + 1); in write_reg()
41 inw(reg_base + 1); in write_reg()
56 inw(reg_base + 1); in read_reg()
57 inw(reg_base + 1); in read_reg()
Dtrm290.c165 reg = inw(hwif->config_data + 3); in trm290_prepare_drive()
216 u16 status = inw(drive->hwif->dma_base + 2); in trm290_dma_end()
225 u16 status = inw(drive->hwif->dma_base + 2); in trm290_dma_test_irq()
286 old = inw(hwif->config_data); in init_hwif_trm290()
294 new = inw(hwif->config_data); in init_hwif_trm290()
/linux-3.4.99/arch/sh/boards/mach-hp6xx/
Dsetup.c61 v = inw(HD64461_GPADR); in dac_audio_start()
79 v = inw(HD64461_GPADR); in dac_audio_stop()
130 v = inw(HD64461_STBCR); in hp6xx_setup()
140 v = inw(HD64461_GPADR); in hp6xx_setup()
/linux-3.4.99/sound/pci/
Dfm801.c233 old = inw(chip->port + reg); in snd_fm801_update_bits()
253 if (!(inw(FM801_REG(chip, AC97_CMD)) & FM801_AC97_BUSY)) in snd_fm801_codec_write()
268 if (!(inw(FM801_REG(chip, AC97_CMD)) & FM801_AC97_BUSY)) in snd_fm801_codec_write()
284 if (!(inw(FM801_REG(chip, AC97_CMD)) & FM801_AC97_BUSY)) in snd_fm801_codec_read()
296 if (!(inw(FM801_REG(chip, AC97_CMD)) & FM801_AC97_BUSY)) in snd_fm801_codec_read()
305 if (inw(FM801_REG(chip, AC97_CMD)) & FM801_AC97_VALID) in snd_fm801_codec_read()
313 return inw(FM801_REG(chip, AC97_DATA)); in snd_fm801_codec_read()
504 ptr = chip->ply_pos + (chip->ply_count - 1) - inw(FM801_REG(chip, PLY_COUNT)); in snd_fm801_playback_pointer()
505 if (inw(FM801_REG(chip, IRQ_STATUS)) & FM801_IRQ_PLAYBACK) { in snd_fm801_playback_pointer()
521 ptr = chip->cap_pos + (chip->cap_count - 1) - inw(FM801_REG(chip, CAP_COUNT)); in snd_fm801_capture_pointer()
[all …]
/linux-3.4.99/sound/oss/
Dpss.c168 if (inw(REG(PSS_STATUS)) & PSS_WRITE_EMPTY) in pss_write()
195 id = inw(REG(PSS_ID)); in probe_pss()
224 tmp = inw(REG(dev)) & ~0x38; /* Load confreg, mask IRQ bits out */ in set_irq()
237 unsigned short tmp = inw(REG(dev)) & 0x003f; in set_io_base()
256 tmp = inw(REG(dev)) & ~0x07; /* Load confreg, mask DMA bits out */ in set_dma()
273 inw(REG(PSS_CONTROL)); in pss_reset_dsp()
284 val = inw(REG(PSS_STATUS)); in pss_put_dspword()
300 val = inw(REG(PSS_STATUS)); in pss_get_dspword()
303 *word = inw(REG(PSS_DATA)); in pss_get_dspword()
322 if (inw(REG(PSS_DATA)) == 0x5500) in pss_download_boot()
[all …]
/linux-3.4.99/drivers/tty/
Disicom.c142 #define ClearInterrupt(base) inw((base) + 0x0a)
228 while (!(inw(base + 0xe) & 0x1) && count++ < 100) in WaitTillCardIsFree()
234 return !(inw(base + 0xe) & 0x1); in WaitTillCardIsFree()
245 if (inw(base + 0xe) & 0x1) in lock_card()
428 if (inw(base + 0xe) & 0x1) in isicom_tx()
449 if (!(inw(base + 0x02) & (1 << port->channel))) in isicom_tx()
531 if (!(inw(base + 0x0e) & 0x02)) in isicom_interrupt()
543 inw(base); /* get the dummy word out */ in isicom_interrupt()
544 header = inw(base); in isicom_interrupt()
566 inw(base); in isicom_interrupt()
[all …]
/linux-3.4.99/drivers/staging/comedi/drivers/
Ddt282x.c392 #define mux_busy() (inw(dev->iobase+DT2821_ADCSR)&DT2821_MUXBUSY)
393 #define ad_done() (inw(dev->iobase+DT2821_ADCSR)&DT2821_ADDONE)
625 adcsr = inw(dev->iobase + DT2821_ADCSR); in dt282x_interrupt()
626 dacsr = inw(dev->iobase + DT2821_DACSR); in dt282x_interrupt()
627 supcsr = inw(dev->iobase + DT2821_SUPCSR); in dt282x_interrupt()
661 data = (short)inw(dev->iobase + DT2821_ADDAT); in dt282x_interrupt()
729 inw(dev->iobase + in dt282x_ai_insn_read()
1197 data[1] = inw(dev->iobase + DT2821_DIODAT); in dt282x_dio_insn_bits()
1310 i = inw(dev->iobase + DT2821_ADCSR); in dt282x_attach()
1313 inw(dev->iobase + DT2821_ADCSR), in dt282x_attach()
[all …]

1234567891011