Lines Matching refs:dlp
346 free_device_list(struct device_list *dlp) in free_device_list() argument
350 while (dlp != NULL) { in free_device_list()
351 dln = dlp->dl_next; in free_device_list()
352 free(dlp); in free_device_list()
353 dlp = dln; in free_device_list()
534 struct device_list *dlp; in set_device() local
553 dlpp = &dlp; in set_device()
590 *dlpp = dlp; in set_device()
1219 count_devs(struct device_list *dlp) in count_devs() argument
1224 for (; dlp != NULL; dlp = dlp->dl_next) in count_devs()
1247 devs_to_list(struct device_list *dlp, const char **dnames) in devs_to_list() argument
1249 for (; dlp != NULL; dlp = dlp->dl_next) in devs_to_list()
1250 *dnames++ = dlp->dl_name; in devs_to_list()
1328 struct device_list *dlp; in organize_state() local
1368 for (dlp = slp->sl_dev; dlp != NULL; dlp = dlp->dl_next) in organize_state()
1411 for (dlp = slp->sl_dev; dlp != NULL; in organize_state()
1412 dlp = dlp->dl_next) { in organize_state()
1413 if (dlp->dl_name == *dnp || in organize_state()
1414 strcmp(dlp->dl_name, *dnp) == 0) { in organize_state()
1580 struct device_list *dlp; in get_device_list() local
1606 dlp = (struct device_list *)malloc(sizeof (*dlp) + in get_device_list()
1608 if (dlp == NULL) in get_device_list()
1610 dlp->dl_name = (const char *)(dlp + 1); in get_device_list()
1611 (void) strcpy((char *)(dlp + 1), ptn.ptn_name); in get_device_list()
1613 *dlpp = dlp; in get_device_list()
1614 dlpp = &dlp->dl_next; in get_device_list()
1616 *dl2pp = dlp; in get_device_list()
1617 dl2pp = &dlp->dl_next; in get_device_list()
1624 for (dlpp = &psp->ps_star; (dlp = *dlpp) != NULL; ) { in get_device_list()
1626 if (strcmp(dla->dl_name, dlp->dl_name) == 0) in get_device_list()
1629 *dlpp = dlp->dl_next; in get_device_list()
1630 free(dlp); in get_device_list()
1632 dlpp = &dlp->dl_next; in get_device_list()
1638 dlp = (struct device_list *)malloc(sizeof (*dlp) + 2); in get_device_list()
1639 if (dlp != NULL) { in get_device_list()
1640 dlp->dl_name = (const char *)(dlp + 1); in get_device_list()
1641 (void) strcpy((char *)(dlp + 1), "*"); in get_device_list()
1642 dlp->dl_next = psp->ps_star; in get_device_list()
1643 psp->ps_star = dlp; in get_device_list()