Lines Matching refs:kref
62 struct kref kref; member
108 static void release_port_group(struct kref *kref) in release_port_group() argument
112 pg = container_of(kref, struct alua_port_group, kref); in release_port_group()
193 if (!kref_get_unless_zero(&pg->kref)) in alua_find_get_pg()
238 kref_init(&pg->kref); in alua_alloc_pg()
381 kref_put(&old_pg->kref, release_port_group); in alua_check_vpd()
671 kref_put(&tmp_pg->kref, release_port_group); in alua_rtpg()
808 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
876 kref_put(&pg->kref, release_port_group); in alua_rtpg_work()
908 kref_get(&pg->kref); in alua_rtpg_queue()
915 kref_get(&pg->kref); in alua_rtpg_queue()
927 kref_put(&pg->kref, release_port_group); in alua_rtpg_queue()
1026 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_activate()
1040 kref_put(&pg->kref, release_port_group); in alua_activate()
1060 if (!pg || !kref_get_unless_zero(&pg->kref)) { in alua_check()
1067 kref_put(&pg->kref, release_port_group); in alua_check()
1156 kref_put(&pg->kref, release_port_group); in alua_bus_detach()