Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/net/netfilter/
Dnft_numgen.c19 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 …]
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 …]
/kernel/linux/linux-5.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
/kernel/linux/linux-5.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()
355 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.c403 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()
946 ax25->modulus = oax25->modulus; in ax25_make_new()
1308 ax25->modulus = AX25_MODULUS; in ax25_connect()
Dax25_std_subr.c40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link()
/kernel/linux/linux-5.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
217 mod = meb1->modulus + sizeof(meb1->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
228 mod = meb2->modulus + sizeof(meb2->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
239 mod = meb3->modulus + sizeof(meb3->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dfirmware.c129 u8 modulus[KEY_SIZE]; member
137 u8 modulus[KEY_SIZE]; member
156 u8 *modulus; /* pointer to the modulus */ member
517 fdet->modulus = ff->modulus; in obtain_one_firmware()
542 fdet->modulus = aff->modulus; in obtain_one_firmware()
935 write_rsa_data(dd, MISC_CFG_RSA_MODULUS, fdet->modulus, KEY_SIZE); in load_security_variables()
/kernel/linux/linux-5.10/lib/
Dcrc32.c217 static u32 __attribute_const__ gf2_multiply(u32 x, u32 y, u32 modulus) argument
223 product = (product >> 1) ^ (product & 1 ? modulus : 0);
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm-sysfs.c25 u8 modulus[256]; member
72 str += sprintf(str, "%16ph\n", &out->modulus[i]); in pubek_show()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1_video.c193 unsigned int modulus; in vsp1_video_calculate_partition() local
217 modulus = format->width % div_size; in vsp1_video_calculate_partition()
228 if (modulus) { in vsp1_video_calculate_partition()
235 if (modulus < div_size / 2) { in vsp1_video_calculate_partition()
241 window.width = (div_size / 2) + modulus; in vsp1_video_calculate_partition()
245 window.width = modulus; in vsp1_video_calculate_partition()

12