Home
last modified time | relevance | path

Searched refs:SETMASK (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/clk/sunxi/
H A Dclk-factors.c33 #define SETMASK(len, pos) (((1U << (len)) - 1) << (pos)) macro
34 #define CLRMASK(len, pos) (~(SETMASK(len, pos)))
35 #define FACTOR_GET(bit, len, reg) (((reg) & SETMASK(len, bit)) >> (bit))
/openbmc/linux/drivers/net/fddi/skfp/
H A Dpcmplc.c565 SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ; in plc_config_mux()
566 SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ; in plc_config_mux()
936 SETMASK(PLC(np,PL_CNTRL_A), in pcm_fsm()
938 SETMASK(PLC(np,PL_CNTRL_B), in pcm_fsm()
941 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
942 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm()
1003 SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ; in pcm_fsm()
1232 SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ; in sm_ph_lem_start()
1338 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
1342 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
H A Dfplustm.c531 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in formac_rcv_restart()
654 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in mac_ring_up()
826 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in formac_offline()
829 SETMASK(FM_A(FM_MDREG1),FM_MINIT,FM_MMODE) ; in formac_offline()
842 SETMASK(FM_A(FM_MDREG1),FM_MONLINE | FM_SELRA | MDR1INIT | in formac_online()
996 SETMASK(FM_A(FM_MDREG1),FM_SELRA,FM_SELRA) ; in config_mux()
1302 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in mac_set_rx_mode()
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_blocksort.c787 #define SETMASK (1 << 21) macro
788 #define CLEARMASK (~(SETMASK))
929 if ( ! (ftab[sb] & SETMASK) ) { in mainSort()
945 ftab[sb] |= SETMASK; in mainSort()
986 for (j = 0; j <= 255; j++) ftab[(j << 8) + ss] |= SETMASK; in mainSort()
1054 #undef SETMASK
/openbmc/linux/drivers/net/fddi/skfp/h/
H A Dskfbi.h807 #define SETMASK(io,val,mask) outpw((io),(inpw(io) & ~(mask)) | (val)) macro