Lines Matching refs:nexus
1979 struct srpt_nexus *nexus; in __srpt_close_all_ch() local
1984 list_for_each_entry(nexus, &sport->nexus_list, entry) { in __srpt_close_all_ch()
1985 list_for_each_entry(ch, &nexus->ch_list, list) { in __srpt_close_all_ch()
2004 struct srpt_nexus *nexus = NULL, *tmp_nexus = NULL, *n; in srpt_get_nexus() local
2011 nexus = n; in srpt_get_nexus()
2015 if (!nexus && tmp_nexus) { in srpt_get_nexus()
2018 swap(nexus, tmp_nexus); in srpt_get_nexus()
2022 if (nexus) in srpt_get_nexus()
2024 tmp_nexus = kzalloc(sizeof(*nexus), GFP_KERNEL); in srpt_get_nexus()
2026 nexus = ERR_PTR(-ENOMEM); in srpt_get_nexus()
2036 return nexus; in srpt_get_nexus()
2147 struct srpt_nexus *nexus; in srpt_cm_req_recv() local
2168 nexus = srpt_get_nexus(sport, req->initiator_port_id, in srpt_cm_req_recv()
2170 if (IS_ERR(nexus)) { in srpt_cm_req_recv()
2171 ret = PTR_ERR(nexus); in srpt_cm_req_recv()
2217 ch->nexus = nexus; in srpt_cm_req_recv()
2305 be64_to_cpu(*(__be64 *)nexus->i_port_id), in srpt_cm_req_recv()
2306 be64_to_cpu(*(__be64 *)(nexus->i_port_id + 8))); in srpt_cm_req_recv()
2367 list_for_each_entry(ch2, &nexus->ch_list, list) { in srpt_cm_req_recv()
2378 list_add_tail_rcu(&ch->list, &nexus->ch_list); in srpt_cm_req_recv()
2950 struct srpt_nexus *nexus, *next_n; in srpt_release_sport() local
2967 list_for_each_entry(nexus, &sport->nexus_list, entry) { in srpt_release_sport()
2968 list_for_each_entry(ch, &nexus->ch_list, list) { in srpt_release_sport()
2978 list_for_each_entry_safe(nexus, next_n, &sport->nexus_list, entry) { in srpt_release_sport()
2979 list_del(&nexus->entry); in srpt_release_sport()
2980 kfree_rcu(nexus, rcu); in srpt_release_sport()