Lines Matching refs:disc
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()
38 Dtdisc_t* disc; /* discipline */
52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type) in dtdisc() argument
54 Dtdisc_t* dtdisc(dt,disc,type) in dtdisc()
56 Dtdisc_t* disc;
65 if(!(old = dt->disc) ) /* initialization call from dtopen() */
66 { dt->disc = disc;
67 if(!(dt->memoryf = disc->memoryf) )
69 return disc;
72 if(!disc) /* only want to know current discipline */
79 if(old->eventf && (*old->eventf)(dt,DT_DISC,(Void_t*)disc,old) < 0)
82 dt->disc = disc;
83 if(!(dt->memoryf = disc->memoryf) )
118 { k = (char*)_DTOBJ(r,disc->link);
119 k = _DTKEY((Void_t*)k,disc->key,disc->size);
120 r->hash = _DTHSH(dt,k,disc,disc->size);