| /linux/drivers/target/ |
| H A D | target_core_tpg.c | 197 acl->se_tpg = tpg; in target_alloc_node_acl() 207 struct se_portal_group *tpg = acl->se_tpg; in target_add_node_acl() 338 if (acl->se_tpg->se_tpg_tfo->close_session) in target_shutdown_sessions() 339 acl->se_tpg->se_tpg_tfo->close_session(sess); in target_shutdown_sessions() 347 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_del_initiator_node_acl() 383 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_set_initiator_node_queue_depth() 443 static int target_tpg_register_rtpi(struct se_portal_group *se_tpg) in target_tpg_register_rtpi() argument 448 if (se_tpg->rtpi_manual) { in target_tpg_register_rtpi() 449 ret = xa_insert(&tpg_xa, se_tpg->tpg_rtpi, se_tpg, GFP_KERNEL); in target_tpg_register_rtpi() 452 se_tpg->se_tpg_tfo->fabric_name, in target_tpg_register_rtpi() [all …]
|
| H A D | target_core_fabric_configfs.c | 74 struct se_portal_group *se_tpg; in target_fabric_mappedlun_link() local 97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 130 (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( in target_fabric_mappedlun_link() 131 se_tpg)) ? true : false; in target_fabric_mappedlun_link() 139 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link() 183 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_write_protect_store() local 199 se_tpg->se_tpg_tfo->fabric_name, in target_fabric_mappedlun_write_protect_store() 217 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release() local 219 core_dev_free_initiator_node_lun_acl(se_tpg, lacl); in target_fabric_mappedlun_release() 271 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_make_mappedlun() local [all …]
|
| H A D | target_core_transport.c | 381 struct se_portal_group *se_tpg, in __transport_register_session() argument 386 const struct target_core_fabric_ops *tfo = se_tpg->se_tpg_tfo; in __transport_register_session() 390 se_sess->se_tpg = se_tpg; in __transport_register_session() 413 tfo->tpg_check_prot_fabric_only(se_tpg); in __transport_register_session() 418 if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { in __transport_register_session() 420 se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, in __transport_register_session() 436 list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); in __transport_register_session() 439 se_tpg->se_tpg_tfo->fabric_name, se_sess->fabric_sess_ptr); in __transport_register_session() 444 struct se_portal_group *se_tpg, in transport_register_session() argument 451 spin_lock_irqsave(&se_tpg->session_lock, flags); in transport_register_session() [all …]
|
| H A D | target_core_fabric_lib.c | 290 struct se_portal_group *se_tpg, in iscsi_parse_pr_out_transport_id() argument 379 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id_len() 388 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id_len() 403 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id() 416 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id()
|
| H A D | target_core_pr.c | 208 if (!sess || !sess->se_tpg) in target_scsi2_reservation_release() 227 tpg = sess->se_tpg; in target_scsi2_reservation_release() 259 if (!sess || !sess->se_tpg) in target_scsi2_reservation_reserve() 268 tpg = sess->se_tpg; in target_scsi2_reservation_reserve() 706 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration() 756 if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) in __core_scsi3_alloc_registration() 1021 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local 1032 tfo->fabric_name, tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration() 1033 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration() 1051 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration() [all …]
|
| H A D | target_core_internal.h | 135 int target_tpg_enable(struct se_portal_group *se_tpg); 136 int target_tpg_disable(struct se_portal_group *se_tpg);
|
| H A D | target_core_alua.c | 1170 struct se_portal_group *se_tpg = lun->lun_tpg; in core_alua_update_tpg_secondary_metadata() local 1189 if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) { in core_alua_update_tpg_secondary_metadata() 1191 db_root, se_tpg->se_tpg_tfo->fabric_name, in core_alua_update_tpg_secondary_metadata() 1192 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), in core_alua_update_tpg_secondary_metadata() 1193 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg), in core_alua_update_tpg_secondary_metadata() 1197 db_root, se_tpg->se_tpg_tfo->fabric_name, in core_alua_update_tpg_secondary_metadata() 1198 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), in core_alua_update_tpg_secondary_metadata()
|
| H A D | target_core_ua.c | 258 nacl->se_tpg->se_tpg_tfo->fabric_name, in core_scsi3_ua_for_check_condition() 319 " ASCQ: 0x%02x\n", nacl->se_tpg->se_tpg_tfo->fabric_name, in core_scsi3_ua_clear_for_request_sense()
|
| H A D | target_core_stat.c | 847 tpg = nacl->se_tpg; in target_stat_auth_inst_show() 891 tpg = nacl->se_tpg; in target_stat_auth_port_show() 1152 tpg = nacl->se_tpg; in target_stat_iport_inst_show() 1196 tpg = nacl->se_tpg; in target_stat_iport_port_show() 1219 tpg = nacl->se_tpg; in target_stat_iport_indx_show() 1264 tpg = nacl->se_tpg; in target_stat_iport_port_ident_show()
|
| H A D | target_core_configfs.c | 338 static int target_disable_feature(struct se_portal_group *se_tpg) in target_disable_feature() argument 343 static u32 target_default_get_inst_index(struct se_portal_group *se_tpg) in target_default_get_inst_index() argument 1841 se_nacl->se_tpg->se_tpg_tfo->fabric_name, in target_core_dev_pr_show_spc3_res() 1856 se_nacl->se_tpg->se_tpg_tfo->fabric_name, in target_core_dev_pr_show_spc2_res() 1917 struct se_portal_group *se_tpg; in target_pr_res_pr_holder_tg_port_show() local 1930 se_tpg = se_nacl->se_tpg; in target_pr_res_pr_holder_tg_port_show() 1931 tfo = se_tpg->se_tpg_tfo; in target_pr_res_pr_holder_tg_port_show() 1935 tfo->tpg_get_wwn(se_tpg)); in target_pr_res_pr_holder_tg_port_show() 1939 tfo->fabric_name, tfo->tpg_get_tag(se_tpg), in target_pr_res_pr_holder_tg_port_show() 1967 tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; in target_pr_res_pr_registered_i_pts_show()
|
| /linux/drivers/target/tcm_remote/ |
| H A D | tcm_remote.c | 20 static inline struct tcm_remote_tpg *remote_tpg(struct se_portal_group *se_tpg) in remote_tpg() argument 22 return container_of(se_tpg, struct tcm_remote_tpg, remote_se_tpg); in remote_tpg() 25 static char *tcm_remote_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_remote_get_endpoint_wwn() argument 30 return &remote_tpg(se_tpg)->remote_hba->remote_wwn_address[0]; in tcm_remote_get_endpoint_wwn() 33 static u16 tcm_remote_get_tag(struct se_portal_group *se_tpg) in tcm_remote_get_tag() argument 39 return remote_tpg(se_tpg)->remote_tpgt; in tcm_remote_get_tag() 71 struct se_portal_group *se_tpg, in tcm_remote_port_link() argument 80 struct se_portal_group *se_tpg, in tcm_remote_port_unlink() argument 126 static void tcm_remote_drop_tpg(struct se_portal_group *se_tpg) in tcm_remote_drop_tpg() argument 128 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_remote_drop_tpg() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | tcm_qla2xxx.c | 162 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_fabric_wwn() argument 164 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn() 165 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn() 171 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument 173 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag() 174 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag() 178 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument 180 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode() 181 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode() 186 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument [all …]
|
| H A D | tcm_qla2xxx.h | 50 struct se_portal_group se_tpg; member
|
| /linux/drivers/target/tcm_fc/ |
| H A D | tfc_conf.c | 178 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in ft_nacl_tag_store() 259 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in ft_add_tpg() 271 return &tpg->se_tpg; in ft_add_tpg() 274 static void ft_del_tpg(struct se_portal_group *se_tpg) in ft_del_tpg() argument 276 struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_tpg() 280 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg() 295 core_tpg_deregister(se_tpg); in ft_del_tpg() 382 static inline struct ft_tpg *ft_tpg(struct se_portal_group *se_tpg) in ft_tpg() argument 384 return container_of(se_tpg, struct ft_tpg, se_tpg); in ft_tpg() 387 static char *ft_get_fabric_wwn(struct se_portal_group *se_tpg) in ft_get_fabric_wwn() argument [all …]
|
| H A D | tfc_sess.c | 189 static int ft_sess_alloc_cb(struct se_portal_group *se_tpg, in ft_sess_alloc_cb() argument 210 struct se_portal_group *se_tpg = &tport->tpg->se_tpg; in ft_sess_create() local 230 sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, in ft_sess_create()
|
| H A D | tcm_fc.h | 91 struct se_portal_group se_tpg; member
|
| /linux/drivers/target/sbp/ |
| H A D | sbp_target.c | 82 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 83 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid() 88 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 118 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 119 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun() 132 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 144 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() 145 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id() 155 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() 162 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local [all …]
|
| H A D | sbp_target.h | 161 struct se_portal_group se_tpg; member
|
| /linux/drivers/xen/ |
| H A D | xen-scsiback.c | 174 struct se_portal_group se_tpg; member 951 mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry() 952 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry() 961 mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry() 1329 static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) in scsiback_get_fabric_wwn() argument 1331 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_fabric_wwn() 1332 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn() 1338 static u16 scsiback_get_tag(struct se_portal_group *se_tpg) in scsiback_get_tag() argument 1340 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_tag() 1341 struct scsiback_tpg, se_tpg); in scsiback_get_tag() [all …]
|
| /linux/drivers/vhost/ |
| H A D | scsi.c | 170 struct se_portal_group se_tpg; member 350 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument 355 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument 357 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() 358 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn() 364 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument 366 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() 367 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt() 371 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument 373 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only() [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_tcm.c | 1237 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_submit_cmd() 1496 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work() 1555 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument 1560 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument 1562 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn() 1563 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn() 1569 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument 1571 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag() 1572 struct usbg_tpg, se_tpg); in usbg_get_tag() 1696 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg() [all …]
|
| /linux/drivers/target/iscsi/ |
| H A D | iscsi_target_erl0.c | 749 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local 751 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 753 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 759 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 768 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 801 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local 803 lockdep_assert_held(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 812 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 816 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
|
| /linux/drivers/scsi/ibmvscsi_tgt/ |
| H A D | ibmvscsi_tgt.c | 2223 nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, in ibmvscsis_make_nexus() 3667 static char *ibmvscsis_get_fabric_wwn(struct se_portal_group *se_tpg) in ibmvscsis_get_fabric_wwn() argument 3670 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_fabric_wwn() 3675 static u16 ibmvscsis_get_tag(struct se_portal_group *se_tpg) in ibmvscsis_get_tag() argument 3678 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_tag() 3683 static u32 ibmvscsis_get_default_depth(struct se_portal_group *se_tpg) in ibmvscsis_get_default_depth() argument 3688 static int ibmvscsis_check_true(struct se_portal_group *se_tpg) in ibmvscsis_check_true() argument 3877 rc = core_tpg_register(&tport->tport_wwn, &tport->se_tpg, in ibmvscsis_make_tpg() 3882 return &tport->se_tpg; in ibmvscsis_make_tpg() 3885 static void ibmvscsis_drop_tpg(struct se_portal_group *se_tpg) in ibmvscsis_drop_tpg() argument [all …]
|
| H A D | ibmvscsi_tgt.h | 184 struct se_portal_group se_tpg; member
|
| /linux/include/target/ |
| H A D | target_core_fabric.h | 92 int (*fabric_enable_tpg)(struct se_portal_group *se_tpg, bool enable);
|