Searched refs:SETMASK (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/clk/sunxi/ |
D | clk-factors.c | 33 #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))
|
/Linux-v5.4/drivers/net/fddi/skfp/ |
D | pcmplc.c | 569 SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ; in plc_config_mux() 570 SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ; in plc_config_mux() 940 SETMASK(PLC(np,PL_CNTRL_A), in pcm_fsm() 942 SETMASK(PLC(np,PL_CNTRL_B), in pcm_fsm() 945 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm() 946 SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ; in pcm_fsm() 1007 SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ; in pcm_fsm() 1236 SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ; in sm_ph_lem_start() 1342 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions() 1346 SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ; in pc_rcode_actions()
|
D | fplustm.c | 535 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in formac_rcv_restart() 658 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in mac_ring_up() 830 SETMASK(FM_A(FM_MDREG1),FM_MDISRCV,FM_ADDET) ; in formac_offline() 833 SETMASK(FM_A(FM_MDREG1),FM_MINIT,FM_MMODE) ; in formac_offline() 846 SETMASK(FM_A(FM_MDREG1),FM_MONLINE | FM_SELRA | MDR1INIT | in formac_online() 1000 SETMASK(FM_A(FM_MDREG1),FM_SELRA,FM_SELRA) ; in config_mux() 1306 SETMASK(FM_A(FM_MDREG1),smc->hw.fp.rx_mode,FM_ADDRX) ; in mac_set_rx_mode()
|
/Linux-v5.4/drivers/net/fddi/skfp/h/ |
D | skfbi.h | 812 #define SETMASK(io,val,mask) outpw((io),(inpw(io) & ~(mask)) | (val)) macro
|