Searched refs:bitmap (Results 1 - 11 of 11) sorted by relevance

/net/netlabel/
H A Dnetlabel_kapi.c411 * @catmap: the category bitmap
415 * This function walks a LSM secattr category bitmap starting at @offset and
425 NETLBL_CATMAP_MAPTYPE bitmap; local
440 bitmap = iter->bitmap[node_idx] >> node_bit;
443 if (bitmap != 0) {
444 while ((bitmap & NETLBL_CATMAP_BIT) == 0) {
445 bitmap >>= 1;
458 bitmap = iter->bitmap[node_id
483 NETLBL_CATMAP_MAPTYPE bitmap; local
[all...]
/net/xfrm/
H A Dxfrm_replay.c133 sizeof(x->replay.bitmap) * 8)) {
138 if (x->replay.bitmap & (1U << diff)) {
160 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1;
162 x->replay.bitmap = 1;
166 x->replay.bitmap |= (1U << diff);
/net/ipv4/
H A Dcipso_ipv4.c88 /* Restricted bitmap (tag #1) flags */
104 /* Base length of the restrictive category bitmap tag (tag #1). */
110 /* Base length of the ranged categories bitmap tag (tag #5). */
137 * cipso_v4_bitmap_walk - Walk a bitmap looking for a bit
138 * @bitmap: the bitmap
144 * Starting at @offset, walk the bitmap from left to right until either the
148 static int cipso_v4_bitmap_walk(const unsigned char *bitmap, argument
160 byte = bitmap[byte_offset];
172 byte = bitmap[
190 cipso_v4_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state) argument
828 cipso_v4_map_cat_rbm_valid(const struct cipso_v4_doi *doi_def, const unsigned char *bitmap, u32 bitmap_len) argument
[all...]
H A Dudp.c134 unsigned long *bitmap,
147 (bitmap || udp_sk(sk2)->udp_port_hash == num) &&
154 if (bitmap)
156 bitmap);
219 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN);
233 bitmap_zero(bitmap, PORTS_PER_CHAIN);
235 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk,
246 !test_bit(snum >> udptable->log, bitmap) &&
132 udp_lib_lport_inuse(struct net *net, __u16 num, const struct udp_hslot *hslot, unsigned long *bitmap, struct sock *sk, int (*saddr_comp)(const struct sock *sk1, const struct sock *sk2), unsigned int log) argument
/net/sched/
H A Dsch_generic.c409 * - bitmap indicating which of the bands contain skbs
412 u32 bitmap; member in struct:pfifo_fast_priv
417 * Convert a bitmap to the first band number where an skb is queued, where:
418 * bitmap=0 means there are no skbs on any band.
419 * bitmap=1 means there is an skb on band 0.
420 * bitmap=7 means there are skbs on all 3 bands, etc.
437 priv->bitmap |= (1 << band);
448 int band = bitmap2band[priv->bitmap];
456 priv->bitmap &= ~(1 << band);
467 int band = bitmap2band[priv->bitmap];
[all...]
H A Dsch_qfq.c744 /* return the pointer to the group with lowest index in the bitmap */
746 unsigned long bitmap)
748 int index = __ffs(bitmap);
752 static inline unsigned long mask_from(unsigned long bitmap, int from) argument
754 return bitmap & ~((1UL << from) - 1);
745 qfq_ffs(struct qfq_sched *q, unsigned long bitmap) argument
/net/sctp/
H A Dtsnmap.c47 #include <linux/bitmap.h>
/net/mac80211/
H A Dmain.c21 #include <linux/bitmap.h>
H A Dutil.c22 #include <linux/bitmap.h>
H A Dtx.c19 #include <linux/bitmap.h>
2249 /* Generate bitmap for TIM only if there are any STAs in power save
2275 * (N1 x 8) - 1 in the bitmap are 0 and number N2 so that bits
2315 * of the tim bitmap in mac80211 and the driver.
/net/netlink/
H A Dgenetlink.c18 #include <linux/bitmap.h>

Completed in 1395 milliseconds