Lines Matching refs:ctrl_p
391 nscd_state_ctrl_t *ctrl_p;
515 ctrl_p = &base->nsw_state;
518 ctrl_p = &base->nsw_state_thr;
525 ctrl_p->free);
527 ctrl_p->allocated);
529 ctrl_p->first);
531 ctrl_p->waiter);
536 if (ctrl_p->first == NULL && ctrl_p->allocated == ctrl_p->max)
543 ctrl_p->waiter++;
561 ctrl_p->first != NULL)
566 if (ctrl_p->first != NULL)
584 ctrl_p->waiter--;
587 if (ctrl_p->first == NULL) {
606 ctrl_p->first = _nscd_create_nsw_state(params);
607 if (ctrl_p->first != NULL) {
611 (me, "got a new nsw_state %p\n", ctrl_p->first);
616 ctrl_p->first);
618 ctrl_p->allocated++;
619 ctrl_p->free++;
628 ret = ctrl_p->first;
631 ctrl_p->first = ret->next;
633 ctrl_p->free--;
644 ctrl_p->free);
646 ctrl_p->allocated);
648 ctrl_p->first);
650 ctrl_p->waiter);
696 nscd_state_ctrl_t *ctrl_p;
735 ctrl_p = &base->nsw_state_thr;
737 ctrl_p = &base->nsw_state;
744 ctrl_p->free);
746 ctrl_p->allocated);
748 ctrl_p->first);
749 _nscd_logit(me, "number of waiter = %d\n", ctrl_p->waiter);
752 if (ctrl_p->first != NULL) {
753 s->next = ctrl_p->first;
754 ctrl_p->first = s;
756 ctrl_p->first = s;
759 ctrl_p->free++;
770 if (thread_only && ctrl_p->free == ctrl_p->allocated) {
771 assert(ctrl_p->first != NULL);
773 if (ctrl_p->waiter > 0) {
778 if (!thread_only && ctrl_p->waiter > 0) {
788 ctrl_p->free);
790 ctrl_p->allocated);
792 ctrl_p->first);
793 _nscd_logit(me, "tnumber of waiter = %d\n", ctrl_p->waiter);