Lines Matching refs:tres
103 struct hast_resource *tres, *tmres; in descriptors_cleanup() local
106 TAILQ_FOREACH_SAFE(tres, &cfg->hc_resources, hr_next, tmres) { in descriptors_cleanup()
107 if (tres == res) { in descriptors_cleanup()
113 if (tres->hr_remotein != NULL) in descriptors_cleanup()
114 proto_close(tres->hr_remotein); in descriptors_cleanup()
115 if (tres->hr_remoteout != NULL) in descriptors_cleanup()
116 proto_close(tres->hr_remoteout); in descriptors_cleanup()
117 if (tres->hr_ctrl != NULL) in descriptors_cleanup()
118 proto_close(tres->hr_ctrl); in descriptors_cleanup()
119 if (tres->hr_event != NULL) in descriptors_cleanup()
120 proto_close(tres->hr_event); in descriptors_cleanup()
121 if (tres->hr_conn != NULL) in descriptors_cleanup()
122 proto_close(tres->hr_conn); in descriptors_cleanup()
123 TAILQ_REMOVE(&cfg->hc_resources, tres, hr_next); in descriptors_cleanup()
124 free(tres); in descriptors_cleanup()
484 struct hast_resource *nres, *cres, *tres; in hastd_reload() local
611 TAILQ_FOREACH_SAFE(cres, &cfg->hc_resources, hr_next, tres) { in hastd_reload()
626 TAILQ_FOREACH_SAFE(nres, &newcfg->hc_resources, hr_next, tres) { in hastd_reload()
659 TAILQ_FOREACH_SAFE(nres, &newcfg->hc_resources, hr_next, tres) { in hastd_reload()