Searched refs:bitmap (Results 1 – 7 of 7) sorted by relevance
/net/netlabel/ |
D | netlabel_kapi.c | 425 NETLBL_CATMAP_MAPTYPE bitmap; in netlbl_secattr_catmap_walk() local 440 bitmap = iter->bitmap[node_idx] >> node_bit; in netlbl_secattr_catmap_walk() 443 if (bitmap != 0) { in netlbl_secattr_catmap_walk() 444 while ((bitmap & NETLBL_CATMAP_BIT) == 0) { in netlbl_secattr_catmap_walk() 445 bitmap >>= 1; in netlbl_secattr_catmap_walk() 458 bitmap = iter->bitmap[node_idx]; in netlbl_secattr_catmap_walk() 483 NETLBL_CATMAP_MAPTYPE bitmap; in netlbl_secattr_catmap_walk_rng() local 501 bitmap = iter->bitmap[node_idx]; in netlbl_secattr_catmap_walk_rng() 502 while (bitmask != 0 && (bitmap & bitmask) != 0) { in netlbl_secattr_catmap_walk_rng() 557 iter->bitmap[node_idx] |= NETLBL_CATMAP_BIT << node_bit; in netlbl_secattr_catmap_setbit()
|
/net/netfilter/ipset/ |
D | Kconfig | 28 tristate "bitmap:ip set support" 31 This option adds the bitmap:ip set type support, by which one 37 tristate "bitmap:ip,mac set support" 40 This option adds the bitmap:ip,mac set type support, by which one 46 tristate "bitmap:port set support" 49 This option adds the bitmap:port set type support, by which one
|
/net/xfrm/ |
D | xfrm_replay.c | 133 sizeof(x->replay.bitmap) * 8)) { in xfrm_replay_check() 138 if (x->replay.bitmap & (1U << diff)) { in xfrm_replay_check() 160 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1; in xfrm_replay_advance() 162 x->replay.bitmap = 1; in xfrm_replay_advance() 166 x->replay.bitmap |= (1U << diff); in xfrm_replay_advance()
|
/net/sched/ |
D | sch_generic.c | 412 u32 bitmap; member 437 priv->bitmap |= (1 << band); in pfifo_fast_enqueue() 448 int band = bitmap2band[priv->bitmap]; in pfifo_fast_dequeue() 456 priv->bitmap &= ~(1 << band); in pfifo_fast_dequeue() 467 int band = bitmap2band[priv->bitmap]; in pfifo_fast_peek() 486 priv->bitmap = 0; in pfifo_fast_reset()
|
D | sch_qfq.c | 746 unsigned long bitmap) in qfq_ffs() argument 748 int index = __ffs(bitmap); in qfq_ffs() 752 static inline unsigned long mask_from(unsigned long bitmap, int from) in mask_from() argument 754 return bitmap & ~((1UL << from) - 1); in mask_from()
|
/net/ipv4/ |
D | cipso_ipv4.c | 148 static int cipso_v4_bitmap_walk(const unsigned char *bitmap, in cipso_v4_bitmap_walk() argument 160 byte = bitmap[byte_offset]; in cipso_v4_bitmap_walk() 172 byte = bitmap[++byte_offset]; in cipso_v4_bitmap_walk() 190 static void cipso_v4_bitmap_setbit(unsigned char *bitmap, in cipso_v4_bitmap_setbit() argument 201 bitmap[byte_spot] |= bitmask; in cipso_v4_bitmap_setbit() 203 bitmap[byte_spot] &= ~bitmask; in cipso_v4_bitmap_setbit() 829 const unsigned char *bitmap, in cipso_v4_map_cat_rbm_valid() argument 844 cat = cipso_v4_bitmap_walk(bitmap, in cipso_v4_map_cat_rbm_valid()
|
D | udp.c | 134 unsigned long *bitmap, in udp_lib_lport_inuse() argument 147 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse() 154 if (bitmap) in udp_lib_lport_inuse() 156 bitmap); in udp_lib_lport_inuse() 219 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port() 233 bitmap_zero(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port() 235 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port() 246 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
|