/openbmc/linux/net/netfilter/ |
H A D | nft_numgen.c | 19 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() 120 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump() 134 u32 modulus; member [all …]
|
H A 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 …]
|
/openbmc/linux/arch/alpha/lib/ |
H A D | divide.S | 65 #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
|
H A D | ev6-divide.S | 75 #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
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-mod-exp.c | 42 acc += (uint64_t)num[i] - key->modulus[i]; in subtract_modulus() 61 if (num[i] < key->modulus[i]) in greater_equal_modulus() 63 if (num[i] > key->modulus[i]) in greater_equal_modulus() 89 acc_b = (uint64_t)d0 * key->modulus[0] + (uint32_t)acc_a; in montgomery_mul_add_step() 92 acc_b = (acc_b >> 32) + (uint64_t)d0 * key->modulus[i] + in montgomery_mul_add_step() 268 if (!key.len || !prop->modulus || !prop->rr) { in rsa_mod_exp_sw() 282 key.modulus = key1; in rsa_mod_exp_sw() 284 rsa_convert_big_endian(key.modulus, (uint32_t *)prop->modulus, key.len); in rsa_mod_exp_sw() 286 if (!key.modulus || !key.rr) { in rsa_mod_exp_sw()
|
H A D | rsa-sign.c | 720 BIGNUM *modulus, *r_squared; in rsa_add_verify_data() local 739 ret = rsa_get_params(rsa, &exponent, &n0_inv, &modulus, &r_squared); in rsa_add_verify_data() 742 bits = BN_num_bits(modulus); in rsa_add_verify_data() 787 ret = fdt_add_bignum(keydest, node, "rsa,modulus", modulus, in rsa_add_verify_data() 803 BN_free(modulus); in rsa_add_verify_data()
|
/openbmc/linux/net/ax25/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | af_ax25.c | 407 if (ax25->modulus == AX25_MODULUS) { in ax25_ctl_ioctl() 482 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb_from_dev() 485 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb_from_dev() 516 ax25->modulus = AX25_EMODULUS; in ax25_fillin_cb() 519 ax25->modulus = AX25_MODULUS; in ax25_fillin_cb() 579 if (ax25->modulus == AX25_MODULUS) { in ax25_setsockopt() 643 ax25->modulus = opt ? AX25_EMODULUS : AX25_MODULUS; in ax25_setsockopt() 762 val = (ax25->modulus == AX25_EMODULUS); in ax25_getsockopt() 951 ax25->modulus = oax25->modulus; in ax25_make_new() 1317 ax25->modulus = AX25_MODULUS; in ax25_connect()
|
/openbmc/linux/net/lapb/ |
H A 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()
|
H A 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()
|
/openbmc/qemu/tests/tcg/alpha/system/ |
H A D | boot.S | 228 #define modulus $28 macro 230 mov $24, modulus 237 1: cmpult divisor, modulus, compare 245 cmpule divisor, modulus, compare 246 subq modulus, divisor, tmp1 249 cmovne compare, tmp1, modulus 266 #undef modulus
|
/openbmc/u-boot/board/xilinx/zynq/ |
H A D | cmds.c | 48 u32 *modulus; /* modulus as little endian array */ member 89 u32 modulus = public_key.modulus[0]; in zynq_calc_inv() local 93 inverse = modulus & BIT(0); in zynq_calc_inv() 96 inverse *= 2 - modulus * inverse; in zynq_calc_inv() 223 public_key.modulus = (u32 *)ppkmodular; in zynq_authenticate_part() 240 public_key.modulus = (u32 *)spk_modular; in zynq_authenticate_part()
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_msgtype50.c | 73 unsigned char modulus[128]; member 83 unsigned char modulus[256]; member 93 unsigned char modulus[512]; member 212 mod = meb1->modulus + sizeof(meb1->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 223 mod = meb2->modulus + sizeof(meb2->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 234 mod = meb3->modulus + sizeof(meb3->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
|
/openbmc/linux/net/x25/ |
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/ |
H A D | cr51_image_descriptor.h | 447 uint8_t modulus[256]; // big-endian member 459 uint8_t modulus[384]; // big-endian member 471 uint8_t modulus[512]; // big-endian member
|
/openbmc/linux/tools/testing/selftests/sgx/ |
H A D | sigstruct.c | 346 BN_bn2bin(get_modulus(key), sigstruct->modulus); in encl_measure() 374 if (!calc_q1q2(sigstruct->signature, sigstruct->modulus, sigstruct->q1, in encl_measure() 380 reverse_bytes(sigstruct->modulus, SGX_MODULUS_SIZE); in encl_measure()
|
/openbmc/u-boot/include/u-boot/ |
H A D | rsa-mod-exp.h | 22 const void *modulus; /* modulus as byte array */ member
|