Lines Matching full:nexus
2046 struct srpt_nexus *nexus; in __srpt_close_all_ch() local
2051 list_for_each_entry(nexus, &sport->nexus_list, entry) { in __srpt_close_all_ch()
2052 list_for_each_entry(ch, &nexus->ch_list, list) { in __srpt_close_all_ch()
2071 struct srpt_nexus *nexus = NULL, *tmp_nexus = NULL, *n; in srpt_get_nexus() local
2078 nexus = n; in srpt_get_nexus()
2082 if (!nexus && tmp_nexus) { in srpt_get_nexus()
2085 swap(nexus, tmp_nexus); in srpt_get_nexus()
2089 if (nexus) in srpt_get_nexus()
2091 tmp_nexus = kzalloc(sizeof(*nexus), GFP_KERNEL); in srpt_get_nexus()
2093 nexus = ERR_PTR(-ENOMEM); in srpt_get_nexus()
2103 return nexus; in srpt_get_nexus()
2214 struct srpt_nexus *nexus; in srpt_cm_req_recv() local
2235 nexus = srpt_get_nexus(sport, req->initiator_port_id, in srpt_cm_req_recv()
2237 if (IS_ERR(nexus)) { in srpt_cm_req_recv()
2238 ret = PTR_ERR(nexus); in srpt_cm_req_recv()
2284 ch->nexus = nexus; in srpt_cm_req_recv()
2370 be64_to_cpu(*(__be64 *)nexus->i_port_id), in srpt_cm_req_recv()
2371 be64_to_cpu(*(__be64 *)(nexus->i_port_id + 8))); in srpt_cm_req_recv()
2432 list_for_each_entry(ch2, &nexus->ch_list, list) { in srpt_cm_req_recv()
2443 list_add_tail_rcu(&ch->list, &nexus->ch_list); in srpt_cm_req_recv()
3015 struct srpt_nexus *nexus, *next_n; in srpt_release_sport() local
3032 list_for_each_entry(nexus, &sport->nexus_list, entry) { in srpt_release_sport()
3033 list_for_each_entry(ch, &nexus->ch_list, list) { in srpt_release_sport()
3043 list_for_each_entry_safe(nexus, next_n, &sport->nexus_list, entry) { in srpt_release_sport()
3044 list_del(&nexus->entry); in srpt_release_sport()
3045 kfree_rcu(nexus, rcu); in srpt_release_sport()