Lines Matching refs:dh
78 struct hashentry *const he, struct datahead *dh, int errval) in cache_addpw() argument
103 if (reload_count != UINT_MAX && dh->nreloads == reload_count) in cache_addpw()
105 dh->nreloads = reload_count - 1; in cache_addpw()
108 timeout = dh->timeout = t + db->postimeout; in cache_addpw()
128 if (dh != NULL) in cache_addpw()
129 dh->usable = false; in cache_addpw()
161 if (dh != NULL) in cache_addpw()
162 dh->usable = false; in cache_addpw()
221 he == NULL ? 0 : dh->nreloads + 1, in cache_addpw()
257 if (dataset->head.allocsize == dh->allocsize in cache_addpw()
258 && dataset->head.recsize == dh->recsize in cache_addpw()
259 && memcmp (&dataset->resp, dh->data, in cache_addpw()
260 dh->allocsize - offsetof (struct dataset, resp)) == 0) in cache_addpw()
265 dh->timeout = dataset->head.timeout; in cache_addpw()
266 ++dh->nreloads; in cache_addpw()
285 dh->usable = false; in cache_addpw()
391 struct hashentry *he, struct datahead *dh) in addpwbyX() argument
428 time_t timeout = cache_addpw (db, fd, req, keystr, pwd, c_uid, he, dh, in addpwbyX()
447 struct datahead *dh) in readdpwbyname() argument
456 return addpwbyX (db, -1, &req, u, db->data + he->key, he->owner, he, dh); in readdpwbyname()
484 struct datahead *dh) in readdpwbyuid() argument
499 return addpwbyX (db, -1, &req, u, db->data + he->key, he->owner, he, dh); in readdpwbyuid()