Lines Matching refs:kref
76 struct kref kref; member
121 static void release_port_group(struct kref *kref) in release_port_group() argument
125 pg = container_of(kref, struct alua_port_group, kref); in release_port_group()
208 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg()
252 kref_init(&pg->kref); in alua_alloc_pg()
395 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd()
662 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()
796 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
862 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
891 kref_get(&pg->kref); in alua_rtpg_queue()
898 kref_get(&pg->kref); in alua_rtpg_queue()
912 kref_put(&pg->kref, release_port_group); in alua_rtpg_queue()
1011 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_activate()
1025 kref_put(&pg->kref, release_port_group); in alua_activate()
1045 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_check()
1052 kref_put(&pg->kref, release_port_group); in alua_check()
1142 kref_put(&pg->kref, release_port_group); in alua_bus_detach()