Lines Matching refs:rentry
1163 struct bhndb_dw_rentry *rentry; in bhndb_dw_find_resource_entry() local
1165 LIST_FOREACH(rentry, &dwa->refs, dw_link) { in bhndb_dw_find_resource_entry()
1166 struct resource *dw_res = rentry->dw_res; in bhndb_dw_find_resource_entry()
1178 return (rentry); in bhndb_dw_find_resource_entry()
1266 struct bhndb_dw_rentry *rentry; in bhndb_dw_retain() local
1273 rentry = malloc(sizeof(*rentry), M_BHND, M_NOWAIT); in bhndb_dw_retain()
1274 if (rentry == NULL) in bhndb_dw_retain()
1277 rentry->dw_res = res; in bhndb_dw_retain()
1278 LIST_INSERT_HEAD(&dwa->refs, rentry, dw_link); in bhndb_dw_retain()
1299 struct bhndb_dw_rentry *rentry; in bhndb_dw_release() local
1302 rentry = bhndb_dw_find_resource_entry(dwa, r); in bhndb_dw_release()
1303 KASSERT(rentry != NULL, ("over release of resource entry")); in bhndb_dw_release()
1305 LIST_REMOVE(rentry, dw_link); in bhndb_dw_release()
1306 free(rentry, M_BHND); in bhndb_dw_release()