Lines Matching refs:remote_hba

30 	return &remote_tpg(se_tpg)->remote_hba->remote_wwn_address[0];  in tcm_remote_get_endpoint_wwn()
52 static char *tcm_remote_dump_proto_id(struct tcm_remote_hba *remote_hba) in tcm_remote_dump_proto_id() argument
54 switch (remote_hba->remote_proto_id) { in tcm_remote_dump_proto_id()
91 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_make_tpg() local
109 remote_tpg = &remote_hba->remote_hba_tpgs[tpgt]; in tcm_remote_make_tpg()
110 remote_tpg->remote_hba = remote_hba; in tcm_remote_make_tpg()
116 remote_hba->remote_proto_id); in tcm_remote_make_tpg()
121 tcm_remote_dump_proto_id(remote_hba), in tcm_remote_make_tpg()
131 struct tcm_remote_hba *remote_hba; in tcm_remote_drop_tpg() local
134 remote_hba = remote_tpg->remote_hba; in tcm_remote_drop_tpg()
142 remote_tpg->remote_hba = NULL; in tcm_remote_drop_tpg()
146 tcm_remote_dump_proto_id(remote_hba), in tcm_remote_drop_tpg()
155 struct tcm_remote_hba *remote_hba; in tcm_remote_make_wwn() local
159 remote_hba = kzalloc(sizeof(*remote_hba), GFP_KERNEL); in tcm_remote_make_wwn()
160 if (!remote_hba) in tcm_remote_make_wwn()
169 remote_hba->remote_proto_id = SCSI_PROTOCOL_SAS; in tcm_remote_make_wwn()
174 remote_hba->remote_proto_id = SCSI_PROTOCOL_FCP; in tcm_remote_make_wwn()
180 remote_hba->remote_proto_id = SCSI_PROTOCOL_SRP; in tcm_remote_make_wwn()
191 remote_hba->remote_proto_id = SCSI_PROTOCOL_ISCSI; in tcm_remote_make_wwn()
196 name, tcm_remote_dump_proto_id(remote_hba), TL_WWN_ADDR_LEN); in tcm_remote_make_wwn()
200 snprintf(&remote_hba->remote_wwn_address[0], TL_WWN_ADDR_LEN, "%s", &name[off]); in tcm_remote_make_wwn()
203 tcm_remote_dump_proto_id(remote_hba), name); in tcm_remote_make_wwn()
204 return &remote_hba->remote_hba_wwn; in tcm_remote_make_wwn()
206 kfree(remote_hba); in tcm_remote_make_wwn()
212 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_drop_wwn() local
216 tcm_remote_dump_proto_id(remote_hba), in tcm_remote_drop_wwn()
217 remote_hba->remote_wwn_address); in tcm_remote_drop_wwn()
218 kfree(remote_hba); in tcm_remote_drop_wwn()