/drivers/target/ |
D | target_core_tpg.c | 213 acl->se_tpg = tpg; in target_alloc_node_acl() 223 struct se_portal_group *tpg = acl->se_tpg; in target_add_node_acl() 343 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_del_initiator_node_acl() 407 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_set_initiator_node_queue_depth() 485 struct se_portal_group *se_tpg, in core_tpg_register() argument 490 if (!se_tpg) in core_tpg_register() 503 se_tpg->se_tpg_tfo = se_wwn->wwn_tf->tf_ops; in core_tpg_register() 505 if (!se_tpg->se_tpg_tfo) { in core_tpg_register() 510 INIT_HLIST_HEAD(&se_tpg->tpg_lun_hlist); in core_tpg_register() 511 se_tpg->proto_id = proto_id; in core_tpg_register() [all …]
|
D | target_core_fabric_configfs.c | 79 struct se_portal_group *se_tpg; in target_fabric_mappedlun_link() local 100 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link() 133 (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( in target_fabric_mappedlun_link() 134 se_tpg)) ? TRANSPORT_LUNFLAGS_READ_ONLY : in target_fabric_mappedlun_link() 143 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access); in target_fabric_mappedlun_link() 188 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_write_protect_store() local 206 se_tpg->se_tpg_tfo->get_fabric_name(), in target_fabric_mappedlun_write_protect_store() 224 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release() local 226 core_dev_free_initiator_node_lun_acl(se_tpg, lacl); in target_fabric_mappedlun_release() 278 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_make_mappedlun() local [all …]
|
D | target_core_transport.c | 302 struct se_portal_group *se_tpg, in __transport_register_session() argument 307 const struct target_core_fabric_ops *tfo = se_tpg->se_tpg_tfo; in __transport_register_session() 311 se_sess->se_tpg = se_tpg; in __transport_register_session() 334 tfo->tpg_check_prot_fabric_only(se_tpg); in __transport_register_session() 339 if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { in __transport_register_session() 341 se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, in __transport_register_session() 357 list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); in __transport_register_session() 360 se_tpg->se_tpg_tfo->get_fabric_name(), se_sess->fabric_sess_ptr); in __transport_register_session() 365 struct se_portal_group *se_tpg, in transport_register_session() argument 372 spin_lock_irqsave(&se_tpg->session_lock, flags); in transport_register_session() [all …]
|
D | target_core_fabric_lib.c | 275 struct se_portal_group *se_tpg, in iscsi_parse_pr_out_transport_id() argument 365 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id_len() 374 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id_len() 389 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id() 402 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id()
|
D | target_core_pr.c | 209 if (!sess || !sess->se_tpg) in target_scsi2_reservation_release() 233 tpg = sess->se_tpg; in target_scsi2_reservation_release() 266 if (!sess || !sess->se_tpg) in target_scsi2_reservation_reserve() 275 tpg = sess->se_tpg; in target_scsi2_reservation_reserve() 709 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration() 760 if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) in __core_scsi3_alloc_registration() 1029 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local 1041 tfo->get_fabric_name(), tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration() 1042 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration() 1060 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration() [all …]
|
D | target_core_ua.c | 272 nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_ua_for_check_condition() 333 " ASCQ: 0x%02x\n", nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_ua_clear_for_request_sense()
|
D | target_core_stat.c | 862 tpg = nacl->se_tpg; in target_stat_auth_inst_show() 907 tpg = nacl->se_tpg; in target_stat_auth_port_show() 1202 tpg = nacl->se_tpg; in target_stat_iport_inst_show() 1247 tpg = nacl->se_tpg; in target_stat_iport_port_show() 1270 tpg = nacl->se_tpg; in target_stat_iport_indx_show() 1315 tpg = nacl->se_tpg; in target_stat_iport_port_ident_show()
|
D | target_core_alua.c | 1232 struct se_portal_group *se_tpg = lun->lun_tpg; in core_alua_update_tpg_secondary_metadata() local 1250 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg)); in core_alua_update_tpg_secondary_metadata() 1252 if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) in core_alua_update_tpg_secondary_metadata() 1254 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); in core_alua_update_tpg_secondary_metadata() 1262 se_tpg->se_tpg_tfo->get_fabric_name(), wwn, in core_alua_update_tpg_secondary_metadata()
|
D | target_core_configfs.c | 1257 se_nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in target_core_dev_pr_show_spc3_res() 1271 se_nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in target_core_dev_pr_show_spc2_res() 1329 struct se_portal_group *se_tpg; in target_pr_res_pr_holder_tg_port_show() local 1342 se_tpg = se_nacl->se_tpg; in target_pr_res_pr_holder_tg_port_show() 1343 tfo = se_tpg->se_tpg_tfo; in target_pr_res_pr_holder_tg_port_show() 1347 tfo->tpg_get_wwn(se_tpg)); in target_pr_res_pr_holder_tg_port_show() 1351 tfo->get_fabric_name(), tfo->tpg_get_tag(se_tpg), in target_pr_res_pr_holder_tg_port_show() 1379 tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; in target_pr_res_pr_registered_i_pts_show()
|
D | target_core_device.c | 120 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 121 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 225 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi()
|
/drivers/target/tcm_fc/ |
D | tfc_conf.c | 205 struct se_portal_group *se_tpg = &tpg->se_tpg; in ft_acl_get() local 208 mutex_lock(&se_tpg->acl_node_mutex); in ft_acl_get() 209 list_for_each_entry(se_acl, &se_tpg->acl_node_list, acl_list) { in ft_acl_get() 222 mutex_unlock(&se_tpg->acl_node_mutex); in ft_acl_get() 273 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in ft_add_tpg() 285 return &tpg->se_tpg; in ft_add_tpg() 288 static void ft_del_tpg(struct se_portal_group *se_tpg) in ft_del_tpg() argument 290 struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_tpg() 294 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg() 309 core_tpg_deregister(se_tpg); in ft_del_tpg() [all …]
|
D | tcm_fc.h | 100 struct se_portal_group se_tpg; member
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 188 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_fabric_wwn() argument 190 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn() 191 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn() 197 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument 199 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag() 200 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag() 204 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument 206 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode() 207 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode() 212 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument [all …]
|
D | tcm_qla2xxx.h | 49 struct se_portal_group se_tpg; member
|
/drivers/target/loopback/ |
D | tcm_loop.c | 221 struct se_portal_group *se_tpg; in tcm_loop_issue_tmr() local 251 se_tpg = &tl_tpg->tl_se_tpg; in tcm_loop_issue_tmr() 256 transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, 0, in tcm_loop_issue_tmr() 519 static inline struct tcm_loop_tpg *tl_tpg(struct se_portal_group *se_tpg) in tl_tpg() argument 521 return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); in tl_tpg() 524 static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_loop_get_endpoint_wwn() argument 529 return &tl_tpg(se_tpg)->tl_hba->tl_wwn_address[0]; in tcm_loop_get_endpoint_wwn() 532 static u16 tcm_loop_get_tag(struct se_portal_group *se_tpg) in tcm_loop_get_tag() argument 538 return tl_tpg(se_tpg)->tl_tpgt; in tcm_loop_get_tag() 545 static int tcm_loop_check_demo_mode(struct se_portal_group *se_tpg) in tcm_loop_check_demo_mode() argument [all …]
|
/drivers/target/iscsi/ |
D | iscsi_target_configfs.c | 201 struct se_portal_group *se_tpg, in lio_target_call_addnptotpg() argument 282 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_call_addnptotpg() 289 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg() 321 struct se_portal_group *se_tpg; in lio_target_call_delnpfromtpg() local 330 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg() 332 " PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg() 694 struct se_portal_group *se_tpg = se_nacl->se_tpg; in lio_target_nacl_cmdsn_depth_store() local 695 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_target_nacl_cmdsn_depth_store() 751 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in lio_target_nacl_tag_store() 818 struct se_portal_group *se_tpg = attrib_to_tpg(item); \ [all …]
|
D | iscsi_target_login.c | 166 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() local 181 spin_lock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 182 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement() 207 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 506 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() local 511 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 512 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2() 528 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 711 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler() local 767 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() [all …]
|
D | iscsi_target_erl0.c | 754 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local 756 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 758 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 764 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 786 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 826 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local 835 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 839 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
|
/drivers/target/sbp/ |
D | sbp_target.c | 97 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 98 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid() 103 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid() 133 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 134 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun() 147 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun() 159 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() 160 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id() 170 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id() 177 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local [all …]
|
D | sbp_target.h | 160 struct se_portal_group se_tpg; member
|
/drivers/xen/ |
D | xen-scsiback.c | 175 struct se_portal_group se_tpg; member 599 transport_init_se_cmd(se_cmd, tpg->se_tpg.se_tpg_tfo, in scsiback_device_action() 889 mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry() 890 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry() 899 mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry() 1258 static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) in scsiback_get_fabric_wwn() argument 1260 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_fabric_wwn() 1261 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn() 1267 static u16 scsiback_get_tag(struct se_portal_group *se_tpg) in scsiback_get_tag() argument 1269 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_tag() [all …]
|
/drivers/vhost/ |
D | scsi.c | 141 struct se_portal_group se_tpg; member 278 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument 283 static int vhost_scsi_check_false(struct se_portal_group *se_tpg) in vhost_scsi_check_false() argument 293 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument 295 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn() 296 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn() 302 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument 304 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt() 305 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt() 309 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument [all …]
|
/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 1056 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work() 1173 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work() 1258 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument 1263 static int usbg_check_false(struct se_portal_group *se_tpg) in usbg_check_false() argument 1273 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument 1275 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn() 1276 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn() 1282 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument 1284 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag() 1285 struct usbg_tpg, se_tpg); in usbg_get_tag() [all …]
|
D | tcm_usb_gadget.h | 39 struct se_portal_group se_tpg; member
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 3329 static int srpt_check_true(struct se_portal_group *se_tpg) in srpt_check_true() argument 3334 static int srpt_check_false(struct se_portal_group *se_tpg) in srpt_check_false() argument 3356 static u32 srpt_tpg_get_inst_index(struct se_portal_group *se_tpg) in srpt_tpg_get_inst_index() argument 3473 container_of(se_nacl->se_tpg, struct srpt_port, port_tpg_1); in srpt_init_nodeacl() 3511 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_show() local 3512 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rdma_size_show() 3520 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_store() local 3521 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rdma_size_store() 3548 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rsp_size_show() local 3549 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rsp_size_show() [all …]
|