Searched refs:BITS_MASK (Results 1 – 4 of 4) sorted by relevance
127 #define BITS_MASK(nbits) ((1<<nbits)-1) macro128 #define GET_BITS_SHIFT(x, nbits, nshift) (((x)>>nshift)&BITS_MASK(nbits))129 #define BITS_SHIFT_MASK(nbits, nshift) (BITS_MASK(nbits)<<nshift)130 #define BITS_SHIFT_VAL(x, nbits, nshift) (((x)&BITS_MASK(nbits))<<nshift)
1619 txd_vlan_id = skb_vlan_tag_get(skb) & BITS_MASK(12); in bdx_tx_transmit()
1468 #define BITS_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1)) in at91_gpio_set_multiple() macro1470 uint32_t set_mask = (*mask & *bits) & BITS_MASK(chip->ngpio); in at91_gpio_set_multiple()1471 uint32_t clear_mask = (*mask & ~(*bits)) & BITS_MASK(chip->ngpio); in at91_gpio_set_multiple()
91 #define BITS_MASK 0xFF macro1383 counter[bits] = nums & BITS_MASK; in ctr_iv_inc()