/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dtmethod.c | 30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth) in dtmethod() argument 32 Dtmethod_t* dtmethod(dt, meth) in dtmethod() 33 Dt_t* dt; in dtmethod() 38 Dtdisc_t *disc = dt->disc; 39 Dtmethod_t *oldmt = dt->meth; 40 Dtdata_t *newdt, *olddt = dt->data; 46 if(disc->eventf && (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0) 49 list = dtextract(dt); /* extract elements out of dictionary */ 52 if(dt->searchf == oldmt->searchf) /* ie, not viewpathing */ 53 dt->searchf = meth->searchf; [all …]
|
H A D | dtlist.c | 36 int dtlistprint(Dt_t* dt, Dtlink_t* here, char* (*objprintf)(Void_t*) ) in dtlistprint() argument 40 Dtdisc_t *disc = dt->disc; in dtlistprint() 41 Dtlist_t *list = (Dtlist_t*)dt->data; in dtlistprint() 62 Void_t* lfirstlast(Dt_t* dt, int type) in lfirstlast() argument 64 Void_t* lfirstlast(dt, type) in lfirstlast() 65 Dt_t* dt; in lfirstlast() 70 Dtdisc_t *disc = dt->disc; 71 Dtlist_t *list = (Dtlist_t*)dt->data; 84 Void_t* lclear(Dt_t* dt) in lclear() argument 86 Void_t* lclear(dt) in lclear() [all …]
|
H A D | dthash.c | 45 static int htable(Dt_t* dt) in htable() argument 49 Dtdisc_t *disc = dt->disc; in htable() 50 Dthash_t *hash = (Dthash_t*)dt->data; in htable() 56 { if((*disc->eventf)(dt, DT_HASHSIZE, &n, disc) > 0 ) in htable() 72 if(!(htbl = (Dtlink_t**)(*dt->memoryf)(dt, 0, n*sizeof(Dtlink_t*), disc)) ) in htable() 73 { DTERROR(dt, "Error in allocating an extended hash table"); in htable() 88 (void)(*dt->memoryf)(dt, hash->htbl, 0, disc); in htable() 95 static Void_t* hclear(Dt_t* dt) in hclear() argument 98 Dthash_t *hash = (Dthash_t*)dt->data; in hclear() 106 _dtfree(dt, l, DT_DELETE); in hclear() [all …]
|
H A D | dtopen.c | 31 static int _dttype2005(Dt_t* dt, int type) in _dttype2005() argument 33 if (type == DT_DELETE && (dt->meth->type&(DT_OBAG|DT_BAG))) in _dttype2005() 48 Dt_t *dt, pdt; local 54 dt = NIL(Dt_t*); 88 dt = &pdt.data->dict; 89 else if(!(dt = (Dt_t*) malloc(sizeof(Dt_t))) ) 95 *dt = pdt; 97 dt->user = &dt->data->user; /* space allocated for application usage */ 100 (void)(*disc->eventf)(dt, DT_ENDOPEN, (Void_t*)0, disc); 104 dt->typef = _dttype2005; [all …]
|
H A D | dtview.c | 35 static Void_t* dtvsearch(Dt_t* dt, reg Void_t* obj, reg int type) in dtvsearch() argument 37 static Void_t* dtvsearch(dt,obj,type) in dtvsearch() 38 Dt_t* dt; in dtvsearch() 48 return (*(dt->meth->searchf))(dt,obj,type); 54 ((type & (DT_FIRST|DT_LAST|DT_ATLEAST|DT_ATMOST)) && !(dt->meth->type&DT_ORDERED) ) ) 55 { for(d = dt; d; d = d->view) 58 dt->walk = d; 62 if(dt->meth->type & DT_ORDERED) /* ordered sets/bags */ 68 for(d = dt; d; d = d->view) 87 dt->walk = p; [all …]
|
H A D | dttree.c | 38 int dttreeprint(Dt_t* dt, Dtlink_t* here, int lev, char* (*objprintf)(Void_t*) ) in dttreeprint() argument 42 Dtdisc_t *disc = dt->disc; in dttreeprint() 43 Dttree_t *tree = (Dttree_t*)dt->data; in dttreeprint() 77 dttreeprint(dt, here->_left, lev+1, objprintf); in dttreeprint() 79 dttreeprint(dt, here->_rght, lev+1, objprintf); in dttreeprint() 87 Void_t* tfirstlast(Dt_t* dt, int type) in tfirstlast() argument 89 Void_t* tfirstlast(dt, type) in tfirstlast() 90 Dt_t* dt; in tfirstlast() 95 Dtdisc_t *disc = dt->disc; 96 Dttree_t *tree = (Dttree_t*)dt->data; [all …]
|
H A D | dtclose.c | 29 int dtclose(Dt_t* dt) in dtclose() argument 31 int dtclose(dt) in dtclose() 32 Dt_t* dt; in dtclose() 37 Dtdisc_t *disc = dt->disc; 39 if(!dt || dt->nview > 0 ) /* can't close if being viewed */ 43 ev = (*disc->eventf)(dt, DT_CLOSE, (Void_t*)1, disc); 48 if(dt->view) /* turn off viewing at this point */ 49 dtview(dt,NIL(Dt_t*)); 51 type = dt->data->type; /* save before memory is freed */ 52 memcpy(&pdt, dt, sizeof(Dt_t)); [all …]
|
H A D | dtdisc.c | 32 static Void_t* dtmemory(Dt_t* dt, Void_t* addr, size_t size, Dtdisc_t* disc) in dtmemory() argument 34 static Void_t* dtmemory(dt, addr, size, disc) in dtmemory() 35 Dt_t* dt; /* dictionary */ in dtmemory() 52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type) in dtdisc() argument 54 Dtdisc_t* dtdisc(dt,disc,type) in dtdisc() 55 Dt_t* dt; in dtdisc() 63 if(!(old = dt->disc) ) /* initialization call from dtopen() */ 64 { dt->disc = disc; 65 if(!(dt->memoryf = disc->memoryf) ) 66 dt->memoryf = dtmemory; [all …]
|
H A D | cdtlib.h | 126 #define DTSETLOCK(dt) (((dt)->data->type&DT_SHARE) ? asolock(&(dt)->data->lock,1,ASO_SPINLOCK) : 0… argument 127 #define DTCLRLOCK(dt) (((dt)->data->type&DT_SHARE) ? asolock(&(dt)->data->lock,1,ASO_UNLOCK) : 0 ) argument 129 #define DTERROR(dt, mesg) (!((dt)->disc && (dt)->disc->eventf) ? 0 : \ argument 130 (*(dt)->disc->eventf)((dt),DT_ERROR,(Void_t*)(mesg),(dt)->disc) ) 133 #define DTANNOUNCE(dt,ob,ty) ( ((ob) && ((ty)&DT_TOANNOUNCE) && ((dt)->data->type&DT_ANNOUNCE) && \ argument 134 (dt)->disc && (dt)->disc->eventf ) ? \ 135 (*(dt)->disc->eventf)((dt), DT_ANNOUNCE|(ty), (ob), (dt)->disc) : 0 ) 138 #define DTTYPE(dt,ty) ((dt)->typef ? (*(dt)->typef)((dt), (ty)) : (ty) ) argument
|
H A D | dtwalk.c | 31 int dtwalk(Dt_t* dt, int (*userf)(Dt_t*, Void_t*, Void_t*), Void_t* data) in dtwalk() argument 33 int dtwalk(dt,userf,data) in dtwalk() 34 Dt_t* dt; in dtwalk() 43 for(obj = dtfirst(dt); obj; ) 44 { if(!(walk = dt->walk) ) 45 walk = dt; 46 next = dtnext(dt,obj);
|
H A D | dtnew.c | 38 eventf(Dt_t* dt, int op, void* data, Dtdisc_t* disc) in eventf() argument 43 if (dc->odisc->eventf && (r = (*dc->odisc->eventf)(dt, op, data, dc->odisc))) in eventf() 49 memoryf(Dt_t* dt, void* addr, size_t size, Dtdisc_t* disc) in memoryf() argument 61 Dt_t* dt; in _dtnew() local 70 if (dt = _dtopen(&dc.ndisc, meth, version)) in _dtnew() 71 dtdisc(dt, disc, DT_SAMECMP|DT_SAMEHASH); in _dtnew() 72 return dt; in _dtnew()
|
/illumos-gate/usr/src/common/bignum/ |
H A D | mont_mulf.c | 72 cleanup(double *dt, int from, int tlen) in cleanup() argument 80 x = dt[i]; in cleanup() 81 x1 = dt[i + 1]; in cleanup() 82 dt[i] = lower32(x, Zero) + tmp; in cleanup() 83 dt[i + 1] = lower32(x1, Zero) + tmp1; in cleanup() 242 double *dm1, double *dm2, double *dt, in mont_mulf_noconv() argument 257 dt[i] = Zero; in mont_mulf_noconv() 258 a = dt[0] = pdm1[0] * pdm2[0]; in mont_mulf_noconv() 261 pdtj = &(dt[0]); in mont_mulf_noconv() 273 cleanup(dt, j / 2 + 1, 2 * nlen + 1); in mont_mulf_noconv() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | tsearch.c | 77 static int treecompare(Dt_t* dt, char* one, char* two, Dtdisc_t* disc) in treecompare() argument 79 static int treecompare(dt, one, two, disc) in treecompare() 80 Dt_t* dt; in treecompare() 112 reg Dt_t* dt; local 116 (!(dt = *((Dt_t**)rootp)) && !(dt = dtopen((Dtdisc_t*)(&Treedisc),Dtoset))) ) 122 if(!(o = (Tree_t*)dtmatch(dt,key)) ) 126 dtinsert(dt,o); 130 *rootp = (Void_t*)dt; 132 dtclose(dt); 148 reg Dt_t* dt; local [all …]
|
/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | cpowf.c | 57 double dx, dy, du, dv, dt, dc, ds, dp, dq, dr; in cpowf() local 110 dt = (hx >= 0)? 0.25 : 0.75; in cpowf() 112 dt = -dt; in cpowf() 114 sincospi(dt * du, &ds, &dc); in cpowf() 152 dt = dhalf * log1p((dx - 1.0) * (dx + 1.0) + dy * dy); in cpowf() 154 dt = dhalf * log1p((dy - 1.0) * (dy + 1.0) + dx * dx); in cpowf() 156 dt = dhalf * log(dx * dx + dy * dy); in cpowf() 159 dr = exp(du * dt); in cpowf() 162 dr = exp(du * dt - dv * dp * dpi); in cpowf() 163 dq = du * dp + dv * dt * dinvpi; in cpowf()
|
H A D | csqrtf.c | 42 double dt, dx, dy; in csqrtf() local 79 dt = sqrt(0.5 * (sqrt(dx * dx + dy * dy) + dx)); in csqrtf() 80 t = (float) dt; in csqrtf() 81 w = (float) (dy / (dt + dt)); in csqrtf()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | env.c | 41 Dt_t *dt; member 61 static int compare(Dt_t *dt, Void_t* key1, Void_t* key2, Dtdisc_t* disc) in compare() argument 103 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=(Evar_t*)dtnext(ep->dt,vp)) in env_get() 122 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); in env_add() 149 if(!(vp=dtinsert(ep->dt,vp))) in env_add() 168 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); in env_delete() 174 dtdelete(ep->dt,vp); in env_delete() 197 if(!(ep->dt = dtopen(&env_disc,Dtoset))) in env_open() 235 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=vpnext) in env_close() 237 vpnext = (Evar_t*)dtnext(ep->dt,vp); in env_close() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | _div64.S | 158 / uint64_t dt; 162 / dt = (y << normshift); 163 / y1 = HI(dt); 164 / y0 = LO(dt); 168 / dt = (x << normshift); 169 / x1 = HI(dt); 170 / x0 = LO(dt); 291 movl 64(%esp), %esi / y, dt 292 movl 68(%esp), %edi / y, dt 293 shldl %esi, %edi /, dt, dt [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/ |
H A D | sym.c | 79 char **dt; in symmetric_device_probe() local 82 for (dt = symmetric_dev_table; *dt; dt++) in symmetric_device_probe() 83 if (strncmp(stdinq->inq_vid, *dt, strlen(*dt)) == 0) in symmetric_device_probe()
|
H A D | sym_hds.c | 146 char **dt; in hds_sym_device_probe() local 155 for (dt = hds_sym_dev_table; *dt; dt++) { in hds_sym_device_probe() 156 if (strncmp(stdinq->inq_vid, *dt, strlen(*dt))) in hds_sym_device_probe()
|
/illumos-gate/usr/src/common/bignum/sun4u/ |
H A D | mont_mulf_v8plus.s | 125 ! 35 !static void cleanup(double *dt, int from, int tlen) 144 ! 55 ! x=dt[i]; 145 ! 56 ! x1=dt[i+1]; 146 ! 57 ! dt[i]=lower32(x,Zero)+tmp; 147 ! 58 ! dt[i+1]=lower32(x1,Zero)+tmp1; 961 ! 175 !void cleanup(double *dt, int from, int tlen); 969 ! 184 ! double *dm1, double *dm2, double *dt, 1007 ! 200 ! for(i=0;i<4*nlen+2;i++) dt[i]=Zero; 1018 ! 202 ! a=dt[0]=pdm1[0]*pdm2[0]; 1020 ! 205 ! pdtj=&(dt[0]); [all …]
|
H A D | mont_mulf_v9.s | 123 ! 56 !cleanup(double *dt, int from, int tlen) 159 ! 64 ! x = dt[i]; 166 ! 65 ! x1 = dt[i + 1]; 167 ! 66 ! dt[i] = lower32(x, Zero) + tmp; 171 ! 67 ! dt[i + 1] = lower32(x1, Zero) + tmp1; 1407 ! 229 ! double *dm1, double *dm2, double *dt, 1467 ! 244 ! dt[i] = Zero; 1468 ! 245 ! a = dt[0] = pdm1[0] * pdm2[0]; 1470 ! 248 ! pdtj = &(dt[0]); 1481 ! 260 ! cleanup(dt, j / 2 + 1, 2 * nlen + 1); [all …]
|
H A D | mont_mulf_kernel_v9.S | 156 ! 56 !cleanup(double *dt, int from, int tlen) 186 ! 64 ! x = dt[i]; 193 ! 65 ! x1 = dt[i + 1]; 194 ! 66 ! dt[i] = lower32(x, Zero) + tmp; 200 ! 67 ! dt[i + 1] = lower32(x1, Zero) + tmp1; 1392 ! 314 ! double *dm1, double *dm2, double *dt, 1434 ! 329 ! dt[i] = Zero; 1435 ! 330 ! a = dt[0] = pdm1[0] * pdm2[0]; 1437 ! 333 ! pdtj = &(dt[0]); 1448 ! 345 ! cleanup(dt, j / 2 + 1, 2 * nlen + 1); [all …]
|
/illumos-gate/usr/src/common/util/i386/ |
H A D | muldiv.S | 204 / uint64_t dt; 208 / dt = (y << normshift); 209 / y1 = HI(dt); 210 / y0 = LO(dt); 214 / dt = (x << normshift); 215 / x1 = HI(dt); 216 / x0 = LO(dt); 337 movl 64(%esp), %esi / y, dt 338 movl 68(%esp), %edi / y, dt 339 shldl %esi, %edi /, dt, dt [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import_010_pos.ksh | 52 typeset dt 53 for dt in $poolE $poolD $poolC $poolB $poolA; do 54 destroy_pool $dt 88 for dt in $poolA $poolB $poolC $poolD $poolE; do 89 log_must datasetexists $dt
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_smhba.c | 32 pmcs_smhba_add_hba_prop(pmcs_hw_t *pwp, data_type_t dt, in pmcs_smhba_add_hba_prop() argument 37 switch (dt) { in pmcs_smhba_add_hba_prop() 55 __func__, dt, prop_name); in pmcs_smhba_add_hba_prop() 64 pmcs_smhba_add_iport_prop(pmcs_iport_t *iport, data_type_t dt, in pmcs_smhba_add_iport_prop() argument 70 switch (dt) { in pmcs_smhba_add_iport_prop() 88 __func__, dt, prop_name); in pmcs_smhba_add_iport_prop() 96 pmcs_smhba_add_tgt_prop(pmcs_xscsi_t *tgt, data_type_t dt, in pmcs_smhba_add_tgt_prop() argument 101 switch (dt) { in pmcs_smhba_add_tgt_prop() 119 __func__, dt, prop_name); in pmcs_smhba_add_tgt_prop()
|