Lines Matching refs:batch
3051 ns_ldap_list_batch_t *batch, in ldap_list() argument
3212 if (batch != NULL) { in ldap_list()
3213 cookie->batch = batch; in ldap_list()
3231 cookie->next_cookie_in_batch = batch->cookie_list; in ldap_list()
3232 batch->cookie_list = cookie; in ldap_list()
3233 batch->nactive++; in ldap_list()
3342 __ns_ldap_list_batch_start(ns_ldap_list_batch_t **batch) in __ns_ldap_list_batch_start() argument
3344 *batch = calloc(1, sizeof (ns_ldap_list_batch_t)); in __ns_ldap_list_batch_start()
3345 if (*batch == NULL) in __ns_ldap_list_batch_start()
3356 ns_ldap_list_batch_t *batch, in __ns_ldap_list_batch_add() argument
3387 rc = ldap_list(batch, service, filter, NULL, init_filter_cb, attribute, in __ns_ldap_list_batch_add()
3409 __ns_ldap_list_batch_release(ns_ldap_list_batch_t *batch) in __ns_ldap_list_batch_release() argument
3413 for (c = batch->cookie_list; c != NULL; c = next) { in __ns_ldap_list_batch_release()
3423 free(batch); in __ns_ldap_list_batch_release()
3447 __ns_ldap_list_batch_process(ns_ldap_list_batch_t *batch, int *rcp) in __ns_ldap_list_batch_process() argument
3455 if (batch->nactive == 0) in __ns_ldap_list_batch_process()
3459 c = (batch->next_cookie == NULL) ? in __ns_ldap_list_batch_process()
3460 batch->cookie_list : batch->next_cookie; in __ns_ldap_list_batch_process()
3462 batch->next_cookie = c->next_cookie_in_batch; in __ns_ldap_list_batch_process()
3527 ptr = batch->cookie_list; in __ns_ldap_list_batch_process()
3528 prev = &batch->cookie_list; in __ns_ldap_list_batch_process()
3545 batch->nactive--; in __ns_ldap_list_batch_process()
3573 return ((batch->nactive > 0) ? 1 : 0); in __ns_ldap_list_batch_process()
3582 __ns_ldap_list_batch_end(ns_ldap_list_batch_t *batch) in __ns_ldap_list_batch_end() argument
3585 while (__ns_ldap_list_batch_process(batch, &rc) > 0) in __ns_ldap_list_batch_end()
3587 __ns_ldap_list_batch_release(batch); in __ns_ldap_list_batch_end()