Lines Matching defs:cfp

135 	struct __nsw_switchconfig_v1 *cfp;
143 if ((cfp = libc_malloc(sizeof (struct __nsw_switchconfig_v1)))
148 LIBC_STRDUP(cfp->dbase, name);
149 lkq = &cfp->lookups;
157 return (cfp);
162 freeconf_v1(cfp);
184 cfp->num_lookups++;
216 return (cfp);
286 return (cfp);
302 cfp->num_lookups++;
303 return (cfp);
310 cfp->num_lookups++;
316 freeconf_v1(cfp);
329 struct __nsw_switchconfig *cfp;
337 if ((cfp = libc_malloc(sizeof (struct __nsw_switchconfig)))
342 LIBC_STRDUP(cfp->dbase, name);
343 lkq = &cfp->lookups;
351 return (cfp);
356 freeconf(cfp);
376 cfp->num_lookups++;
402 return (cfp);
445 return (cfp);
460 cfp->num_lookups++;
461 return (cfp);
467 cfp->num_lookups++;
473 freeconf(cfp);
513 struct __nsw_switchconfig_v1 *cfp, *retp = NULL;
521 if (cfp = scrounge_cache_v1(dbase)) {
526 return (cfp);
565 if (cfp = scrounge_cache_v1(tokenp)) {
568 if (cfp = _nsw_getoneconfig_v1(tokenp, linep, &line_err)) {
569 (void) add_concell_v1(cfp);
570 if (strcmp(cfp->dbase, dbase) == 0) {
572 retp = cfp;
611 struct __nsw_switchconfig *cfp, *retp = NULL;
619 if (cfp = scrounge_cache(dbase)) {
624 return (cfp);
662 if (cfp = scrounge_cache(tokenp)) {
665 if (cfp = _nsw_getoneconfig(tokenp, linep, &line_err)) {
666 (void) add_concell(cfp);
667 if (strcmp(cfp->dbase, dbase) == 0) {
669 retp = cfp;
729 freeconf_v1(struct __nsw_switchconfig_v1 *cfp)
731 if (cfp) {
732 if (cfp->dbase)
733 libc_free(cfp->dbase);
734 if (cfp->lookups) {
736 for (cur = cfp->lookups; cur; cur = nex) {
742 libc_free(cfp);
747 freeconf(struct __nsw_switchconfig *cfp)
749 if (cfp) {
750 if (cfp->dbase)
751 libc_free(cfp->dbase);
752 if (cfp->lookups) {
754 for (cur = cfp->lookups; cur; cur = nex) {
760 libc_free(cfp);
849 add_concell_v1(struct __nsw_switchconfig_v1 *cfp)
853 if (cfp == NULL)
857 cp->sw = cfp;
865 add_concell(struct __nsw_switchconfig *cfp)
869 if (cfp == NULL)
873 cp->sw = cfp;