Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 267) sorted by relevance

1234567891011

/linux/arch/powerpc/kernel/
H A Dvecemu.c41 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 > in eexp2()
96 int exp, mant, lz, frac; elog2() local
159 int exp, mant; ctsxs() local
181 int exp; ctuxs() local
209 int exp; rfiz() local
224 int exp, mask; rfii() local
245 int exp, half; rfin() local
[all...]
/linux/arch/m68k/math-emu/
H A Dfp_arith.c20 .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 in fp_fmul()
224 int exp; fp_fdiv() local
303 int exp; fp_fsglmul() local
359 int exp; fp_fsgldiv() local
[all...]
H A Dfp_log.c23 .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 in fp_fsqrt()
[all...]
/linux/fs/nfsd/
H A Dnfsfh.c25 * if not, require that we can walk up to exp->ex_dentry
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()
119 check_pseudo_root(struct dentry * dentry,struct svc_export * exp) check_pseudo_root() argument
153 struct svc_export *exp; nfsd_set_fh_dentry() local
323 struct svc_export *exp = NULL; __fh_verify() local
463 _fh_update(struct svc_fh * fhp,struct svc_export * exp,struct dentry * dentry) _fh_update() argument
483 is_root_export(struct svc_export * exp) is_root_export() argument
488 exp_sb(struct svc_export * exp) exp_sb() argument
493 fsid_type_ok_for_exp(u8 fsid_type,struct svc_export * exp) fsid_type_ok_for_exp() argument
518 set_version_and_fsid_type(struct svc_fh * fhp,struct svc_export * exp,struct svc_fh * ref_fh) set_version_and_fsid_type() argument
573 fh_compose(struct svc_fh * fhp,struct svc_export * exp,struct dentry * dentry,struct svc_fh * ref_fh) fh_compose() argument
750 struct svc_export * exp = fhp->fh_export; fh_put() local
[all...]
H A Dexport.c358 struct svc_export *exp = container_of(rcu_head, struct svc_export, in svc_export_release() local
361 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_release()
362 export_stats_destroy(exp->ex_stats); in svc_export_release()
363 kfree(exp->ex_stats); in svc_export_release()
364 kfree(exp->ex_uuid); in svc_export_release()
365 kfree(exp); in svc_export_release()
370 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local
372 path_put(&exp->ex_path); in svc_export_put()
373 auth_domain_put(exp->ex_client); in svc_export_put()
374 call_rcu(&exp in svc_export_put()
387 struct svc_export *exp = container_of(h, struct svc_export, h); svc_export_request() local
519 secinfo_parse(char ** mesg,char * buf,struct svc_export * exp) secinfo_parse() argument
560 secinfo_parse(char ** mesg,char * buf,struct svc_export * exp) secinfo_parse() argument
563 xprtsec_parse(char ** mesg,char * buf,struct svc_export * exp) xprtsec_parse() argument
613 struct svc_export exp = {}, *expp; svc_export_parse() local
770 struct svc_export *exp; svc_export_show() local
907 svc_export_hash(struct svc_export * exp) svc_export_hash() argument
918 svc_export_lookup(struct svc_export * exp) svc_export_lookup() argument
973 struct svc_export *exp, key; exp_get_by_name() local
1001 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); exp_parent() local
1025 struct svc_export *exp; exp_rootfh() local
1070 struct svc_export *exp; exp_find() local
1094 check_nfsd_access(struct svc_export * exp,struct svc_rqst * rqstp,bool may_bypass_gss) check_nfsd_access() argument
1186 struct svc_export *gssexp, *exp = ERR_PTR(-ENOENT); rqst_exp_get_by_name() local
1235 struct svc_export *gssexp, *exp = ERR_PTR(-ENOENT); rqst_exp_find() local
1266 struct svc_export *exp = rqst_exp_get_by_name(rqstp, path); rqst_exp_parent() local
1298 struct svc_export *exp; exp_pseudoroot() local
1371 show_secinfo(struct seq_file * m,struct svc_export * exp) show_secinfo() argument
1423 struct svc_export *exp = container_of(cp, struct svc_export, h); e_show() local
[all...]
H A Dexport.h98 #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_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp,
122 static inline void exp_put(struct svc_export *exp) in exp_put() argument
124 cache_put(&exp in exp_put()
127 exp_get(struct svc_export * exp) exp_get() argument
[all...]
H A Dauth.c8 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 in nfsd_setuser()
[all...]
H A Dstats.h32 struct svc_export *exp) in nfsd_stats_fh_stale_inc() argument
35 if (exp && exp->ex_stats) in nfsd_stats_fh_stale_inc()
36 percpu_counter_inc(&exp->ex_stats->counter[EXP_STATS_FH_STALE]); in nfsd_stats_fh_stale_inc()
40 struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument
43 if (exp && exp->ex_stats) in nfsd_stats_io_read_add()
44 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
48 struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument
51 if (exp in nfsd_stats_io_write_add()
[all...]
/linux/tools/perf/tests/shell/
H A Dstat+csv_output.sh31 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
[all...]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_hdcs.c77 } exp; member
177 u8 exp[14]; in hdcs_set_exposure() local
181 ct = hdcs->exp.cto + hdcs->psmp + (HDCS_ADC_START_SIG_DUR + 2); in hdcs_set_exposure()
182 cp = hdcs->exp.cto + (hdcs->w * ct / 2); in hdcs_set_exposure()
185 rp = hdcs->exp.rs + cp; in hdcs_set_exposure()
195 srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct; in hdcs_set_exposure()
197 mnct = (hdcs->exp.er + 12 + ct - 1) / ct; in hdcs_set_exposure()
201 srowexp = cp - hdcs->exp.er - 6 - cycles; in hdcs_set_exposure()
203 mnct = (hdcs->exp.er + 5 + ct - 1) / ct; in hdcs_set_exposure()
213 exp[ in hdcs_set_exposure()
[all...]
/linux/arch/sh/kernel/cpu/sh2a/
H A Dfpu.c98 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 in denormal_muld()
203 int exp; denormal_subf1() local
230 int exp; denormal_addf1() local
288 int exp; denormal_subd1() local
315 long long exp; denormal_addd1() local
381 int exp = 1023 - 126; denormal_to_double() local
[all...]
/linux/net/netfilter/
H A Dnf_conntrack_broadcast.c24 struct nf_conntrack_expect *exp; in nf_conntrack_broadcast_help() local
57 exp = nf_ct_expect_alloc(ct); in nf_conntrack_broadcast_help()
58 if (exp == NULL) in nf_conntrack_broadcast_help()
61 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help()
65 exp->tuple.src.u.udp.port = helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
67 exp->mask.src.u3.ip = mask; in nf_conntrack_broadcast_help()
68 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help()
70 exp->expectfn = NULL; in nf_conntrack_broadcast_help()
71 exp->flags = NF_CT_EXPECT_PERMANENT; in nf_conntrack_broadcast_help()
72 exp in nf_conntrack_broadcast_help()
[all...]
H A Dnf_nat_amanda.c33 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 in help()
[all...]
H A Dnf_nat_irc.c37 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 Dnf_nat_ftp.c69 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()
[all...]
H A Dnf_nat_tftp.c25 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 Dnf_conntrack_tftp.c37 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()
H A Dnf_conntrack_h323_main.c291 struct nf_conntrack_expect *exp; in expect_t120() local
300 if ((exp = nf_ct_expect_alloc(ct)) == NULL) in expect_t120()
302 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_t120()
306 exp->flags = NF_CT_EXPECT_PERMANENT; /* Accept multiple channels */ in expect_t120()
317 dataoff, taddr, port, exp); in expect_t120()
319 if (nf_ct_expect_related(exp, 0) == 0) { in expect_t120()
321 nf_ct_dump_tuple(&exp->tuple); in expect_t120()
326 nf_ct_expect_put(exp); in expect_t120()
630 struct nf_conntrack_expect *exp; in expect_h245() local
639 if ((exp in expect_h245()
746 struct nf_conntrack_expect *exp; expect_callforwarding() local
1188 struct nf_conntrack_expect *exp; find_expect() local
1215 struct nf_conntrack_expect *exp; expect_q931() local
1286 struct nf_conntrack_expect *exp; process_gcf() local
1366 struct nf_conntrack_expect *exp; process_rcf() local
1497 struct nf_conntrack_expect *exp; process_acf() local
1564 struct nf_conntrack_expect *exp; process_lcf() local
[all...]
/linux/net/ipv4/netfilter/
H A Dnf_nat_h323.c284 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 in nat_t120()
322 nat_h245(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,TransportAddress * taddr,__be16 port,struct nf_conntrack_expect * exp) nat_h245() argument
400 nat_q931(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,TransportAddress * taddr,int idx,__be16 port,struct nf_conntrack_expect * exp) nat_q931() argument
484 nat_callforwarding(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,TransportAddress * taddr,__be16 port,struct nf_conntrack_expect * exp) nat_callforwarding() argument
[all...]
/linux/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c79 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 > in convert_from_vtf_format()
135 convert_to_vtf_format(int size,int exp,int val1,int val2) convert_to_vtf_format() argument
360 adjust_exponent_nano(int * val0,int * val1,int scale0,int scale1,int exp) adjust_exponent_nano() argument
411 int exp; hid_sensor_format_scale() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkptr_xchg_inline.c12 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 Dcore_reloc.c427 struct core_reloc_type_id_output *exp = (void *)test->output; in setup_type_id_case_local() 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()
498 struct core_reloc_type_id_output *exp = (void *)test->output; setup_type_id_case_success() local
522 struct core_reloc_type_id_output *exp = (void *)test->output; setup_type_id_case_failure() local
542 struct core_reloc_module_output *exp = (void *)test->output; __trigger_module_test_read() local
[all...]
/linux/arch/x86/math-emu/
H A Dreg_ld_str.c39 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 in FPU_load_double()
159 int exp, tag, negative; FPU_load_single() local
384 int exp; FPU_store_double() local
569 int exp; FPU_store_single() local
[all...]
/linux/drivers/media/rc/img-ir/
H A Dimg-ir-sharp.c14 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/lib/math/
H A Dint_pow.c15 * @exp: power to be raised to
17 * Computes: pow(base, exp), i.e. @base raised to the @exp power
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()

1234567891011