/freebsd/lib/librt/ |
H A D | sigev_thread.c | 193 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 D | aio.c | 64 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 D | timer.c | 69 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 D | mq.c | 109 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 D | sample.c | 178 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/lib/msun/src/ |
H A D | s_sincosf.c | 34 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 D | s_sincos.c | 24 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 D | s_sincosl.c | 47 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 D | e_powf.c | 59 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 D | k_sincosl.h | 48 __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 D | main.c | 113 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 D | ffs_snapshot.c | 216 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 != NULL && copy_fs != NULL), in ffs_snapshot() [all …]
|
/freebsd/crypto/openssl/crypto/objects/ |
H A D | obj_dat.pl | 46 # 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 D | obj_dat.c | 24 DECLARE_OBJ_BSEARCH_CMP_FN(const ASN1_OBJECT *, unsigned int, sn); 43 return strcmp((*a)->sn, nid_objs[*b].sn); in sn_cmp() 46 IMPLEMENT_OBJ_BSEARCH_CMP_FN(const ASN1_OBJECT *, unsigned int, sn); 71 ret = OPENSSL_LH_strhash(a->sn); in added_obj_hash() 105 if (a->sn == NULL) in added_obj_cmp() 107 else if (b->sn == NULL) in added_obj_cmp() 110 return strcmp(a->sn, b->sn); in added_obj_cmp() 190 if (o->sn != NULL) in OBJ_add_object() 260 return nid_objs[n].sn; in OBJ_nid2sn() 274 return adp->obj->sn; in OBJ_nid2sn() [all …]
|
H A D | obj_lib.c | 47 if (o->sn != NULL && (r->sn = OPENSSL_strdup(o->sn)) == NULL) in OBJ_dup()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | PDBFileBuilder.cpp | 146 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 D | ARMInstrVFP.td | 432 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/sys/netpfil/pf/ |
H A D | pf_lb.c | 228 uint16_t high, struct pf_ksrc_node **sn, struct pf_srchash **sh, in pf_get_sport() argument 255 if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR && in pf_get_sport() 257 *sn = pf_find_src_node(saddr, r, af, sh, false); in pf_get_sport() 258 if (*sn != NULL) in pf_get_sport() 259 PF_SRC_NODE_UNLOCK(*sn); in pf_get_sport() 268 if (pf_map_addr_sn(af, r, saddr, naddr, NULL, &init_addr, sn, sh)) in pf_get_sport() 389 (*sn) = NULL; in pf_get_sport() 390 if (pf_map_addr_sn(af, r, saddr, naddr, NULL, &init_addr, sn, sh)) in pf_get_sport() 419 struct pf_ksrc_node **sn, struct pf_srchash **sh, in pf_get_mape_sport() argument 440 naddr, nport, low, low | highmask, sn, sh, udp_mapping)) in pf_get_mape_sport() [all …]
|
/freebsd/usr.bin/cmp/tests/ |
H A D | cmp_test2.sh | 109 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 D | graph.c | 16 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/sys/contrib/dev/iwlwifi/mvm/ |
H A D | rxmq.c | 754 u16 nssn, sn; in iwl_mvm_del_ba() 811 sn = (reorder & IWL_RX_MPDU_REORDER_SN_MASK) >> in iwl_mvm_release_frames_from_notif() 836 if (!buffer->num_stored && ieee80211_sn_less(sn, nssn)) { in iwl_mvm_nssn_sync() 839 /* No need to update AMSDU last SN - we are moving the head */ in iwl_mvm_rx_queue_notif() 845 * release immediately if there are no stored frames, and the sn is in iwl_mvm_rx_queue_notif() 852 if (!buffer->num_stored && sn == buffer->head_sn) { in iwl_mvm_rx_queue_notif() 856 /* No need to update AMSDU last SN - we are moving the head */ in iwl_mvm_rx_queue_notif() 862 index = sn % baid_data->buf_size; in iwl_mvm_rx_queue_notif() 867 buffer->last_amsdu = sn; in iwl_mvm_rx_queue_notif() 875 * Example: reorder buffer contains SN in iwl_mvm_rx_queue_notif() 677 u16 sn = 0, index = 0; iwl_mvm_reorder_timer_expired() local 973 u16 nssn, sn; iwl_mvm_reorder() local [all...] |
/freebsd/sys/dev/mlx4/ |
H A D | cq.h | 143 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/contrib/llvm-project/compiler-rt/lib/ctx_profile/tests/ |
H A D | CtxInstrProfilingTest.cpp | 198 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/crypto/openssl/crypto/asn1/ |
H A D | a_object.c | 320 OPENSSL_free((char *)ret->sn); in ossl_c2i_ASN1_OBJECT() 327 ret->sn = NULL; in ossl_c2i_ASN1_OBJECT() 366 OPENSSL_free((void*)a->sn); in ASN1_OBJECT_free() 369 a->sn = a->ln = NULL; in ASN1_OBJECT_free() 381 const char *sn, const char *ln) in ASN1_OBJECT_create() argument 385 o.sn = sn; in ASN1_OBJECT_create()
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_parser.c | 653 print_src_node(struct pfctl_src_node *sn, int opts) in print_src_node() argument 659 if (sn->af == AF_INET) in print_src_node() 664 aw.v.a.addr = sn->addr; in print_src_node() 665 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node() 667 aw.v.a.addr = sn->raddr; in print_src_node() 668 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node() 669 printf(" ( states %u, connections %u, rate %u.%u/%us )\n", sn->states, in print_src_node() 670 sn->conn, sn->conn_rate.count / 1000, in print_src_node() 671 (sn->conn_rate.count % 1000) / 100, sn->conn_rate.seconds); in print_src_node() 673 sec = sn->creation % 60; in print_src_node() [all …]
|