Home
last modified time | relevance | path

Searched refs:tpg (Results 1 – 23 of 23) sorted by relevance

/linux-3.4.99/drivers/target/iscsi/
Discsi_target_tpg.c36 struct iscsi_portal_group *tpg; in iscsit_alloc_portal_group() local
38 tpg = kzalloc(sizeof(struct iscsi_portal_group), GFP_KERNEL); in iscsit_alloc_portal_group()
39 if (!tpg) { in iscsit_alloc_portal_group()
44 tpg->tpgt = tpgt; in iscsit_alloc_portal_group()
45 tpg->tpg_state = TPG_STATE_FREE; in iscsit_alloc_portal_group()
46 tpg->tpg_tiqn = tiqn; in iscsit_alloc_portal_group()
47 INIT_LIST_HEAD(&tpg->tpg_gnp_list); in iscsit_alloc_portal_group()
48 INIT_LIST_HEAD(&tpg->tpg_list); in iscsit_alloc_portal_group()
49 mutex_init(&tpg->tpg_access_lock); in iscsit_alloc_portal_group()
50 mutex_init(&tpg->np_login_lock); in iscsit_alloc_portal_group()
[all …]
Discsi_target_configfs.c56 struct iscsi_portal_group *tpg = se_tpg->se_tpg_fabric_ptr; in lio_get_tpg_from_tpg_item() local
59 if (!tpg) { in lio_get_tpg_from_tpg_item()
64 ret = iscsit_get_tpg(tpg); in lio_get_tpg_from_tpg_item()
68 *tiqn_out = tpg->tpg_tiqn; in lio_get_tpg_from_tpg_item()
69 return tpg; in lio_get_tpg_from_tpg_item()
98 struct iscsi_portal_group *tpg; in lio_target_np_store_sctp() local
118 tpg = tpg_np->tpg; in lio_target_np_store_sctp()
119 if (iscsit_get_tpg(tpg) < 0) in lio_target_np_store_sctp()
126 tpg_np_sctp = iscsit_tpg_add_network_portal(tpg, &np->np_sockaddr, in lio_target_np_store_sctp()
135 ret = iscsit_tpg_del_network_portal(tpg, tpg_np_sctp); in lio_target_np_store_sctp()
[all …]
Discsi_target_login.c127 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_check_for_session_reinstatement() local
129 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement()
300 sess->tpg = conn->tpg; in iscsi_login_zero_tsih_s2()
432 struct iscsi_portal_group *tpg = conn->tpg; in iscsi_login_non_zero_tsih_s2() local
434 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2()
588 struct iscsi_portal_group *tpg = ISCSI_TPG_S(sess); in iscsi_post_login_handler() local
589 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler()
623 conn->local_ip, conn->local_port, tpg->tpgt); in iscsi_post_login_handler()
659 __transport_register_session(&sess->tpg->tpg_se_tpg, in iscsi_post_login_handler()
666 tpg->tpgt); in iscsi_post_login_handler()
[all …]
Discsi_target_core.h576 struct iscsi_portal_group *tpg; member
661 struct iscsi_portal_group *tpg; member
743 struct iscsi_portal_group *tpg; member
768 struct iscsi_portal_group *tpg; member
805 #define ISCSI_TPG_C(c) ((struct iscsi_portal_group *)(c)->tpg)
806 #define ISCSI_TPG_LUN(c, l) ((iscsi_tpg_list_t *)(c)->tpg->tpg_lun_list_t[l])
807 #define ISCSI_TPG_S(s) ((struct iscsi_portal_group *)(s)->tpg)
809 #define SE_TPG(tpg) (&(tpg)->tpg_se_tpg) argument
Discsi_target_nego.c846 conn->tpg = iscsit_global->discovery_tpg; in iscsi_target_locate_portal()
863 if (iscsit_access_np(np, conn->tpg) < 0) { in iscsi_target_locate_portal()
901 conn->tpg = iscsit_get_tpg_from_np(tiqn, np); in iscsi_target_locate_portal()
902 if (!conn->tpg) { in iscsi_target_locate_portal()
911 pr_debug("Located Portal Group Object: %hu\n", conn->tpg->tpgt); in iscsi_target_locate_portal()
924 if (iscsit_access_np(np, conn->tpg) < 0) { in iscsi_target_locate_portal()
929 conn->tpg = NULL; in iscsi_target_locate_portal()
952 &conn->tpg->tpg_se_tpg, i_buf); in iscsi_target_locate_portal()
956 i_buf, conn->tpg->tpgt); in iscsi_target_locate_portal()
Discsi_target.c208 int iscsit_access_np(struct iscsi_np *np, struct iscsi_portal_group *tpg) in iscsit_access_np() argument
228 spin_lock_bh(&tpg->tpg_state_lock); in iscsit_access_np()
229 if (tpg->tpg_state != TPG_STATE_ACTIVE) { in iscsit_access_np()
230 spin_unlock_bh(&tpg->tpg_state_lock); in iscsit_access_np()
233 spin_unlock_bh(&tpg->tpg_state_lock); in iscsit_access_np()
238 ret = mutex_lock_interruptible(&tpg->np_login_lock); in iscsit_access_np()
243 np->np_login_tpg = tpg; in iscsit_access_np()
249 int iscsit_deaccess_np(struct iscsi_np *np, struct iscsi_portal_group *tpg) in iscsit_deaccess_np() argument
251 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_deaccess_np()
257 mutex_unlock(&tpg->np_login_lock); in iscsit_deaccess_np()
[all …]
Discsi_target_util.c1089 struct iscsi_portal_group *tpg = conn->sess->tpg; in iscsit_handle_nopin_response_timeout() local
1090 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_handle_nopin_response_timeout()
1620 struct iscsi_portal_group *tpg; in iscsit_snmp_get_tiqn() local
1625 tpg = conn->sess->tpg; in iscsit_snmp_get_tiqn()
1626 if (!tpg) in iscsit_snmp_get_tiqn()
1629 if (!tpg->tpg_tiqn) in iscsit_snmp_get_tiqn()
1632 return tpg->tpg_tiqn; in iscsit_snmp_get_tiqn()
Discsi_target_erl0.c752 struct iscsi_portal_group *tpg = ISCSI_TPG_S(sess); in iscsit_handle_time2retain_timeout() local
753 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout()
771 struct iscsi_tiqn *tiqn = tpg->tpg_tiqn; in iscsit_handle_time2retain_timeout()
824 struct iscsi_portal_group *tpg = ISCSI_TPG_S(sess); in iscsit_stop_time2retain_timer() local
825 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer()
/linux-3.4.99/drivers/target/
Dtarget_core_tpg.c58 struct se_portal_group *tpg) in core_clear_initiator_node_from_tpg() argument
74 tpg->se_tpg_tfo->get_fabric_name()); in core_clear_initiator_node_from_tpg()
81 TRANSPORT_LUNFLAGS_NO_ACCESS, nacl, tpg, 0); in core_clear_initiator_node_from_tpg()
93 struct se_portal_group *tpg, in __core_tpg_get_initiator_node_acl() argument
98 list_for_each_entry(acl, &tpg->acl_node_list, acl_list) { in __core_tpg_get_initiator_node_acl()
111 struct se_portal_group *tpg, in core_tpg_get_initiator_node_acl() argument
116 spin_lock_irq(&tpg->acl_node_lock); in core_tpg_get_initiator_node_acl()
117 acl = __core_tpg_get_initiator_node_acl(tpg, initiatorname); in core_tpg_get_initiator_node_acl()
118 spin_unlock_irq(&tpg->acl_node_lock); in core_tpg_get_initiator_node_acl()
129 struct se_portal_group *tpg) in core_tpg_add_node_to_devs() argument
[all …]
Dtarget_core_device.c238 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi() local
252 tpg->se_tpg_tfo->get_fabric_name()); in core_get_se_deve_from_rtpi()
259 tpg->se_tpg_tfo->get_fabric_name()); in core_get_se_deve_from_rtpi()
278 struct se_portal_group *tpg) in core_free_device_list_for_node() argument
297 tpg->se_tpg_tfo->get_fabric_name()); in core_free_device_list_for_node()
304 TRANSPORT_LUNFLAGS_NO_ACCESS, nacl, tpg, 0); in core_free_device_list_for_node()
355 struct se_portal_group *tpg, in core_update_device_list_for_node() argument
461 void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) in core_clear_lun_from_tpg() argument
467 spin_lock_irq(&tpg->acl_node_lock); in core_clear_lun_from_tpg()
468 list_for_each_entry(nacl, &tpg->acl_node_list, acl_list) { in core_clear_lun_from_tpg()
[all …]
Dtarget_core_stat.c910 struct se_portal_group *tpg; in target_stat_scsi_tgt_port_show_attr_name() local
919 tpg = sep->sep_tpg; in target_stat_scsi_tgt_port_show_attr_name()
922 tpg->se_tpg_tfo->get_fabric_name(), sep->sep_index); in target_stat_scsi_tgt_port_show_attr_name()
933 struct se_portal_group *tpg; in target_stat_scsi_tgt_port_show_attr_port_index() local
942 tpg = sep->sep_tpg; in target_stat_scsi_tgt_port_show_attr_port_index()
945 tpg->se_tpg_tfo->tpg_get_wwn(tpg), "+t+", in target_stat_scsi_tgt_port_show_attr_port_index()
946 tpg->se_tpg_tfo->tpg_get_tag(tpg)); in target_stat_scsi_tgt_port_show_attr_port_index()
1108 struct se_portal_group *tpg; in target_stat_scsi_transport_show_attr_device() local
1117 tpg = sep->sep_tpg; in target_stat_scsi_transport_show_attr_device()
1120 tpg->se_tpg_tfo->get_fabric_name()); in target_stat_scsi_transport_show_attr_device()
[all …]
Dtarget_core_cdb.c174 struct se_portal_group *tpg = NULL; in target_emulate_evpd_83() local
272 tpg = port->sep_tpg; in target_emulate_evpd_83()
281 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); in target_emulate_evpd_83()
321 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); in target_emulate_evpd_83()
369 scsi_name_len = strlen(tpg->se_tpg_tfo->tpg_get_wwn(tpg)); in target_emulate_evpd_83()
380 (tpg->se_tpg_tfo->get_fabric_proto_ident(tpg) << 4); in target_emulate_evpd_83()
394 tpgt = tpg->se_tpg_tfo->tpg_get_tag(tpg); in target_emulate_evpd_83()
396 tpg->se_tpg_tfo->tpg_get_wwn(tpg), tpgt); in target_emulate_evpd_83()
608 struct se_portal_group *tpg = cmd->se_lun->lun_sep->sep_tpg; in target_emulate_inquiry() local
633 if (dev == tpg->tpg_virt_lun0.lun_se_dev) in target_emulate_inquiry()
Dtarget_core_pr.c201 struct se_portal_group *tpg = sess->se_tpg; in target_scsi2_reservation_release() local
204 if (!sess || !tpg) in target_scsi2_reservation_release()
233 " MAPPED LUN: %u for %s\n", tpg->se_tpg_tfo->get_fabric_name(), in target_scsi2_reservation_release()
252 struct se_portal_group *tpg = sess->se_tpg; in target_scsi2_reservation_reserve() local
267 if (!sess || !tpg) in target_scsi2_reservation_reserve()
283 tpg->se_tpg_tfo->get_fabric_name()); in target_scsi2_reservation_reserve()
303 " for %s\n", tpg->se_tpg_tfo->get_fabric_name(), in target_scsi2_reservation_reserve()
900 struct se_portal_group *tpg, in core_scsi3_aptpl_reserve() argument
917 tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_aptpl_reserve()
921 tpg->se_tpg_tfo->get_fabric_name(), node_acl->initiatorname, in core_scsi3_aptpl_reserve()
[all …]
Dtarget_core_alua.c1658 struct se_portal_group *tpg; in core_alua_store_tg_pt_gp_info() local
1666 tpg = port->sep_tpg; in core_alua_store_tg_pt_gp_info()
1671 " %s/tpgt_%hu/%s\n", tpg->se_tpg_tfo->tpg_get_wwn(tpg), in core_alua_store_tg_pt_gp_info()
1672 tpg->se_tpg_tfo->tpg_get_tag(tpg), in core_alua_store_tg_pt_gp_info()
1718 tpg->se_tpg_tfo->tpg_get_wwn(tpg), in core_alua_store_tg_pt_gp_info()
1719 tpg->se_tpg_tfo->tpg_get_tag(tpg), in core_alua_store_tg_pt_gp_info()
1745 "Moving" : "Adding", tpg->se_tpg_tfo->tpg_get_wwn(tpg), in core_alua_store_tg_pt_gp_info()
1746 tpg->se_tpg_tfo->tpg_get_tag(tpg), in core_alua_store_tg_pt_gp_info()
Dtarget_core_internal.h87 struct se_node_acl *__core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
89 struct se_node_acl *core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
Dtarget_core_configfs.c2530 struct se_portal_group *tpg; in target_core_alua_tg_pt_gp_show_attr_members() local
2542 tpg = port->sep_tpg; in target_core_alua_tg_pt_gp_show_attr_members()
2546 "/%s\n", tpg->se_tpg_tfo->get_fabric_name(), in target_core_alua_tg_pt_gp_show_attr_members()
2547 tpg->se_tpg_tfo->tpg_get_wwn(tpg), in target_core_alua_tg_pt_gp_show_attr_members()
2548 tpg->se_tpg_tfo->tpg_get_tag(tpg), in target_core_alua_tg_pt_gp_show_attr_members()
Dtarget_core_fabric_configfs.c1099 TF_CIT_SETUP(tpg, &target_fabric_tpg_item_ops, &target_fabric_tpg_group_ops,
/linux-3.4.99/drivers/target/tcm_fc/
Dtfc_conf.c207 struct ft_tpg *tpg; in ft_add_acl() local
212 tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_add_acl()
223 return core_tpg_add_initiator_node_acl(&tpg->se_tpg, in ft_add_acl()
230 struct ft_tpg *tpg; in ft_del_acl() local
237 tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_acl()
239 acl, se_acl, tpg, &tpg->se_tpg); in ft_del_acl()
241 core_tpg_del_initiator_node_acl(&tpg->se_tpg, se_acl, 1); in ft_del_acl()
245 struct ft_node_acl *ft_acl_get(struct ft_tpg *tpg, struct fc_rport_priv *rdata) in ft_acl_get() argument
249 struct se_portal_group *se_tpg = &tpg->se_tpg; in ft_acl_get()
302 struct ft_tpg *tpg; in ft_add_tpg() local
[all …]
Dtfc_sess.c57 struct ft_tpg *tpg; in ft_tport_create() local
63 if (tport && tport->tpg) in ft_tport_create()
66 tpg = ft_lport_find_tpg(lport); in ft_tport_create()
67 if (!tpg) in ft_tport_create()
71 tport->tpg = tpg; in ft_tport_create()
72 tpg->tport = tport; in ft_tport_create()
81 tport->tpg = tpg; in ft_tport_create()
82 tpg->tport = tport; in ft_tport_create()
97 struct ft_tpg *tpg; in ft_tport_delete() local
104 tpg = tport->tpg; in ft_tport_delete()
[all …]
Dtcm_fc.h64 struct ft_tpg *tpg; /* NULL if TPG deleted before tport */ member
Dtfc_cmd.c457 queue_work(sess->tport->tpg->workqueue, &cmd->work); in ft_recv_cmd()
/linux-3.4.99/drivers/target/loopback/
Dtcm_loop.c988 struct tcm_loop_tpg *tpg) in tcm_loop_drop_nexus() argument
992 struct tcm_loop_hba *tl_hba = tpg->tl_hba; in tcm_loop_drop_nexus()
994 tl_nexus = tpg->tl_hba->tl_nexus; in tcm_loop_drop_nexus()
1002 if (atomic_read(&tpg->tl_tpg_port_count)) { in tcm_loop_drop_nexus()
1005 atomic_read(&tpg->tl_tpg_port_count)); in tcm_loop_drop_nexus()
1016 tpg->tl_hba->tl_nexus = NULL; in tcm_loop_drop_nexus()
/linux-3.4.99/drivers/infiniband/ulp/srpt/
Dib_srpt.c3409 static char *srpt_get_fabric_wwn(struct se_portal_group *tpg) in srpt_get_fabric_wwn() argument
3411 struct srpt_port *sport = container_of(tpg, struct srpt_port, port_tpg_1); in srpt_get_fabric_wwn()
3416 static u16 srpt_get_tag(struct se_portal_group *tpg) in srpt_get_tag() argument
3608 static struct se_node_acl *srpt_make_nodeacl(struct se_portal_group *tpg, in srpt_make_nodeacl() argument
3612 struct srpt_port *sport = container_of(tpg, struct srpt_port, port_tpg_1); in srpt_make_nodeacl()
3625 se_nacl_new = srpt_alloc_fabric_acl(tpg); in srpt_make_nodeacl()
3634 se_nacl = core_tpg_add_initiator_node_acl(tpg, se_nacl_new, name, in srpt_make_nodeacl()
3868 static void srpt_drop_tpg(struct se_portal_group *tpg) in srpt_drop_tpg() argument
3870 struct srpt_port *sport = container_of(tpg, in srpt_drop_tpg()