Lines Matching defs:dl
223 debuglink_t *dl;
240 dl = ISC_LIST_HEAD(mctx->debuglist[mysize]);
241 while (dl != NULL) {
242 if (dl->count == DEBUGLIST_COUNT)
245 if (dl->ptr[i] == NULL) {
246 dl->ptr[i] = ptr;
247 dl->size[i] = size;
248 dl->file[i] = file;
249 dl->line[i] = line;
250 dl->count++;
255 dl = ISC_LIST_NEXT(dl, link);
258 dl = malloc(sizeof(debuglink_t));
259 INSIST(dl != NULL);
261 ISC_LINK_INIT(dl, link);
263 dl->ptr[i] = NULL;
264 dl->size[i] = 0;
265 dl->file[i] = NULL;
266 dl->line[i] = 0;
269 dl->ptr[0] = ptr;
270 dl->size[0] = size;
271 dl->file[0] = file;
272 dl->line[0] = line;
273 dl->count = 1;
275 ISC_LIST_PREPEND(mctx->debuglist[mysize], dl, link);
283 debuglink_t *dl;
299 dl = ISC_LIST_HEAD(mctx->debuglist[size]);
300 while (dl != NULL) {
302 if (dl->ptr[i] == ptr) {
303 dl->ptr[i] = NULL;
304 dl->size[i] = 0;
305 dl->file[i] = NULL;
306 dl->line[i] = 0;
308 INSIST(dl->count > 0);
309 dl->count--;
310 if (dl->count == 0) {
312 dl, link);
313 free(dl);
318 dl = ISC_LIST_NEXT(dl, link);
325 INSIST(dl != NULL);
900 debuglink_t *dl;
903 for (dl = ISC_LIST_HEAD(ctx->debuglist[i]);
904 dl != NULL;
905 dl = ISC_LIST_HEAD(ctx->debuglist[i])) {
907 dl, link);
908 free(dl);
1201 debuglink_t *dl;
1215 dl = ISC_LIST_HEAD(mctx->debuglist[i]);
1217 if (dl != NULL)
1220 while (dl != NULL) {
1222 if (dl->ptr[j] != NULL)
1224 dl->ptr[j],
1225 dl->size[j],
1226 dl->file[j],
1227 dl->line[j]);
1228 dl = ISC_LIST_NEXT(dl, link);