/net/netfilter/ |
D | nft_numgen.c | 19 u32 modulus; member 30 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; in nft_ng_inc_gen() 61 priv->modulus = ntohl(nla_get_be32(tb[NFTA_NG_MODULUS])); in nft_ng_inc_init() 62 if (priv->modulus == 0) in nft_ng_inc_init() 65 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_ng_inc_init() 68 atomic_set(&priv->counter, priv->modulus - 1); in nft_ng_inc_init() 75 u32 modulus, enum nft_ng_types type, u32 offset) in nft_ng_dump() argument 79 if (nla_put_be32(skb, NFTA_NG_MODULUS, htonl(modulus))) in nft_ng_dump() 96 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump() 102 u32 modulus; member [all …]
|
D | nft_hash.c | 21 u32 modulus; member 35 priv->modulus); in nft_jhash_eval() 42 u32 modulus; member 54 h = reciprocal_scale(__skb_get_hash_symmetric(skb), priv->modulus); in nft_symhash_eval() 98 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS])); in nft_jhash_init() 99 if (priv->modulus < 1) in nft_jhash_init() 102 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_jhash_init() 129 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS])); in nft_symhash_init() 130 if (priv->modulus < 1) in nft_symhash_init() 133 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_symhash_init() [all …]
|
/net/ax25/ |
D | ax25_std_in.c | 43 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 49 ax25->modulus = AX25_EMODULUS; in ax25_std_state1_machine() 82 if (ax25->modulus == AX25_MODULUS) { in ax25_std_state1_machine() 85 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 149 ax25->modulus = AX25_MODULUS; in ax25_std_state3_machine() 152 ax25->modulus = AX25_EMODULUS; in ax25_std_state3_machine() 224 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state3_machine() 274 ax25->modulus = AX25_MODULUS; in ax25_std_state4_machine() 277 ax25->modulus = AX25_EMODULUS; in ax25_std_state4_machine() 379 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state4_machine()
|
D | ax25_ds_in.c | 36 ax25->modulus = AX25_MODULUS; in ax25_ds_state1_machine() 42 ax25->modulus = AX25_EMODULUS; in ax25_ds_state1_machine() 153 ax25->modulus = AX25_MODULUS; in ax25_ds_state3_machine() 156 ax25->modulus = AX25_EMODULUS; in ax25_ds_state3_machine() 239 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_ds_state3_machine()
|
D | ax25_subr.c | 57 ax25->va = (ax25->va + 1) % ax25->modulus; in ax25_frames_acked() 85 vc = (vc + 1) % ax25->modulus; in ax25_validate_nr() 105 if (ax25->modulus == AX25_MODULUS) { in ax25_decode() 160 if (ax25->modulus == AX25_MODULUS) { in ax25_send_control()
|
D | ax25_std_timer.c | 125 if (ax25->modulus == AX25_MODULUS) { in ax25_std_t1timer_expiry() 129 ax25->modulus = AX25_MODULUS; in ax25_std_t1timer_expiry() 136 if (ax25->modulus == AX25_MODULUS) in ax25_std_t1timer_expiry()
|
D | ax25_ds_timer.c | 193 if (ax25->modulus == AX25_MODULUS) { in ax25_ds_t1_timeout() 197 ax25->modulus = AX25_MODULUS; in ax25_ds_t1_timeout() 204 if (ax25->modulus == AX25_MODULUS) in ax25_ds_t1_timeout()
|
D | ax25_out.c | 220 if (ax25->modulus == AX25_MODULUS) { in ax25_send_iframe() 257 end = (ax25->va + ax25->window) % ax25->modulus; in ax25_kick() 287 next = (ax25->vs + 1) % ax25->modulus; in ax25_kick() 348 ax25_addr_build(ptr, &ax25->source_addr, &ax25->dest_addr, ax25->digipeat, type, ax25->modulus); in ax25_transmit_buffer()
|
D | af_ax25.c | 403 if (ax25->modulus == AX25_MODULUS) { in ax25_ctl_ioctl() 478 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb_from_dev() 481 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb_from_dev() 512 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb() 515 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb() 575 if (ax25->modulus == AX25_MODULUS) { in ax25_setsockopt() 639 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt() 758 val = (ax25->modulus == AX25_EMODULUS); in ax25_getsockopt() 947 ax25->modulus = oax25->modulus; in ax25_make_new() 1309 ax25->modulus = AX25_MODULUS; in ax25_connect()
|
D | ax25_addr.c | 216 const ax25_address *dest, const ax25_digi *d, int flag, int modulus) in ax25_addr_build() argument 234 if (modulus == AX25_MODULUS) in ax25_addr_build()
|
D | ax25_std_subr.c | 40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link()
|
D | ax25_in.c | 397 ax25->modulus = AX25_EMODULUS; in ax25_rcv() 400 ax25->modulus = AX25_MODULUS; in ax25_rcv()
|
/net/lapb/ |
D | lapb_subr.c | 49 int modulus; in lapb_frames_acked() local 51 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_frames_acked() 60 lapb->va = (lapb->va + 1) % modulus; in lapb_frames_acked() 89 int modulus; in lapb_validate_nr() local 91 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_validate_nr() 96 vc = (vc + 1) % modulus; in lapb_validate_nr()
|
D | lapb_out.c | 69 unsigned short modulus, start, end; in lapb_kick() local 71 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_kick() 73 end = (lapb->va + lapb->window) % modulus; in lapb_kick() 99 lapb->vs = (lapb->vs + 1) % modulus; in lapb_kick()
|
D | lapb_in.c | 250 int modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : in lapb_state3_machine() local 415 lapb->vr = (lapb->vr + 1) % modulus; in lapb_state3_machine()
|
/net/x25/ |
D | x25_out.c | 140 int modulus; in x25_kick() local 162 modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_kick() 165 end = (x25->va + x25->facilities.winsize_out) % modulus; in x25_kick() 192 x25->vs = (x25->vs + 1) % modulus; in x25_kick()
|
D | x25_subr.c | 55 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_frames_acked() local 64 x25->va = (x25->va + 1) % modulus; in x25_frames_acked() 94 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_validate_nr() local 99 vc = (vc + 1) % modulus; in x25_validate_nr()
|
D | x25_in.c | 211 int modulus; in x25_state3_machine() local 214 modulus = (x25->neighbour->extended) ? X25_EMODULUS : X25_SMODULUS; in x25_state3_machine() 276 x25->vr = (x25->vr + 1) % modulus; in x25_state3_machine() 299 if (((x25->vl + x25->facilities.winsize_in) % modulus) == x25->vr) { in x25_state3_machine()
|