/linux-3.4.99/drivers/target/ |
D | target_core_tpg.c | 284 acl->se_tpg = tpg; in core_tpg_check_initiator_node_acl() 414 acl->se_tpg = tpg; in core_tpg_add_initiator_node_acl() 621 static int core_tpg_setup_virtual_lun0(struct se_portal_group *se_tpg) in core_tpg_setup_virtual_lun0() argument 625 struct se_lun *lun = &se_tpg->tpg_virt_lun0; in core_tpg_setup_virtual_lun0() 639 ret = core_tpg_post_addlun(se_tpg, lun, lun_access, dev); in core_tpg_setup_virtual_lun0() 646 static void core_tpg_release_virtual_lun0(struct se_portal_group *se_tpg) in core_tpg_release_virtual_lun0() argument 648 struct se_lun *lun = &se_tpg->tpg_virt_lun0; in core_tpg_release_virtual_lun0() 650 core_tpg_post_dellun(se_tpg, lun); in core_tpg_release_virtual_lun0() 656 struct se_portal_group *se_tpg, in core_tpg_register() argument 663 se_tpg->tpg_lun_list = array_zalloc(TRANSPORT_MAX_LUNS_PER_TPG, in core_tpg_register() [all …]
|
D | target_core_fabric_configfs.c | 72 struct se_portal_group *se_tpg; in target_fabric_mappedlun_link() local 89 se_tpg = lun->lun_sep->sep_tpg; in target_fabric_mappedlun_link() 122 (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( in target_fabric_mappedlun_link() 123 se_tpg)) ? TRANSPORT_LUNFLAGS_READ_ONLY : in target_fabric_mappedlun_link() 132 ret = core_dev_add_initiator_node_lun_acl(se_tpg, lacl, in target_fabric_mappedlun_link() 147 struct se_portal_group *se_tpg; in target_fabric_mappedlun_unlink() local 155 se_tpg = lun->lun_sep->sep_tpg; in target_fabric_mappedlun_unlink() 157 core_dev_del_initiator_node_lun_acl(se_tpg, lun, lacl); in target_fabric_mappedlun_unlink() 192 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_store_write_protect() local 208 se_tpg->se_tpg_tfo->get_fabric_name(), in target_fabric_mappedlun_store_write_protect() [all …]
|
D | target_core_fabric_lib.c | 46 u8 sas_get_fabric_proto_ident(struct se_portal_group *se_tpg) in sas_get_fabric_proto_ident() argument 57 struct se_portal_group *se_tpg, in sas_get_pr_transport_id() argument 88 struct se_portal_group *se_tpg, in sas_get_pr_transport_id_len() argument 109 struct se_portal_group *se_tpg, in sas_parse_pr_out_transport_id() argument 132 u8 fc_get_fabric_proto_ident(struct se_portal_group *se_tpg) in fc_get_fabric_proto_ident() argument 139 struct se_portal_group *se_tpg, in fc_get_pr_transport_id_len() argument 153 struct se_portal_group *se_tpg, in fc_get_pr_transport_id() argument 192 struct se_portal_group *se_tpg, in fc_parse_pr_out_transport_id() argument 213 u8 iscsi_get_fabric_proto_ident(struct se_portal_group *se_tpg) in iscsi_get_fabric_proto_ident() argument 224 struct se_portal_group *se_tpg, in iscsi_get_pr_transport_id() argument [all …]
|
D | target_core_pr.c | 201 struct se_portal_group *tpg = sess->se_tpg; in target_scsi2_reservation_release() 252 struct se_portal_group *tpg = sess->se_tpg; in target_scsi2_reservation_reserve() 707 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() 1022 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local 1036 tfo->get_fabric_name(), tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration() 1037 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration() 1060 struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration() 1156 tpg = pr_reg->pr_reg_nacl->se_tpg; in __core_scsi3_locate_pr_reg() 1201 struct se_portal_group *tpg = nacl->se_tpg; in core_scsi3_locate_pr_reg() [all …]
|
D | target_core_transport.c | 259 struct se_portal_group *se_tpg, in __transport_register_session() argument 266 se_sess->se_tpg = se_tpg; in __transport_register_session() 279 if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { in __transport_register_session() 281 se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, in __transport_register_session() 298 list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); in __transport_register_session() 301 se_tpg->se_tpg_tfo->get_fabric_name(), se_sess->fabric_sess_ptr); in __transport_register_session() 306 struct se_portal_group *se_tpg, in transport_register_session() argument 313 spin_lock_irqsave(&se_tpg->session_lock, flags); in transport_register_session() 314 __transport_register_session(se_tpg, se_nacl, se_sess, fabric_sess_ptr); in transport_register_session() 315 spin_unlock_irqrestore(&se_tpg->session_lock, flags); in transport_register_session() [all …]
|
D | target_core_ua.c | 179 nacl->se_tpg->se_tpg_tfo->get_fabric_name(), unpacked_lun, in core_scsi3_ua_allocate() 267 nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_ua_for_check_condition() 325 " ASCQ: 0x%02x\n", nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in core_scsi3_ua_clear_for_request_sense()
|
D | target_core_alua.c | 1000 struct se_portal_group *se_tpg = port->sep_tpg; in core_alua_update_tpg_secondary_metadata() local 1008 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg)); in core_alua_update_tpg_secondary_metadata() 1010 if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) in core_alua_update_tpg_secondary_metadata() 1012 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); in core_alua_update_tpg_secondary_metadata() 1020 se_tpg->se_tpg_tfo->get_fabric_name(), wwn, in core_alua_update_tpg_secondary_metadata()
|
D | target_core_configfs.c | 1057 se_nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in target_core_dev_pr_show_spc3_res() 1079 se_nacl->se_tpg->se_tpg_tfo->get_fabric_name(), in target_core_dev_pr_show_spc2_res() 1187 struct se_portal_group *se_tpg; in target_core_dev_pr_show_attr_res_pr_holder_tg_port() local 1207 se_tpg = se_nacl->se_tpg; in target_core_dev_pr_show_attr_res_pr_holder_tg_port() 1209 tfo = se_tpg->se_tpg_tfo; in target_core_dev_pr_show_attr_res_pr_holder_tg_port() 1213 tfo->tpg_get_wwn(se_tpg)); in target_core_dev_pr_show_attr_res_pr_holder_tg_port() 1217 tfo->get_fabric_name(), tfo->tpg_get_tag(se_tpg), in target_core_dev_pr_show_attr_res_pr_holder_tg_port() 1254 tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; in target_core_dev_pr_show_attr_res_pr_registered_i_pts()
|
D | target_core_stat.c | 1253 tpg = nacl->se_tpg; in target_stat_scsi_auth_intr_show_attr_inst() 1302 tpg = nacl->se_tpg; in target_stat_scsi_auth_intr_show_attr_port() 1619 tpg = nacl->se_tpg; in target_stat_scsi_att_intr_port_show_attr_inst() 1668 tpg = nacl->se_tpg; in target_stat_scsi_att_intr_port_show_attr_port() 1693 tpg = nacl->se_tpg; in target_stat_scsi_att_intr_port_show_attr_indx() 1742 tpg = nacl->se_tpg; in target_stat_scsi_att_intr_port_show_attr_port_ident()
|
D | target_core_tmr.c | 456 tmr_tpg = tmr->task_cmd->se_sess->se_tpg; in core_tmr_lun_reset()
|
D | target_core_device.c | 134 se_lun = &se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 135 se_cmd->se_lun = &se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 238 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi()
|
/linux-3.4.99/drivers/target/tcm_fc/ |
D | tfc_conf.c | 202 struct se_portal_group *se_tpg, in ft_add_acl() argument 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() 229 struct se_portal_group *se_tpg = se_acl->se_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() 249 struct se_portal_group *se_tpg = &tpg->se_tpg; in ft_acl_get() local 252 spin_lock_irq(&se_tpg->acl_node_lock); in ft_acl_get() 253 list_for_each_entry(se_acl, &se_tpg->acl_node_list, acl_list) { in ft_acl_get() [all …]
|
D | tcm_fc.h | 100 struct se_portal_group se_tpg; member
|
D | tfc_sess.c | 231 transport_register_session(&tport->tpg->se_tpg, &acl->se_node_acl, in ft_sess_create()
|
/linux-3.4.99/drivers/target/loopback/ |
D | tcm_loop.c | 296 struct se_portal_group *se_tpg; in tcm_loop_device_reset() local 322 se_tpg = &tl_tpg->tl_se_tpg; in tcm_loop_device_reset() 341 transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, 0, in tcm_loop_device_reset() 533 static u8 tcm_loop_get_fabric_proto_ident(struct se_portal_group *se_tpg) in tcm_loop_get_fabric_proto_ident() argument 535 struct tcm_loop_tpg *tl_tpg = se_tpg->se_tpg_fabric_ptr; in tcm_loop_get_fabric_proto_ident() 546 return sas_get_fabric_proto_ident(se_tpg); in tcm_loop_get_fabric_proto_ident() 548 return fc_get_fabric_proto_ident(se_tpg); in tcm_loop_get_fabric_proto_ident() 550 return iscsi_get_fabric_proto_ident(se_tpg); in tcm_loop_get_fabric_proto_ident() 557 return sas_get_fabric_proto_ident(se_tpg); in tcm_loop_get_fabric_proto_ident() 560 static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_loop_get_endpoint_wwn() argument [all …]
|
/linux-3.4.99/drivers/target/iscsi/ |
D | iscsi_target_configfs.c | 54 struct se_portal_group *se_tpg = container_of(to_config_group(item), in lio_get_tpg_from_tpg_item() local 56 struct iscsi_portal_group *tpg = se_tpg->se_tpg_fabric_ptr; in lio_get_tpg_from_tpg_item() 161 struct se_portal_group *se_tpg, in lio_target_call_addnptotpg() argument 242 tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in lio_target_call_addnptotpg() 249 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg() 281 struct se_portal_group *se_tpg; in lio_target_call_delnpfromtpg() local 290 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg() 292 " PORTAL: %s:%hu\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg() 729 struct se_portal_group *se_tpg = se_nacl->se_tpg; in lio_target_nacl_store_cmdsn_depth() local 730 struct iscsi_portal_group *tpg = container_of(se_tpg, in lio_target_nacl_store_cmdsn_depth() [all …]
|
D | iscsi_target_login.c | 129 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() local 144 spin_lock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 145 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement() 169 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement() 434 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() local 438 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 439 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2() 455 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2() 589 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler() local 644 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler() [all …]
|
D | iscsi_target_erl0.c | 753 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local 755 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 757 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 763 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 785 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout() 825 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local 834 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer() 838 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
|
D | iscsi_target.c | 4192 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_close_session() local 4201 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session() 4205 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session() 4240 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session() 4258 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session() 4499 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_release_sessions_for_tpg() local 4503 spin_lock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg() 4505 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg() 4509 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsit_release_sessions_for_tpg() 4522 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg() [all …]
|
D | iscsi_target_stat.c | 727 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_show_attr_inst()
|
/linux-3.4.99/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 3389 static int srpt_check_true(struct se_portal_group *se_tpg) in srpt_check_true() argument 3394 static int srpt_check_false(struct se_portal_group *se_tpg) in srpt_check_false() argument 3404 static u8 srpt_get_fabric_proto_ident(struct se_portal_group *se_tpg) in srpt_get_fabric_proto_ident() argument 3421 static u32 srpt_get_default_depth(struct se_portal_group *se_tpg) in srpt_get_default_depth() argument 3426 static u32 srpt_get_pr_transport_id(struct se_portal_group *se_tpg, in srpt_get_pr_transport_id() argument 3441 static u32 srpt_get_pr_transport_id_len(struct se_portal_group *se_tpg, in srpt_get_pr_transport_id_len() argument 3450 static char *srpt_parse_pr_out_transport_id(struct se_portal_group *se_tpg, in srpt_parse_pr_out_transport_id() argument 3462 static struct se_node_acl *srpt_alloc_fabric_acl(struct se_portal_group *se_tpg) in srpt_alloc_fabric_acl() argument 3475 static void srpt_release_fabric_acl(struct se_portal_group *se_tpg, in srpt_release_fabric_acl() argument 3484 static u32 srpt_tpg_get_inst_index(struct se_portal_group *se_tpg) in srpt_tpg_get_inst_index() argument [all …]
|
/linux-3.4.99/include/target/ |
D | target_core_base.h | 635 struct se_portal_group *se_tpg; member 654 struct se_portal_group *se_tpg; member
|