Searched refs:bit (Results 1 - 13 of 13) sorted by relevance

/net/netfilter/
H A Dnf_conntrack_labels.c23 bool nf_connlabel_match(const struct nf_conn *ct, u16 bit) argument
30 return bit < label_bits(labels) && test_bit(bit, labels->bits);
34 int nf_connlabel_set(struct nf_conn *ct, u16 bit) argument
38 if (!labels || bit >= label_bits(labels))
41 if (test_bit(bit, labels->bits))
44 if (!test_and_set_bit(bit, labels->bits))
H A Dxt_connlabel.c34 return (nf_connlabel_set(ct, info->bit) == 0) ^ invert;
36 return nf_connlabel_match(ct, info->bit) ^ invert;
47 if (info->bit > XT_CONNLABEL_MAXBIT)
63 words = BITS_TO_LONGS(info->bit+1);
H A Dnf_conntrack_h323_asn1.c99 unsigned int bit; member in struct:__anon96
103 #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;}
104 #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;}
105 #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;}
171 unsigned int b = (*bs->cur) & (0x80 >> bs->bit);
184 v = (*bs->cur) & (0xffU >> bs->bit);
[all...]
/net/ceph/
H A Dpagelist.c56 size_t bit = pl->room; local
60 buf, bit);
61 pl->length += bit;
62 pl->room -= bit;
63 buf += bit;
64 len -= bit;
/net/netlabel/
H A Dnetlabel_kapi.c471 * netlbl_catmap_walk - Walk a LSM secattr catmap looking for a bit
477 * returns the spot of the first set bit or -ENOENT if no bits are set.
484 u32 bit; local
493 bit = offset % NETLBL_CATMAP_MAPSIZE;
496 bit = 0;
498 bitmap = iter->bitmap[idx] >> bit;
504 bit++;
507 (NETLBL_CATMAP_MAPSIZE * idx) + bit;
517 bit = 0;
530 * returns the spot of the first cleared bit o
539 u32 bit; local
641 netlbl_catmap_setbit(struct netlbl_lsm_catmap **catmap, u32 bit, gfp_t flags) argument
[all...]
/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c470 /* hardcoded for 48bit ethernet and 32bit ipv4 addresses */
569 unsigned int bit; /* current bit */ member in struct:clusterip_seq_position
592 idx->bit = ffs(local_nodes);
594 clear_bit(idx->bit - 1, &idx->val);
608 idx->bit = ffs(idx->val);
609 clear_bit(idx->bit - 1, &idx->val);
626 seq_printf(s, "%u", idx->bit);
/net/mac80211/
H A Dmesh.c759 u32 bit; local
765 for_each_set_bit(bit, &bits, sizeof(changed) * BITS_PER_BYTE)
766 set_bit(bit, &ifmsh->mbss_changed);
1245 u32 bit, changed = 0; local
1247 for_each_set_bit(bit, &ifmsh->mbss_changed,
1249 clear_bit(bit, &ifmsh->mbss_changed);
1250 changed |= BIT(bit);
/net/rfkill/
H A Dcore.c101 * a bit of a stupid situation because drivers might want to register
491 u32 bit = RFKILL_BLOCK_SW; local
493 /* if in a ops->set_block right now, use other bit */
495 bit = RFKILL_BLOCK_SW_PREV;
498 rfkill->state |= bit;
500 rfkill->state &= ~bit;
/net/ipv6/
H A Dip6_fib.c116 * These assume a 32bit processor (although it will work on
117 * 64bit processors)
121 * test bit
429 int bit; local
532 /* find 1st bit in difference between the 2 addrs.
534 See comment in __ipv6_addr_diff: bit may be an invalid value,
538 bit = __ipv6_addr_diff(addr, &key->addr, sizeof(*addr));
545 if (plen > bit) {
565 in->fn_bit = bit;
586 if (addr_bit_set(addr, bit)) {
[all...]
/net/ipv4/
H A Dcipso_ipv4.c123 * | 10000000 | 00000110 | 32-bit secid value |
136 * cipso_v4_bitmap_walk - Walk a bitmap looking for a bit
140 * @state: if non-zero, look for a set (1) bit else look for a cleared (0) bit
144 * desired bit is found or we reach the end. Return the bit offset, -1 if
180 * cipso_v4_bitmap_setbit - Sets a single bit in a bitmap
182 * @bit: the bit
183 * @state: if non-zero, set the bit (
189 cipso_v4_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state) argument
[all...]
H A DKconfig593 provide multi-bit feedback to the end hosts. It is designed to provide:
/net/core/
H A Dsock.c646 static inline void sock_valbool_flag(struct sock *sk, int bit, int valbool) argument
649 sock_set_flag(sk, bit);
651 sock_reset_flag(sk, bit);
1811 /* On 32bit arches, an skb frag is limited to 2^15 */
/net/sched/
H A DKconfig396 tristate "Universal 32bit comparisons w/ hashing (U32)"
400 32bit pieces based comparison scheme.
507 simple packet data comparisons for 8, 16, and 32bit values.

Completed in 180 milliseconds