Lines Matching refs:pvt

42 struct pvt {  struct
70 struct pvt *pvt; in irs_gen_nw() local
72 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_nw()
76 memset(pvt, 0, sizeof *pvt); in irs_gen_nw()
78 memput(pvt, sizeof *pvt); in irs_gen_nw()
83 pvt->rules = accpvt->map_rules[irs_nw]; in irs_gen_nw()
84 pvt->rule = pvt->rules; in irs_gen_nw()
85 nw->private = pvt; in irs_gen_nw()
101 struct pvt *pvt = (struct pvt *)this->private; in nw_close() local
105 if (pvt->res && pvt->free_res) in nw_close()
106 (*pvt->free_res)(pvt->res); in nw_close()
108 memput(pvt, sizeof *pvt); in nw_close()
114 struct pvt *pvt = (struct pvt *)this->private; in nw_next() local
121 while (pvt->rule) { in nw_next()
122 nw = pvt->rule->inst->nw; in nw_next()
126 if (!(pvt->rules->flags & IRS_CONTINUE)) in nw_next()
128 pvt->rule = pvt->rule->next; in nw_next()
129 if (pvt->rule) { in nw_next()
130 nw = pvt->rule->inst->nw; in nw_next()
139 struct pvt *pvt = (struct pvt *)this->private; in nw_byname() local
147 for (rule = pvt->rules; rule; rule = rule->next) { in nw_byname()
149 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL); in nw_byname()
153 if (pvt->res->res_h_errno != TRY_AGAIN && in nw_byname()
162 struct pvt *pvt = (struct pvt *)this->private; in nw_byaddr() local
170 for (rule = pvt->rules; rule; rule = rule->next) { in nw_byaddr()
172 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL); in nw_byaddr()
176 if (pvt->res->res_h_errno != TRY_AGAIN && in nw_byaddr()
185 struct pvt *pvt = (struct pvt *)this->private; in nw_rewind() local
188 pvt->rule = pvt->rules; in nw_rewind()
189 if (pvt->rule) { in nw_rewind()
190 nw = pvt->rule->inst->nw; in nw_rewind()
197 struct pvt *pvt = (struct pvt *)this->private; in nw_minimize() local
200 if (pvt->res) in nw_minimize()
201 res_nclose(pvt->res); in nw_minimize()
202 for (rule = pvt->rules; rule != NULL; rule = rule->next) { in nw_minimize()
211 struct pvt *pvt = (struct pvt *)this->private; in nw_res_get() local
213 if (!pvt->res) { in nw_res_get()
224 return (pvt->res); in nw_res_get()
230 struct pvt *pvt = (struct pvt *)this->private; in nw_res_set() local
233 if (pvt->res && pvt->free_res) { in nw_res_set()
234 res_nclose(pvt->res); in nw_res_set()
235 (*pvt->free_res)(pvt->res); in nw_res_set()
238 pvt->res = res; in nw_res_set()
239 pvt->free_res = free_res; in nw_res_set()
241 for (rule = pvt->rules; rule != NULL; rule = rule->next) { in nw_res_set()
244 (*nw->res_set)(nw, pvt->res, NULL); in nw_res_set()
250 struct pvt *pvt = (struct pvt *)this->private; in init() local
252 if (!pvt->res && !nw_res_get(this)) in init()
254 if (((pvt->res->options & RES_INIT) == 0U) && in init()
255 res_ninit(pvt->res) == -1) in init()