| /linux/arch/powerpc/kernel/ |
| H A D | vecemu.c | 41 int exp, pwr; in eexp2() local 45 exp = ((s >> 23) & 0xff) - 127; in eexp2() 46 if (exp > 7) { in eexp2() 48 if (exp == 128 && (s & 0x7fffff) != 0) in eexp2() 53 if (exp < -23) in eexp2() 58 if (exp > 0) in eexp2() 59 pwr <<= exp; in eexp2() 61 pwr >>= -exp; in eexp2() 66 exp = (pwr >> 23) + 126; in eexp2() 67 if (exp >= 254) in eexp2() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_expect.c | 47 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, in nf_ct_unlink_expect_report() argument 50 struct nf_conn_help *master_help = nfct_help(exp->master); in nf_ct_unlink_expect_report() 51 struct net *net = nf_ct_exp_net(exp); in nf_ct_unlink_expect_report() 55 WARN_ON(timer_pending(&exp->timeout)); in nf_ct_unlink_expect_report() 57 hlist_del_rcu(&exp->hnode); in nf_ct_unlink_expect_report() 62 hlist_del_rcu(&exp->lnode); in nf_ct_unlink_expect_report() 63 master_help->expecting[exp->class]--; in nf_ct_unlink_expect_report() 65 nf_ct_expect_event_report(IPEXP_DESTROY, exp, portid, report); in nf_ct_unlink_expect_report() 66 nf_ct_expect_put(exp); in nf_ct_unlink_expect_report() 74 struct nf_conntrack_expect *exp = timer_container_of(exp, t, timeout); in nf_ct_expectation_timed_out() local [all …]
|
| H A D | nf_nat_amanda.c | 33 struct nf_conntrack_expect *exp) in help() argument 39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 40 exp->dir = IP_CT_DIR_ORIGINAL; in help() 44 exp->expectfn = nf_nat_follow_master; in help() 47 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port)); in help() 49 nf_ct_helper_log(skb, exp->master, "all ports in use"); in help() 54 if (!nf_nat_mangle_udp_packet(skb, exp->master, ctinfo, in help() 57 nf_ct_helper_log(skb, exp->master, "cannot mangle packet"); in help() 58 nf_ct_unexpect_related(exp); in help()
|
| H A D | nf_nat_irc.c | 37 struct nf_conntrack_expect *exp) in help() argument 40 struct nf_conn *ct = exp->master; in help() 47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 48 exp->dir = IP_CT_DIR_REPLY; in help() 49 exp->expectfn = nf_nat_follow_master; in help() 51 port = nf_nat_exp_find_port(exp, in help() 52 ntohs(exp->saved_proto.tcp.port)); in help() 79 nf_ct_unexpect_related(exp); in help()
|
| H A D | nf_nat_ftp.c | 69 struct nf_conntrack_expect *exp) in nf_nat_ftp() argument 74 struct nf_conn *ct = exp->master; in nf_nat_ftp() 82 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp() 83 exp->dir = !dir; in nf_nat_ftp() 87 exp->expectfn = nf_nat_follow_master; in nf_nat_ftp() 89 port = nf_nat_exp_find_port(exp, ntohs(exp->saved_proto.tcp.port)); in nf_nat_ftp() 91 nf_ct_helper_log(skb, exp->master, "all ports in use"); in nf_nat_ftp() 110 nf_ct_unexpect_related(exp); in nf_nat_ftp()
|
| H A D | nf_nat_tftp.c | 25 struct nf_conntrack_expect *exp) in help() argument 27 const struct nf_conn *ct = exp->master; in help() 29 exp->saved_proto.udp.port in help() 31 exp->dir = IP_CT_DIR_REPLY; in help() 32 exp->expectfn = nf_nat_follow_master; in help() 33 if (nf_ct_expect_related(exp, 0) != 0) { in help() 34 nf_ct_helper_log(skb, exp->master, "cannot add expectation"); in help()
|
| H A D | nf_conntrack_tftp.c | 37 struct nf_conntrack_expect *exp) __read_mostly; 47 struct nf_conntrack_expect *exp; in tftp_help() local 64 exp = nf_ct_expect_alloc(ct); in tftp_help() 65 if (exp == NULL) { in tftp_help() 70 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in tftp_help() 76 nf_ct_dump_tuple(&exp->tuple); in tftp_help() 80 ret = nf_nat_tftp(skb, ctinfo, exp); in tftp_help() 81 else if (nf_ct_expect_related(exp, 0) != 0) { in tftp_help() 85 nf_ct_expect_put(exp); in tftp_help()
|
| /linux/arch/m68k/math-emu/ |
| H A D | fp_arith.c | 20 .exp = 0x7fff, 26 .exp = 0x7fff, 92 if ((diff = dest->exp - src->exp) > 0) in fp_fadd() 147 int exp; in fp_fmul() local 174 dest->exp = 0; in fp_fmul() 181 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul() 187 exp -= fp_overnormalize(dest); in fp_fmul() 189 exp -= fp_overnormalize(src); in fp_fmul() 197 exp--; in fp_fmul() 202 if (exp >= 0x7fff) { in fp_fmul() [all …]
|
| H A D | fp_log.c | 23 .exp = 0x3fff, 29 int i, exp; in fp_fsqrt() local 57 exp = dest->exp; in fp_fsqrt() 58 dest->exp = 0x3FFF; in fp_fsqrt() 59 if (!(exp & 1)) /* lowest bit of exponent is set */ in fp_fsqrt() 60 dest->exp++; in fp_fsqrt() 72 dest->exp--; /* * 1/2 */ in fp_fsqrt() 91 dest->exp--; in fp_fsqrt() 94 dest->exp += (exp - 0x3FFF) / 2; in fp_fsqrt() 184 fp_conv_long2ext(dest, (int)dest->exp - 0x3FFF); in fp_fgetexp() [all …]
|
| /linux/fs/nfsd/ |
| H A D | nfsfh.c | 30 struct svc_export *exp = expv; in nfsd_acceptable() local 35 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable() 39 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable() 52 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable() 54 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable() 92 struct svc_export *exp) in nfsd_originating_port_ok() argument 94 if (nfsexp_flags(cred, exp) & NFSEXP_INSECURE_PORT) in nfsd_originating_port_ok() 104 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 107 if (rqstp && !nfsd_originating_port_ok(rqstp, cred, exp)) { in nfsd_setuser_and_check_port() 115 return nfserrno(nfsd_setuser(cred, exp)); in nfsd_setuser_and_check_port() [all …]
|
| H A D | export.h | 98 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument 99 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument 100 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument 103 int nfsexp_flags(struct svc_cred *cred, struct svc_export *exp); 104 __be32 check_xprtsec_policy(struct svc_export *exp, struct svc_rqst *rqstp); 105 __be32 check_security_flavor(struct svc_export *exp, struct svc_rqst *rqstp, 107 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp, 125 static inline void exp_put(struct svc_export *exp) in exp_put() argument 127 cache_put(&exp->h, exp->cd); in exp_put() 130 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument [all …]
|
| H A D | auth.c | 8 int nfsexp_flags(struct svc_cred *cred, struct svc_export *exp) in nfsexp_flags() argument 11 struct exp_flavor_info *end = exp->ex_flavors + exp->ex_nflavors; in nfsexp_flags() 13 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags() 17 return exp->ex_flags; in nfsexp_flags() 21 int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp) in nfsd_setuser() argument 27 int flags = nfsexp_flags(cred, exp); in nfsd_setuser() 41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 50 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() [all …]
|
| /linux/tools/perf/tests/shell/ |
| H A D | stat+csv_output.sh | 31 local exp=0 34 in "--no-args") exp=6 35 ;; "--system-wide") exp=6 36 ;; "--event") exp=6 37 ;; "--interval") exp=7 38 ;; "--per-thread") exp=7 39 ;; "--system-wide-no-aggr") exp=7 40 [ "$(uname -m)" = "s390x" ] && exp='^[6-7]$' 41 ;; "--per-core") exp=8 42 ;; "--per-socket") exp=8 [all …]
|
| /linux/arch/sh/kernel/cpu/sh2a/ |
| H A D | fpu.c | 98 int exp, w; in denormal_mulf() local 105 exp = (iy & 0x7f800000) >> 23; in denormal_mulf() 114 exp += w - 126 - 46; in denormal_mulf() 115 if (exp > 0) in denormal_mulf() 116 ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23); in denormal_mulf() 117 else if (exp + 22 >= 0) in denormal_mulf() 118 ix = (int) (m >> (w - 22 - exp)) & 0x007fffff; in denormal_mulf() 165 int exp, w; in denormal_muld() local 172 exp = (iy & 0x7ff0000000000000LL) >> 52; in denormal_muld() 186 exp += w - 1022 - 52 * 2; in denormal_muld() [all …]
|
| /linux/net/ipv4/netfilter/ |
| H A D | nf_nat_h323.c | 284 struct nf_conntrack_expect *exp) in nat_t120() argument 290 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120() 291 exp->expectfn = nf_nat_follow_master; in nat_t120() 292 exp->dir = !dir; in nat_t120() 294 nated_port = nf_nat_exp_find_port(exp, nated_port); in nat_t120() 304 nf_ct_unexpect_related(exp); in nat_t120() 309 &exp->tuple.src.u3.ip, in nat_t120() 310 ntohs(exp->tuple.src.u.tcp.port), in nat_t120() 311 &exp->tuple.dst.u3.ip, in nat_t120() 312 ntohs(exp->tuple.dst.u.tcp.port)); in nat_t120() [all …]
|
| H A D | nf_nat_pptp.c | 44 struct nf_conntrack_expect *exp) in pptp_nat_expected() argument 63 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected() 67 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 69 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 76 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 78 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 100 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected() 101 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected() 103 range.min_proto = range.max_proto = exp->saved_proto; in pptp_nat_expected() 110 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected() [all …]
|
| /linux/drivers/iio/common/hid-sensors/ |
| H A D | hid-sensor-attributes.c | 79 int exp = 0; in simple_div() local 91 exp++; in simple_div() 93 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div() 97 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument 99 int divisor = int_pow(10, exp); in split_micro_fraction() 102 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction() 113 static void convert_from_vtf_format(u32 value, int size, int exp, in convert_from_vtf_format() argument 122 exp = hid_sensor_convert_exponent(exp); in convert_from_vtf_format() 123 if (exp >= 0) { in convert_from_vtf_format() 124 *val1 = sign * value * int_pow(10, exp); in convert_from_vtf_format() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | kptr_xchg_inline.c | 12 struct bpf_insn exp; in test_kptr_xchg_inline() local 42 exp = BPF_MOV64_REG(BPF_REG_0, BPF_REG_2); in test_kptr_xchg_inline() 43 if (!ASSERT_OK(memcmp(&insn[3], &exp, sizeof(exp)), "mov")) in test_kptr_xchg_inline() 46 exp = BPF_ATOMIC_OP(BPF_DW, BPF_XCHG, BPF_REG_1, BPF_REG_0, 0); in test_kptr_xchg_inline() 47 if (!ASSERT_OK(memcmp(&insn[4], &exp, sizeof(exp)), "xchg")) in test_kptr_xchg_inline()
|
| H A D | core_reloc.c | 427 struct core_reloc_type_id_output *exp = (void *)test->output; in setup_type_id_case_local() 440 exp->local_anon_struct = -1; in setup_type_id_case_local() 441 exp->local_anon_union = -1; in setup_type_id_case_local() 442 exp->local_anon_enum = -1; in setup_type_id_case_local() 443 exp->local_anon_func_proto_ptr = -1; in setup_type_id_case_local() 444 exp->local_anon_void_ptr = -1; in setup_type_id_case_local() 445 exp->local_anon_arr = -1; in setup_type_id_case_local() 457 exp->local_anon_struct = i; in setup_type_id_case_local() 461 exp->local_anon_union = i; in setup_type_id_case_local() 465 exp in setup_type_id_case_local() 426 struct core_reloc_type_id_output *exp = (void *)test->output; setup_type_id_case_local() local 497 struct core_reloc_type_id_output *exp = (void *)test->output; setup_type_id_case_success() local 521 struct core_reloc_type_id_output *exp = (void *)test->output; setup_type_id_case_failure() local 541 struct core_reloc_module_output *exp = (void *)test->output; __trigger_module_test_read() local [all...] |
| /linux/include/net/netfilter/ |
| H A D | nf_conntrack_expect.h | 63 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net() argument 65 return nf_ct_net(exp->master); in nf_ct_exp_net() 105 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, 107 static inline void nf_ct_unlink_expect(struct nf_conntrack_expect *exp) in nf_ct_unlink_expect() argument 109 nf_ct_unlink_expect_report(exp, 0, 0); in nf_ct_unlink_expect() 113 void nf_ct_unexpect_related(struct nf_conntrack_expect *exp); 114 bool nf_ct_remove_expect(struct nf_conntrack_expect *exp); 128 void nf_ct_expect_put(struct nf_conntrack_expect *exp);
|
| /linux/arch/x86/math-emu/ |
| H A D | reg_ld_str.c | 39 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument 43 setexponent16(r, exp); in normalize_no_excep() 55 int exp; in FPU_tagof() local 57 exp = exponent16(ptr) & 0x7fff; in FPU_tagof() 58 if (exp == 0) { in FPU_tagof() 66 if (exp == 0x7fff) { in FPU_tagof() 97 int exp, tag, negative; in FPU_load_double() local 107 exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias + EXTENDED_Ebias; in FPU_load_double() 109 if (exp > DOUBLE_Emax + EXTENDED_Ebias) { in FPU_load_double() 115 exp = EXP_Infinity + EXTENDED_Ebias; in FPU_load_double() [all …]
|
| /linux/drivers/media/rc/img-ir/ |
| H A D | img-ir-sharp.c | 14 unsigned int addr, cmd, exp, chk; in img_ir_sharp_scancode() local 21 exp = (raw >> 13) & 0x1; in img_ir_sharp_scancode() 25 if (!exp) in img_ir_sharp_scancode() 40 unsigned int addr, cmd, exp = 0, chk = 0; in img_ir_sharp_filter() local 49 exp = 1; in img_ir_sharp_filter() 57 exp << 13 | in img_ir_sharp_filter()
|
| /linux/kernel/ |
| H A D | acct.c | 334 int exp, rnd; in encode_comp_t() local 336 exp = rnd = 0; in encode_comp_t() 340 exp++; in encode_comp_t() 348 exp++; in encode_comp_t() 351 if (exp > (((comp_t) ~0U) >> MANTSIZE)) in encode_comp_t() 356 exp <<= MANTSIZE; /* Shift the exponent into place */ in encode_comp_t() 357 exp += value; /* and add on the mantissa. */ in encode_comp_t() 358 return exp; in encode_comp_t() 378 int exp, rnd; in encode_comp2_t() local 380 exp = (value > (MAXFRACT2>>1)); in encode_comp2_t() [all …]
|
| /linux/drivers/hid/amd-sfh-hid/sfh1_1/ |
| H A D | amd_sfh_desc.c | 137 int fraction, shift, mantissa, sign, exp, zeropre; in amd_sfh_float_to_int() local 141 exp = (flt32_val & ~BIT(31)) >> 23; in amd_sfh_float_to_int() 143 if (!exp && !mantissa) in amd_sfh_float_to_int() 150 exp -= 127; in amd_sfh_float_to_int() 151 if (exp < 0) { in amd_sfh_float_to_int() 152 exp = -exp; in amd_sfh_float_to_int() 153 if (exp >= BITS_PER_TYPE(u32)) in amd_sfh_float_to_int() 155 zeropre = (((BIT(23) + mantissa) * 100) >> 23) >> exp; in amd_sfh_float_to_int() 159 shift = 23 - exp; in amd_sfh_float_to_int() 165 flt32_val = BIT(exp) + (mantissa << shift); in amd_sfh_float_to_int() [all …]
|
| /linux/lib/math/ |
| H A D | int_pow.c | 19 u64 int_pow(u64 base, unsigned int exp) in int_pow() argument 23 while (exp) { in int_pow() 24 if (exp & 1) in int_pow() 26 exp >>= 1; in int_pow()
|