/Linux-v4.19/arch/powerpc/kernel/ |
D | vecemu.c | 40 int exp, pwr; in eexp2() local 44 exp = ((s >> 23) & 0xff) - 127; in eexp2() 45 if (exp > 7) { in eexp2() 47 if (exp == 128 && (s & 0x7fffff) != 0) in eexp2() 52 if (exp < -23) in eexp2() 57 if (exp > 0) in eexp2() 58 pwr <<= exp; in eexp2() 60 pwr >>= -exp; in eexp2() 65 exp = (pwr >> 23) + 126; in eexp2() 66 if (exp >= 254) in eexp2() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_expect.c | 48 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, in nf_ct_unlink_expect_report() argument 51 struct nf_conn_help *master_help = nfct_help(exp->master); in nf_ct_unlink_expect_report() 52 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() 60 hlist_del_rcu(&exp->lnode); in nf_ct_unlink_expect_report() 61 master_help->expecting[exp->class]--; in nf_ct_unlink_expect_report() 63 nf_ct_expect_event_report(IPEXP_DESTROY, exp, portid, report); in nf_ct_unlink_expect_report() 64 nf_ct_expect_put(exp); in nf_ct_unlink_expect_report() 72 struct nf_conntrack_expect *exp = from_timer(exp, t, timeout); in nf_ct_expectation_timed_out() local [all …]
|
D | nf_nat_amanda.c | 32 struct nf_conntrack_expect *exp) in help() argument 38 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 39 exp->dir = IP_CT_DIR_ORIGINAL; in help() 43 exp->expectfn = nf_nat_follow_master; in help() 46 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 49 exp->tuple.dst.u.tcp.port = htons(port); in help() 50 res = nf_ct_expect_related(exp); in help() 60 nf_ct_helper_log(skb, exp->master, "all ports in use"); in help() 65 if (!nf_nat_mangle_udp_packet(skb, exp->master, ctinfo, in help() 68 nf_ct_helper_log(skb, exp->master, "cannot mangle packet"); in help() [all …]
|
D | nf_conntrack_broadcast.c | 27 struct nf_conntrack_expect *exp; in nf_conntrack_broadcast_help() local 55 exp = nf_ct_expect_alloc(ct); in nf_conntrack_broadcast_help() 56 if (exp == NULL) in nf_conntrack_broadcast_help() 59 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help() 60 exp->tuple.src.u.udp.port = help->helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help() 62 exp->mask.src.u3.ip = mask; in nf_conntrack_broadcast_help() 63 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help() 65 exp->expectfn = NULL; in nf_conntrack_broadcast_help() 66 exp->flags = NF_CT_EXPECT_PERMANENT; in nf_conntrack_broadcast_help() 67 exp->class = NF_CT_EXPECT_CLASS_DEFAULT; in nf_conntrack_broadcast_help() [all …]
|
D | nf_nat_irc.c | 36 struct nf_conntrack_expect *exp) in help() argument 39 struct nf_conn *ct = exp->master; in help() 46 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 47 exp->dir = IP_CT_DIR_REPLY; in help() 48 exp->expectfn = nf_nat_follow_master; in help() 51 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 54 exp->tuple.dst.u.tcp.port = htons(port); in help() 55 ret = nf_ct_expect_related(exp); in help() 90 nf_ct_unexpect_related(exp); in help()
|
D | nf_nat_tftp.c | 23 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()
|
D | nf_nat_ftp.c | 67 struct nf_conntrack_expect *exp) in nf_nat_ftp() argument 72 struct nf_conn *ct = exp->master; in nf_nat_ftp() 80 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp() 81 exp->dir = !dir; in nf_nat_ftp() 85 exp->expectfn = nf_nat_follow_master; in nf_nat_ftp() 88 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in nf_nat_ftp() 91 exp->tuple.dst.u.tcp.port = htons(port); in nf_nat_ftp() 92 ret = nf_ct_expect_related(exp); in nf_nat_ftp() 121 nf_ct_unexpect_related(exp); in nf_nat_ftp()
|
D | nf_conntrack_tftp.c | 37 struct nf_conntrack_expect *exp) __read_mostly; 47 struct nf_conntrack_expect *exp; in tftp_help() local 64 exp = nf_ct_expect_alloc(ct); in tftp_help() 65 if (exp == NULL) { in tftp_help() 70 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, in tftp_help() 76 nf_ct_dump_tuple(&exp->tuple); in tftp_help() 80 ret = nf_nat_tftp(skb, ctinfo, exp); in tftp_help() 81 else if (nf_ct_expect_related(exp) != 0) { in tftp_help() 85 nf_ct_expect_put(exp); in tftp_help()
|
D | nf_conntrack_h323_main.c | 89 struct nf_conntrack_expect *exp) __read_mostly; 96 struct nf_conntrack_expect *exp) __read_mostly; 103 struct nf_conntrack_expect *exp) __read_mostly; 109 __be16 port, struct nf_conntrack_expect *exp) 340 struct nf_conntrack_expect *exp; in expect_t120() local 350 if ((exp = nf_ct_expect_alloc(ct)) == NULL) in expect_t120() 352 nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_t120() 356 exp->flags = NF_CT_EXPECT_PERMANENT; /* Accept multiple channels */ in expect_t120() 366 port, exp); in expect_t120() 368 if (nf_ct_expect_related(exp) == 0) { in expect_t120() [all …]
|
D | nf_conntrack_netlink.c | 2564 struct nf_conntrack_expect *exp; in ctnetlink_glue_attach_expect() local 2586 exp = ctnetlink_alloc_expect((const struct nlattr * const *)cda, ct, in ctnetlink_glue_attach_expect() 2588 if (IS_ERR(exp)) in ctnetlink_glue_attach_expect() 2589 return PTR_ERR(exp); in ctnetlink_glue_attach_expect() 2591 err = nf_ct_expect_related_report(exp, portid, report); in ctnetlink_glue_attach_expect() 2592 nf_ct_expect_put(exp); in ctnetlink_glue_attach_expect() 2680 const struct nf_conntrack_expect *exp) in ctnetlink_exp_dump_expect() argument 2682 struct nf_conn *master = exp->master; in ctnetlink_exp_dump_expect() 2683 long timeout = ((long)exp->timeout.expires - (long)jiffies) / HZ; in ctnetlink_exp_dump_expect() 2694 if (ctnetlink_exp_dump_tuple(skb, &exp->tuple, CTA_EXPECT_TUPLE) < 0) in ctnetlink_exp_dump_expect() [all …]
|
/Linux-v4.19/arch/m68k/math-emu/ |
D | fp_arith.c | 22 .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 …]
|
D | fp_log.c | 22 .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 …]
|
/Linux-v4.19/fs/nfsd/ |
D | nfsfh.c | 29 struct svc_export *exp = expv; in nfsd_acceptable() local 34 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable() 38 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable() 50 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable() 52 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable() 101 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 103 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 114 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() 118 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument 120 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root() [all …]
|
D | export.c | 312 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local 313 path_put(&exp->ex_path); in svc_export_put() 314 auth_domain_put(exp->ex_client); in svc_export_put() 315 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put() 316 kfree(exp->ex_uuid); in svc_export_put() 317 kfree(exp); in svc_export_put() 325 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local 328 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request() 329 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request() 446 static int secinfo_parse(char **mesg, char *buf, struct svc_export *exp) in secinfo_parse() argument [all …]
|
D | export.h | 80 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument 81 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument 82 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument 84 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp); 85 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp); 103 static inline void exp_put(struct svc_export *exp) in exp_put() argument 105 cache_put(&exp->h, exp->cd); in exp_put() 108 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument 110 cache_get(&exp->h); in exp_get() 111 return exp; in exp_get()
|
D | auth.c | 8 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() 43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 52 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() [all …]
|
/Linux-v4.19/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx_hdcs.c | 86 } exp; member 186 u8 exp[14]; in hdcs_set_exposure() local 190 ct = hdcs->exp.cto + hdcs->psmp + (HDCS_ADC_START_SIG_DUR + 2); in hdcs_set_exposure() 191 cp = hdcs->exp.cto + (hdcs->w * ct / 2); in hdcs_set_exposure() 194 rp = hdcs->exp.rs + cp; in hdcs_set_exposure() 204 srowexp = hdcs->w - (cycles + hdcs->exp.er + 13) / ct; in hdcs_set_exposure() 206 mnct = (hdcs->exp.er + 12 + ct - 1) / ct; in hdcs_set_exposure() 210 srowexp = cp - hdcs->exp.er - 6 - cycles; in hdcs_set_exposure() 212 mnct = (hdcs->exp.er + 5 + ct - 1) / ct; in hdcs_set_exposure() 222 exp[0] = HDCS20_CONTROL; in hdcs_set_exposure() [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/sh2a/ |
D | fpu.c | 101 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-v4.19/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 98 int exp = 0; in simple_div() local 110 exp++; in simple_div() 112 *micro_frac = (rem / divisor) * pow_10(6-exp); in simple_div() 116 static void split_micro_fraction(unsigned int no, int exp, int *val1, int *val2) in split_micro_fraction() argument 118 *val1 = no/pow_10(exp); in split_micro_fraction() 119 *val2 = no%pow_10(exp) * pow_10(6-exp); in split_micro_fraction() 130 static void convert_from_vtf_format(u32 value, int size, int exp, in convert_from_vtf_format() argument 139 exp = hid_sensor_convert_exponent(exp); in convert_from_vtf_format() 140 if (exp >= 0) { in convert_from_vtf_format() 141 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format() [all …]
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 285 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 …]
|
/Linux-v4.19/lib/ |
D | test_bitmap.c | 215 static const unsigned long exp[] __initconst = { variable 238 {0, "0", &exp[0], 8, 0}, 239 {0, "1", &exp[1 * step], 8, 0}, 240 {0, "0-15", &exp[2 * step], 32, 0}, 241 {0, "16-31", &exp[3 * step], 32, 0}, 242 {0, "0-31:1/2", &exp[4 * step], 32, 0}, 243 {0, "1-31:1/2", &exp[5 * step], 32, 0}, 244 {0, "0-31:1/4", &exp[6 * step], 32, 0}, 245 {0, "1-31:1/4", &exp[7 * step], 32, 0}, 246 {0, "0-31:4/4", &exp[8 * step], 32, 0}, [all …]
|
/Linux-v4.19/include/net/netfilter/ |
D | nf_conntrack_expect.h | 63 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net() argument 65 return nf_ct_net(exp->master); in nf_ct_exp_net() 100 void nf_ct_unlink_expect_report(struct nf_conntrack_expect *exp, 102 static inline void nf_ct_unlink_expect(struct nf_conntrack_expect *exp) in nf_ct_unlink_expect() argument 104 nf_ct_unlink_expect_report(exp, 0, 0); in nf_ct_unlink_expect() 108 void nf_ct_unexpect_related(struct nf_conntrack_expect *exp); 109 bool nf_ct_remove_expect(struct nf_conntrack_expect *exp); 123 void nf_ct_expect_put(struct nf_conntrack_expect *exp);
|
/Linux-v4.19/arch/x86/math-emu/ |
D | reg_ld_str.c | 39 static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) in normalize_no_excep() argument 43 setexponent16(r, exp); in normalize_no_excep() 55 int exp; in FPU_tagof() local 57 exp = exponent16(ptr) & 0x7fff; in FPU_tagof() 58 if (exp == 0) { in FPU_tagof() 66 if (exp == 0x7fff) { in FPU_tagof() 97 int exp, tag, negative; in FPU_load_double() local 107 exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias + EXTENDED_Ebias; in FPU_load_double() 109 if (exp > DOUBLE_Emax + EXTENDED_Ebias) { in FPU_load_double() 115 exp = EXP_Infinity + EXTENDED_Ebias; in FPU_load_double() [all …]
|
D | fpu_emu.h | 121 short exp; member 172 *(short *)&(y->exp) = *(const short *)&(x->exp); in reg_copy() 176 #define exponent(x) (((*(short *)&((x)->exp)) & 0x7fff) - EXTENDED_Ebias) 177 #define setexponentpos(x,y) { (*(short *)&((x)->exp)) = \ 179 #define exponent16(x) (*(short *)&((x)->exp)) 180 #define setexponent16(x,y) { (*(short *)&((x)->exp)) = (y); } 181 #define addexponent(x,y) { (*(short *)&((x)->exp)) += (y); } 182 #define stdexp(x) { (*(short *)&((x)->exp)) += EXTENDED_Ebias; }
|
/Linux-v4.19/drivers/media/rc/img-ir/ |
D | img-ir-sharp.c | 18 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()
|