Searched refs:inpw (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/drivers/net/fddi/skfp/h/
H A Dtypes.h33 #define inpw(p) ioread16(p) macro
H A Dskfbi.h1036 #define CLEAR(io,mask) outpw((io),inpw(io)&(~(mask)))
1037 #define SET(io,mask) outpw((io),inpw(io)|(mask))
1038 #define GET(io,mask) (inpw(io)&(mask))
1039 #define SETMASK(io,val,mask) outpw((io),(inpw(io) & ~(mask)) | (val))
1062 #define MDRR() (((long)inpw(FM_A(FM_MDRU))<<16) + inpw(FM_A(FM_MDRL)))
1065 #define GET_ST1() (((long)inpw(FM_A(FM_ST1U))<<16) + inpw(FM_A(FM_ST1L)))
1066 #define GET_ST2() (((long)inpw(FM_A(FM_ST2U))<<16) + inpw(FM_A(FM_ST2L)))
1068 #define GET_ST3() (((long)inpw(FM_A(FM_ST3U))<<16) + inpw(FM_A(FM_ST3L)))
1085 #define IN_82c54_TIMER(port) ((inpw(TI_A(port))>>8) & 0xff)
/linux-4.4.14/drivers/net/fddi/skfp/
H A Dpcmplc.c438 rev = inpw(PLC(p,PL_STATUS_A)) & PLC_REV_MASK ; plc_init()
464 (void)inpw(PLC(p,PL_INTR_EVENT)) ; /* clear interrupt event reg */ plc_init()
493 val = inpw(port) & ~(PL_PCM_CNTRL | PL_MAINT) ; plc_go_state()
510 state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ; sm_pm_get_ls()
546 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { plc_send_bits()
753 if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) { pcm_fsm()
782 (void)inpw(PLC(np,PL_INTR_EVENT)) ; pcm_fsm()
785 plc_rev = inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK ; pcm_fsm()
820 if (!(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) pcm_fsm()
822 if (((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) != pcm_fsm()
824 !(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL)) pcm_fsm()
895 i = inpw(PLC(np,PL_CNTRL_B)) & ~PL_PC_LOOP ; pcm_fsm()
1043 cntrl = (inpw(PLC(phy,PL_CNTRL_B)) & ~PL_MAINT_LS) | sm_ph_linestate()
1090 errors = inpw(PLC(((int) phy->np),PL_LINK_ERR_CTR)) ; lem_evaluate()
1194 errors = inpw(PLC(((int)phy->np),PL_LINK_ERR_CTR)) ; lem_check_lct()
1241 (void)inpw(PLC(np,PL_LINK_ERR_CTR)) ; /* clear error counter */ sm_ph_lem_start()
1688 ((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) == plc_irq()
1738 j = inpw(PLC(np,PL_LE_THRESHOLD)) ; plc_irq()
1739 i = inpw(PLC(np,PL_LINK_ERR_CTR)) ; plc_irq()
1764 switch (inpw(PLC(np,PL_CNTRL_B)) & PL_MATCH_LS) { plc_irq()
1774 reason = inpw(PLC(np,PL_STATUS_B)) & PL_BREAK_REASON ; plc_irq()
1801 n = inpw(PLC(np,PL_RCV_VECTOR)) ; plc_irq()
1905 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { get_pcm_state()
1927 switch (inpw(PLC(np,PL_STATUS_A)) & PL_LINE_ST) { get_linestate()
1949 switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) { get_pcmstate()
H A Ddrvfbi.c117 word = inpw(PCI_C(PCI_STATUS)) ; card_start()
215 stu = inpw(FM_A(FM_ST1U)) ; mac1_irq()
216 stl = inpw(FM_A(FM_ST1L)) ; mac1_irq()
237 u_short st = inpw(PLC(PB,PL_INTR_EVENT)) ; plc1_irq()
248 u_short st = inpw(PLC(PA,PL_INTR_EVENT)) ; plc2_irq()
H A Dfplustm.c60 while ((inpw(FM_A(FM_STMCHN)) & FM_SNPPND) && k) k--;\
67 while (!(inpw(FM_A(FM_AFSTAT)) & FM_DONE) && k) k--;\
115 tneg = (u_long)((long)inpw(FM_A(FM_TNEG))<<5) ; mac_get_tneg()
116 return (u_long)((tneg + ((inpw(FM_A(FM_TMRS))>>10)&0x1f)) | mac_get_tneg()
124 + (u_short) inpw(FM_A(FM_FCNTR)) ; mac_update_counter()
127 + (u_short) inpw(FM_A(FM_LCNTR)) ; mac_update_counter()
130 + (u_short) inpw(FM_A(FM_ECNTR)) ; mac_update_counter()
165 p = (u_long)inpw(FM_A(FM_MDRU))<<16 ;
166 p += (u_long)inpw(FM_A(FM_MDRL)) ;
595 imask = ~(inpw(FM_A(FM_IMSK1U))) ;
630 imask = ~(inpw(FM_A(FM_IMSK1U))) ;
1053 return (inpw(FM_A(FM_STMCHN))>>4) & 7; sm_mac_get_tx_state()
1335 if (inpw(ADDR(B2_RTM_CRTL)) & TIM_RES_TOK) { rtm_irq()
H A Dhwmtm.c755 stu = inpw(FM_A(FM_ST1U)) ; fddi_isr()
756 stl = inpw(FM_A(FM_ST1L)) ; fddi_isr()
761 stu= inpw(FM_A(FM_ST2U)) ; fddi_isr()
762 stl= inpw(FM_A(FM_ST2L)) ; fddi_isr()
768 stu= inpw(FM_A(FM_ST3U)) ; fddi_isr()
769 stl= inpw(FM_A(FM_ST3L)) ; fddi_isr()
/linux-4.4.14/drivers/scsi/
H A Dadvansys.c83 #define inpw(port) inw(port) macro
822 #define AscGetChipSignatureWord(port) (ushort)inpw((port)+IOP_SIG_WORD)
824 #define AscGetChipCfgLsw(port) (ushort)inpw((port)+IOP_CONFIG_LOW)
825 #define AscGetChipCfgMsw(port) (ushort)inpw((port)+IOP_CONFIG_HIGH)
830 #define AscGetChipEEPData(port) (ushort)inpw((port)+IOP_EEP_DATA)
832 #define AscGetChipLramAddr(port) (ushort)inpw((PortAddr)((port)+IOP_RAM_ADDR))
834 #define AscGetChipLramData(port) (ushort)inpw((port)+IOP_RAM_DATA)
838 #define AscGetChipStatus(port) (ASC_CS_TYPE)inpw((port)+IOP_STATUS)
845 #define AscGetPCAddr(port) (ushort)inpw((port)+IOP_REG_PC)
850 #define AscReadChipAX(port) (ushort)inpw((port)+IOP_REG_AX)
854 #define AscReadChipIH(port) (ushort)inpw((port)+IOP_REG_IH)
858 #define AscReadChipFIFO_L(port) (ushort)inpw((port)+IOP_REG_FIFO_L)
860 #define AscReadChipFIFO_H(port) (ushort)inpw((port)+IOP_REG_FIFO_H)
864 #define AscReadChipDA0(port) (ushort)inpw((port)+IOP_REG_DA0)
866 #define AscReadChipDA1(port) (ushort)inpw((port)+IOP_REG_DA1)
868 #define AscReadChipDC0(port) (ushort)inpw((port)+IOP_REG_DC0)
870 #define AscReadChipDC1(port) (ushort)inpw((port)+IOP_REG_DC1)
3898 word = inpw(iop_base + IOP_RAM_DATA); AscMemWordCopyPtrFromLram()
6688 word = inpw(iop_base + IOP_RAM_DATA); DvcGetQinfo()
8590 return inpw(eisa_cfg_iop); AscGetEisaChipCfg()
10976 (ushort)inp(iop + 1), (ushort)inpw(iop)); advansys_board_found()

Completed in 279 milliseconds