Home
last modified time | relevance | path

Searched refs:sn (Results 1 – 25 of 98) sorted by relevance

1234

/freebsd-9-stable/lib/librt/
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_fetchadd_int(&sigev_generation, 1); in __sigev_alloc()
200 sn->sn_type = type; in __sigev_alloc()
201 _pthread_attr_init(&sn->sn_attr); in __sigev_alloc()
202 _pthread_attr_setdetachstate(&sn->sn_attr, PTHREAD_CREATE_DETACHED); in __sigev_alloc()
204 attrcopy(evp->sigev_notify_attributes, &sn->sn_attr); in __sigev_alloc()
[all …]
Dtimer.c70 timer_dispatch(struct sigev_node *sn) in timer_dispatch() argument
72 timer_func f = sn->sn_func; in timer_dispatch()
75 if (sn->sn_info.si_value.sival_int == sn->sn_gen) in timer_dispatch()
76 f(sn->sn_value, sn->sn_info.si_overrun); in timer_dispatch()
84 struct sigev_node *sn; in __timer_create() local
110 sn = __sigev_alloc(SI_TIMER, evp, NULL, 0); in __timer_create()
111 if (sn == NULL) { in __timer_create()
117 __sigev_get_sigevent(sn, &ev, sn->sn_gen); in __timer_create()
121 __sigev_free(sn); in __timer_create()
126 sn->sn_flags |= SNF_SYNC; in __timer_create()
[all …]
Daio.c63 aio_dispatch(struct sigev_node *sn) in aio_dispatch() argument
65 aio_func f = sn->sn_func; in aio_dispatch()
67 f(sn->sn_value, (struct aiocb *)sn->sn_id); in aio_dispatch()
71 aio_sigev_alloc(struct aiocb *iocb, struct sigev_node **sn, in aio_sigev_alloc() argument
80 *sn = __sigev_alloc(SI_ASYNCIO, &iocb->aio_sigevent, NULL, 1); in aio_sigev_alloc()
81 if (*sn == NULL) { in aio_sigev_alloc()
87 (*sn)->sn_id = (sigev_id_t)iocb; in aio_sigev_alloc()
88 __sigev_get_sigevent(*sn, &iocb->aio_sigevent, (*sn)->sn_id); in aio_sigev_alloc()
89 (*sn)->sn_dispatch = aio_dispatch; in aio_sigev_alloc()
92 __sigev_register(*sn); in aio_sigev_alloc()
[all …]
Dmq.c122 mq_dispatch(struct sigev_node *sn) in mq_dispatch() argument
124 mq_func f = sn->sn_func; in mq_dispatch()
130 if (sn->sn_gen == sn->sn_info.si_value.sival_int) in mq_dispatch()
131 f(sn->sn_value); in mq_dispatch()
138 struct sigev_node *sn; in __mq_notify() local
159 sn = __sigev_alloc(SI_MESGQ, evp, mqd->node, 1); in __mq_notify()
160 if (sn == NULL) { in __mq_notify()
165 sn->sn_id = mqd->oshandle; in __mq_notify()
166 sn->sn_dispatch = mq_dispatch; in __mq_notify()
167 __sigev_get_sigevent(sn, &ev, sn->sn_gen); in __mq_notify()
[all …]
/freebsd-9-stable/sys/dev/ath/ath_rate/sample/
Dsample.c167 struct sample_node *sn = ATH_NODE_SAMPLE(an); in pick_best_rate() local
174 for (mask = sn->ratemask, rix = 0; mask != 0; mask >>= 1, rix++) { in pick_best_rate()
184 tt = sn->stats[size_bin][rix].average_tx_time; in pick_best_rate()
187 !sn->stats[size_bin][rix].packets_acked)) in pick_best_rate()
191 if (sn->stats[size_bin][rix].successive_failures > 3) in pick_best_rate()
211 struct sample_node *sn = ATH_NODE_SAMPLE(an); in pick_sample_rate() local
216 current_rix = sn->current_rix[size_bin]; in pick_sample_rate()
223 current_tt = sn->stats[size_bin][current_rix].average_tx_time; in pick_sample_rate()
225 rix = sn->last_sample_rix[size_bin]+1; /* next sample rate */ in pick_sample_rate()
226 mask = sn->ratemask &~ (1<<current_rix);/* don't sample current rate */ in pick_sample_rate()
[all …]
/freebsd-9-stable/crypto/openssl/crypto/objects/
Dobj_dat.pl65 $sn{$1}=$d;
103 $sn=defined($sn{$nid{$i}})?"$sn{$nid{$i}}":"NULL";
106 if ($sn eq "NULL") {
107 $sn=$ln;
108 $sn{$nid{$i}} = $ln;
112 $ln=$sn;
113 $ln{$nid{$i}} = $sn;
117 $out.="\"$sn\"";
150 @a=grep(defined($sn{$nid{$_}}),0 .. $n);
151 foreach (sort { $sn{$nid{$a}} cmp $sn{$nid{$b}} } @a)
[all …]
Dobj_lib.c89 r->ln = r->sn = NULL; in OBJ_dup()
98 if (o->sn != NULL) { in OBJ_dup()
101 i = strlen(o->sn) + 1; in OBJ_dup()
102 r->sn = s = OPENSSL_malloc(i); in OBJ_dup()
103 if (r->sn == NULL) in OBJ_dup()
105 memcpy(s, o->sn, i); in OBJ_dup()
Dobjects.pl80 if ($Cname ne "" && defined($sn{$module.$Cname}))
81 …{ die "objects.txt:$o:There's already an object with short name ",$sn{$module.$Cname}," on line ",…
97 $sn{$Cname} = $mysn;
202 print OUT expand("#define SN_$Cname\t\t\"$sn{$Cname}\"\n") if $sn{$Cname} ne "";
Dobj_dat.c103 return (strcmp((*ap)->sn, (*bp)->sn)); in sn_cmp()
130 ret = lh_strhash(a->sn); in add_hash()
167 if (a->sn == NULL) in add_cmp()
169 else if (b->sn == NULL) in add_cmp()
172 return (strcmp(a->sn, b->sn)); in add_cmp()
257 if (o->sn != NULL) in OBJ_add_object()
331 return (nid_objs[n].sn); in OBJ_nid2sn()
340 return (adp->obj->sn); in OBJ_nid2sn()
622 o.sn = s; in OBJ_sn2nid()
749 int OBJ_create(const char *oid, const char *sn, const char *ln) in OBJ_create() argument
[all …]
/freebsd-9-stable/sys/dev/iscsi/initiator/
Disc_sm.c185 nop_out->itt = htonl(sp->sn.itt); in _nop_out()
228 nop_out->sn.maxcmd = 0; in _nop_in()
343 if(lastcmd != sp->sn.cmd) { in ism_restart()
344 sdebug(1, "resetting CmdSN to=%d (from %d)", lastcmd, sp->sn.cmd); in ism_restart()
345 sp->sn.cmd = lastcmd; in ism_restart()
354 sdebug(2, "restarted sn.cmd=0x%x lastcmd=0x%x", sp->sn.cmd, lastcmd); in ism_restart()
369 if(sp->sn.expCmd != sn->cmd) { in ism_recv()
371 sn->expCmd, sn->cmd); in ism_recv()
375 bhs->opcode, ntohl(bhs->itt), statSN, sp->sn.maxCmd); in ism_recv()
386 if(statSN > (sp->sn.stat + 1)) { in ism_recv()
[all …]
Discsi.h153 rsp_sn_t sn; member
172 req_sn_t sn; member
189 rsp_sn_t sn; member
206 rsp_sn_t sn; member
224 rsp_sn_t sn; member
248 rsp_sn_t sn; member
265 rsp_sn_t sn; member
281 rsp_sn_t sn; member
334 rsp_sn_t sn; member
384 rsp_sn_t sn; member
Disc_soc.c370 sn_t *sn = &sp->sn; in so_recv() local
520 if(SNA_GT(max, sn->maxCmd)) in so_recv()
521 sn->maxCmd = max; in so_recv()
522 if(SNA_GT(exp, sn->expCmd)) in so_recv()
523 sn->expCmd = exp; in so_recv()
531 sp->cws = sn->maxCmd - sn->expCmd + 1; in so_recv()
/freebsd-9-stable/sys/ufs/ffs/
Dffs_snapshot.c223 struct snapdata *sn; local
228 sn = NULL;
632 sn = ffs_snapdata_acquire(devvp);
637 vp->v_vnlock = &sn->sn_lock;
639 xp = TAILQ_FIRST(&sn->sn_head);
664 if (sn->sn_blklist != NULL)
666 sn->sn_blklist = snapblklist;
667 sn->sn_listsize = blkp - snapblklist;
678 TAILQ_INSERT_TAIL(&sn->sn_head, ip, i_nextsnap);
683 KASSERT((sn != NULL && copy_fs != NULL && error == 0) ||
[all …]
/freebsd-9-stable/lib/msun/src/
De_powf.c59 float y1,t1,t2,r,s,sn,t,u,v,w; in __ieee754_powf() local
130 sn = one; /* s (sign of result -ve**odd) = -1 else = 1 */ in __ieee754_powf()
131 if((n|(yisint-1))==0) sn = -one;/* (-ve)**(odd int) */ in __ieee754_powf()
136 if(ix<0x3f7ffff8) return (hy<0)? sn*huge*huge:sn*tiny*tiny; in __ieee754_powf()
137 if(ix>0x3f800007) return (hy>0)? sn*huge*huge:sn*tiny*tiny; in __ieee754_powf()
210 return sn*huge*huge; /* overflow */ in __ieee754_powf()
212 if(p_l+ovt>z-p_h) return sn*huge*huge; /* overflow */ in __ieee754_powf()
215 return sn*tiny*tiny; /* underflow */ in __ieee754_powf()
217 if(p_l<=z-p_h) return sn*tiny*tiny; /* underflow */ in __ieee754_powf()
248 return sn*z; in __ieee754_powf()
/freebsd-9-stable/contrib/pf/pfctl/
Dpfctl_parser.c624 print_src_node(struct pf_src_node *sn, int opts) in print_src_node() argument
630 if (sn->af == AF_INET) in print_src_node()
635 aw.v.a.addr = sn->addr; in print_src_node()
636 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node()
638 aw.v.a.addr = sn->raddr; in print_src_node()
639 print_addr(&aw, sn->af, opts & PF_OPT_VERBOSE2); in print_src_node()
640 printf(" ( states %u, connections %u, rate %u.%u/%us )\n", sn->states, in print_src_node()
641 sn->conn, sn->conn_rate.count / 1000, in print_src_node()
642 (sn->conn_rate.count % 1000) / 100, sn->conn_rate.seconds); in print_src_node()
644 sec = sn->creation % 60; in print_src_node()
[all …]
/freebsd-9-stable/lib/libdisk/
Dopen_disk.c47 char *p, *q, *r, *a, *b, *n, *t, *sn; in Int_Open_Disk() local
144 sn = NULL; in Int_Open_Disk()
184 sn = p; in Int_Open_Disk()
212 sn = b; in Int_Open_Disk()
275 sn); in Int_Open_Disk()
282 i = Add_Chunk(d, off, len, n, fat, ty, 0, sn); in Int_Open_Disk()
285 i = Add_Chunk(d, off, len, n, pc98, ty, 0, sn); in Int_Open_Disk()
291 i = Add_Chunk(d, off, len, n, apple, 0, 0, sn); in Int_Open_Disk()
/freebsd-9-stable/crypto/openssl/crypto/asn1/
Da_object.c320 ret->sn = NULL; in c2i_ASN1_OBJECT()
348 ret->sn = NULL; in ASN1_OBJECT_new()
362 if (a->sn != NULL) in ASN1_OBJECT_free()
363 OPENSSL_free((void *)a->sn); in ASN1_OBJECT_free()
367 a->sn = a->ln = NULL; in ASN1_OBJECT_free()
380 const char *sn, const char *ln) in ASN1_OBJECT_create() argument
384 o.sn = sn; in ASN1_OBJECT_create()
/freebsd-9-stable/sys/kern/
Dsubr_disk.c36 daddr_t sn; in disk_err() local
53 sn = bp->bio_pblkno; in disk_err()
55 printf("fsbn %jd%s", (intmax_t)sn, nl ? "\n" : ""); in disk_err()
59 sn += blkdone; in disk_err()
60 printf("fsbn %jd of ", (intmax_t)sn); in disk_err()
/freebsd-9-stable/sys/dev/sn/
Dif_sn_isa.c96 DRIVER_MODULE(sn, isa, sn_isa_driver, sn_devclass, 0, 0);
97 MODULE_DEPEND(sn, isa, 1, 1, 1);
98 MODULE_DEPEND(sn, ether, 1, 1, 1);
/freebsd-9-stable/sys/contrib/pf/net/
Dpf_lb.c323 uint16_t high, struct pf_src_node **sn) argument
330 if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
412 if (pf_map_addr(af, r, saddr, naddr, &init_addr, sn))
427 struct pf_addr *naddr, struct pf_addr *init_addr, struct pf_src_node **sn) argument
436 if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR &&
447 *sn = RB_FIND(pf_src_tree, &V_tree_src_tracking, &k);
450 *sn = RB_FIND(pf_src_tree, &tree_src_tracking, &k);
452 if (*sn != NULL && !PF_AZERO(&(*sn)->raddr, af)) {
453 PF_ACPY(naddr, &(*sn)->raddr, af);
602 if (*sn != NULL)
[all …]
/freebsd-9-stable/sys/ofed/include/linux/mlx4/
Dcq.h146 u32 sn; in mlx4_cq_arm() local
149 sn = cq->arm_sn & 3; in mlx4_cq_arm()
152 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx4_cq_arm()
160 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm()
/freebsd-9-stable/usr.sbin/pmcstat/
Dpmcpl_gprof.c304 char *sn; in pmcpl_gmon_initimage() local
314 if ((sn = basename(pmcstat_string_unintern(pi->pi_execpath))) == NULL) in pmcpl_gmon_initimage()
318 nlen = strlen(sn); in pmcpl_gmon_initimage()
321 snprintf(name, sizeof(name), "%.*s.gmon", nlen, sn); in pmcpl_gmon_initimage()
331 nlen = strlen(sn); in pmcpl_gmon_initimage()
340 nlen, sn, count); in pmcpl_gmon_initimage()
/freebsd-9-stable/contrib/ntp/lib/isc/include/isc/
Devent.h62 #define ISC_EVENT_INIT(event, sz, at, ta, ty, ac, ar, sn, df, da) \ argument
70 (event)->ev_sender = (sn); \
/freebsd-9-stable/contrib/bind9/lib/isc/include/isc/
Devent.h62 #define ISC_EVENT_INIT(event, sz, at, ta, ty, ac, ar, sn, df, da) \ argument
70 (event)->ev_sender = (sn); \
/freebsd-9-stable/crypto/openssl/doc/crypto/
DOBJ_nid2obj.pod19 int OBJ_sn2nid(const char *sn);
29 int OBJ_create(const char *oid,const char *sn,const char *ln);
42 for the object B<o>, the long name <ln> or the short name <sn> respectively
66 numerical form of the object, B<sn> the short name and B<ln> the

1234