Searched refs:bit (Results 1 - 11 of 11) sorted by relevance
/net/netfilter/ |
H A D | nf_conntrack_labels.c | 27 bool nf_connlabel_match(const struct nf_conn *ct, u16 bit) argument 34 return bit < label_bits(labels) && test_bit(bit, labels->bits); 38 int nf_connlabel_set(struct nf_conn *ct, u16 bit) argument 42 if (!labels || bit >= label_bits(labels)) 45 if (test_bit(bit, labels->bits)) 48 if (!test_and_set_bit(bit, labels->bits))
|
H A D | xt_connlabel.c | 34 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 D | nf_conntrack_h323_asn1.c | 99 unsigned int bit; member in struct:__anon94 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 D | pagelist.c | 53 size_t bit = pl->room; local 57 buf, bit); 58 pl->length += bit; 59 pl->room -= bit; 60 buf += bit; 61 len -= bit;
|
/net/ipv4/netfilter/ |
H A D | ipt_CLUSTERIP.c | 458 /* hardcoded for 48bit ethernet and 32bit ipv4 addresses */ 556 unsigned int bit; /* current bit */ member in struct:clusterip_seq_position 579 idx->bit = ffs(local_nodes); 581 clear_bit(idx->bit - 1, &idx->val); 595 idx->bit = ffs(idx->val); 596 clear_bit(idx->bit - 1, &idx->val); 613 seq_printf(s, "%u", idx->bit);
|
/net/netlabel/ |
H A D | netlabel_kapi.c | 410 * netlbl_secattr_catmap_walk - Walk a LSM secattr catmap looking for a bit 416 * returns the spot of the first set bit or -ENOENT if no bits are set. 472 * returns the spot of the first cleared bit or -ENOENT if the offset is past 525 * netlbl_secattr_catmap_setbit - Set a bit in a LSM secattr catmap 527 * @bit: the bit to set 531 * Set the bit specified by @bit in @catmap. Returns zero on success, 536 u32 bit, 544 bit > 535 netlbl_secattr_catmap_setbit(struct netlbl_lsm_secattr_catmap *catmap, u32 bit, gfp_t flags) argument [all...] |
/net/rfkill/ |
H A D | core.c | 103 * a bit of a stupid situation because drivers might want to register 493 u32 bit = RFKILL_BLOCK_SW; local 495 /* if in a ops->set_block right now, use other bit */ 497 bit = RFKILL_BLOCK_SW_PREV; 500 rfkill->state |= bit; 502 rfkill->state &= ~bit;
|
/net/ipv6/ |
H A D | ip6_fib.c | 123 * These assume a 32bit processor (although it will work on 124 * 64bit processors) 128 * test bit 436 int bit; local 540 /* find 1st bit in difference between the 2 addrs. 542 See comment in __ipv6_addr_diff: bit may be an invalid value, 546 bit = __ipv6_addr_diff(addr, &key->addr, addrlen); 553 if (plen > bit) { 573 in->fn_bit = bit; 594 if (addr_bit_set(addr, bit)) { [all...] |
/net/ipv4/ |
H A D | cipso_ipv4.c | 124 * | 10000000 | 00000110 | 32-bit secid value | 137 * cipso_v4_bitmap_walk - Walk a bitmap looking for a bit 141 * @state: if non-zero, look for a set (1) bit else look for a cleared (0) bit 145 * desired bit is found or we reach the end. Return the bit offset, -1 if 181 * cipso_v4_bitmap_setbit - Sets a single bit in a bitmap 183 * @bit: the bit 184 * @state: if non-zero, set the bit ( 190 cipso_v4_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state) argument [all...] |
/net/sched/ |
H A D | Kconfig | 360 tristate "Universal 32bit comparisons w/ hashing (U32)" 364 32bit pieces based comparison scheme. 460 simple packet data comparisons for 8, 16, and 32bit values.
|
/net/core/ |
H A D | sock.c | 608 static inline void sock_valbool_flag(struct sock *sk, int bit, int valbool) argument 611 sock_set_flag(sk, bit); 613 sock_reset_flag(sk, bit); 1793 /* On 32bit arches, an skb frag is limited to 2^15 */
|
Completed in 684 milliseconds