Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 200 of 219) sorted by relevance

12

/linux-4.1.27/arch/powerpc/kernel/
Dvecemu.c38 int exp, pwr; in eexp2() local
42 exp = ((s >> 23) & 0xff) - 127; in eexp2()
43 if (exp > 7) { in eexp2()
45 if (exp == 128 && (s & 0x7fffff) != 0) in eexp2()
50 if (exp < -23) in eexp2()
55 if (exp > 0) in eexp2()
56 pwr <<= exp; in eexp2()
58 pwr >>= -exp; in eexp2()
63 exp = (pwr >> 23) + 126; in eexp2()
64 if (exp >= 254) in eexp2()
[all …]
Dsyscalls.c86 ppc_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct timeval __use… in ppc_select() argument
95 || __get_user(exp, ((fd_set __user * __user *)(buffer+3))) in ppc_select()
99 return sys_select(n, inp, outp, exp, tvp); in ppc_select()
Dsys_ppc32.c57 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in ppc32_select() argument
61 return compat_sys_select((int)n, inp, outp, exp, compat_ptr(tvp_x)); in ppc32_select()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd_class.h100 char *obd_export_nid2str(struct obd_export *exp);
221 #define __class_export_add_lock_ref(exp, lock) do {} while (0) argument
222 #define __class_export_del_lock_ref(exp, lock) do {} while (0) argument
226 static inline void class_export_rpc_inc(struct obd_export *exp) in class_export_rpc_inc() argument
228 atomic_inc(&(exp)->exp_rpc_count); in class_export_rpc_inc()
230 (exp), atomic_read(&(exp)->exp_rpc_count)); in class_export_rpc_inc()
233 static inline void class_export_rpc_dec(struct obd_export *exp) in class_export_rpc_dec() argument
235 LASSERT_ATOMIC_POS(&exp->exp_rpc_count); in class_export_rpc_dec()
236 atomic_dec(&(exp)->exp_rpc_count); in class_export_rpc_dec()
238 (exp), atomic_read(&(exp)->exp_rpc_count)); in class_export_rpc_dec()
[all …]
Dlustre_export.h273 static inline __u64 *exp_connect_flags_ptr(struct obd_export *exp) in exp_connect_flags_ptr() argument
275 return &exp->exp_connect_data.ocd_connect_flags; in exp_connect_flags_ptr()
278 static inline __u64 exp_connect_flags(struct obd_export *exp) in exp_connect_flags() argument
280 return *exp_connect_flags_ptr(exp); in exp_connect_flags()
283 static inline int exp_max_brw_size(struct obd_export *exp) in exp_max_brw_size() argument
285 LASSERT(exp != NULL); in exp_max_brw_size()
286 if (exp_connect_flags(exp) & OBD_CONNECT_BRW_SIZE) in exp_max_brw_size()
287 return exp->exp_connect_data.ocd_brw_size; in exp_max_brw_size()
292 static inline int exp_connect_multibulk(struct obd_export *exp) in exp_connect_multibulk() argument
294 return exp_max_brw_size(exp) > ONE_MB_BRW_SIZE; in exp_connect_multibulk()
[all …]
Dobd.h599 struct obd_export *exp; member
1104 int (*o_iocontrol)(unsigned int cmd, struct obd_export *exp, int len,
1129 struct obd_export **exp, struct obd_device *src,
1133 struct obd_export *exp, struct obd_device *src,
1137 int (*o_disconnect)(struct obd_export *exp);
1141 struct obd_export *exp, enum lu_cli_type type);
1145 int (*o_fid_alloc)(struct obd_export *exp, struct lu_fid *fid,
1152 int (*o_statfs)(const struct lu_env *, struct obd_export *exp,
1154 int (*o_statfs_async)(struct obd_export *exp, struct obd_info *oinfo,
1156 int (*o_packmd)(struct obd_export *exp, struct lov_mds_md **disk_tgt,
[all …]
Dlustre_dlm.h633 void ldlm_convert_policy_to_local(struct obd_export *exp, ldlm_type_t type,
1149 int ldlm_init_export(struct obd_export *exp);
1150 void ldlm_destroy_export(struct obd_export *exp);
1203 void ldlm_dump_export_locks(struct obd_export *exp);
1339 int ldlm_cli_enqueue(struct obd_export *exp, struct ptlrpc_request **reqp,
1345 int ldlm_prep_enqueue_req(struct obd_export *exp,
1349 int ldlm_prep_elc_req(struct obd_export *exp,
1354 struct ptlrpc_request *ldlm_enqueue_pack(struct obd_export *exp, int lvb_len);
1358 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req,
1386 int ldlm_cli_cancel_req(struct obd_export *exp, struct list_head *head,
Dlustre_mdc.h147 static inline void mdc_update_max_ea_from_body(struct obd_export *exp, in mdc_update_max_ea_from_body() argument
151 struct client_obd *cli = &exp->exp_obd->u.cli; in mdc_update_max_ea_from_body()
Dlprocfs_status.h562 extern int lprocfs_exp_setup(struct obd_export *exp,
564 extern int lprocfs_exp_cleanup(struct obd_export *exp);
871 static inline int lprocfs_add_clear_entry(struct obd_export *exp) in lprocfs_add_clear_entry() argument
873 static inline int lprocfs_exp_setup(struct obd_export *exp, in lprocfs_exp_setup() argument
877 static inline int lprocfs_exp_cleanup(struct obd_export *exp) in lprocfs_exp_cleanup() argument
Dlustre_fid.h460 struct obd_export *exp,
479 int client_fid_init(struct obd_device *obd, struct obd_export *exp,
Dlustre_log.h205 int llog_sync(struct llog_ctxt *ctxt, struct obd_export *exp, int flags);
225 int (*lop_sync)(struct llog_ctxt *ctxt, struct obd_export *exp,
Dlustre_net.h2522 void ptlrpc_commit_replies(struct obd_export *exp);
2863 struct obd_export **exp, struct obd_device *obd,
2866 int client_disconnect_export(struct obd_export *exp);
/linux-4.1.27/net/netfilter/
Dnf_conntrack_expect.c43 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, in nf_ct_unlink_expect_report() argument
46 struct nf_conn_help *master_help = nfct_help(exp->master); in nf_ct_unlink_expect_report()
47 struct net *net = nf_ct_exp_net(exp); in nf_ct_unlink_expect_report()
50 NF_CT_ASSERT(!timer_pending(&exp->timeout)); in nf_ct_unlink_expect_report()
52 hlist_del_rcu(&exp->hnode); in nf_ct_unlink_expect_report()
55 hlist_del(&exp->lnode); in nf_ct_unlink_expect_report()
56 master_help->expecting[exp->class]--; in nf_ct_unlink_expect_report()
58 nf_ct_expect_event_report(IPEXP_DESTROY, exp, portid, report); in nf_ct_unlink_expect_report()
59 nf_ct_expect_put(exp); in nf_ct_unlink_expect_report()
67 struct nf_conntrack_expect *exp = (void *)ul_expect; in nf_ct_expectation_timed_out() local
[all …]
Dnf_conntrack_broadcast.c28 struct nf_conntrack_expect *exp; in nf_conntrack_broadcast_help() local
58 exp = nf_ct_expect_alloc(ct); in nf_conntrack_broadcast_help()
59 if (exp == NULL) in nf_conntrack_broadcast_help()
62 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help()
63 exp->tuple.src.u.udp.port = help->helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
65 exp->mask.src.u3.ip = mask; in nf_conntrack_broadcast_help()
66 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help()
68 exp->expectfn = NULL; in nf_conntrack_broadcast_help()
69 exp->flags = NF_CT_EXPECT_PERMANENT; in nf_conntrack_broadcast_help()
70 exp->class = NF_CT_EXPECT_CLASS_DEFAULT; in nf_conntrack_broadcast_help()
[all …]
Dnf_nat_amanda.c32 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 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help()
50 exp->tuple.dst.u.tcp.port = htons(port); in help()
51 res = nf_ct_expect_related(exp); in help()
61 nf_ct_helper_log(skb, exp->master, "all ports in use"); in help()
66 ret = nf_nat_mangle_udp_packet(skb, exp->master, ctinfo, in help()
70 nf_ct_helper_log(skb, exp->master, "cannot mangle packet"); in help()
[all …]
Dnf_nat_irc.c34 struct nf_conntrack_expect *exp) in help() argument
37 struct nf_conn *ct = exp->master; in help()
45 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help()
46 exp->dir = IP_CT_DIR_REPLY; in help()
47 exp->expectfn = nf_nat_follow_master; in help()
50 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help()
53 exp->tuple.dst.u.tcp.port = htons(port); in help()
54 ret = nf_ct_expect_related(exp); in help()
90 nf_ct_unexpect_related(exp); in help()
Dnf_nat_tftp.c23 struct nf_conntrack_expect *exp) in help() argument
25 const struct nf_conn *ct = exp->master; in help()
27 exp->saved_proto.udp.port in help()
29 exp->dir = IP_CT_DIR_REPLY; in help()
30 exp->expectfn = nf_nat_follow_master; in help()
31 if (nf_ct_expect_related(exp) != 0) { in help()
32 nf_ct_helper_log(skb, exp->master, "cannot add expectation"); in help()
Dnf_nat_ftp.c65 struct nf_conntrack_expect *exp) in nf_nat_ftp() argument
70 struct nf_conn *ct = exp->master; in nf_nat_ftp()
78 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp()
79 exp->dir = !dir; in nf_nat_ftp()
83 exp->expectfn = nf_nat_follow_master; in nf_nat_ftp()
86 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in nf_nat_ftp()
89 exp->tuple.dst.u.tcp.port = htons(port); in nf_nat_ftp()
90 ret = nf_ct_expect_related(exp); in nf_nat_ftp()
119 nf_ct_unexpect_related(exp); in nf_nat_ftp()
Dnf_conntrack_h323_main.c88 struct nf_conntrack_expect *exp) __read_mostly;
95 struct nf_conntrack_expect *exp) __read_mostly;
102 struct nf_conntrack_expect *exp) __read_mostly;
108 __be16 port, struct nf_conntrack_expect *exp)
343 struct nf_conntrack_expect *exp; in expect_t120() local
353 if ((exp = nf_ct_expect_alloc(ct)) == NULL) in expect_t120()
355 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_t120()
359 exp->flags = NF_CT_EXPECT_PERMANENT; /* Accept multiple channels */ in expect_t120()
369 port, exp); in expect_t120()
371 if (nf_ct_expect_related(exp) == 0) { in expect_t120()
[all …]
Dnf_conntrack_tftp.c35 struct nf_conntrack_expect *exp) __read_mostly;
45 struct nf_conntrack_expect *exp; in tftp_help() local
62 exp = nf_ct_expect_alloc(ct); in tftp_help()
63 if (exp == NULL) { in tftp_help()
68 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in tftp_help()
74 nf_ct_dump_tuple(&exp->tuple); in tftp_help()
78 ret = nf_nat_tftp(skb, ctinfo, exp); in tftp_help()
79 else if (nf_ct_expect_related(exp) != 0) { in tftp_help()
83 nf_ct_expect_put(exp); in tftp_help()
Dnf_conntrack_netlink.c2236 struct nf_conntrack_expect *exp; in ctnetlink_nfqueue_attach_expect() local
2257 exp = ctnetlink_alloc_expect((const struct nlattr * const *)cda, ct, in ctnetlink_nfqueue_attach_expect()
2259 if (IS_ERR(exp)) in ctnetlink_nfqueue_attach_expect()
2260 return PTR_ERR(exp); in ctnetlink_nfqueue_attach_expect()
2262 err = nf_ct_expect_related_report(exp, portid, report); in ctnetlink_nfqueue_attach_expect()
2264 nf_ct_expect_put(exp); in ctnetlink_nfqueue_attach_expect()
2349 const struct nf_conntrack_expect *exp) in ctnetlink_exp_dump_expect() argument
2351 struct nf_conn *master = exp->master; in ctnetlink_exp_dump_expect()
2352 long timeout = ((long)exp->timeout.expires - (long)jiffies) / HZ; in ctnetlink_exp_dump_expect()
2363 if (ctnetlink_exp_dump_tuple(skb, &exp->tuple, CTA_EXPECT_TUPLE) < 0) in ctnetlink_exp_dump_expect()
[all …]
Dnf_nat_sip.c317 struct nf_conntrack_expect *exp) in nf_nat_sip_expected() argument
326 range.min_proto = range.max_proto = exp->saved_proto; in nf_nat_sip_expected()
327 range.min_addr = range.max_addr = exp->saved_addr; in nf_nat_sip_expected()
333 &ct->master->tuplehash[exp->dir].tuple.src.u3)) { in nf_nat_sip_expected()
336 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in nf_nat_sip_expected()
344 struct nf_conntrack_expect *exp, in nf_nat_sip_expect() argument
361 newaddr = exp->tuple.dst.u3; in nf_nat_sip_expect()
370 if (exp->tuple.dst.u.udp.port == srcport) in nf_nat_sip_expect()
373 port = ntohs(exp->tuple.dst.u.udp.port); in nf_nat_sip_expect()
375 exp->saved_addr = exp->tuple.dst.u3; in nf_nat_sip_expect()
[all …]
Dnf_conntrack_amanda.c47 struct nf_conntrack_expect *exp)
91 struct nf_conntrack_expect *exp; in amanda_help() local
143 exp = nf_ct_expect_alloc(ct); in amanda_help()
144 if (exp == NULL) { in amanda_help()
150 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in amanda_help()
158 off - dataoff, len, exp); in amanda_help()
159 else if (nf_ct_expect_related(exp) != 0) { in amanda_help()
163 nf_ct_expect_put(exp); in amanda_help()
Dnf_conntrack_sane.c73 struct nf_conntrack_expect *exp; in help() local
139 exp = nf_ct_expect_alloc(ct); in help()
140 if (exp == NULL) { in help()
147 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in help()
152 nf_ct_dump_tuple(&exp->tuple); in help()
155 if (nf_ct_expect_related(exp) != 0) { in help()
160 nf_ct_expect_put(exp); in help()
Dnf_conntrack_irc.c40 struct nf_conntrack_expect *exp) __read_mostly;
116 struct nf_conntrack_expect *exp; in help() local
196 exp = nf_ct_expect_alloc(ct); in help()
197 if (exp == NULL) { in help()
205 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in help()
215 exp); in help()
216 else if (nf_ct_expect_related(exp) != 0) { in help()
221 nf_ct_expect_put(exp); in help()
Dnf_conntrack_sip.c799 struct nf_conntrack_expect *exp; in refresh_signalling_expectation() local
804 hlist_for_each_entry_safe(exp, next, &help->expectations, lnode) { in refresh_signalling_expectation()
805 if (exp->class != SIP_EXPECT_SIGNALLING || in refresh_signalling_expectation()
806 !nf_inet_addr_cmp(&exp->tuple.dst.u3, addr) || in refresh_signalling_expectation()
807 exp->tuple.dst.protonum != proto || in refresh_signalling_expectation()
808 exp->tuple.dst.u.udp.port != port) in refresh_signalling_expectation()
810 if (!del_timer(&exp->timeout)) in refresh_signalling_expectation()
812 exp->flags &= ~NF_CT_EXPECT_INACTIVE; in refresh_signalling_expectation()
813 exp->timeout.expires = jiffies + expires * HZ; in refresh_signalling_expectation()
814 add_timer(&exp->timeout); in refresh_signalling_expectation()
[all …]
Dnf_conntrack_pptp.c69 struct nf_conntrack_expect *exp) __read_mostly;
103 struct nf_conntrack_expect *exp) in pptp_expectfn() argument
119 nf_nat_pptp_expectfn(ct, exp); in pptp_expectfn()
125 nf_ct_invert_tuplepr(&inv_t, &exp->tuple); in pptp_expectfn()
146 struct nf_conntrack_expect *exp; in destroy_sibling_or_exp() local
164 exp = nf_ct_expect_find_get(net, zone, t); in destroy_sibling_or_exp()
165 if (exp) { in destroy_sibling_or_exp()
166 pr_debug("unexpect_related of expect %p\n", exp); in destroy_sibling_or_exp()
167 nf_ct_unexpect_related(exp); in destroy_sibling_or_exp()
168 nf_ct_expect_put(exp); in destroy_sibling_or_exp()
Dnf_nat_helper.c192 struct nf_conntrack_expect *exp) in nf_nat_follow_master() argument
202 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in nf_nat_follow_master()
207 range.min_proto = range.max_proto = exp->saved_proto; in nf_nat_follow_master()
209 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in nf_nat_follow_master()
Dnf_conntrack_helper.c393 struct nf_conntrack_expect *exp; in __nf_conntrack_helper_unregister() local
402 hlist_for_each_entry_safe(exp, next, in __nf_conntrack_helper_unregister()
404 struct nf_conn_help *help = nfct_help(exp->master); in __nf_conntrack_helper_unregister()
408 ) == me || exp->helper == me) && in __nf_conntrack_helper_unregister()
409 del_timer(&exp->timeout)) { in __nf_conntrack_helper_unregister()
410 nf_ct_unlink_expect(exp); in __nf_conntrack_helper_unregister()
411 nf_ct_expect_put(exp); in __nf_conntrack_helper_unregister()
Dnf_conntrack_ftp.c55 struct nf_conntrack_expect *exp);
399 struct nf_conntrack_expect *exp; in help() local
487 exp = nf_ct_expect_alloc(ct); in help()
488 if (exp == NULL) { in help()
528 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, cmd.l3num, in help()
537 protoff, matchoff, matchlen, exp); in help()
540 if (nf_ct_expect_related(exp) != 0) { in help()
548 nf_ct_expect_put(exp); in help()
Dnf_conntrack_core.c903 struct nf_conntrack_expect *exp = NULL; in init_conntrack() local
950 exp = nf_ct_find_expectation(net, zone, tuple); in init_conntrack()
951 if (exp) { in init_conntrack()
953 ct, exp); in init_conntrack()
957 ct->master = exp->master; in init_conntrack()
958 if (exp->helper) { in init_conntrack()
959 help = nf_ct_helper_ext_add(ct, exp->helper, in init_conntrack()
962 rcu_assign_pointer(help->helper, exp->helper); in init_conntrack()
966 ct->mark = exp->master->mark; in init_conntrack()
969 ct->secmark = exp->master->secmark; in init_conntrack()
[all …]
/linux-4.1.27/arch/m68k/math-emu/
Dfp_arith.c22 .exp = 0x7fff,
28 .exp = 0x7fff,
97 if ((diff = dest->exp - src->exp) > 0) in fp_fadd()
156 int exp; in fp_fmul() local
183 dest->exp = 0; in fp_fmul()
190 exp = dest->exp + src->exp - 0x3ffe; in fp_fmul()
196 exp -= fp_overnormalize(dest); in fp_fmul()
198 exp -= fp_overnormalize(src); in fp_fmul()
206 exp--; in fp_fmul()
211 if (exp >= 0x7fff) { in fp_fmul()
[all …]
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 …]
Dfp_emu.h48 #define IS_INF(a) ((a)->exp == 0x7fff)
104 dest->exp = 0x7fff; \
Dfp_util.S107 move.l %d1,(%a0)+ | set sign / exp
140 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
178 9: move.l %d1,(%a0)+ | fp_ext.sign, fp_ext.exp
Dmulti_arith.h24 reg->exp += cnt; in fp_denormalize()
100 if (++reg->exp == 0x7fff) { in fp_addcarry()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dgenops.c57 static void obd_zombie_export_add(struct obd_export *exp);
59 static void print_export_data(struct obd_export *exp,
709 struct obd_device *class_exp2obd(struct obd_export *exp) in class_exp2obd() argument
711 if (exp) in class_exp2obd()
712 return exp->exp_obd; in class_exp2obd()
730 struct obd_import *class_exp2cliimp(struct obd_export *exp) in class_exp2cliimp() argument
732 struct obd_device *obd = exp->exp_obd; in class_exp2cliimp()
749 static void class_export_destroy(struct obd_export *exp) in class_export_destroy() argument
751 struct obd_device *obd = exp->exp_obd; in class_export_destroy()
753 LASSERT_ATOMIC_ZERO(&exp->exp_refcount); in class_export_destroy()
[all …]
Dobd_config.c454 struct obd_export *exp; in class_setup() local
531 exp = class_new_export(obd, &obd->obd_uuid); in class_setup()
532 if (IS_ERR(exp)) { in class_setup()
533 err = PTR_ERR(exp); in class_setup()
537 obd->obd_self_export = exp; in class_setup()
538 list_del_init(&exp->exp_obd_chain_timed); in class_setup()
539 class_export_put(exp); in class_setup()
1775 struct obd_export *exp; in uuid_key() local
1777 exp = hlist_entry(hnode, struct obd_export, exp_uuid_hash); in uuid_key()
1779 return &exp->exp_client_uuid; in uuid_key()
[all …]
Dlprocfs_status.c1550 struct obd_export *exp = cfs_hash_object(hs, hnode); in lprocfs_exp_print_uuid() local
1553 if (exp->exp_nid_stats) in lprocfs_exp_print_uuid()
1554 seq_printf(m, "%s\n", obd_uuid2str(&exp->exp_client_uuid)); in lprocfs_exp_print_uuid()
1582 struct obd_export *exp = cfs_hash_object(hs, hnode); in lprocfs_exp_print_hash() local
1584 if (exp->exp_lock_hash != NULL) { in lprocfs_exp_print_hash()
1660 int lprocfs_exp_setup(struct obd_export *exp, lnet_nid_t *nid, int *newnid) in lprocfs_exp_setup() argument
1670 if (!exp || !exp->exp_obd || !exp->exp_obd->obd_proc_exports_entry || in lprocfs_exp_setup()
1671 !exp->exp_obd->obd_nid_stats_hash) in lprocfs_exp_setup()
1680 obd = exp->exp_obd; in lprocfs_exp_setup()
1689 new_stat->nid_obd = exp->exp_obd; in lprocfs_exp_setup()
[all …]
Dllog_obd.c215 int llog_sync(struct llog_ctxt *ctxt, struct obd_export *exp, int flags) in llog_sync() argument
223 rc = CTXTP(ctxt, sync)(ctxt, exp, flags); in llog_sync()
Dobd_mount.c209 struct obd_export *exp; in lustre_start_mgc() local
452 rc = obd_connect(NULL, &exp, obd, &(obd->obd_uuid), data, NULL); in lustre_start_mgc()
458 obd->u.cli.cl_mgc_mgsexp = exp; in lustre_start_mgc()
/linux-4.1.27/fs/nfsd/
Dnfsfh.c28 struct svc_export *exp = expv; in nfsd_acceptable() local
33 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable()
37 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable()
49 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable()
51 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable()
84 struct svc_export *exp) in nfsd_setuser_and_check_port() argument
86 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
97 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
101 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument
103 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root()
[all …]
Dexport.c311 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local
312 path_put(&exp->ex_path); in svc_export_put()
313 auth_domain_put(exp->ex_client); in svc_export_put()
314 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put()
315 kfree(exp->ex_uuid); in svc_export_put()
316 kfree(exp); in svc_export_put()
324 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local
327 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request()
328 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request()
444 static int secinfo_parse(char **mesg, char *buf, struct svc_export *exp) in secinfo_parse() argument
[all …]
Dexport.h78 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument
79 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument
80 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument
82 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp);
83 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp);
101 static inline void exp_put(struct svc_export *exp) in exp_put() argument
103 cache_put(&exp->h, exp->cd); in exp_put()
106 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument
108 cache_get(&exp->h); in exp_get()
109 return exp; in exp_get()
Dauth.c7 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) in nfsexp_flags() argument
10 struct exp_flavor_info *end = exp->ex_flavors + exp->ex_nflavors; in nfsexp_flags()
12 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags()
16 return exp->ex_flags; in nfsexp_flags()
20 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) in nfsd_setuser() argument
26 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser()
42 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
43 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
49 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
51 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
[all …]
Dvfs.c86 struct svc_export *exp = *expp, *exp2 = NULL; in nfsd_cross_mnt() local
88 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt()
106 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt()
112 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt()
123 exp2 = exp; in nfsd_cross_mnt()
142 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument
145 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent()
158 exp_put(*exp); in nfsd_lookup_parent()
159 *exp = exp2; in nfsd_lookup_parent()
169 int nfsd_mountpoint(struct dentry *dentry, struct svc_export *exp) in nfsd_mountpoint() argument
[all …]
Dpnfs.h57 void nfsd4_setup_layout_type(struct svc_export *exp);
67 static inline void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
Dnfs4xdr.c2097 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument
2102 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations()
2104 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations()
2216 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument
2218 struct path path = exp->ex_path; in get_parent_attributes()
2237 struct svc_export *exp, in nfsd4_encode_fattr() argument
2264 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr()
2274 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr()
2297 status = fh_compose(tempfh, exp, dentry, NULL); in nfsd4_encode_fattr()
2402 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd4_encode_fattr()
[all …]
Dnfs4proc.c871 struct svc_export *exp; in nfsd4_secinfo() local
881 &exp, &dentry); in nfsd4_secinfo()
886 exp_put(exp); in nfsd4_secinfo()
889 secinfo->si_exp = exp; in nfsd4_secinfo()
1190 nfsd4_layout_verify(struct svc_export *exp, unsigned int layout_type) in nfsd4_layout_verify() argument
1192 if (!exp->ex_layout_type) { in nfsd4_layout_verify()
1197 if (exp->ex_layout_type != layout_type) { in nfsd4_layout_verify()
1213 struct svc_export *exp; in nfsd4_getdeviceinfo() local
1229 exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); in nfsd4_getdeviceinfo()
1230 if (IS_ERR(exp)) { in nfsd4_getdeviceinfo()
[all …]
Dnfs4layouts.c117 void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
119 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type()
121 if (!(exp->ex_flags & NFSEXP_PNFS)) in nfsd4_setup_layout_type()
127 exp->ex_layout_type = LAYOUT_BLOCK_VOLUME; in nfsd4_setup_layout_type()
Dnfs3xdr.c810 struct svc_export *exp; in compose_entry_fh() local
815 exp = cd->fh.fh_export; in compose_entry_fh()
833 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
/linux-4.1.27/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c77 int exp = 0; in simple_div() local
89 exp++; in simple_div()
91 *micro_frac = (rem / divisor) * pow_10(6-exp); in simple_div()
95 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument
97 *val1 = no/pow_10(exp); in split_micro_fraction()
98 *val2 = no%pow_10(exp) * 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 * pow_10(exp); in convert_from_vtf_format()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.c90 } exp; member
190 u8 exp[14]; in hdcs_set_exposure() local
194 ct = hdcs->exp.cto + hdcs->psmp + (HDCS_ADC_START_SIG_DUR + 2); in hdcs_set_exposure()
195 cp = hdcs->exp.cto + (hdcs->w * ct / 2); in hdcs_set_exposure()
198 rp = hdcs->exp.rs + cp; in hdcs_set_exposure()
208 srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct; in hdcs_set_exposure()
210 mnct = (hdcs->exp.er + 12 + ct - 1) / ct; in hdcs_set_exposure()
214 srowexp = cp - hdcs->exp.er - 6 - cycles; in hdcs_set_exposure()
216 mnct = (hdcs->exp.er + 5 + ct - 1) / ct; in hdcs_set_exposure()
226 exp[0] = HDCS20_CONTROL; in hdcs_set_exposure()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/sh2a/
Dfpu.c101 int exp, w; in denormal_mulf() local
108 exp = (iy & 0x7f800000) >> 23; in denormal_mulf()
117 exp += w - 126 - 46; in denormal_mulf()
118 if (exp > 0) in denormal_mulf()
119 ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23); in denormal_mulf()
120 else if (exp + 22 >= 0) in denormal_mulf()
121 ix = (int) (m >> (w - 22 - exp)) & 0x007fffff; in denormal_mulf()
168 int exp, w; in denormal_muld() local
175 exp = (iy & 0x7ff0000000000000LL) >> 52; in denormal_muld()
189 exp += w - 1022 - 52 * 2; in denormal_muld()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_internal.h84 int mdc_set_lock_data(struct obd_export *exp,
87 int mdc_null_inode(struct obd_export *exp, const struct lu_fid *fid);
89 int mdc_find_cbdata(struct obd_export *exp, const struct lu_fid *fid,
92 int mdc_intent_lock(struct obd_export *exp,
99 int mdc_enqueue(struct obd_export *exp, struct ldlm_enqueue_info *einfo,
104 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid,
108 int mdc_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
111 int mdc_open(struct obd_export *exp, u64 ino, int type, int flags,
121 int mdc_free_lustre_md(struct obd_export *exp, struct lustre_md *md);
123 int mdc_set_open_replay_data(struct obd_export *exp,
[all …]
Dmdc_reint.c69 int mdc_resource_get_unused(struct obd_export *exp, const struct lu_fid *fid, in mdc_resource_get_unused() argument
73 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in mdc_resource_get_unused()
85 if (exp_connect_cancelset(exp) && !ns_connect_cancelset(ns)) in mdc_resource_get_unused()
89 res = ldlm_resource_get(exp->exp_obd->obd_namespace, in mdc_resource_get_unused()
103 int mdc_setattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_setattr() argument
110 struct obd_device *obd = exp->exp_obd; in mdc_setattr()
122 count = mdc_resource_get_unused(exp, &op_data->op_fid1, in mdc_setattr()
124 req = ptlrpc_request_alloc(class_exp2cliimp(exp), in mdc_setattr()
138 rc = mdc_prep_elc_req(exp, req, MDS_REINT, &cancels, count); in mdc_setattr()
207 int mdc_create(struct obd_export *exp, struct md_op_data *op_data, in mdc_create() argument
[all …]
Dmdc_locks.c118 int mdc_set_lock_data(struct obd_export *exp, __u64 *lockh, void *data, in mdc_set_lock_data() argument
154 ldlm_mode_t mdc_lock_match(struct obd_export *exp, __u64 flags, in mdc_lock_match() argument
164 policy->l_inodebits.bits &= exp_connect_ibits(exp); in mdc_lock_match()
165 rc = ldlm_lock_match(class_exp2obd(exp)->obd_namespace, flags, in mdc_lock_match()
170 int mdc_cancel_unused(struct obd_export *exp, in mdc_cancel_unused() argument
178 struct obd_device *obd = class_exp2obd(exp); in mdc_cancel_unused()
187 int mdc_null_inode(struct obd_export *exp, in mdc_null_inode() argument
192 struct ldlm_namespace *ns = class_exp2obd(exp)->obd_namespace; in mdc_null_inode()
214 int mdc_find_cbdata(struct obd_export *exp, in mdc_find_cbdata() argument
222 rc = ldlm_resource_iterate(class_exp2obd(exp)->obd_namespace, &res_id, in mdc_find_cbdata()
[all …]
Dmdc_request.c63 static int mdc_unpack_capa(struct obd_export *exp, struct ptlrpc_request *req, in mdc_unpack_capa() argument
150 static int mdc_getstatus(struct obd_export *exp, struct lu_fid *rootfid, in mdc_getstatus() argument
153 return send_getstatus(class_exp2cliimp(exp), rootfid, pc, in mdc_getstatus()
167 static int mdc_getattr_common(struct obd_export *exp, in mdc_getattr_common() argument
188 mdc_update_max_ea_from_body(exp, body); in mdc_getattr_common()
199 LASSERT(client_is_remote(exp)); in mdc_getattr_common()
217 static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, in mdc_getattr() argument
229 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_MDS_GETATTR); in mdc_getattr()
247 LASSERT(client_is_remote(exp)); in mdc_getattr()
253 rc = mdc_getattr_common(exp, req); in mdc_getattr()
[all …]
/linux-4.1.27/net/ipv4/netfilter/
Dnf_nat_h323.c285 struct nf_conntrack_expect *exp) in nat_t120() argument
291 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120()
292 exp->expectfn = nf_nat_follow_master; in nat_t120()
293 exp->dir = !dir; in nat_t120()
299 exp->tuple.dst.u.tcp.port = htons(nated_port); in nat_t120()
300 ret = nf_ct_expect_related(exp); in nat_t120()
318 nf_ct_unexpect_related(exp); in nat_t120()
323 &exp->tuple.src.u3.ip, in nat_t120()
324 ntohs(exp->tuple.src.u.tcp.port), in nat_t120()
325 &exp->tuple.dst.u3.ip, in nat_t120()
[all …]
Dnf_nat_pptp.c43 struct nf_conntrack_expect *exp) in pptp_nat_expected() argument
57 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
61 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
63 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
70 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
72 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
94 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected()
95 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected()
97 range.min_proto = range.max_proto = exp->saved_proto; in pptp_nat_expected()
104 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected()
[all …]
Dnf_conntrack_l3proto_ipv4_compat.c283 struct nf_conntrack_expect *exp; in exp_seq_show() local
286 exp = hlist_entry(n, struct nf_conntrack_expect, hnode); in exp_seq_show()
288 if (exp->tuple.src.l3num != AF_INET) in exp_seq_show()
291 if (exp->timeout.function) in exp_seq_show()
292 seq_printf(s, "%ld ", timer_pending(&exp->timeout) in exp_seq_show()
293 ? (long)(exp->timeout.expires - jiffies)/HZ : 0); in exp_seq_show()
297 seq_printf(s, "proto=%u ", exp->tuple.dst.protonum); in exp_seq_show()
299 print_tuple(s, &exp->tuple, in exp_seq_show()
300 __nf_ct_l3proto_find(exp->tuple.src.l3num), in exp_seq_show()
301 __nf_ct_l4proto_find(exp->tuple.src.l3num, in exp_seq_show()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec.c1724 static int flavor_allowed(struct sptlrpc_flavor *exp, in flavor_allowed() argument
1729 if (exp->sf_rpc == SPTLRPC_FLVR_ANY || exp->sf_rpc == flvr->sf_rpc) in flavor_allowed()
1733 SPTLRPC_FLVR_POLICY(exp->sf_rpc) == in flavor_allowed()
1735 SPTLRPC_FLVR_MECH(exp->sf_rpc) == SPTLRPC_FLVR_MECH(flvr->sf_rpc)) in flavor_allowed()
1748 int sptlrpc_target_export_check(struct obd_export *exp, in sptlrpc_target_export_check() argument
1753 if (exp == NULL) in sptlrpc_target_export_check()
1758 if (exp->exp_imp_reverse == NULL) in sptlrpc_target_export_check()
1765 spin_lock(&exp->exp_lock); in sptlrpc_target_export_check()
1772 if (unlikely(exp->exp_flvr_changed) && in sptlrpc_target_export_check()
1773 flavor_allowed(&exp->exp_flvr_old[1], req)) { in sptlrpc_target_export_check()
[all …]
Dpinger.c554 int ping_evictor_wake(struct obd_export *exp) in ping_evictor_wake() argument
565 obd = class_exp2obd(exp); in ping_evictor_wake()
579 struct obd_export *exp; in ping_evictor_main() local
614 exp = list_entry(obd->obd_exports_timed.next, in ping_evictor_main()
617 if (expire_time > exp->exp_last_request_time) { in ping_evictor_main()
618 class_export_get(exp); in ping_evictor_main()
622 obd_uuid2str(&exp->exp_client_uuid), in ping_evictor_main()
623 obd_export_nid2str(exp), in ping_evictor_main()
625 exp->exp_last_request_time), in ping_evictor_main()
626 exp, (long)get_seconds(), in ping_evictor_main()
[all …]
Dservice.c402 void ptlrpc_commit_replies(struct obd_export *exp) in ptlrpc_commit_replies() argument
412 spin_lock(&exp->exp_uncommitted_replies_lock); in ptlrpc_commit_replies()
413 list_for_each_entry_safe(rs, nxt, &exp->exp_uncommitted_replies, in ptlrpc_commit_replies()
418 if (rs->rs_transno <= exp->exp_last_committed) { in ptlrpc_commit_replies()
423 spin_unlock(&exp->exp_uncommitted_replies_lock); in ptlrpc_commit_replies()
1026 static void ptlrpc_update_export_timer(struct obd_export *exp, long extra_delay) in ptlrpc_update_export_timer() argument
1031 LASSERT(exp); in ptlrpc_update_export_timer()
1041 if (exp->exp_last_request_time + 1 /*second */ >= new_time) in ptlrpc_update_export_timer()
1044 exp->exp_last_request_time = new_time; in ptlrpc_update_export_timer()
1049 spin_lock(&exp->exp_obd->obd_dev_lock); in ptlrpc_update_export_timer()
[all …]
Dimport.c799 struct obd_export *exp; in ptlrpc_connect_interpret() local
847 exp = class_conn2export(&imp->imp_dlm_handle); in ptlrpc_connect_interpret()
861 if (!exp) { in ptlrpc_connect_interpret()
869 old_connect_flags = exp_connect_flags(exp); in ptlrpc_connect_interpret()
870 exp->exp_connect_data = *ocd; in ptlrpc_connect_interpret()
872 class_export_put(exp); in ptlrpc_connect_interpret()
1123 if (old_connect_flags != exp_connect_flags(exp) || in ptlrpc_connect_interpret()
Dptlrpc_internal.h250 int ping_evictor_wake(struct obd_export *exp);
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lib.c491 struct obd_export **exp, in client_connect_import() argument
501 *exp = NULL; in client_connect_import()
513 *exp = class_conn2export(&conn); in client_connect_import()
533 LASSERT(*exp != NULL && (*exp)->exp_connection); in client_connect_import()
547 class_disconnect(*exp); in client_connect_import()
548 *exp = NULL; in client_connect_import()
557 int client_disconnect_export(struct obd_export *exp) in client_disconnect_export() argument
559 struct obd_device *obd = class_exp2obd(exp); in client_disconnect_export()
566 exp, exp ? exp->exp_handle.h_cookie : -1); in client_disconnect_export()
621 err = class_disconnect(exp); in client_disconnect_export()
[all …]
Dldlm_request.c506 int ldlm_cli_enqueue_fini(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_cli_enqueue_fini() argument
511 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_cli_enqueue_fini()
575 if (exp->exp_lock_hash) { in ldlm_cli_enqueue_fini()
579 cfs_hash_rehash_key(exp->exp_lock_hash, in ldlm_cli_enqueue_fini()
629 !(exp_connect_flags(exp) & OBD_CONNECT_IBITS))) in ldlm_cli_enqueue_fini()
631 ldlm_convert_policy_to_local(exp, in ldlm_cli_enqueue_fini()
744 int ldlm_prep_elc_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_elc_req() argument
748 struct ldlm_namespace *ns = exp->exp_obd->obd_namespace; in ldlm_prep_elc_req()
808 int ldlm_prep_enqueue_req(struct obd_export *exp, struct ptlrpc_request *req, in ldlm_prep_enqueue_req() argument
811 return ldlm_prep_elc_req(exp, req, LUSTRE_DLM_VERSION, LDLM_ENQUEUE, in ldlm_prep_enqueue_req()
[all …]
Dldlm_lock.c109 void ldlm_convert_policy_to_local(struct obd_export *exp, ldlm_type_t type, in ldlm_convert_policy_to_local() argument
117 new_client = (exp_connect_flags(exp) & OBD_CONNECT_FULL20) != 0; in ldlm_convert_policy_to_local()
2023 struct obd_export *exp = ecl->ecl_exp; in ldlm_cancel_locks_for_export_cb() local
2030 LDLM_DEBUG(lock, "export %p", exp); in ldlm_cancel_locks_for_export_cb()
2041 lock, exp, ecl->ecl_loop, in ldlm_cancel_locks_for_export_cb()
2053 void ldlm_cancel_locks_for_export(struct obd_export *exp) in ldlm_cancel_locks_for_export() argument
2056 .ecl_exp = exp, in ldlm_cancel_locks_for_export()
2060 cfs_hash_for_each_empty(exp->exp_lock_hash, in ldlm_cancel_locks_for_export()
2214 struct obd_export *exp = lock->l_export; in _ldlm_lock_debug() local
2220 if (exp && exp->exp_connection) { in _ldlm_lock_debug()
[all …]
Dldlm_flock.c832 int ldlm_init_flock_export(struct obd_export *exp) in ldlm_init_flock_export() argument
834 if (strcmp(exp->exp_obd->obd_type->typ_name, LUSTRE_MDT_NAME) != 0) in ldlm_init_flock_export()
837 exp->exp_flock_hash = in ldlm_init_flock_export()
838 cfs_hash_create(obd_uuid2str(&exp->exp_client_uuid), in ldlm_init_flock_export()
845 if (!exp->exp_flock_hash) in ldlm_init_flock_export()
852 void ldlm_destroy_flock_export(struct obd_export *exp) in ldlm_destroy_flock_export() argument
854 if (exp->exp_flock_hash) { in ldlm_destroy_flock_export()
855 cfs_hash_putref(exp->exp_flock_hash); in ldlm_destroy_flock_export()
856 exp->exp_flock_hash = NULL; in ldlm_destroy_flock_export()
Dldlm_lockd.c968 int ldlm_init_export(struct obd_export *exp) in ldlm_init_export() argument
972 exp->exp_lock_hash = in ldlm_init_export()
973 cfs_hash_create(obd_uuid2str(&exp->exp_client_uuid), in ldlm_init_export()
982 if (!exp->exp_lock_hash) in ldlm_init_export()
985 rc = ldlm_init_flock_export(exp); in ldlm_init_export()
991 ldlm_destroy_export(exp); in ldlm_init_export()
996 void ldlm_destroy_export(struct obd_export *exp) in ldlm_destroy_export() argument
998 cfs_hash_putref(exp->exp_lock_hash); in ldlm_destroy_export()
999 exp->exp_lock_hash = NULL; in ldlm_destroy_export()
1001 ldlm_destroy_flock_export(exp); in ldlm_destroy_export()
Dldlm_internal.h193 int ldlm_init_flock_export(struct obd_export *exp);
194 void ldlm_destroy_flock_export(struct obd_export *exp);
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_expect.h57 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net() argument
59 return nf_ct_net(exp->master); in nf_ct_exp_net()
90 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp,
92 static inline void nf_ct_unlink_expect(struct nf_conntrack_expect *exp) in nf_ct_unlink_expect() argument
94 nf_ct_unlink_expect_report(exp, 0, 0); in nf_ct_unlink_expect()
98 void nf_ct_unexpect_related(struct nf_conntrack_expect *exp);
107 void nf_ct_expect_put(struct nf_conntrack_expect *exp);
Dnf_conntrack_ecache.h161 struct nf_conntrack_expect *exp; member
177 struct nf_conntrack_expect *exp, in nf_ct_expect_event_report() argument
181 struct net *net = nf_ct_exp_net(exp); in nf_ct_expect_event_report()
190 e = nf_ct_ecache_find(exp->master); in nf_ct_expect_event_report()
196 .exp = exp, in nf_ct_expect_event_report()
208 struct nf_conntrack_expect *exp) in nf_ct_expect_event() argument
210 nf_ct_expect_event_report(event, exp, 0, 0); in nf_ct_expect_event()
249 struct nf_conntrack_expect *exp) {} in nf_ct_expect_event() argument
251 struct nf_conntrack_expect *exp, in nf_ct_expect_event_report() argument
Dnf_conntrack_helper.h102 void (*expectfn)(struct nf_conn *ct, struct nf_conntrack_expect *exp);
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_internal.h88 int osc_create(const struct lu_env *env, struct obd_export *exp,
91 int osc_real_create(struct obd_export *exp, struct obdo *oa,
104 int osc_enqueue_base(struct obd_export *exp, struct ldlm_res_id *res_id,
113 int osc_match_base(struct obd_export *exp, struct ldlm_res_id *res_id,
118 int osc_setattr_async_base(struct obd_export *exp, struct obd_info *oinfo,
122 int osc_punch_base(struct obd_export *exp, struct obd_info *oinfo,
125 int osc_sync_base(struct obd_export *exp, struct obd_info *oinfo,
197 int osc_quotactl(struct obd_device *unused, struct obd_export *exp,
199 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp,
201 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk);
Dosc_request.c103 static int osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, in osc_packmd() argument
133 static int osc_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in osc_unpackmd() argument
137 struct obd_import *imp = class_exp2cliimp(exp); in osc_unpackmd()
142 exp->exp_obd->obd_name, lmm_bytes, in osc_unpackmd()
150 exp->exp_obd->obd_name, -EINVAL); in osc_unpackmd()
261 static int osc_getattr_async(struct obd_export *exp, struct obd_info *oinfo, in osc_getattr_async() argument
268 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr_async()
292 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr() argument
299 req = ptlrpc_request_alloc(class_exp2cliimp(exp), &RQF_OST_GETATTR); in osc_getattr()
328 oinfo->oi_oa->o_blksize = cli_brw_size(exp->exp_obd); in osc_getattr()
[all …]
Dosc_quota.c244 int osc_quotactl(struct obd_device *unused, struct obd_export *exp, in osc_quotactl() argument
251 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotactl()
285 int osc_quotacheck(struct obd_device *unused, struct obd_export *exp, in osc_quotacheck() argument
288 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quotacheck()
293 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in osc_quotacheck()
314 int osc_quota_poll_check(struct obd_export *exp, struct if_quotacheck *qchk) in osc_quota_poll_check() argument
316 struct client_obd *cli = &exp->exp_obd->u.cli; in osc_quota_poll_check()
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c131 static struct obd_uuid *lmv_get_uuid(struct obd_export *exp) in lmv_get_uuid() argument
133 struct lmv_obd *lmv = &exp->exp_obd->u.lmv; in lmv_get_uuid()
198 struct obd_export **exp, struct obd_device *obd, in lmv_connect() argument
213 *exp = NULL; in lmv_connect()
223 *exp = class_conn2export(&conn); in lmv_connect()
224 class_export_get(*exp); in lmv_connect()
226 lmv->exp = *exp; in lmv_connect()
286 static int lmv_init_ea_size(struct obd_export *exp, int easize, in lmv_init_ea_size() argument
289 struct obd_device *obd = exp->exp_obd; in lmv_init_ea_size()
584 class_export_put(lmv->exp); in lmv_check_connect()
[all …]
Dlmv_intent.c54 static int lmv_intent_remote(struct obd_export *exp, void *lmm, in lmv_intent_remote() argument
61 struct obd_device *obd = exp->exp_obd; in lmv_intent_remote()
159 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_open() argument
165 struct obd_device *obd = exp->exp_obd; in lmv_intent_open()
184 rc = lmv_fid_alloc(exp, &op_data->op_fid2, op_data); in lmv_intent_open()
219 rc = lmv_intent_remote(exp, lmm, lmmsize, it, &op_data->op_fid1, flags, in lmv_intent_open()
242 int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_lookup() argument
248 struct obd_device *obd = exp->exp_obd; in lmv_intent_lookup()
286 rc = lmv_intent_remote(exp, lmm, lmmsize, it, NULL, flags, reqp, in lmv_intent_lookup()
292 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, in lmv_intent_lock() argument
[all …]
Dlmv_internal.h53 int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data,
59 int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data,
65 int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data,
75 int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
/linux-4.1.27/arch/x86/math-emu/
Dreg_ld_str.c38 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument
42 setexponent16(r, exp); in normalize_no_excep()
54 int exp; in FPU_tagof() local
56 exp = exponent16(ptr) & 0x7fff; in FPU_tagof()
57 if (exp == 0) { in FPU_tagof()
65 if (exp == 0x7fff) { in FPU_tagof()
96 int exp, tag, negative; in FPU_load_double() local
106 exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias + EXTENDED_Ebias; in FPU_load_double()
108 if (exp > DOUBLE_Emax + EXTENDED_Ebias) { in FPU_load_double()
114 exp = EXP_Infinity + EXTENDED_Ebias; in FPU_load_double()
[all …]
Dfpu_emu.h120 short exp; member
171 *(short *)&(y->exp) = *(const short *)&(x->exp); in reg_copy()
175 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias)
176 #define setexponentpos(x,y) { (*(short *)&((x)->exp)) = \
178 #define exponent16(x) (*(short *)&((x)->exp))
179 #define setexponent16(x,y) { (*(short *)&((x)->exp)) = (y); }
180 #define addexponent(x,y) { (*(short *)&((x)->exp)) += (y); }
181 #define stdexp(x) { (*(short *)&((x)->exp)) += EXTENDED_Ebias; }
Dpoly.h87 static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp) in add_two_Xsig() argument
97 "0: xorl %%eax,%%eax;\n" "1:\n":"=g" (*exp), "=g"(*dest) in add_two_Xsig()
98 :"g"(dest), "g"(x2), "g"(exp) in add_two_Xsig()
Dfpu_tags.c63 int exp = exponent(ptr); in FPU_Special() local
65 if (exp == EXP_BIAS + EXP_UNDER) in FPU_Special()
67 else if (exp != EXP_BIAS + EXP_OVER) in FPU_Special()
DREADME70 (4) The trig, log, and exp functions are based in each case upon quasi-
191 exp() 479.1 6619.2 469.1 850.8
217 exp() 619.3 4046.4
257 exp(x) 0 .. 1 63.1 ** 62.9
260 ** The accuracy for exp() and log() is low because the FPU (emulator)
/linux-4.1.27/drivers/media/rc/img-ir/
Dimg-ir-sharp.c18 unsigned int addr, cmd, exp, chk; in img_ir_sharp_scancode() local
25 exp = (raw >> 13) & 0x1; in img_ir_sharp_scancode()
29 if (!exp) in img_ir_sharp_scancode()
44 unsigned int addr, cmd, exp = 0, chk = 0; in img_ir_sharp_filter() local
53 exp = 1; in img_ir_sharp_filter()
61 exp << 13 | in img_ir_sharp_filter()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_nfct.c144 struct nf_conntrack_expect *exp) in ip_vs_nfct_expect_callback() argument
151 if (exp->tuple.src.l3num != PF_INET) in ip_vs_nfct_expect_callback()
164 ip_vs_conn_fill_param(net, exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
229 struct nf_conntrack_expect *exp; in ip_vs_nfct_expect_related() local
234 exp = nf_ct_expect_alloc(ct); in ip_vs_nfct_expect_related()
235 if (!exp) in ip_vs_nfct_expect_related()
238 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in ip_vs_nfct_expect_related()
244 exp->expectfn = ip_vs_nfct_expect_callback; in ip_vs_nfct_expect_related()
247 __func__, ct, ARG_TUPLE(&exp->tuple)); in ip_vs_nfct_expect_related()
248 nf_ct_expect_related(exp); in ip_vs_nfct_expect_related()
[all …]
/linux-4.1.27/kernel/
Dacct.c314 int exp, rnd; in encode_comp_t() local
316 exp = rnd = 0; in encode_comp_t()
320 exp++; in encode_comp_t()
328 exp++; in encode_comp_t()
334 exp <<= MANTSIZE; /* Shift the exponent into place */ in encode_comp_t()
335 exp += value; /* and add on the mantissa. */ in encode_comp_t()
336 return exp; in encode_comp_t()
356 int exp, rnd; in encode_comp2_t() local
358 exp = (value > (MAXFRACT2>>1)); in encode_comp2_t()
363 exp++; in encode_comp2_t()
[all …]
/linux-4.1.27/kernel/time/
Dalarmtimer.c600 ktime_t exp; in alarm_timer_set() local
617 exp = timespec_to_ktime(new_setting->it_value); in alarm_timer_set()
623 exp = ktime_add(now, exp); in alarm_timer_set()
626 alarm_start(&timr->it.alarm.alarmtimer, exp); in alarm_timer_set()
681 static int update_rmtp(ktime_t exp, enum alarmtimer_type type, in update_rmtp() argument
687 rem = ktime_sub(exp, alarm_bases[type].gettime()); in update_rmtp()
709 ktime_t exp; in alarm_timer_nsleep_restart() local
714 exp.tv64 = restart->nanosleep.expires; in alarm_timer_nsleep_restart()
717 if (alarmtimer_do_nsleep(&alarm, exp)) in alarm_timer_nsleep_restart()
721 alarmtimer_freezerset(exp, type); in alarm_timer_nsleep_restart()
[all …]
Dposix-cpu-timers.c473 unsigned long long exp = nt->expires; in arm_timer() local
484 if (expires_gt(cputime_expires->prof_exp, expires_to_cputime(exp))) in arm_timer()
485 cputime_expires->prof_exp = expires_to_cputime(exp); in arm_timer()
488 if (expires_gt(cputime_expires->virt_exp, expires_to_cputime(exp))) in arm_timer()
489 cputime_expires->virt_exp = expires_to_cputime(exp); in arm_timer()
493 cputime_expires->sched_exp > exp) in arm_timer()
494 cputime_expires->sched_exp = exp; in arm_timer()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_obd.c216 struct obd_export **exp, struct obd_device *obd, in lov_connect() argument
231 *exp = class_conn2export(&conn); in lov_connect()
313 static int lov_disconnect(struct obd_export *exp) in lov_disconnect() argument
315 struct obd_device *obd = class_exp2obd(exp); in lov_disconnect()
343 rc = class_disconnect(exp); /* bz 9811 */ in lov_disconnect()
986 static int lov_recreate(struct obd_export *exp, struct obdo *src_oa, in lov_recreate() argument
990 struct lov_obd *lov = &exp->exp_obd->u.lov; in lov_recreate()
1040 static int lov_create(const struct lu_env *env, struct obd_export *exp, in lov_create() argument
1048 if (exp == NULL) in lov_create()
1057 lov = &exp->exp_obd->u.lov; in lov_create()
[all …]
Dlov_internal.h171 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm,
194 int qos_prep_create(struct obd_export *exp, struct lov_request_set *set);
208 int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo,
211 int lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo,
216 int lov_prep_setattr_set(struct obd_export *exp, struct obd_info *oinfo,
247 int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmm,
249 int lov_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp,
251 int lov_getstripe(struct obd_export *exp,
Dlov_pack.c131 int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, in lov_packmd() argument
134 struct obd_device *obd = class_exp2obd(exp); in lov_packmd()
354 int lov_unpackmd(struct obd_export *exp, struct lov_stripe_md **lsmp, in lov_unpackmd() argument
357 struct obd_device *obd = class_exp2obd(exp); in lov_unpackmd()
412 int lov_getstripe(struct obd_export *exp, struct lov_stripe_md *lsm, in lov_getstripe() argument
455 rc = lov_packmd(exp, &lmmk, lsm); in lov_getstripe()
507 obd_free_diskmd(exp, &lmmk); in lov_getstripe()
Dlov_request.c282 int lov_prep_getattr_set(struct obd_export *exp, struct obd_info *oinfo, in lov_prep_getattr_set() argument
286 struct lov_obd *lov = &exp->exp_obd->u.lov; in lov_prep_getattr_set()
294 set->set_exp = exp; in lov_prep_getattr_set()
363 int lov_prep_destroy_set(struct obd_export *exp, struct obd_info *oinfo, in lov_prep_destroy_set() argument
369 struct lov_obd *lov = &exp->exp_obd->u.lov; in lov_prep_destroy_set()
377 set->set_exp = exp; in lov_prep_destroy_set()
483 int lov_prep_setattr_set(struct obd_export *exp, struct obd_info *oinfo, in lov_prep_setattr_set() argument
488 struct lov_obd *lov = &exp->exp_obd->u.lov; in lov_prep_setattr_set()
496 set->set_exp = exp; in lov_prep_setattr_set()
Dlov_merge.c113 int lov_adjust_kms(struct obd_export *exp, struct lov_stripe_md *lsm, in lov_adjust_kms() argument
/linux-4.1.27/arch/parisc/math-emu/
Dcnv_float.h108 #define Dbl_to_sgl_denormalized(srcA,srcB,exp,dest,inexact,guard,sticky,odd,tiny) \ argument
111 if (exp >= -2) { \
112 if (exp == 0) { \
156 inexact = Dallp2(srcB) << (2 + exp); \
160 if (exp == -2) dest = Dallp1(srcA); \
161 else Variable_shift_double(Dallp1(srcA),Dallp2(srcB),30-exp,dest); \
167 if (exp > (1 - SGL_P)) { \
168 dest = Dallp1(srcA) >> (- 2 - exp); \
169 inexact = Dallp1(srcA) << (34 + exp); \
178 if (exp == (1 - SGL_P)) { \
[all …]
Dsgl_float.h158 #define Sgl_set_exponent(sgl_value,exp) Deposit_sexponent(sgl_value,exp) argument
Ddbl_float.h246 #define Dbl_set_exponent(dbl_value, exp) Deposit_dexponent(dbl_value,exp) argument
/linux-4.1.27/include/linux/netfilter/
Dnf_conntrack_h323.h73 struct nf_conntrack_expect *exp);
79 struct nf_conntrack_expect *exp);
87 struct nf_conntrack_expect *exp);
93 struct nf_conntrack_expect *exp);
Dnf_conntrack_amanda.h10 struct nf_conntrack_expect *exp);
Dnf_conntrack_irc.h13 struct nf_conntrack_expect *exp);
Dnf_conntrack_tftp.h18 struct nf_conntrack_expect *exp);
Dnf_conntrack_ftp.h32 struct nf_conntrack_expect *exp);
Dnf_conntrack_sip.h125 struct nf_conntrack_expect *exp,
Dnf_conntrack_pptp.h323 struct nf_conntrack_expect *exp);
/linux-4.1.27/arch/m68k/fpsp040/
Dsgetem.S19 | Output: The functions return exp(X) or man(X) in fp0.
52 fmovew %d0,%fp0 |move the exp to fp0
58 bsr nrm_set |normalize (exp will go negative)
61 fmovew %d0,%fp0 |move the exp to fp0
81 movew LOCAL_EX(%a0),%d0 |get the exp (really just want sign bit)
82 orw #0x7fff,%d0 |clear old exp
83 bclrl #14,%d0 |make it the new exp +-3fff
84 movew %d0,LOCAL_EX(%a0) |move the sign & exp back to fsave stack
Dsint.S27 | 1. If exp(X) >= 63, return X.
28 | If exp(X) < 0, return +/- 0 or +/- 1, according to
31 | 2. (X is in range) set rsc = 63 - exp(X). Unnormalize the
144 cmpw #0x403e,LOCAL_EX(%a0) |check if (unbiased) exp > 63
145 bgts out_rnge |branch if exp < 63
146 cmpw #0x3ffd,LOCAL_EX(%a0) |check if (unbiased) exp < 0
147 bgt in_rnge |if 63 >= exp > 0, do calc
201 fmovex LOCAL_EX(%a0),%fp0 |if exp > 63
Ddecbin.S50 | A4. Calculate the factor 10^exp in FP1 using a table of
454 movel %d1,%d0 |copy exp to d0;use d0
455 bpls no_neg |if exp is negative,
471 | Check the sign of the adjusted exp and make the value in fp0 the
472 | same sign. If the exp was pos then multiply fp1*fp0;
479 | ( ) fp1: scaling factor - 10**(abs(exp))
485 fdivx %fp1,%fp0 |exp is negative, so divide mant by exp
488 fmulx %fp1,%fp0 |exp is positive, so multiply by exp
Dx_store.S118 | extended -> |s| exp | |1| ms mant | | ls mant |
126 | double -> |s|exp| mant | | mant |
138 lsll #4,%d0 |d0 now in proper place for dbl prec exp
151 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack
157 movel %d0,LOCAL_EX(%a1) |put the new exp back on the stack
Dscosh.S26 | y = |X|, z = exp(Y), and
33 | cosh(X) = sign(X) * exp(|X|)/2.
34 | However, invoking exp(|X|) may cause premature overflow.
Dsetox.S6 | number. setoxm1 computes exp(X)-1, and setoxm1d computes
7 | exp(X)-1 for denormalized X.
16 | exp(X) or exp(X)-1 returned in floating-point register fp0.
127 | Step 4. Approximate exp(R)-1 by a polynomial
133 | |p - (exp(R)-1)| < 2^(-68.8) for all |R| <= 0.0062.
141 | Step 5. Compute 2^(J/64)*exp(R) = 2^(J/64)*(1+p) by
152 | Step 6. Reconstruction of exp(X)
153 | exp(X) = 2^M * 2^(J/64) * exp(R).
159 | |M| <= 16380, and Scale = 2^M. Moreover, exp(X) will
163 | Hence, exp(X) may overflow or underflow or neither.
[all …]
Dround.S220 addw #0x1,LOCAL_EX(%a0) |and inc exp
306 cmpw #64,%d0 |see if exp > 64
308 bsr nrm_set |exp > 64 so exp won't exceed 0
330 lsrl %d5,%d6 |by the number in the exp, then
331 | ;set exp = 0.
333 movel #0,%d0 |same as if decremented exp to 0
346 bsr nrm_set |else exp won't go past 0
390 subw %d7,%d0 |subtract shift count from exp
393 movel %d1,LOCAL_HI(%a0) |store exp
442 subw LOCAL_EX(%a0),%d0 |diff = threshold - exp
[all …]
Dres_func.S71 bsr nrm_set |normalize number (exp will go negative)
705 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos)
706 bfexts FPTEMP_EX(%a6){#1:#15},%d1 |get dest exp (always neg)
744 bfextu FPTEMP_EX(%a6){#1:#15},%d0 |get dest exp (always pos)
745 bfexts ETEMP_EX(%a6){#1:#15},%d1 |get src exp (always neg)
809 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos)
810 bfexts FPTEMP_EX(%a6){#1:#15},%d1 |get dest exp (always neg)
818 bfextu FPTEMP_EX(%a6){#1:#15},%d0 |get dest exp (always pos)
819 bfexts ETEMP_EX(%a6){#1:#15},%d1 |get src exp (always neg)
984 bfextu ETEMP_EX(%a6){#1:#15},%d0 |get src exp (always pos)
[all …]
Dstwotox.S34 | 2**X = 2**(M') * 2**(M) * 2**(j/64) * exp(r).
50 | 10**X = 2**(M') * 2**(M) * 2**(j/64) * exp(r).
61 | 3. Calculate P where 1 + P approximates exp(r):
Dssinh.S33 | sinh(X) = sign(X) * exp(|X|)/2.
34 | However, invoking exp(|X|) may cause premature overflow.
Dbindec.S101 | As in A14 above, the exp is converted to bcd and the
187 andiw #0x7fff,%d0 |strip sign of normalized exp
203 andiw #0x7fff,%d0 |strip sign of normalized exp
247 movew FP_SCR2(%a6),%d0 |move exp to d0
251 faddw %d0,%fp0 |add in exp
Dscale.S100 addl %d0,%d1 |add src to dest exp
169 movew %d1,%d0 |use d0 for exp
Dx_operr.S163 bsr check_upper |check if exp and ms mant are special
190 bsr check_upper |check if exp and ms mant are special
Dstanh.S36 | sgn := sign(X), y := 2|X|, z := exp(Y),
Dget_op.S661 | For a norm, check if the exp <= $3fff; if so, set etemp_15
/linux-4.1.27/drivers/staging/lustre/lustre/fid/
Dfid_request.c60 struct obd_export *exp = seq->lcs_exp; in seq_client_rpc() local
67 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), &RQF_SEQ_QUERY, in seq_client_rpc()
111 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc()
114 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in seq_client_rpc()
450 struct obd_export *exp, in seq_client_init() argument
473 if (exp != NULL) in seq_client_init()
474 seq->lcs_exp = class_export_get(exp); in seq_client_init()
502 struct obd_export *exp, enum lu_cli_type type) in client_fid_init() argument
521 rc = seq_client_init(cli->cl_seq, exp, type, prefix, NULL); in client_fid_init()
/linux-4.1.27/drivers/media/i2c/smiapp/
Dsmiapp-regs.c28 int32_t exp; in float_to_u32_mul_1000000() local
55 exp = ((int32_t)phloat >> 23) - 127; in float_to_u32_mul_1000000()
60 if (exp < 0) in float_to_u32_mul_1000000()
61 man >>= -exp; in float_to_u32_mul_1000000()
63 man <<= exp; in float_to_u32_mul_1000000()
/linux-4.1.27/drivers/misc/echo/
Decho.c125 int exp; in lms_adapt_bg() local
145 exp = *phist++ * factor; in lms_adapt_bg()
146 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
197 int exp; in lms_adapt_bg() local
210 exp = (ec->fir_state_bg.history[i - offset1] * factor); in lms_adapt_bg()
211 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
214 exp = (ec->fir_state_bg.history[i + offset2] * factor); in lms_adapt_bg()
215 ec->fir_taps16[1][i] += (int16_t) ((exp + (1 << 14)) >> 15); in lms_adapt_bg()
/linux-4.1.27/drivers/media/usb/gspca/
Dsn9c20x.c1439 u8 exp[8] = {sd->i2c_intf, sd->i2c_addr, in set_exposure() local
1444 exp[7] = 0x1e; in set_exposure()
1455 exp[0] |= (2 << 4); in set_exposure()
1456 exp[2] = 0x10; /* AECH */ in set_exposure()
1457 exp[3] = expo2 >> 2; in set_exposure()
1458 exp[7] = 0x10; in set_exposure()
1459 i2c_w(gspca_dev, exp); in set_exposure()
1460 exp[2] = 0x04; /* COM1 */ in set_exposure()
1461 exp[3] = expo2 & 0x0003; in set_exposure()
1462 exp[7] = 0x10; in set_exposure()
[all …]
/linux-4.1.27/kernel/sched/
Dproc.c98 calc_load(unsigned long load, unsigned long exp, unsigned long active) in calc_load() argument
102 newload = load * exp + active * (FIXED_1 - exp); in calc_load()
288 calc_load_n(unsigned long load, unsigned long exp, in calc_load_n() argument
292 return calc_load(load, fixed_power_int(exp, FSHIFT, n), active); in calc_load_n()
/linux-4.1.27/fs/
Dselect.c429 unsigned long *rinp, *routp, *rexp, *inp, *outp, *exp; in do_select() local
432 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select()
439 in = *inp++; out = *outp++; ex = *exp++; in do_select()
548 fd_set __user *exp, struct timespec *end_time) in core_sys_select() argument
593 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select()
612 set_fd_set(n, exp, fds.res_ex)) in core_sys_select()
623 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument
640 ret = core_sys_select(n, inp, outp, exp, to); in SYSCALL_DEFINE5()
647 fd_set __user *exp, struct timespec __user *tsp, in do_pselect() argument
674 ret = core_sys_select(n, inp, outp, exp, to); in do_pselect()
[all …]
Dcompat.c1235 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in compat_core_sys_select() argument
1277 (ret = compat_get_fd_set(n, exp, fds.ex))) in compat_core_sys_select()
1296 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select()
1306 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE5() argument
1324 ret = compat_core_sys_select(n, inp, outp, exp, to); in COMPAT_SYSCALL_DEFINE5()
1334 compat_uptr_t exp; member
1345 compat_ptr(a.exp), compat_ptr(a.tvp)); in COMPAT_SYSCALL_DEFINE1()
1349 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in do_compat_pselect() argument
1379 ret = compat_core_sys_select(n, inp, outp, exp, to); in do_compat_pselect()
1400 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE6() argument
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/fld/
Dfld_request.c411 int fld_client_rpc(struct obd_export *exp, in fld_client_rpc() argument
420 LASSERT(exp != NULL); in fld_client_rpc()
422 imp = class_exp2cliimp(exp); in fld_client_rpc()
444 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in fld_client_rpc()
445 fld_enter_request(&exp->exp_obd->u.cli); in fld_client_rpc()
447 fld_exit_request(&exp->exp_obd->u.cli); in fld_client_rpc()
449 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); in fld_client_rpc()
Dfld_internal.h142 int fld_client_rpc(struct obd_export *exp,
/linux-4.1.27/lib/mpi/
Dmpi-pow.c36 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm() argument
52 esize = exp->nlimbs; in mpi_powm()
55 esign = exp->sign; in mpi_powm()
59 ep = exp->d; in mpi_powm()
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dmt9v022.c515 struct v4l2_ctrl *exp = mt9v022->exposure; in mt9v022_g_volatile_ctrl() local
533 range = exp->maximum - exp->minimum; in mt9v022_g_volatile_ctrl()
534 exp->val = ((data - 1) * range + 239) / 479 + exp->minimum; in mt9v022_g_volatile_ctrl()
609 struct v4l2_ctrl *exp = mt9v022->exposure; in mt9v022_s_ctrl() local
610 unsigned long range = exp->maximum - exp->minimum; in mt9v022_s_ctrl()
611 unsigned long shutter = ((exp->val - (s32)exp->minimum) * in mt9v022_s_ctrl()
Dmt9m001.c388 struct v4l2_ctrl *exp = mt9m001->exposure; in mt9m001_s_ctrl() local
436 unsigned long range = exp->maximum - exp->minimum; in mt9m001_s_ctrl()
437 unsigned long shutter = ((exp->val - (s32)exp->minimum) * 1048 + in mt9m001_s_ctrl()
Dmt9t031.c452 struct v4l2_ctrl *exp = mt9t031->exposure; in mt9t031_s_ctrl() local
509 unsigned int range = exp->maximum - exp->minimum; in mt9t031_s_ctrl()
510 unsigned int shutter = ((exp->val - (s32)exp->minimum) * 1048 + in mt9t031_s_ctrl()
/linux-4.1.27/include/math-emu/
Ddouble.h61 unsigned exp : _FP_EXPBITS_D; member
67 unsigned exp : _FP_EXPBITS_D;
135 unsigned exp : _FP_EXPBITS_D; member
139 unsigned exp : _FP_EXPBITS_D;
Dquad.h62 unsigned exp : _FP_EXPBITS_Q; member
72 unsigned exp : _FP_EXPBITS_Q;
140 unsigned exp : _FP_EXPBITS_Q; member
146 unsigned exp : _FP_EXPBITS_Q;
Dop-1.h80 X##_e = _flo.bits.exp; \
90 X##_e = _flo->bits.exp; \
103 _flo.bits.exp = X##_e; \
115 _flo->bits.exp = X##_e; \
Dsingle.h52 unsigned exp : _FP_EXPBITS_S; member
56 unsigned exp : _FP_EXPBITS_S;
Dop-2.h191 X##_e = _flo.bits.exp; \
202 X##_e = _flo->bits.exp; \
217 _flo.bits.exp = X##_e; \
230 _flo->bits.exp = X##_e; \
Dop-4.h191 X##_e = _flo.bits.exp; \
204 X##_e = _flo->bits.exp; \
215 _flo.bits.exp = X##_e; \
229 _flo->bits.exp = X##_e; \
/linux-4.1.27/drivers/watchdog/
Dtegra_wdt.c154 int exp; in tegra_wdt_get_timeleft() local
162 exp = (val >> WDT_STS_EXP_SHIFT) & WDT_STS_EXP_MASK; in tegra_wdt_get_timeleft()
168 return (((3 - exp) * wdd->timeout) + count) / 4; in tegra_wdt_get_timeleft()
/linux-4.1.27/drivers/atm/
Dfirestream.c450 unsigned char exp = -1; /* hush gcc */ in make_rate() local
477 exp = 31; in make_rate()
484 exp = 31; in make_rate()
489 exp = exp - 1; in make_rate()
521 exp += 1; in make_rate()
535 exp += 1; in make_rate()
550 exp = 0; in make_rate()
555 fs_dprintk (FS_DEBUG_QOS, "rate: man=%u, exp=%hu", man, exp); in make_rate()
558 *bits = /* (1<<14) | */ (exp<<9) | man; in make_rate()
561 *actual = (exp >= 9) in make_rate()
[all …]
Dambassador.c891 unsigned char exp = -1; // hush gcc in make_rate() local
916 exp = 31; in make_rate()
923 exp = 31; in make_rate()
928 exp = exp - 1; in make_rate()
958 exp += 1; in make_rate()
972 exp += 1; in make_rate()
987 exp = 0; in make_rate()
993 PRINTD (DBG_QOS, "rate: man=%u, exp=%hu", man, exp); in make_rate()
996 *bits = /* (1<<14) | */ (exp<<9) | man; in make_rate()
999 *actual = (exp >= 9) in make_rate()
[all …]
Dhe.c431 unsigned exp = 0; in rate_to_atmf() local
438 ++exp; in rate_to_atmf()
442 return (NONZERO | (exp << 9) | (rate & 0x1ff)); in rate_to_atmf()
655 unsigned rate_atmf, exp, man; in he_init_cs_block_rcm() local
714 exp = rate_atmf >> 5; in he_init_cs_block_rcm()
720 rate_cps = (unsigned long long) (1 << exp) * (man + 512) >> 9; in he_init_cs_block_rcm()
Diphase.c340 u32 exp, mantissa, cps;
343 exp = (rate >> M_BITS) & E_MASK;
345 if (exp == 0)
348 if (exp == M_BITS)
350 else if (exp > M_BITS)
351 cps <<= (exp - M_BITS);
353 cps >>= (M_BITS - exp);
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c837 static int mgc_set_mgs_param(struct obd_export *exp, in mgc_set_mgs_param() argument
844 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in mgc_set_mgs_param()
873 static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm, in mgc_enqueue() argument
895 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in mgc_enqueue()
912 rc = ldlm_cli_enqueue(exp, &req, &einfo, &cld->cld_resid, NULL, flags, in mgc_enqueue()
932 static int mgc_target_register(struct obd_export *exp, in mgc_target_register() argument
939 req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), in mgc_target_register()
970 static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, in mgc_set_info_async() argument
978 struct obd_import *imp = class_exp2cliimp(exp); in mgc_set_info_async()
998 rc = mgc_set_mgs_param(exp, msp); in mgc_set_info_async()
[all …]
/linux-4.1.27/arch/alpha/kernel/
Dtraps.c704 unsigned long exp; in s_mem_to_reg() local
706 exp = (exp_msb << 10) | exp_low; /* common case */ in s_mem_to_reg()
709 exp = 0x7ff; in s_mem_to_reg()
713 exp = 0x000; in s_mem_to_reg()
715 exp |= (0x7 << 7); in s_mem_to_reg()
718 return (sign << 63) | (exp << 52) | (frac << 29); in s_mem_to_reg()
Dosf_sys.c1092 fd_set __user *, exp, struct timeval32 __user *, tvp) in SYSCALL_DEFINE5() argument
1115 return core_sys_select(n, inp, outp, exp, to); in SYSCALL_DEFINE5()
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_msgtype50.c189 unsigned char *mod, *exp, *inp; in ICAMEX_msg_to_type50MEX_msg() local
202 exp = meb1->exponent + sizeof(meb1->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
212 exp = meb2->exponent + sizeof(meb2->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
223 exp = meb3->exponent + sizeof(meb3->exponent) - mod_len; in ICAMEX_msg_to_type50MEX_msg()
228 copy_from_user(exp, mex->b_key, mod_len) || in ICAMEX_msg_to_type50MEX_msg()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h79 # define LINVRNT(exp) LASSERT(exp) argument
81 # define LINVRNT(exp) ((void)sizeof !!(exp)) argument
/linux-4.1.27/scripts/mod/
Dmodpost.c2036 static void check_for_gpl_usage(enum export exp, const char *m, const char *s) in check_for_gpl_usage() argument
2040 switch (exp) { in check_for_gpl_usage()
2061 static void check_for_unused(enum export exp, const char *m, const char *s) in check_for_unused() argument
2065 switch (exp) { in check_for_unused()
2079 struct symbol *s, *exp; in check_exports() local
2083 exp = find_symbol(s->name); in check_exports()
2084 if (!exp || exp->module == mod) in check_exports()
2092 check_for_gpl_usage(exp->export, basename, exp->name); in check_exports()
2093 check_for_unused(exp->export, basename, exp->name); in check_exports()
2140 struct symbol *s, *exp; in add_versions() local
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c1643 struct obd_export *exp, int rw, in echo_client_prep_commit() argument
1695 ret = obd_preprw(env, rw, exp, oa, 1, &ioo, rnb, &lpages, in echo_client_prep_commit()
1728 ret = obd_commitrw(env, rw, exp, oa, 1, &ioo, in echo_client_prep_commit()
1750 struct obd_export *exp, in echo_client_brw_ioctl() argument
1754 struct obd_device *obd = class_exp2obd(exp); in echo_client_brw_ioctl()
1807 echo_client_enqueue(struct obd_export *exp, struct obdo *oa, in echo_client_enqueue() argument
1810 struct echo_device *ed = obd2echo_dev(exp->exp_obd); in echo_client_enqueue()
1841 echo_client_cancel(struct obd_export *exp, struct obdo *oa) in echo_client_cancel() argument
1843 struct echo_device *ed = obd2echo_dev(exp->exp_obd); in echo_client_cancel()
1854 echo_client_iocontrol(unsigned int cmd, struct obd_export *exp, int len, in echo_client_iocontrol() argument
[all …]
/linux-4.1.27/arch/ia64/include/asm/
Dbitops.h380 long exp; in ia64_fls() local
382 exp = ia64_getf_exp(d); in ia64_fls()
383 return exp - 0xffff; in ia64_fls()
/linux-4.1.27/net/atm/
Dclip.c128 unsigned long exp = cv->last_use + cv->idle_timeout; in neigh_check_cb() local
130 if (cv->idle_timeout && time_after(jiffies, exp)) { in neigh_check_cb()
737 unsigned long exp; in atmarp_info() local
747 exp = entry->neigh->used; in atmarp_info()
749 exp = clip_vcc->last_use; in atmarp_info()
751 exp = (jiffies - exp) / HZ; in atmarp_info()
754 dev->name, svc ? "SVC" : "PVC", llc ? "LLC" : "NULL", exp); in atmarp_info()
/linux-4.1.27/arch/x86/platform/uv/
Duv_time.c202 u64 exp = head->cpu[c].expires; in uv_rtc_find_next_timer() local
203 if (exp < lowest) { in uv_rtc_find_next_timer()
205 lowest = exp; in uv_rtc_find_next_timer()
/linux-4.1.27/tools/lib/traceevent/
Dparse-filter.c213 free_arg(arg->exp.left); in free_arg()
214 free_arg(arg->exp.right); in free_arg()
462 if (op->exp.right) in add_right()
464 op->exp.right = arg; in add_right()
633 op->exp.left = arg; in add_left()
736 return arg->exp.right != NULL; in check_op_done()
834 lval = test_arg(arg, arg->exp.left, error_str); in test_arg()
837 rval = test_arg(arg, arg->exp.right, error_str); in test_arg()
1749 lval = get_arg_value(event, arg->exp.left, record, err); in get_exp_value()
1750 rval = get_arg_value(event, arg->exp.right, record, err); in get_exp_value()
[all …]
/linux-4.1.27/arch/xtensa/include/asm/
Dsyscall.h22 fd_set __user *exp, struct timespec __user *tsp,
/linux-4.1.27/arch/sh/kernel/cpu/sh4/
Dfpu.c154 int exp = 1023 - 126; in denormal_to_double() local
160 exp--; in denormal_to_double()
163 du |= (exp << 20) | (x >> 3); in denormal_to_double()
/linux-4.1.27/drivers/net/wireless/brcm80211/include/
Dbrcmu_utils.h27 #define SPINWAIT(exp, us) { \ argument
29 while ((exp) && (countdown >= 10)) {\
/linux-4.1.27/drivers/media/dvb-frontends/
Dcx24123.c443 u32 exp, nearest = 0; in cx24123_int_log2() local
448 for (exp = 1; div > exp; nearest++) in cx24123_int_log2()
449 exp += exp; in cx24123_int_log2()
Ddib9000.c2279 u32 n, s, exp; in dib9000_get_snr() local
2295 exp = ((val & 0xf) << 2); in dib9000_get_snr()
2297 exp += ((val >> 14) & 0x3); in dib9000_get_snr()
2298 if ((exp & 0x20) != 0) in dib9000_get_snr()
2299 exp -= 0x40; in dib9000_get_snr()
2300 n <<= exp + 16; in dib9000_get_snr()
2303 exp = (val & 0x3F); in dib9000_get_snr()
2304 if ((exp & 0x20) != 0) in dib9000_get_snr()
2305 exp -= 0x40; in dib9000_get_snr()
2306 s <<= exp + 16; in dib9000_get_snr()
Ddib8000.c1920 u32 ix = 0, tmp_val = 0, exp = 0, mant = 0; in dib8000_get_adc_power() local
1927 exp++; in dib8000_get_adc_power()
1928 mant = (val * 1000 / (1<<exp)); in dib8000_get_adc_power()
1930 val = (lut_1000ln_mant[ix] + 693*(exp-20) - 6908); in dib8000_get_adc_power()
3832 u32 n, s, exp; in dib8000_get_snr() local
3840 exp = (val & 0x3f); in dib8000_get_snr()
3841 if ((exp & 0x20) != 0) in dib8000_get_snr()
3842 exp -= 0x40; in dib8000_get_snr()
3843 n <<= exp+16; in dib8000_get_snr()
3850 exp = (val & 0x3f); in dib8000_get_snr()
[all …]
Ddib7000p.c2131 u32 tmp_val = 0, exp = 0, mant = 0; in dib7000p_get_adc_power() local
2143 exp++; in dib7000p_get_adc_power()
2145 mant = (pow_i * 1000 / (1 << exp)); in dib7000p_get_adc_power()
2146 dprintk(" mant = %d exp = %d", mant / 1000, exp); in dib7000p_get_adc_power()
2151 pow_i = (lut_1000ln_mant[ix] + 693 * (exp - 20) - 6908); in dib7000p_get_adc_power()
/linux-4.1.27/drivers/media/i2c/
Dsr030pc30.c162 struct v4l2_ctrl *exp; member
451 if (info->exp->is_new) { in sr030pc30_s_ctrl()
452 unsigned long expos = info->exp->val; in sr030pc30_s_ctrl()
721 info->exp = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
Dov9650.c760 static int ov965x_set_exposure(struct ov965x *ov965x, int exp) in ov965x_set_exposure() argument
764 bool auto_exposure = (exp == V4L2_EXPOSURE_AUTO); in ov965x_set_exposure()
802 v4l2_ctrl_activate(ov965x->ctrls.brightness, !exp); in ov965x_set_exposure()
/linux-4.1.27/drivers/char/
Dmmtimer.c302 u64 expires, exp, set_completion_time; in mmtimer_set_next_timer() local
324 expires = exp = t->it.mmtimer.expires; in mmtimer_set_next_timer()
333 to = ((u64)(expires - exp) / t->it.mmtimer.incr); in mmtimer_set_next_timer()
337 exp = t->it.mmtimer.expires; in mmtimer_set_next_timer()
/linux-4.1.27/net/ipv4/
Dtcp_fastopen.c309 valid_foc.exp = foc->exp; in tcp_try_fastopen()
Dtcp_metrics.c136 tm->tcpm_fastopen.cookie.exp = false; in tcpm_suck_dst()
720 cookie->exp = true; in tcp_fastopen_cache_get()
748 tfom->cookie.len <= 0 && !tfom->cookie.exp) in tcp_fastopen_cache_set()
/linux-4.1.27/arch/m68k/ifpsp060/src/
Dfpsp.S1442 cmpi.w %d0,&0x3f80 # is |exp| == $3f80?
1444 cmpi.w %d0,&0x407f # no; is |exp| == $407f?
2099 # OPERR : if ((k_factor > +17) || (dec. exp exceeds 3 digits))
6733 mov.l (%a0),%d1 # pack exp w/ upper 16 fraction
6994 # because EXPM1 is intended to evaluate exp(X)-1 #
7018 # Step 4. Approximate exp(R)-1 by a polynomial #
7025 # |p - (exp(R)-1)| < |R| * 2^(-72.7) #
7046 # Step 6. Reconstruction of exp(X)-1 #
7047 # exp(X)-1 = 2^M * ( 2^(J/64) + p - 2^(-M) ). #
7058 # Step 7. exp(X)-1 for |X| < 1/4. #
[all …]
Dfplsp.S5032 mov.l (%a0),%d1 # put exp in hi word
6692 # fp0 = exp(X) or exp(X)-1 #
6784 # Step 4. Approximate exp(R)-1 by a polynomial #
6791 # |p - (exp(R)-1)| < 2^(-68.8) for all |R| <= 0.0062. #
6799 # Step 5. Compute 2^(J/64)*exp(R) = 2^(J/64)*(1+p) by #
6811 # Step 6. Reconstruction of exp(X) #
6812 # exp(X) = 2^M * 2^(J/64) * exp(R). #
6818 # |M| <= 16380, and Scale = 2^M. Moreover, exp(X) will #
6822 # Hence, exp(X) may overflow or underflow or neither. #
6844 # Step 8. Handle exp(X) where |X| >= 16380log2. #
[all …]
/linux-4.1.27/arch/ia64/lib/
Didiv32.S58 setf.exp f7 = r2 // f7 = 2^-34
/linux-4.1.27/arch/powerpc/perf/
Dpower8-pmu.c362 unsigned int cmp, exp; in power8_get_constraint() local
365 exp = cmp >> 7; in power8_get_constraint()
367 if (exp && (cmp & 0x60) == 0) in power8_get_constraint()
/linux-4.1.27/arch/sh/math-emu/
Dmath.c481 int exp = 1023 - 126; in denormal_to_double() local
487 exp--; in denormal_to_double()
490 du |= (exp << 20) | (x >> 3); in denormal_to_double()
/linux-4.1.27/include/linux/
Dpoll.h160 fd_set __user *exp, struct timespec *end_time);
Dccp.h296 struct scatterlist *exp; member
Dmpi.h118 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod);
Dtcp.h61 bool exp; /* In RFC6994 experimental option format */ member
Dcompat.h365 compat_ulong_t __user *outp, compat_ulong_t __user *exp,
542 compat_ulong_t __user *exp,
Dsched.h160 #define CALC_LOAD(load,exp,n) \ argument
161 load *= exp; \
162 load += n*(FIXED_1-exp); \
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dxattr_cache.c292 struct obd_export *exp = sbi->ll_md_exp; in ll_xattr_find_get_lock() local
322 rc = md_enqueue(exp, &einfo, oit, op_data, &lockh, NULL, 0, NULL, 0); in ll_xattr_find_get_lock()
Dfile.c131 struct obd_export *exp = ll_i2mdexp(inode); in ll_close_inode_openhandle() local
134 struct obd_device *obd = class_exp2obd(exp); in ll_close_inode_openhandle()
209 if (exp_connect_som(exp) && !epoch_close && in ll_close_inode_openhandle()
915 static int ll_lsm_getattr(struct lov_stripe_md *lsm, struct obd_export *exp, in ll_lsm_getattr() argument
947 rc = obd_getattr_async(exp, &oinfo, set); in ll_lsm_getattr()
1265 struct obd_export *exp = ll_i2dtexp(inode); in ll_lov_recreate() local
1300 rc = obd_create(NULL, exp, oa, &lsm2, &oti); in ll_lov_recreate()
1680 struct obd_export *exp = ll_i2dtexp(inode); in ll_do_fiemap() local
1732 rc = obd_get_info(NULL, exp, sizeof(fm_key), &fm_key, &vallen, in ll_do_fiemap()
1744 struct obd_export *exp = ll_i2mdexp(inode); in ll_fid2path() local
[all …]
Ddir.c147 struct obd_export *exp = ll_i2sbi(inode)->ll_md_exp; in ll_dir_filler() local
184 rc = md_readpage(exp, op_data, page_pool, &request); in ll_dir_filler()
1058 static int copy_and_ioctl(int cmd, struct obd_export *exp, in copy_and_ioctl() argument
1073 rc = obd_iocontrol(cmd, exp, size, copy, NULL); in copy_and_ioctl()
1739 struct obd_export *exp; in ll_dir_ioctl() local
1745 exp = count ? sbi->ll_md_exp : sbi->ll_dt_exp; in ll_dir_ioctl()
1747 rc = obd_get_info(NULL, exp, sizeof(KEY_TGT_COUNT), in ll_dir_ioctl()
Dllite_internal.h1420 static inline void ll_set_lock_data(struct obd_export *exp, struct inode *inode, in ll_set_lock_data() argument
1439 md_set_lock_data(exp, &handle.cookie, inode, NULL); in ll_set_lock_data()
1448 md_set_lock_data(exp, &handle.cookie, inode, in ll_set_lock_data()
Dllite_lib.c2082 struct obd_export *exp; in ll_obd_statfs() local
2121 exp = sbi->ll_md_exp; in ll_obd_statfs()
2123 exp = sbi->ll_dt_exp; in ll_obd_statfs()
2130 rc = obd_iocontrol(IOC_OBD_STATFS, exp, len, buf, &flags); in ll_obd_statfs()
/linux-4.1.27/mm/
Dmempool.c47 u8 exp = (i < size - 1) ? POISON_FREE : POISON_END; in __check_element() local
49 if (obj[i] != exp) { in __check_element()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Ddebug.h213 static inline void RT_ASSERT(int exp, const char *fmt, ...) in RT_ASSERT() argument
/linux-4.1.27/Documentation/arm/nwfpe/
DNOTES1 There seems to be a problem with exp(double) and our emulator. I haven't
/linux-4.1.27/net/bluetooth/
Dsmp.c3331 const u8 exp[3] = { 0xaa, 0xfb, 0x0d }; in test_ah() local
3339 if (memcmp(res, exp, 3)) in test_ah()
3359 const u8 exp[16] = { in test_c1() local
3369 if (memcmp(res, exp, 16)) in test_c1()
3384 const u8 exp[16] = { in test_s1() local
3394 if (memcmp(res, exp, 16)) in test_s1()
3416 const u8 exp[16] = { in test_f4() local
3426 if (memcmp(res, exp, 16)) in test_f4()
3486 const u8 exp[16] = { in test_f6() local
3496 if (memcmp(res, exp, 16)) in test_f6()
[all …]
/linux-4.1.27/drivers/block/drbd/
Ddrbd_int.h149 #define D_ASSERT(device, exp) do { \ argument
150 if (!(exp)) \
151 drbd_err(device, "ASSERT( " #exp " ) in %s:%d\n", __FILE__, __LINE__); \
159 #define expect(exp) ({ \ argument
160 bool _bool = (exp); \
163 #exp, __func__); \
/linux-4.1.27/arch/powerpc/boot/dts/fsl/
De500mc_power_isa.dtsi50 power-isa-exp; // External Proxy
De5500_power_isa.dtsi50 power-isa-exp; // External Proxy
De6500_power_isa.dtsi50 power-isa-exp; // External Proxy
/linux-4.1.27/Documentation/
Dcpu-load.txt9 Linux 2.6.18.3-exp (linmac) 02/20/2007
/linux-4.1.27/drivers/crypto/ccp/
Dccp-ops.c1568 struct ccp_dm_workarea exp, src; in ccp_run_rsa_cmd() local
1577 if (!rsa->exp || !rsa->mod || !rsa->src || !rsa->dst) in ccp_run_rsa_cmd()
1604 ret = ccp_init_dm_workarea(&exp, cmd_q, o_len, DMA_TO_DEVICE); in ccp_run_rsa_cmd()
1608 ccp_reverse_set_dm_area(&exp, rsa->exp, rsa->exp_len, CCP_KSB_BYTES, in ccp_run_rsa_cmd()
1610 ret = ccp_copy_to_ksb(cmd_q, &exp, op.jobid, op.ksb_key, in ccp_run_rsa_cmd()
1664 ccp_dm_free(&exp); in ccp_run_rsa_cmd()
/linux-4.1.27/arch/frv/include/asm/
Dmath-emu.h88 unsigned short exp; member
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.h267 u8 exp; member
/linux-4.1.27/arch/m68k/include/asm/
Dmath-emu.h88 unsigned short exp; member
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dsvga3d_surfacedefs.h202 type exp; \
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
Dmce.c311 static void mce_panic(const char *msg, struct mce *final, char *exp) in mce_panic() argument
361 if (exp) in mce_panic()
362 pr_emerg(HW_ERR "Machine check: %s\n", exp); in mce_panic()
/linux-4.1.27/arch/powerpc/boot/dts/
Dmpc8349emitx.dts397 0x2 0x0 0xf9000000 0x200000 /* exp slot */

12