Home
last modified time | relevance | path

Searched refs:BITS_MASK (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/tehuti/
Dtehuti.h127 #define BITS_MASK(nbits) ((1<<nbits)-1) macro
128 #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)
Dtehuti.c1619 txd_vlan_id = skb_vlan_tag_get(skb) & BITS_MASK(12); in bdx_tx_transmit()
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-at91.c1482 #define BITS_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1)) in at91_gpio_set_multiple() macro
1484 uint32_t set_mask = (*mask & *bits) & BITS_MASK(chip->ngpio); in at91_gpio_set_multiple()
1485 uint32_t clear_mask = (*mask & ~(*bits)) & BITS_MASK(chip->ngpio); in at91_gpio_set_multiple()
/linux-6.1.9/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c91 #define BITS_MASK 0xFF macro
1383 counter[bits] = nums & BITS_MASK; in ctr_iv_inc()