Lines Matching refs:pathptr
689 char *pathptr; in pci_cfg_ap_path() local
700 pathptr = &pathbuf[sizeof (pathbuf) - 1]; in pci_cfg_ap_path()
701 *pathptr = '\0'; in pci_cfg_ap_path()
719 *pathptr = '\0'; in pci_cfg_ap_path()
736 *pathptr = '\0'; in pci_cfg_ap_path()
746 pathptr -= seplen; in pci_cfg_ap_path()
747 if (pathptr < pathbuf) { in pci_cfg_ap_path()
748 pathptr = pathbuf; in pci_cfg_ap_path()
749 *pathptr = '\0'; in pci_cfg_ap_path()
752 (void) memcpy(pathptr, AP_PATH_SEP, seplen); in pci_cfg_ap_path()
755 pathptr -= len; in pci_cfg_ap_path()
756 if (pathptr < pathbuf) { in pci_cfg_ap_path()
757 pathptr = pathbuf; in pci_cfg_ap_path()
758 *pathptr = '\0'; in pci_cfg_ap_path()
761 (void) memcpy(pathptr, buf, len); in pci_cfg_ap_path()
765 pathend = pathptr; in pci_cfg_ap_path()
783 *pathptr = '\0'; in pci_cfg_ap_path()
789 if (strlen(pathptr) < ap_pathsz) { in pci_cfg_ap_path()
790 (void) strlcpy(ap_path, pathptr, ap_pathsz); in pci_cfg_ap_path()
820 *pathptr = '\0'; in pci_cfg_ap_path()
848 *pathret = (*pathptr == '\0') ? NULL : strdup(pathptr); in pci_cfg_ap_path()