Home
last modified time | relevance | path

Searched full:sn (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/freebsd/lib/librt/
H A Dsigev_thread.c193 struct sigev_node *sn; in __sigev_alloc() local
195 sn = calloc(1, sizeof(*sn)); in __sigev_alloc()
196 if (sn != NULL) { in __sigev_alloc()
197 sn->sn_value = evp->sigev_value; in __sigev_alloc()
198 sn->sn_func = evp->sigev_notify_function; in __sigev_alloc()
199 sn->sn_gen = atomic_fetch_add_explicit(&sigev_generation, 1, in __sigev_alloc()
201 sn->sn_type = type; in __sigev_alloc()
202 _pthread_attr_init(&sn->sn_attr); in __sigev_alloc()
203 _pthread_attr_setdetachstate(&sn->sn_attr, PTHREAD_CREATE_DETACHED); in __sigev_alloc()
205 attrcopy(evp->sigev_notify_attributes, &sn->sn_attr); in __sigev_alloc()
[all …]
H A Daio.c64 aio_dispatch(struct sigev_node *sn) in aio_dispatch() argument
66 aio_func f = sn->sn_func; in aio_dispatch()
68 f(sn->sn_value, (struct aiocb *)sn->sn_id); in aio_dispatch()
73 struct sigev_node **sn, struct sigevent *saved_ev) in aio_sigev_alloc() argument
81 *sn = __sigev_alloc(SI_ASYNCIO, sigevent, NULL, 1); in aio_sigev_alloc()
82 if (*sn == NULL) { in aio_sigev_alloc()
88 (*sn)->sn_id = id; in aio_sigev_alloc()
89 __sigev_get_sigevent(*sn, sigevent, (*sn)->sn_id); in aio_sigev_alloc()
90 (*sn)->sn_dispatch = aio_dispatch; in aio_sigev_alloc()
93 __sigev_register(*sn); in aio_sigev_alloc()
[all …]
H A Dtimer.c69 timer_dispatch(struct sigev_node *sn) in timer_dispatch() argument
71 timer_func f = sn->sn_func; in timer_dispatch()
74 if (sn->sn_info.si_value.sival_int == sn->sn_gen) in timer_dispatch()
75 f(sn->sn_value, sn->sn_info.si_overrun); in timer_dispatch()
83 struct sigev_node *sn; in __timer_create() local
109 sn = __sigev_alloc(SI_TIMER, evp, NULL, 0); in __timer_create()
110 if (sn == NULL) { in __timer_create()
116 __sigev_get_sigevent(sn, &ev, sn->sn_gen); in __timer_create()
120 __sigev_free(sn); in __timer_create()
125 sn->sn_flags |= SNF_SYNC; in __timer_create()
[all …]
H A Dmq.c109 mq_dispatch(struct sigev_node *sn) in __mq_close()
111 mq_func f = sn->sn_func; in __mq_close()
117 if (sn->sn_gen == sn->sn_info.si_value.sival_int)
118 f(sn->sn_value);
125 struct sigev_node *sn; in mq_dispatch()
146 sn = __sigev_alloc(SI_MESGQ, evp, mqd->node, 1); in __mq_notify()
147 if (sn == NULL) { in __mq_notify()
152 sn->sn_id = mqd->oshandle; in __mq_notify()
153 sn in __mq_notify()
121 mq_dispatch(struct sigev_node * sn) mq_dispatch() argument
137 struct sigev_node *sn; __mq_notify() local
[all...]
/freebsd/sys/dev/ath/ath_rate/sample/
H A Dsample.c178 struct sample_node *sn = ATH_NODE_SAMPLE(an); in ath_rate_sample_find_min_pktlength() local
179 const struct txschedule *sched = &sn->sched[rix0]; in ath_rate_sample_find_min_pktlength()
317 struct sample_node *sn = ATH_NODE_SAMPLE(an); in pick_best_rate() local
325 for (mask = sn->ratemask, rix = 0; mask != 0; mask >>= 1, rix++) { in pick_best_rate()
335 tt = sn->stats[size_bin][rix].average_tx_time; in pick_best_rate()
338 !sn->stats[size_bin][rix].packets_acked)) in pick_best_rate()
342 if (sn->stats[size_bin][rix].total_packets > 0) { in pick_best_rate()
343 pct = sn->stats[size_bin][rix].ewma_pct; in pick_best_rate()
349 if (sn->stats[size_bin][rix].successive_failures > 3) in pick_best_rate()
371 sn->stats[size_bin][best_rate_rix].total_packets, in pick_best_rate()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mld/tests/
H A Dagg.c31 u16 sn; member
47 u16 sn; member
50 * appropriate reorder buffer entry (based on the @sn)
114 .desc = "RX old SN packet, reorder buffer is not yet valid",
124 * SN. The packet is passed to the network stack
131 .desc = "RX old SN packet, reorder buffer valid",
141 /* The buffer is valid and the RX packet has an old SN.
167 .desc = "RX In-order packet, sn < nssn",
170 .sn = 100,
179 * 2. RX packet SN is in order and less than NSSN.
[all …]
/freebsd/lib/msun/src/
H A Ds_sincosf.c34 sincosf(float x, float *sn, float *cs) in sincosf() argument
46 *sn = x; /* x with inexact if x != 0 */ in sincosf()
51 __kernel_sincosdf(x, sn, cs); in sincosf()
58 __kernel_sincosdf(x - p1pio2, cs, sn); in sincosf()
61 __kernel_sincosdf(x + p1pio2, cs, sn); in sincosf()
62 *sn = -*sn; in sincosf()
66 __kernel_sincosdf(x - p2pio2, sn, cs); in sincosf()
68 __kernel_sincosdf(x + p2pio2, sn, cs); in sincosf()
69 *sn = -*sn; in sincosf()
78 __kernel_sincosdf(x - p3pio2, cs, sn); in sincosf()
[all …]
H A Ds_sincos.c24 sincos(double x, double *sn, double *cs) in sincos() argument
37 *sn = x; in sincos()
42 __kernel_sincos(x, 0, 0, sn, cs); in sincos()
48 *sn = x - x; in sincos()
58 __kernel_sincos(y[0], y[1], 1, sn, cs); in sincos()
61 __kernel_sincos(y[0], y[1], 1, cs, sn); in sincos()
65 __kernel_sincos(y[0], y[1], 1, sn, cs); in sincos()
66 *sn = -*sn; in sincos()
70 __kernel_sincos(y[0], y[1], 1, cs, sn); in sincos()
71 *sn = -*sn; in sincos()
H A Ds_sincosl.c47 sincosl(long double x, long double *sn, long double *cs) in sincosl() argument
65 *sn = x; in sincosl()
68 __kernel_sincosl(x, 0, 0, sn, cs); in sincosl()
74 *sn = x - x; in sincosl()
84 __kernel_sincosl(y[0], y[1], 1, sn, cs); in sincosl()
87 __kernel_sincosl(y[0], y[1], 1, cs, sn); in sincosl()
91 __kernel_sincosl(y[0], y[1], 1, sn, cs); in sincosl()
92 *sn = -*sn; in sincosl()
96 __kernel_sincosl(y[0], y[1], 1, cs, sn); in sincosl()
97 *sn = -*sn; in sincosl()
H A De_powf.c59 float y1,t1,t2,r,s,sn,t,u,v,w; in powf() local
130 sn = one; /* s (sign of result -ve**odd) = -1 else = 1 */ in powf()
131 if((n|(yisint-1))==0) sn = -one;/* (-ve)**(odd int) */ in powf()
136 if(ix<0x3f7ffff6) return (hy<0)? sn*huge*huge:sn*tiny*tiny; in powf()
137 if(ix>0x3f800007) return (hy>0)? sn*huge*huge:sn*tiny*tiny; in powf()
210 return sn*huge*huge; /* overflow */ in powf()
212 if(p_l+ovt>z-p_h) return sn*huge*huge; /* overflow */ in powf()
215 return sn*tin in powf()
[all...]
H A Dk_sincosl.h48 __kernel_sincosl(long double x, long double y, int iy, long double *sn, in __kernel_sincosl() argument
62 *sn = x + v * (S1 + z * r); in __kernel_sincosl()
64 *sn = x - ((z * (y / 2 - v * r) - y) - v * S1); in __kernel_sincosl()
106 __kernel_sincosl(long double x, long double y, int iy, long double *sn, in __kernel_sincosl() argument
121 *sn = x + v * (S1 + z * r); in __kernel_sincosl()
123 *sn = x - ((z * (y / 2 - v * r) - y) - v * S1); in __kernel_sincosl()
/freebsd/tools/tools/ath/athratestats/
H A Dmain.c113 struct sample_node *sn) in ath_sample_stats() argument
119 sn->static_rix, in ath_sample_stats()
120 (long long) sn->ratemask); in ath_sample_stats()
127 dot11rate(rt, sn->current_rix[y]), in ath_sample_stats()
128 dot11str(rt, sn->current_rix[y]), in ath_sample_stats()
129 sn->packets_since_switch[y], in ath_sample_stats()
130 sn->ticks_since_switch[y]); in ath_sample_stats()
134 dot11rate(rt, sn->last_sample_rix[y]), in ath_sample_stats()
135 dot11str(rt, sn->last_sample_rix[y]), in ath_sample_stats()
136 dot11rate(rt, sn->current_sample_rix[y]), in ath_sample_stats()
[all …]
/freebsd/sys/ufs/ffs/
H A Dffs_snapshot.c216 struct snapdata *sn; in ffs_snapshot() local
224 sn = NULL; in ffs_snapshot()
670 sn = ffs_snapdata_acquire(devvp); in ffs_snapshot()
675 vp->v_vnlock = &sn->sn_lock; in ffs_snapshot()
677 xp = TAILQ_FIRST(&sn->sn_head); in ffs_snapshot()
702 if (sn->sn_blklist != NULL) in ffs_snapshot()
704 sn->sn_blklist = snapblklist; in ffs_snapshot()
705 sn->sn_listsize = blkp - snapblklist; in ffs_snapshot()
717 TAILQ_INSERT_TAIL(&sn->sn_head, ip, i_nextsnap); in ffs_snapshot()
728 KASSERT(error != 0 || (sn ! in ffs_snapshot()
1604 struct snapdata *sn; ffs_snapgone() local
1655 struct snapdata *sn; ffs_snapremove() local
1791 struct snapdata *sn; ffs_snapblkfree() local
2000 struct snapdata *sn; ffs_snapshot_mount() local
2136 struct snapdata *sn; ffs_snapshot_unmount() local
2170 struct snapdata *sn; ffs_bp_snapblk() local
2276 struct snapdata *sn; ffs_copyonwrite() local
2493 struct snapdata *sn; ffs_sync_snap() local
2605 struct snapdata *sn; ffs_snapdata_alloc() local
2633 ffs_snapdata_free(struct snapdata * sn) ffs_snapdata_free() argument
2644 struct snapdata *sn; try_free_snapdata() local
2677 revert_snaplock(struct vnode * vp,struct vnode * devvp,struct snapdata * sn) revert_snaplock() argument
2708 struct snapdata *nsn, *sn; ffs_snapdata_acquire() local
[all...]
/freebsd/crypto/openssl/crypto/objects/
H A Dobj_dat.pl46 # Populate %ln and %sn with long and short names (%dupln and %dupsn)
50 my %sn;
69 $sn{$1} = $d;
118 my $sn = defined $sn{$nid{$i}} ? "$sn{$nid{$i}}" : "NULL";
120 if ($sn eq "NULL") {
121 $sn = $ln;
122 $sn{$nid{$i}} = $ln;
125 $ln = $sn;
126 $ln{$nid{$i}} = $sn;
129 my $out = " {\"$sn\", \"$ln\", NID_$nid{$i}";
[all …]
H A Dobj_dat.c26 DECLARE_OBJ_BSEARCH_CMP_FN(const ASN1_OBJECT *, unsigned int, sn);
109 return strcmp((*a)->sn, nid_objs[*b].sn); in sn_cmp()
112 IMPLEMENT_OBJ_BSEARCH_CMP_FN(const ASN1_OBJECT *, unsigned int, sn);
137 ret = OPENSSL_LH_strhash(a->sn); in added_obj_hash()
171 if (a->sn == NULL) in added_obj_cmp()
173 else if (b->sn == NULL) in added_obj_cmp()
176 return strcmp(a->sn, b->sn); in added_obj_cmp()
275 || (o->sn != NULL in ossl_obj_add_object()
360 return ob == NULL ? NULL : ob->sn; in OBJ_nid2sn()
671 o.sn = s; in OBJ_sn2nid()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFileBuilder.cpp146 Expected<uint32_t> SN = allocateNamedStream("/LinkInfo", 0); in finalizeMsfLayout()
147 if (!SN) in finalizeMsfLayout()
148 return SN.takeError(); in finalizeMsfLayout()
167 SN = allocateNamedStream("/names", StringsLen); in finalizeMsfLayout()
168 if (!SN) in finalizeMsfLayout()
169 return SN.takeError(); in finalizeMsfLayout()
207 SN = allocateNamedStream("/src/headerblock", SrcHeaderBlockSize); in finalizeMsfLayout()
208 if (!SN) in finalizeMsfLayout()
209 return SN.takeError(); in finalizeMsfLayout()
211 SN in finalizeMsfLayout()
144 Expected<uint32_t> SN = allocateNamedStream("/LinkInfo", 0); finalizeMsfLayout() local
226 uint32_t SN = 0; getNamedStreamIndex() local
236 uint32_t SN = cantFail(getNamedStreamIndex("/src/headerblock")); commitSrcHeaderBlock() local
260 uint32_t SN = cantFail(getNamedStreamIndex(IS.StreamName)); commitInjectedSources() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstrVFP.td432 let TwoOperandAliasConstraint = "$Sn = $Sd" in
434 (outs SPR:$Sd), (ins SPR:$Sn, SPR:$Sm),
435 IIC_fpALU32, "vadd", ".f32\t$Sd, $Sn, $Sm",
436 [(set SPR:$Sd, (fadd SPR:$Sn, SPR:$Sm))]>,
443 let TwoOperandAliasConstraint = "$Sn = $Sd" in
445 (outs HPR:$Sd), (ins HPR:$Sn, HPR:$Sm),
446 IIC_fpALU16, "vadd", ".f16\t$Sd, $Sn, $Sm",
447 [(set (f16 HPR:$Sd), (fadd (f16 HPR:$Sn), (f16 HPR:$Sm)))]>,
457 let TwoOperandAliasConstraint = "$Sn = $Sd" in
459 (outs SPR:$Sd), (ins SPR:$Sn, SPR:$Sm),
[all …]
/freebsd/crypto/openssl/test/
H A Dx509_internal_test.c189 #undef SN in tests_X509_PURPOSE()
190 #define SN "SN_test" in tests_X509_PURPOSE() macro
192 #define ARGS(id, sn) id, X509_TRUST_MAX, 0, ck_purp, LN, sn, NULL in tests_X509_PURPOSE() argument
196 && TEST_int_eq(X509_PURPOSE_get_by_sname(SN), -1) in tests_X509_PURPOSE()
199 && TEST_int_eq(X509_PURPOSE_add(ARGS(id, SN)), 1) in tests_X509_PURPOSE()
200 && TEST_int_ne((idx = X509_PURPOSE_get_by_sname(SN)), -1) in tests_X509_PURPOSE()
204 && TEST_int_eq(X509_PURPOSE_add(ARGS(id, SN)), 1) in tests_X509_PURPOSE()
205 && TEST_int_eq(X509_PURPOSE_get_by_sname(SN), idx) in tests_X509_PURPOSE()
209 && TEST_int_eq(X509_PURPOSE_add(ARGS(X509_PURPOSE_MAX, SN)), 0) in tests_X509_PURPOSE()
211 && TEST_int_eq(X509_PURPOSE_add(ARGS(id, SN"_different")), 0) in tests_X509_PURPOSE()
[all …]
/freebsd/sys/netpfil/pf/
H A Dpf_lb.c321 struct pf_ksrc_node *sn = NULL; in pf_get_sport() local
335 sn = pf_find_src_node(&pd->nsaddr, r, in pf_get_sport()
337 if (sn != NULL) in pf_get_sport()
338 PF_SRC_NODE_UNLOCK(sn); in pf_get_sport()
539 pf_check_src_node_valid(struct pf_ksrc_node *sn, struct pf_kpool *rpool) in pf_check_src_node_valid() argument
548 KASSERT(sn != NULL, ("sn is NULL")); in pf_check_src_node_valid()
553 if (sn->type == PF_SN_LIMIT) { in pf_check_src_node_valid()
559 caddr = &(sn->raddr); in pf_check_src_node_valid()
560 caf = sn->raf; in pf_check_src_node_valid()
921 struct pf_ksrc_node *sn = NULL; in pf_map_addr_sn() local
[all …]
/freebsd/usr.bin/cmp/tests/
H A Dcmp_test2.sh109 atf_check -s exit:0 cmp -sn 4 a b
110 atf_check -s exit:0 cmp -sn 3 a b
111 atf_check -s exit:1 -o ignore cmp -sn 5 a b
115 atf_check -s exit:0 -e empty cmp -sn 4 b - <a
116 atf_check -s exit:0 -e empty cmp -sn 3 b - <a
117 atf_check -s exit:1 -o ignore cmp -sn 5 b - <a
/freebsd/contrib/byacc/
H A Dgraph.c16 int sn; in graph() local
36 sn = sp->shift[j]; in graph()
37 as = accessing_symbol[sn]; in graph()
40 i, sn, symbol_pname[as]); in graph()
/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/tests/
H A DCtxInstrProfilingTest.cpp198 const auto &SN = *Node.subContexts()[2]; in TEST_F() local
199 EXPECT_EQ(SN.guid(), 2U); in TEST_F()
200 EXPECT_EQ(SN.counters()[0], Entries); in TEST_F()
201 EXPECT_EQ(SN.counters_size(), 3U); in TEST_F()
202 EXPECT_EQ(SN.callsites_size(), 1U); in TEST_F()
203 EXPECT_EQ(SN.subContexts()[0], nullptr); in TEST_F()
/freebsd/sbin/pfctl/
H A Dpfctl_parser.c678 print_src_node(struct pfctl_src_node *sn, int opts) in print_src_node() argument
685 if (sn->af == AF_INET) in print_src_node()
690 aw.v.a.addr = sn->addr; in print_src_node()
691 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node()
693 aw.v.a.addr = sn->raddr; in print_src_node()
694 print_addr(&aw, sn->raf, opts & PF_OPT_VERBOSE2); in print_src_node()
695 printf(" ( states %u, connections %u, rate %u.%u/%us )\n", sn->states, in print_src_node()
696 sn->conn, sn->conn_rate.count / 1000, in print_src_node()
697 (sn->conn_rate.count % 1000) / 100, sn->conn_rate.seconds); in print_src_node()
699 sec = sn->creation % 60; in print_src_node()
[all …]
/freebsd/sys/dev/mlx4/
H A Dcq.h143 u32 sn; in mlx4_cq_arm() local
146 sn = cq->arm_sn & 3; in mlx4_cq_arm()
149 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx4_cq_arm()
157 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm()
/freebsd/crypto/openssl/crypto/asn1/
H A Da_object.c313 OPENSSL_free((char *)ret->sn); in ossl_c2i_ASN1_OBJECT()
320 ret->sn = NULL; in ossl_c2i_ASN1_OBJECT()
357 OPENSSL_free((void*)a->sn); in ASN1_OBJECT_free()
360 a->sn = a->ln = NULL; in ASN1_OBJECT_free()
372 const char *sn, const char *ln) in ASN1_OBJECT_create() argument
376 o.sn = sn; in ASN1_OBJECT_create()

12345678910>>...13