Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c27 stat = inw(chip->port + PDAUDIOCF_REG_ISR); in pdacf_interrupt()
44 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_mono16()
45 inw(rdp_port); in pdacf_transfer_mono16()
54 val1 = inw(rdp_port); in pdacf_transfer_mono32()
55 val2 = inw(rdp_port); in pdacf_transfer_mono32()
56 inw(rdp_port); in pdacf_transfer_mono32()
64 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
65 *dst++ = inw(rdp_port) ^ xor; in pdacf_transfer_stereo16()
74 val1 = inw(rdp_port); in pdacf_transfer_stereo32()
75 val2 = inw(rdp_port); in pdacf_transfer_stereo32()
[all …]
Dpdaudiocf_core.c58 while (inw(chip->port + PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_write()
75 inw(chip->port + PDAUDIOCF_REG_WDP));
77 inw(chip->port + PDAUDIOCF_REG_RDP));
79 inw(chip->port + PDAUDIOCF_REG_TCR));
81 inw(chip->port + PDAUDIOCF_REG_SCR));
83 inw(chip->port + PDAUDIOCF_REG_ISR));
85 inw(chip->port + PDAUDIOCF_REG_IER));
87 inw(chip->port + PDAUDIOCF_REG_AK_IFR));
239 val = inw(chip->port + PDAUDIOCF_REG_IER); in snd_pdacf_powerdown()
253 val = inw(chip->port + PDAUDIOCF_REG_IER); in snd_pdacf_suspend()
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
D3c589_cs.c370 if (!(inw(dev->base_addr + EL3_STATUS) & 0x1000)) in tc589_wait_for_completion()
386 if ((inw(ioaddr + 10) & EEPROM_BUSY) == 0) in read_eeprom()
388 return inw(ioaddr + 12); in read_eeprom()
430 inw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS), in dump_status()
431 inb(ioaddr+TX_STATUS), inw(ioaddr+TX_FREE)); in dump_status()
434 inw(ioaddr+0x04), inw(ioaddr+0x06), inw(ioaddr+0x08), in dump_status()
435 inw(ioaddr+0x0a)); in dump_status()
461 inw(ioaddr + 10); in tc589_reset()
462 inw(ioaddr + 12); in tc589_reset()
522 dev->name, inw(dev->base_addr + EL3_STATUS)); in el3_open()
[all …]
D3c509.c319 if (inw(ioaddr) != 0x6d50) { in el3_isa_match()
369 if (inw(ioaddr) != 0x6d50) in el3_isa_resume()
577 irq = inw(ioaddr + WN0_IRQ) >> 12; in el3_eisa_probe()
578 if_port = inw(ioaddr + 6)>>14; in el3_eisa_probe()
631 return inw(ioaddr + 12); in read_eeprom()
674 dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); in el3_open()
680 dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); in el3_open()
692 dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS), in el3_tx_timeout()
693 inw(ioaddr + TX_FREE)); in el3_tx_timeout()
716 dev->name, skb->len, inw(ioaddr + EL3_STATUS)); in el3_start_xmit()
[all …]
D3c515.c439 if ((inw(ioaddr + 0x2002) & 0x1f0) != (ioaddr & 0x1f0)) { in check_device()
448 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in check_device()
451 if (inw(ioaddr + Wn0EepromData) != 0x6d50) { in check_device()
522 inl(ioaddr + 0x2002), inw(ioaddr + 0x2000)); in corkscrew_scan()
541 inl(ioaddr + 0x2002), inw(ioaddr + 0x2000)); in corkscrew_scan()
577 irq = inw(ioaddr + 0x2002) & 15; in corkscrew_setup()
580 irq = inw(ioaddr + 0x2002) & 15; in corkscrew_setup()
585 dev->dma = inw(ioaddr + 0x2000) & 7; in corkscrew_setup()
627 if ((inw(ioaddr + Wn0EepromCmd) & 0x0200) == 0) in corkscrew_setup()
630 eeprom[i] = inw(ioaddr + Wn0EepromData); in corkscrew_setup()
[all …]
D3c574_cs.c477 inw(ioaddr+EL3_STATUS), in dump_status()
478 inw(ioaddr+RxStatus), inb(ioaddr+TxStatus), in dump_status()
479 inw(ioaddr+TxFree)); in dump_status()
482 inw(ioaddr+0x04), inw(ioaddr+0x06), in dump_status()
483 inw(ioaddr+0x08), inw(ioaddr+0x0a)); in dump_status()
495 if (!(inw(dev->base_addr + EL3_STATUS) & 0x1000)) break; in tc574_wait_for_completion()
509 if ((inw(ioaddr + Wn0EepromCmd) & 0x8000) == 0) in read_eeprom()
512 return inw(ioaddr + Wn0EepromData); in read_eeprom()
561 retval = (retval << 1) | ((inw(mdio_addr) & MDIO_DATA_READ) ? 1 : 0); in mdio_read()
635 inw(ioaddr + 10); in tc574_reset()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Dsmc9194.c338 outw( inw( ioaddr + CONTROL ) | CTL_AUTO_RELEASE , ioaddr + CONTROL ); in smc_reset()
398 outw( inw( ioaddr + CONTROL ), CTL_POWERDOWN, ioaddr + CONTROL ); in smc_shutdown()
868 bank = inw( ioaddr + BANK_SELECT ); in smc_probe()
876 bank = inw( ioaddr + BANK_SELECT ); in smc_probe()
885 base_address_register = inw( ioaddr + BASE ); in smc_probe()
900 revision_register = inw( ioaddr + REVISION ); in smc_probe()
926 address = inw( ioaddr + ADDR0 + i ); in smc_probe()
934 memory_info_register = inw( ioaddr + MIR ); in smc_probe()
935 memory_cfg_register = inw( ioaddr + MCR ); in smc_probe()
945 revision_register = inw( ioaddr + REVISION ); in smc_probe()
[all …]
Dsmc91c92_cs.c262 #define set_bits(v, p) outw(inw(p)|(v), (p))
263 #define mask_bits(v, p) outw(inw(p)&(v), (p))
554 wait = ((CTL_RELOAD | CTL_STORE) & inw(ioaddr + CONTROL)); in mot_setup()
561 addr = inw(ioaddr + GENERAL); in mot_setup()
703 inw(link->resource[0]->start + OSITECH_AUI_PWR), in osi_setup()
704 inw(link->resource[0]->start + OSITECH_RESET_ISR)); in osi_setup()
770 if (inw(ioaddr + BANK_SELECT) >> 8 != 0x33) { in check_sig()
786 s = inw(ioaddr + BASE_ADDR); in check_sig()
787 if ((inw(ioaddr + BANK_SELECT) >> 8 == 0x33) && in check_sig()
790 s = inw(ioaddr + REVISION); in check_sig()
[all …]
Dsmc9194.h207 #define SMC_DELAY() { inw( ioaddr + RCR );\
208 inw( ioaddr + RCR );\
209 inw( ioaddr + RCR ); }
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dlance.c504 reset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */ in lance_probe1()
512 if (inw(ioaddr+LANCE_DATA) != 0x0004) in lance_probe1()
517 if (inw(ioaddr+LANCE_ADDR) != 88) { in lance_probe1()
520 int chip_version = inw(ioaddr+LANCE_DATA); in lance_probe1()
522 chip_version |= inw(ioaddr+LANCE_DATA) << 16; in lance_probe1()
578 inw(ioaddr+LANCE_ADDR); in lance_probe1()
581 inw(ioaddr+LANCE_ADDR); in lance_probe1()
584 inw(ioaddr+LANCE_ADDR); in lance_probe1()
599 short reset_val = inw(ioaddr+LANCE_RESET); in lance_probe1()
606 bus_info = inw(ioaddr+LANCE_BUS_IF); in lance_probe1()
[all …]
Dni65.c159 #define writereg(val,reg) {outw(reg,PORT+L_ADDRREG);inw(PORT+L_ADDRREG); \
160 outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
161 #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_ADDRREG),\
162 inw(PORT+L_DATAREG))
164 #define writedatareg(val) {outw(val,PORT+L_DATAREG);inw(PORT+L_DATAREG);}
170 #define readreg(reg) (outw(reg,PORT+L_ADDRREG),inw(PORT+L_DATAREG))
279 if(inw(PORT+L_ADDRREG) != 80) in ni65_set_performance()
326 outw(inw(PORT+L_RESET),PORT+L_RESET); /* that's the hard way */ in ni65_close()
460 outw(inw(PORT+L_RESET),PORT+L_RESET); /* first: reset the card */ in ni65_probe1()
470 if(inw(PORT+L_ADDRREG) == 88) { in ni65_probe1()
[all …]
/kernel/linux/linux-5.10/arch/parisc/lib/
Dio.c183 l = cpu_to_le16(inw(port)) << 16; in insw()
184 l |= cpu_to_le16(inw(port)); in insw()
189 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
194 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
200 l = cpu_to_le16(inw(port)) << 16; in insw()
201 l |= cpu_to_le16(inw(port)); in insw()
206 *(unsigned short *)p = cpu_to_le16(inw(port)); in insw()
216 l = cpu_to_le16(inw(port)); in insw()
221 l2 = cpu_to_le16(inw(port)); in insw()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dmk712.c110 last_x = inw(mk712_io + MK712_X) & 0x0fff; in mk712_interrupt()
111 last_y = inw(mk712_io + MK712_Y) & 0x0fff; in mk712_interrupt()
159 if ((inw(mk712_io + MK712_X) & 0xf000) || /* Sanity check */ in mk712_init()
160 (inw(mk712_io + MK712_Y) & 0xf000) || in mk712_init()
161 (inw(mk712_io + MK712_STATUS) & 0xf333)) { in mk712_init()
/kernel/linux/linux-5.10/drivers/ide/
Dopti621.c41 inw(reg_base + 1); in write_reg()
42 inw(reg_base + 1); in write_reg()
57 inw(reg_base + 1); in read_reg()
58 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()
/kernel/linux/linux-5.10/drivers/input/gameport/
Dfm801-gp.c33 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
36 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
38 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
41 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
/kernel/linux/linux-5.10/drivers/watchdog/
DiTCO_wdt.c225 val = inw(TCO1_CNT(p)); in update_no_reboot_bit_cnt()
231 newval = inw(TCO1_CNT(p)); in update_no_reboot_bit_cnt()
294 val = inw(TCO1_CNT(p)); in iTCO_wdt_start()
297 val = inw(TCO1_CNT(p)); in iTCO_wdt_start()
315 val = inw(TCO1_CNT(p)); in iTCO_wdt_stop()
318 val = inw(TCO1_CNT(p)); in iTCO_wdt_stop()
375 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout()
379 val16 = inw(TCOv2_TMR(p)); in iTCO_wdt_set_timeout()
411 val16 = inw(TCO_RLD(p)); in iTCO_wdt_get_timeleft()
420 if (!(inw(TCO1_STS(p)) & 0x0008)) in iTCO_wdt_get_timeleft()
/kernel/linux/linux-5.10/arch/sh/boards/mach-hp6xx/
Dsetup.c60 v = inw(HD64461_GPADR); in dac_audio_start()
78 v = inw(HD64461_GPADR); in dac_audio_stop()
129 v = inw(HD64461_STBCR); in hp6xx_setup()
139 v = inw(HD64461_GPADR); in hp6xx_setup()
/kernel/linux/linux-5.10/drivers/tty/
Disicom.c138 #define ClearInterrupt(base) inw((base) + 0x0a)
223 while (!(inw(base + 0xe) & 0x1) && count++ < 100) in WaitTillCardIsFree()
226 return !(inw(base + 0xe) & 0x1); in WaitTillCardIsFree()
237 if (inw(base + 0xe) & 0x1) in lock_card()
420 if (inw(base + 0xe) & 0x1) in isicom_tx()
441 if (!(inw(base + 0x02) & (1 << port->channel))) in isicom_tx()
523 if (!(inw(base + 0x0e) & 0x02)) in isicom_interrupt()
535 inw(base); /* get the dummy word out */ in isicom_interrupt()
536 header = inw(base); in isicom_interrupt()
557 inw(base); in isicom_interrupt()
[all …]
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Dio.h150 #define inw inw macro
151 static inline unsigned int inw(unsigned long port) in inw() function
214 put_unaligned(inw(port), dp++); in insw()
/kernel/linux/linux-5.10/arch/mips/loongson2ef/common/cs5536/
Dcs5536_mfgpt.c39 outw(inw(MFGPT0_SETUP) & 0x7fff, MFGPT0_SETUP); in disable_mfgpt0_counter()
96 outw(inw(MFGPT0_SETUP) | 0x4000, MFGPT0_SETUP); in timer_interrupt()
165 count = inw(MFGPT0_CNT); in mfgpt_read()
/kernel/linux/linux-5.10/drivers/scsi/
Dnsp32_io.h35 return inw(base + index); in nsp32_read2()
137 return inw(base + DATA_REG_LOW); in nsp32_index_read2()
154 l = inw(base + DATA_REG_LOW); in nsp32_index_read4()
155 h = inw(base + DATA_REG_HI ); in nsp32_index_read4()
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Dio.h211 static inline u16 inw(unsigned long port) in inw() function
246 #define inw_p inw
265 u16 x = inw(port); in insw()
276 u32 x = inw(port); in insl()
/kernel/linux/linux-5.10/drivers/net/ethernet/fujitsu/
Dfmvj18x_cs.c783 htons(inw(ioaddr + TX_STATUS)), in fjn_tx_timeout()
788 htons(inw(ioaddr + 0)), htons(inw(ioaddr + 2)), in fjn_tx_timeout()
789 htons(inw(ioaddr + 4)), htons(inw(ioaddr + 6)), in fjn_tx_timeout()
790 htons(inw(ioaddr + 8)), htons(inw(ioaddr + 10)), in fjn_tx_timeout()
791 htons(inw(ioaddr + 12)), htons(inw(ioaddr + 14))); in fjn_tx_timeout()
937 inw(ioaddr + DATAPORT); in fjn_reset()
938 inw(ioaddr + DATAPORT); in fjn_reset()
967 u_short status = inw(ioaddr + DATAPORT); in fjn_rx()
984 u_short pkt_len = inw(ioaddr + DATAPORT); in fjn_rx()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Daddi_apci_3120.c343 val = inw(dev->iobase + APCI3120_TIMER_REG); in apci3120_timer_read()
350 val |= (inw(dev->iobase + APCI3120_TIMER_REG) << 16); in apci3120_timer_read()
413 inw(dev->iobase + APCI3120_TIMER_MODE_REG); in apci3120_set_chanlist()
479 status = inw(dev->iobase + APCI3120_STATUS_REG); in apci3120_interrupt()
504 val = inw(dev->iobase + APCI3120_AI_FIFO_REG); in apci3120_interrupt()
684 inw(dev->iobase + APCI3120_STATUS_REG); in apci3120_cancel()
697 status = inw(dev->iobase + APCI3120_STATUS_REG); in apci3120_ai_eoc()
741 data[i] = inw(dev->iobase + APCI3120_AI_FIFO_REG); in apci3120_ai_insn_read()
754 status = inw(dev->iobase + APCI3120_STATUS_REG); in apci3120_ao_ready()
792 status = inw(dev->iobase + APCI3120_STATUS_REG); in apci3120_di_insn_bits()
[all …]

12345678