• Home
  • Raw
  • Download

Lines Matching refs:u32

15 static u32 ethnl_lower_bits(unsigned int n)  in ethnl_lower_bits()
17 return ~(u32)0 >> (32 - n % 32); in ethnl_lower_bits()
20 static u32 ethnl_upper_bits(unsigned int n) in ethnl_upper_bits()
22 return ~(u32)0 << (n % 32); in ethnl_upper_bits()
34 static void ethnl_bitmap32_clear(u32 *dst, unsigned int start, unsigned int end, in ethnl_bitmap32_clear()
40 u32 mask; in ethnl_bitmap32_clear()
86 static bool ethnl_bitmap32_not_zero(const u32 *map, unsigned int start, in ethnl_bitmap32_not_zero()
91 u32 mask; in ethnl_bitmap32_not_zero()
108 (end_word - start_word) * sizeof(u32))) in ethnl_bitmap32_not_zero()
128 static void ethnl_bitmap32_update(u32 *dst, unsigned int nbits, in ethnl_bitmap32_update()
129 const u32 *value, const u32 *mask, bool *mod) in ethnl_bitmap32_update()
132 u32 real_mask = mask ? *mask : ~(u32)0; in ethnl_bitmap32_update()
133 u32 new_value; in ethnl_bitmap32_update()
153 static bool ethnl_bitmap32_test_bit(const u32 *map, unsigned int index) in ethnl_bitmap32_test_bit()
171 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits, in ethnl_bitset32_size()
178 len += nla_total_size(sizeof(u32)); in ethnl_bitset32_size()
180 len += nla_total_size(sizeof(u32)); in ethnl_bitset32_size()
186 len += (mask ? 2 : 1) * nla_total_size(nwords * sizeof(u32)); in ethnl_bitset32_size()
197 bit_len = nla_total_size(sizeof(u32)); in ethnl_bitset32_size()
232 int ethnl_put_bitset32(struct sk_buff *skb, int attrtype, const u32 *val, in ethnl_put_bitset32()
233 const u32 *mask, unsigned int nbits, in ethnl_put_bitset32()
249 unsigned int nbytes = nwords * sizeof(u32); in ethnl_put_bitset32()
250 u32 *dst; in ethnl_put_bitset32()
429 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32_verbose()
467 old_val = bitmap[idx / 32] & ((u32)1 << (idx % 32)); in ethnl_update_bitset32_verbose()
470 bitmap[idx / 32] |= ((u32)1 << (idx % 32)); in ethnl_update_bitset32_verbose()
472 bitmap[idx / 32] &= ~((u32)1 << (idx % 32)); in ethnl_update_bitset32_verbose()
512 if (nla_len(tb[ETHTOOL_A_BITSET_VALUE]) != attr_nwords * sizeof(u32)) { in ethnl_compact_sanity_checks()
518 nla_len(tb[ETHTOOL_A_BITSET_MASK]) != attr_nwords * sizeof(u32)) { in ethnl_compact_sanity_checks()
552 int ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32()
703 u32 small_mask32[ETHNL_SMALL_BITMAP_WORDS]; in ethnl_bitset_size()
704 u32 small_val32[ETHNL_SMALL_BITMAP_WORDS]; in ethnl_bitset_size()
705 u32 *mask32; in ethnl_bitset_size()
706 u32 *val32; in ethnl_bitset_size()
712 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_bitset_size()
739 u32 small_mask32[ETHNL_SMALL_BITMAP_WORDS]; in ethnl_put_bitset()
740 u32 small_val32[ETHNL_SMALL_BITMAP_WORDS]; in ethnl_put_bitset()
741 u32 *mask32; in ethnl_put_bitset()
742 u32 *val32; in ethnl_put_bitset()
748 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_put_bitset()
775 u32 small_bitmap32[ETHNL_SMALL_BITMAP_WORDS]; in ethnl_update_bitset()
776 u32 *bitmap32 = small_bitmap32; in ethnl_update_bitset()
783 bitmap32 = kmalloc_array(dst_words, sizeof(u32), GFP_KERNEL); in ethnl_update_bitset()
812 return ethnl_bitset32_size((const u32 *)val, (const u32 *)mask, nbits, in ethnl_bitset_size()
821 return ethnl_put_bitset32(skb, attrtype, (const u32 *)val, in ethnl_put_bitset()
822 (const u32 *)mask, nbits, names, compact); in ethnl_put_bitset()
829 return ethnl_update_bitset32((u32 *)bitmap, nbits, attr, names, extack, in ethnl_update_bitset()