Home
last modified time | relevance | path

Searched refs:modulus (Results 1 – 25 of 36) sorted by relevance

12

/linux-5.19.10/net/netfilter/
Dnft_numgen.c19 u32 modulus; member
30 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; in nft_ng_inc_gen()
62 priv->modulus = ntohl(nla_get_be32(tb[NFTA_NG_MODULUS])); in nft_ng_inc_init()
63 if (priv->modulus == 0) in nft_ng_inc_init()
66 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_ng_inc_init()
73 atomic_set(priv->counter, priv->modulus - 1); in nft_ng_inc_init()
98 u32 modulus, enum nft_ng_types type, u32 offset) in nft_ng_dump() argument
102 if (nla_put_be32(skb, NFTA_NG_MODULUS, htonl(modulus))) in nft_ng_dump()
119 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump()
133 u32 modulus; member
[all …]
Dnft_hash.c21 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 …]
/linux-5.19.10/arch/alpha/lib/
Ddivide.S65 #define modulus $2 macro
73 #define modulus $27 macro
106 bis $24,$24,modulus
111 LONGIFY(modulus)
125 1: cmpult divisor,modulus,compare
130 1: cmpult divisor,modulus,compare
141 cmpule divisor,modulus,compare
142 subq modulus,divisor,tmp1
145 cmovne compare,tmp1,modulus
Dev6-divide.S75 #define modulus $2 macro
83 #define modulus $27 macro
117 bis $24,$24,modulus # E :
123 LONGIFY(modulus) # E :
144 1: cmpult divisor,modulus,compare # E :
149 1: cmpult divisor,modulus,compare # E :
172 cmpule divisor,modulus,compare # E :
173 subq modulus,divisor,tmp1 # E :
182 cmovne compare,tmp1,modulus # E : Latency 2, extra map slot
187 cmovne compare,tmp1,modulus # E : Latency 2, extra map slot
/linux-5.19.10/net/ax25/
Dax25_std_in.c43 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()
Dax25_ds_in.c36 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()
Dax25_std_timer.c125 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()
Dax25_subr.c57 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()
Dax25_ds_timer.c193 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()
Dax25_out.c220 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()
Dax25_addr.c216 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()
Daf_ax25.c406 if (ax25->modulus == AX25_MODULUS) { in ax25_ctl_ioctl()
481 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb_from_dev()
484 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb_from_dev()
515 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb()
518 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb()
578 if (ax25->modulus == AX25_MODULUS) { in ax25_setsockopt()
642 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt()
761 val = (ax25->modulus == AX25_EMODULUS); in ax25_getsockopt()
950 ax25->modulus = oax25->modulus; in ax25_make_new()
1316 ax25->modulus = AX25_MODULUS; in ax25_connect()
Dax25_std_subr.c40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link()
/linux-5.19.10/drivers/s390/crypto/
Dzcrypt_cex2a.h48 unsigned char modulus[128]; member
58 unsigned char modulus[256]; member
68 unsigned char modulus[512]; member
Dzcrypt_msgtype50.c76 unsigned char modulus[128]; member
86 unsigned char modulus[256]; member
96 unsigned char modulus[512]; member
215 mod = meb1->modulus + sizeof(meb1->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
226 mod = meb2->modulus + sizeof(meb2->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
237 mod = meb3->modulus + sizeof(meb3->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
/linux-5.19.10/net/lapb/
Dlapb_subr.c49 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()
Dlapb_out.c69 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()
/linux-5.19.10/net/x25/
Dx25_out.c140 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()
Dx25_subr.c55 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()
Dx25_in.c211 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()
/linux-5.19.10/arch/x86/kernel/cpu/sgx/
Dioctl.c470 static int __sgx_get_key_hash(struct crypto_shash *tfm, const void *modulus, in __sgx_get_key_hash() argument
477 return crypto_shash_digest(shash, modulus, SGX_MODULUS_SIZE, hash); in __sgx_get_key_hash()
480 static int sgx_get_key_hash(const void *modulus, void *hash) in sgx_get_key_hash() argument
489 ret = __sgx_get_key_hash(tfm, modulus, hash); in sgx_get_key_hash()
530 ret = sgx_get_key_hash(sigstruct->modulus, mrsigner); in sgx_encl_init()
/linux-5.19.10/tools/testing/selftests/sgx/
Dsigstruct.c340 BN_bn2bin(get_modulus(key), sigstruct->modulus); in encl_measure()
368 if (!calc_q1q2(sigstruct->signature, sigstruct->modulus, sigstruct->q1, in encl_measure()
374 reverse_bytes(sigstruct->modulus, SGX_MODULUS_SIZE); in encl_measure()
/linux-5.19.10/Documentation/ABI/testing/
Dsysfs-class-net-cdc_ncm126 NDP alignment modulus for NTBs on the IN pipe. Shall
141 OUT NTB Datagram alignment modulus
158 NDP alignment modulus for use in NTBs on the OUT
/linux-5.19.10/drivers/infiniband/hw/hfi1/
Dfirmware.c86 u8 modulus[KEY_SIZE]; member
94 u8 modulus[KEY_SIZE]; member
113 u8 *modulus; /* pointer to the modulus */ member
474 fdet->modulus = ff->modulus; in obtain_one_firmware()
499 fdet->modulus = aff->modulus; in obtain_one_firmware()
892 write_rsa_data(dd, MISC_CFG_RSA_MODULUS, fdet->modulus, KEY_SIZE); in load_security_variables()
/linux-5.19.10/lib/
Dcrc32.c216 static u32 __attribute_const__ gf2_multiply(u32 x, u32 y, u32 modulus) argument
222 product = (product >> 1) ^ (product & 1 ? modulus : 0);

12