Lines Matching refs:newhost
1042 struct nvmet_fc_hostport *newhost, *match = NULL; in nvmet_fc_alloc_hostport() local
1066 newhost = kzalloc(sizeof(*newhost), GFP_KERNEL); in nvmet_fc_alloc_hostport()
1067 if (!newhost) { in nvmet_fc_alloc_hostport()
1077 kfree(newhost); in nvmet_fc_alloc_hostport()
1078 newhost = match; in nvmet_fc_alloc_hostport()
1080 newhost->tgtport = tgtport; in nvmet_fc_alloc_hostport()
1081 newhost->hosthandle = hosthandle; in nvmet_fc_alloc_hostport()
1082 INIT_LIST_HEAD(&newhost->host_list); in nvmet_fc_alloc_hostport()
1083 kref_init(&newhost->ref); in nvmet_fc_alloc_hostport()
1085 list_add_tail(&newhost->host_list, &tgtport->host_list); in nvmet_fc_alloc_hostport()
1089 return newhost; in nvmet_fc_alloc_hostport()