Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/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 >= 254) in eexp2()
[all …]
/openbmc/qemu/block/export/
H A Dfuse.c70 static void fuse_export_shutdown(BlockExport *exp);
71 static void fuse_export_delete(BlockExport *exp);
75 static int setup_fuse_export(FuseExport *exp, const char *mountpoint,
84 FuseExport *exp = opaque; in fuse_export_drained_begin() local
86 aio_set_fd_handler(exp->common.ctx, in fuse_export_drained_begin()
87 fuse_session_fd(exp->fuse_session), in fuse_export_drained_begin()
89 exp->fd_handler_set_up = false; in fuse_export_drained_begin()
94 FuseExport *exp = opaque; in fuse_export_drained_end() local
97 exp->common.ctx = blk_get_aio_context(exp->common.blk); in fuse_export_drained_end()
99 aio_set_fd_handler(exp->common.ctx, in fuse_export_drained_end()
[all …]
H A Dexport.c52 BlockExport *exp; in blk_exp_find() local
54 QLIST_FOREACH(exp, &block_exports, next) { in blk_exp_find()
55 if (strcmp(id, exp->id) == 0) { in blk_exp_find()
56 return exp; in blk_exp_find()
79 BlockExport *exp = NULL; in blk_exp_add() local
173 exp = g_malloc0(drv->instance_size); in blk_exp_add()
174 *exp = (BlockExport) { in blk_exp_add()
183 ret = drv->create(exp, export, errp); in blk_exp_add()
188 assert(exp->blk != NULL); in blk_exp_add()
190 QLIST_INSERT_HEAD(&block_exports, exp, next); in blk_exp_add()
[all …]
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_expect.c47 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 = from_timer(exp, t, timeout); in nf_ct_expectation_timed_out() local
[all …]
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->class = NF_CT_EXPECT_CLASS_DEFAULT; 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->master, "cannot mangle packet"); in help()
58 nf_ct_unexpect_related(exp); in help()
/openbmc/linux/arch/m68k/math-emu/
H A Dfp_arith.c20 .exp = 0x7fff,
26 .exp = 0x7fff,
95 if ((diff = dest->exp - src->exp) > 0) in fp_fadd()
154 int exp; in fp_fmul() local
181 dest->exp = 0; in fp_fmul()
188 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul()
194 exp -= fp_overnormalize(dest); in fp_fmul()
196 exp -= fp_overnormalize(src); in fp_fmul()
204 exp--; in fp_fmul()
209 if (exp >= 0x7fff) { in fp_fmul()
[all …]
H A Dfp_log.c22 .exp = 0x3fff,
32 int i, exp; in fp_fsqrt() local
60 exp = dest->exp; in fp_fsqrt()
61 dest->exp = 0x3FFF; in fp_fsqrt()
62 if (!(exp & 1)) /* lowest bit of exponent is set */ in fp_fsqrt()
63 dest->exp++; in fp_fsqrt()
74 dest->exp--; /* * 1/2 */ in fp_fsqrt()
93 dest->exp--; in fp_fsqrt()
96 dest->exp += (exp - 0x3FFF) / 2; in fp_fsqrt()
195 fp_conv_long2ext(dest, (int)dest->exp - 0x3FFF); in fp_fgetexp()
[all …]
/openbmc/linux/fs/nfsd/
H A Dnfsfh.c30 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()
103 struct svc_export *exp) in nfsd_setuser_and_check_port() argument
105 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
116 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
120 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument
122 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root()
[all …]
H A Dexport.c356 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local
357 path_put(&exp->ex_path); in svc_export_put()
358 auth_domain_put(exp->ex_client); in svc_export_put()
359 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put()
360 export_stats_destroy(exp->ex_stats); in svc_export_put()
361 kfree(exp->ex_stats); in svc_export_put()
362 kfree(exp->ex_uuid); in svc_export_put()
363 kfree_rcu(exp, ex_rcu); in svc_export_put()
376 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local
379 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request()
[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
102 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp);
103 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp);
120 static inline void exp_put(struct svc_export *exp) in exp_put() argument
122 cache_put(&exp->h, exp->cd); in exp_put()
125 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument
127 cache_get(&exp->h); in exp_get()
128 return exp; in exp_get()
H A Dauth.c8 int nfsexp_flags(struct svc_rqst *rqstp, 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_rqst *rqstp, struct svc_export *exp) in nfsd_setuser() argument
27 int flags = nfsexp_flags(rqstp, 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 …]
H A Dstats.h37 struct svc_export *exp) in nfsd_stats_fh_stale_inc() argument
40 if (exp && exp->ex_stats) in nfsd_stats_fh_stale_inc()
41 percpu_counter_inc(&exp->ex_stats->counter[EXP_STATS_FH_STALE]); in nfsd_stats_fh_stale_inc()
45 struct svc_export *exp, s64 amount) in nfsd_stats_io_read_add() argument
48 if (exp && exp->ex_stats) in nfsd_stats_io_read_add()
49 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_READ], amount); in nfsd_stats_io_read_add()
53 struct svc_export *exp, s64 amount) in nfsd_stats_io_write_add() argument
56 if (exp && exp->ex_stats) in nfsd_stats_io_write_add()
57 percpu_counter_add(&exp->ex_stats->counter[EXP_STATS_IO_WRITE], amount); in nfsd_stats_io_write_add()
/openbmc/linux/tools/perf/tests/shell/
H A Dstat+csv_output.sh30 local exp=0
33 in "--no-args") exp=6
34 ;; "--system-wide") exp=6
35 ;; "--event") exp=6
36 ;; "--interval") exp=7
37 ;; "--per-thread") exp=7
38 ;; "--system-wide-no-aggr") exp=7
39 [ "$(uname -m)" = "s390x" ] && exp='^[6-7]$'
40 ;; "--per-core") exp=8
41 ;; "--per-socket") exp=8
[all …]
/openbmc/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[0] = HDCS20_CONTROL; in hdcs_set_exposure()
[all …]
/openbmc/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 += w - 1022 - 52 * 2; in denormal_muld()
[all …]
/openbmc/qemu/hw/pci/
H A Dpcie_sriov.c37 dev->exp.sriov_cap = offset; in pcie_sriov_pf_init()
38 dev->exp.sriov_pf.num_vfs = 0; in pcie_sriov_pf_init()
39 dev->exp.sriov_pf.vfname = g_strdup(vfname); in pcie_sriov_pf_init()
40 dev->exp.sriov_pf.vf = NULL; in pcie_sriov_pf_init()
77 g_free((char *)dev->exp.sriov_pf.vfname); in pcie_sriov_pf_exit()
78 dev->exp.sriov_pf.vfname = NULL; in pcie_sriov_pf_exit()
86 uint16_t sriov_cap = dev->exp.sriov_cap; in pcie_sriov_pf_init_vf_bar()
105 dev->exp.sriov_pf.vf_bar_type[region_num] = type; in pcie_sriov_pf_init_vf_bar()
119 type = dev->exp.sriov_vf.pf->exp.sriov_pf.vf_bar_type[region_num]; in pcie_sriov_vf_register_bar()
148 dev->exp.sriov_vf.pf = pf; in register_vf()
[all …]
/openbmc/qemu/target/hexagon/
H A Dfma_emu.c51 uint64_t exp:11; member
61 uint32_t exp:8; member
85 return a.exp; in float64_getexp()
88 return a.exp + 1; in float64_getexp()
112 return a.exp; in float32_getexp()
115 return a.exp + 1; in float32_getexp()
165 int32_t exp; member
175 p->exp = 0; in accum_init()
184 a.exp--; in accum_norm_left()
200 a.exp += amt; in accum_norm_right()
[all …]
/openbmc/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->tuple.dst.u3.ip, in nat_t120()
312 ntohs(exp->tuple.dst.u.tcp.port)); in nat_t120()
[all …]
/openbmc/linux/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c75 int exp = 0; in simple_div() local
87 exp++; in simple_div()
89 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div()
93 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument
95 int divisor = int_pow(10, exp); in split_micro_fraction()
98 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction()
109 static void convert_from_vtf_format(u32 value, int size, int exp, in convert_from_vtf_format() argument
118 exp = hid_sensor_convert_exponent(exp); in convert_from_vtf_format()
119 if (exp >= 0) { in convert_from_vtf_format()
120 *val1 = sign * value * int_pow(10, exp); in convert_from_vtf_format()
[all …]
/openbmc/qemu/nbd/
H A Dserver.c114 const NBDExport *exp; /* associated export */ member
131 NBDExport *exp; member
412 nbd_negotiate_send_rep_list(NBDClient *client, NBDExport *exp, Error **errp) in nbd_negotiate_send_rep_list() argument
417 const char *name = exp->name ? exp->name : ""; in nbd_negotiate_send_rep_list()
418 const char *desc = exp->description ? exp->description : ""; in nbd_negotiate_send_rep_list()
456 NBDExport *exp; in nbd_negotiate_handle_list() local
460 QTAILQ_FOREACH(exp, &exports, next) { in nbd_negotiate_handle_list()
461 if (nbd_negotiate_send_rep_list(client, exp, errp)) { in nbd_negotiate_handle_list()
470 nbd_check_meta_export(NBDClient *client, NBDExport *exp) in nbd_check_meta_export() argument
472 if (exp != client->contexts.exp) { in nbd_check_meta_export()
[all …]
/openbmc/qemu/libdecnumber/dpd/
H A Ddecimal32.c90 uInt comb, exp; /* .. */ in decimal32FromNumber() local
127 exp=0; /* low clamp */ in decimal32FromNumber()
131 exp=dn->exponent+DECIMAL32_Bias; /* bias exponent */ in decimal32FromNumber()
132 if (exp>DECIMAL32_Ehigh) { /* top clamp */ in decimal32FromNumber()
133 exp=DECIMAL32_Ehigh; in decimal32FromNumber()
137 comb=(exp>>3) & 0x18; /* msd=0, exp top 2 bits .. */ in decimal32FromNumber()
144 exp=(uInt)(dn->exponent+DECIMAL32_Bias); /* bias exponent */ in decimal32FromNumber()
145 if (exp>DECIMAL32_Ehigh) { /* fold-down case */ in decimal32FromNumber()
146 pad=exp-DECIMAL32_Ehigh; in decimal32FromNumber()
147 exp=DECIMAL32_Ehigh; /* [to maximum] */ in decimal32FromNumber()
[all …]
H A Ddecimal128.c90 uInt comb, exp; /* .. */ in decimal128FromNumber() local
131 exp=0; /* low clamp */ in decimal128FromNumber()
135 exp=dn->exponent+DECIMAL128_Bias; /* bias exponent */ in decimal128FromNumber()
136 if (exp>DECIMAL128_Ehigh) { /* top clamp */ in decimal128FromNumber()
137 exp=DECIMAL128_Ehigh; in decimal128FromNumber()
141 comb=(exp>>9) & 0x18; /* msd=0, exp top 2 bits .. */ in decimal128FromNumber()
148 exp=(uInt)(dn->exponent+DECIMAL128_Bias); /* bias exponent */ in decimal128FromNumber()
149 if (exp>DECIMAL128_Ehigh) { /* fold-down case */ in decimal128FromNumber()
150 pad=exp-DECIMAL128_Ehigh; in decimal128FromNumber()
151 exp=DECIMAL128_Ehigh; /* [to maximum] */ in decimal128FromNumber()
[all …]
/openbmc/qemu/target/alpha/
H A Dvax_helper.c32 uint64_t r, exp, mant, sig; in float32_to_f() local
37 exp = (a.l >> 23) & 0xff; in float32_to_f()
40 if (exp == 255) { in float32_to_f()
43 } else if (exp == 0) { in float32_to_f()
49 r = sig | ((exp + 1) << 52) | mant; in float32_to_f()
52 if (exp >= 253) { in float32_to_f()
56 r = sig | ((exp + 2) << 52); in float32_to_f()
65 uint32_t exp, mant_sig; in f_to_float32() local
68 exp = ((a >> 55) & 0x80) | ((a >> 52) & 0x7f); in f_to_float32()
71 if (unlikely(!exp && mant_sig)) { in f_to_float32()
[all …]
/openbmc/openbmc/poky/bitbake/bin/
H A Dtoaster125 exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/'
128 exp=$exp'import sys,django;'
129 exp=$exp'version=["%02d" % int(n) for n in django.get_version().split(".")];'
130 exp=$exp'vmin=["%02d" % int(n) for n in "\2".split(".")];'
131 exp=$exp'vmax=["%02d" % int(n) for n in "\4".split(".")];'
132 exp=$exp'sys.exit(not (version \1 vmin and version \3 vmax))'
133 exp=$exp'/p'
134 if ! sed -n "$exp" $reqfile | python3 - ; then

12345678910>>...17