Searched refs:SETMASK (Results 1 – 4 of 4) sorted by relevance
/drivers/clk/sunxi/ |
D | clk-factors.c | 36 #define SETMASK(len, pos) (((1U << (len)) - 1) << (pos)) macro 37 #define CLRMASK(len, pos) (~(SETMASK(len, pos))) 38 #define FACTOR_GET(bit, len, reg) (((reg) & SETMASK(len, bit)) >> (bit))
|
/drivers/net/fddi/skfp/ |
D | pcmplc.c | 576 SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ; in plc_config_mux() 577 SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ; in plc_config_mux() 947 SETMASK(PLC(np,PL_CNTRL_A), in pcm_fsm() 949 SETMASK(PLC(np,PL_CNTRL_B), in pcm_fsm() 952 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm() 953 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm() 1014 SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ; in pcm_fsm() 1244 SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ; in sm_ph_lem_start() 1360 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions() 1364 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
|
D | fplustm.c | 539 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in formac_rcv_restart() 662 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in mac_ring_up() 834 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in formac_offline() 837 SETMASK(FM_A(FM_MDREG1),FM_MINIT,FM_MMODE) ; in formac_offline() 850 SETMASK(FM_A(FM_MDREG1),FM_MONLINE | FM_SELRA | MDR1INIT | in formac_online() 1004 SETMASK(FM_A(FM_MDREG1),FM_SELRA,FM_SELRA) ; in config_mux() 1310 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in mac_set_rx_mode()
|
/drivers/net/fddi/skfp/h/ |
D | skfbi.h | 1039 #define SETMASK(io,val,mask) outpw((io),(inpw(io) & ~(mask)) | (val)) macro
|