| /linux-6.15/drivers/target/ |
| H A D | target_core_tpg.c | 453 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg), in target_tpg_register_rtpi() 469 if (se_tpg->tpg_rtpi && se_tpg->enabled) in target_tpg_deregister_rtpi() 481 ret = se_tpg->se_tpg_tfo->fabric_enable_tpg(se_tpg, true); in target_tpg_enable() 513 if (!se_tpg) in core_tpg_register() 544 se_tpg->tpg_virt_lun0 = core_tpg_alloc_lun(se_tpg, 0); in core_tpg_register() 548 ret = core_tpg_add_lun(se_tpg, se_tpg->tpg_virt_lun0, in core_tpg_register() 558 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg) ? in core_tpg_register() 559 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg) : NULL, in core_tpg_register() 560 se_tpg->proto_id, se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); in core_tpg_register() 575 se_tpg->proto_id, tfo->tpg_get_tag(se_tpg)); in core_tpg_deregister() [all …]
|
| H A D | target_core_fabric_configfs.c | 97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 183 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_write_protect_store() local 217 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release() local 271 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_make_mappedlun() local 867 if (se_tpg->enabled) { in target_fabric_tpg_base_rtpi_store() 870 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); in target_fabric_tpg_base_rtpi_store() 940 if (!se_tpg || IS_ERR(se_tpg)) in target_fabric_make_tpg() 949 &se_tpg->tpg_group); in target_fabric_make_tpg() 954 &se_tpg->tpg_group); in target_fabric_make_tpg() 959 &se_tpg->tpg_group); in target_fabric_make_tpg() [all …]
|
| H A D | target_core_transport.c | 381 struct se_portal_group *se_tpg, in __transport_register_session() argument 390 se_sess->se_tpg = se_tpg; in __transport_register_session() 544 struct se_portal_group *se_tpg = nacl->se_tpg; in target_complete_nacl() local 604 struct se_portal_group *se_tpg = se_nacl->se_tpg; in transport_free_session() local 654 struct se_portal_group *se_tpg = se_sess->se_tpg; in transport_deregister_session() local 657 if (!se_tpg) { in transport_deregister_session() 664 se_sess->se_tpg = NULL; in transport_deregister_session() 1694 se_tpg = se_sess->se_tpg; in target_init_cmd() 1695 BUG_ON(!se_tpg); in target_init_cmd() 1987 se_tpg = se_sess->se_tpg; in target_submit_tmr() [all …]
|
| H A D | target_core_fabric_lib.c | 261 struct se_portal_group *se_tpg, in iscsi_parse_pr_out_transport_id() argument 348 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id_len() 357 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id_len() 372 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id() 385 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() 1021 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local 1033 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration() 2042 struct se_portal_group *se_tpg; in core_scsi3_emulate_pro_register() local 2054 se_tpg = se_sess->se_tpg; in core_scsi3_emulate_pro_register() 3167 se_tpg = se_sess->se_tpg; in core_scsi3_emulate_pro_register_and_move() 3168 tf_ops = se_tpg->se_tpg_tfo; in core_scsi3_emulate_pro_register_and_move() [all …]
|
| H A D | target_core_internal.h | 134 int target_tpg_enable(struct se_portal_group *se_tpg); 135 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()
|
| /linux-6.15/drivers/target/tcm_remote/ |
| H A D | tcm_remote.c | 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() 129 struct tcm_remote_tpg *remote_tpg = container_of(se_tpg, in tcm_remote_drop_tpg() [all …]
|
| /linux-6.15/drivers/scsi/qla2xxx/ |
| H A D | tcm_qla2xxx.c | 165 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn() 174 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag() 181 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode() 189 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_cache() 441 struct se_portal_group *se_tpg; in tcm_qla2xxx_handle_cmd() local 466 se_tpg = se_sess->se_tpg; in tcm_qla2xxx_handle_cmd() 467 tpg = container_of(se_tpg, struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_handle_cmd() 786 struct se_portal_group *se_tpg = se_nacl->se_tpg; in tcm_qla2xxx_clear_nacl_from_fcport_map() local 1027 return &tpg->se_tpg; in tcm_qla2xxx_make_tpg() 1043 core_tpg_deregister(se_tpg); in tcm_qla2xxx_drop_tpg() [all …]
|
| H A D | tcm_qla2xxx.h | 50 struct se_portal_group se_tpg; member
|
| /linux-6.15/drivers/target/iscsi/ |
| H A D | iscsi_target_configfs.c | 155 struct se_portal_group *se_tpg, in lio_target_call_addnptotpg() argument 213 tpg = to_iscsi_tpg(se_tpg); in lio_target_call_addnptotpg() 252 struct se_portal_group *se_tpg; in lio_target_call_delnpfromtpg() local 261 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg() 651 struct se_portal_group *se_tpg = se_nacl->se_tpg; in lio_target_nacl_cmdsn_depth_store() local 1123 tpg = to_iscsi_tpg(se_tpg); in lio_target_tiqn_deltpg() 1440 return to_iscsi_tpg(se_tpg)->tpgt; in lio_tpg_get_tag() 1459 struct se_portal_group *se_tpg) in lio_tpg_check_demo_mode_write_protect() argument 1465 struct se_portal_group *se_tpg) in lio_tpg_check_prod_mode_write_protect() argument 1471 struct se_portal_group *se_tpg) in lio_tpg_check_prot_fabric_only() argument [all …]
|
| H A D | iscsi_target_login.c | 111 spin_lock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 139 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 455 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 473 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 711 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() 713 spin_unlock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() 725 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() 755 spin_unlock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() 1114 struct se_portal_group *se_tpg = in iscsi_target_login_sess_out() local 1119 spin_lock_bh(&se_tpg->session_lock); in iscsi_target_login_sess_out() [all …]
|
| H A D | iscsi_target_erl0.c | 748 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local 750 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 752 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 758 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 767 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 800 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local 802 lockdep_assert_held(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 811 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 815 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
|
| /linux-6.15/drivers/target/tcm_fc/ |
| H A D | tfc_conf.c | 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() 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 389 return ft_tpg(se_tpg)->lport_wwn->name; in ft_get_fabric_wwn() 392 static u16 ft_get_tag(struct se_portal_group *se_tpg) in ft_get_tag() argument 398 return ft_tpg(se_tpg)->index; in ft_get_tag() [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()
|
| /linux-6.15/drivers/target/loopback/ |
| H A D | tcm_loop.c | 465 return tl_tpg(se_tpg)->tl_tpgt; in tcm_loop_get_tag() 583 struct se_portal_group *se_tpg, in tcm_loop_port_link() argument 601 struct se_portal_group *se_tpg, in tcm_loop_port_unlink() argument 749 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_show() local 768 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_store() local 843 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_show() local 869 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_store() local 892 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_address_show() local 952 struct se_portal_group *se_tpg) in tcm_loop_drop_naa_tpg() argument 954 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() [all …]
|
| /linux-6.15/drivers/target/sbp/ |
| H A D | sbp_target.c | 163 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local 1678 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_fabric_wwn() 1686 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_get_tag() 1936 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_post_link_lun() 1945 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_pre_unlink_lun() 2014 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_drop_tpg() 2067 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_show() 2080 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_directory_id_store() 2105 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_enable_tpg() 2146 struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); in sbp_tpg_attrib_mgt_orb_timeout_show() [all …]
|
| /linux-6.15/drivers/scsi/elx/efct/ |
| H A D | efct_lio.c | 81 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_tpg_enable_show() local 83 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_show() 92 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_tpg_enable_store() local 94 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_store() 139 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_npiv_tpg_enable_show() local 150 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_npiv_tpg_enable_store() local 935 core_tpg_deregister(se_tpg); in efct_lio_drop_tpg() 995 core_tpg_deregister(se_tpg); in efct_lio_npiv_drop_tpg() 1163 struct se_portal_group *se_tpg; in efct_lio_setup_session() local 1174 se_tpg = &tpg->tpg; in efct_lio_setup_session() [all …]
|
| /linux-6.15/drivers/xen/ |
| H A D | xen-scsiback.c | 174 struct se_portal_group se_tpg; member 1331 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn() 1340 struct scsiback_tpg, se_tpg); in scsiback_get_tag() 1471 se_tpg); in scsiback_tpg_param_alias_show() 1486 se_tpg); in scsiback_tpg_param_alias_store() 1515 struct scsiback_tpg, se_tpg); in scsiback_alloc_sess_cb() 1607 struct scsiback_tpg, se_tpg); in scsiback_tpg_nexus_show() 1629 struct scsiback_tpg, se_tpg); in scsiback_tpg_nexus_store() 1725 struct scsiback_tpg, se_tpg); in scsiback_port_link() 1780 return &tpg->se_tpg; in scsiback_make_tpg() [all …]
|
| /linux-6.15/drivers/vhost/ |
| H A D | scsi.c | 165 struct se_portal_group se_tpg; member 344 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn() 353 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt() 360 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_check_prot_fabric_only() 1850 struct se_portal_group *se_tpg; in vhost_scsi_set_endpoint() local 1903 se_tpg = &tpg->se_tpg; in vhost_scsi_set_endpoint() 1982 struct se_portal_group *se_tpg; in vhost_scsi_clear_endpoint() local 2062 se_tpg = &tpg->se_tpg; in vhost_scsi_clear_endpoint() 2364 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_port_link() 2651 return &tpg->se_tpg; in vhost_scsi_make_tpg() [all …]
|
| /linux-6.15/drivers/usb/gadget/function/ |
| H A D | f_tcm.c | 1563 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn() 1572 struct usbg_tpg, se_tpg); in usbg_get_tag() 1704 return &tpg->se_tpg; in usbg_make_tpg() 1728 struct usbg_tpg, se_tpg); in usbg_drop_tpg() 1733 core_tpg_deregister(se_tpg); in usbg_drop_tpg() 1806 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_enable_tpg() 1824 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_show() 1845 struct usbg_tpg, se_tpg); in usbg_alloc_sess_cb() 1929 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in tcm_usbg_tpg_nexus_store() 1970 struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); in usbg_port_link() [all …]
|
| H A D | tcm.h | 44 struct se_portal_group se_tpg; member
|
| /linux-6.15/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() 3669 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_fabric_wwn() 3674 static u16 ibmvscsis_get_tag(struct se_portal_group *se_tpg) in ibmvscsis_get_tag() argument 3677 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_tag() 3876 rc = core_tpg_register(&tport->tport_wwn, &tport->se_tpg, in ibmvscsis_make_tpg() 3881 return &tport->se_tpg; in ibmvscsis_make_tpg() 3886 struct ibmvscsis_tport *tport = container_of(se_tpg, in ibmvscsis_drop_tpg() 3888 se_tpg); in ibmvscsis_drop_tpg() 3900 core_tpg_deregister(se_tpg); in ibmvscsis_drop_tpg() 3918 struct ibmvscsis_tport *tport = container_of(se_tpg, in ibmvscsis_enable_tpg() [all …]
|
| /linux-6.15/drivers/infiniband/ulp/srpt/ |
| H A D | ib_srpt.c | 3516 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_show() local 3517 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rdma_size_show() 3525 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_store() local 3526 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rdma_size_store() 3554 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rsp_size_show() 3563 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rsp_size_store() 3591 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_sq_size_show() 3600 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_sq_size_store() 3628 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_use_srq_show() 3637 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_use_srq_store() [all …]
|