Lines Matching refs:args

53 	struct thr_call_args *args;  in slp_ua_common()  local
70 args = malloc(sizeof (*args)); in slp_ua_common()
71 if (args == NULL) { in slp_ua_common()
76 args->hp = hp; in slp_ua_common()
77 args->cb = cb; in slp_ua_common()
78 args->cookie = cookie; in slp_ua_common()
79 args->msg_cb = msg_cb; in slp_ua_common()
80 args->targets = targets; in slp_ua_common()
89 if ((terr = thr_create(NULL, 0, slp_call, args, 0, &tid)) != 0) { in slp_ua_common()
100 args, 0, NULL)) != 0) { in slp_ua_common()
114 return ((SLPError)consumer(args)); in slp_ua_common()
116 free(args); in slp_ua_common()
127 struct thr_call_args *args = (struct thr_call_args *)ap; in consumer() local
129 hp = args->hp; in consumer()
138 cont = args->msg_cb(hp, reply, args->cb, args->cookie, in consumer()
149 args->msg_cb(hp, NULL, args->cb, args->cookie, in consumer()
163 free(args); in consumer()
174 struct thr_call_args *args = (struct thr_call_args *)ap; in slp_call() local
181 if (uc_scopes = slp_get_uc_scopes(args->targets)) { in slp_call()
186 len = slp_hdrlang_length(args->hp); in slp_call()
187 for (i = 0; i < args->hp->msg.iovlen; i++) { in slp_call()
188 len += args->hp->msg.iov[i].iov_len; in slp_call()
196 for (t = slp_next_uc_target(args->targets); t != NULL; in slp_call()
197 t = slp_next_uc_target(args->targets)) { in slp_call()
198 if (args->hp->cancel) in slp_call()
202 slp_uc_tcp_send(args->hp, t, uc_scopes, in slp_call()
205 slp_uc_udp_send(args->hp, t, uc_scopes); in slp_call()
210 if ((!args->hp->cancel) && in slp_call()
211 (mc_scopes = slp_get_mc_scopes(args->targets))) in slp_call()
212 slp_mc_send(args->hp, mc_scopes); in slp_call()
215 if (args->hp->tcp_lock) in slp_call()
216 slp_tcp_wait(args->hp); in slp_call()
218 slp_destroy_target_list(args->targets); in slp_call()
221 free(args->hp->msg.iov); in slp_call()
222 free(args->hp->msg.msg); in slp_call()
225 (void) slp_enqueue(args->hp->q, NULL); in slp_call()