se_tpg 3270 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_check_true(struct se_portal_group *se_tpg) se_tpg 3275 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_check_false(struct se_portal_group *se_tpg) se_tpg 3300 drivers/infiniband/ulp/srpt/ib_srpt.c static u32 srpt_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 3444 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3445 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3453 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3454 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3481 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3482 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3490 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3491 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3518 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3519 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3527 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3528 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3555 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3556 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3564 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 3565 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3701 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 3702 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 3710 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 3711 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); se_tpg 2228 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, se_tpg 3692 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static char *ibmvscsis_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 3695 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c container_of(se_tpg, struct ibmvscsis_tport, se_tpg); se_tpg 3700 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static u16 ibmvscsis_get_tag(struct se_portal_group *se_tpg) se_tpg 3703 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c container_of(se_tpg, struct ibmvscsis_tport, se_tpg); se_tpg 3708 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static u32 ibmvscsis_get_default_depth(struct se_portal_group *se_tpg) se_tpg 3713 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static int ibmvscsis_check_true(struct se_portal_group *se_tpg) se_tpg 3718 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static int ibmvscsis_check_false(struct se_portal_group *se_tpg) se_tpg 3723 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static u32 ibmvscsis_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 3928 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = core_tpg_register(&tport->tport_wwn, &tport->se_tpg, se_tpg 3933 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c return &tport->se_tpg; se_tpg 3936 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static void ibmvscsis_drop_tpg(struct se_portal_group *se_tpg) se_tpg 3938 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct ibmvscsis_tport *tport = container_of(se_tpg, se_tpg 3940 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c se_tpg); se_tpg 3952 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c core_tpg_deregister(se_tpg); se_tpg 3970 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 3971 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct ibmvscsis_tport *tport = container_of(se_tpg, se_tpg 3973 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c se_tpg); se_tpg 3981 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 3982 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct ibmvscsis_tport *tport = container_of(se_tpg, se_tpg 3984 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c se_tpg); se_tpg 184 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h struct se_portal_group se_tpg; se_tpg 162 drivers/scsi/qla2xxx/tcm_qla2xxx.c static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 164 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 165 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 171 drivers/scsi/qla2xxx/tcm_qla2xxx.c static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) se_tpg 173 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 174 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 178 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) se_tpg 180 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 181 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 186 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) se_tpg 188 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 189 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 194 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_demo_write_protect(struct se_portal_group *se_tpg) se_tpg 196 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 197 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 202 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_prod_write_protect(struct se_portal_group *se_tpg) se_tpg 204 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 205 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 210 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_demo_mode_login_only(struct se_portal_group *se_tpg) se_tpg 212 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 213 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 218 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_check_prot_fabric_only(struct se_portal_group *se_tpg) se_tpg 220 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 221 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 226 drivers/scsi/qla2xxx/tcm_qla2xxx.c static u32 tcm_qla2xxx_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 228 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 229 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 428 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg; se_tpg 452 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_tpg = se_sess->se_tpg; se_tpg 453 drivers/scsi/qla2xxx/tcm_qla2xxx.c tpg = container_of(se_tpg, struct tcm_qla2xxx_tpg, se_tpg); se_tpg 762 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = se_nacl->se_tpg; se_tpg 763 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; se_tpg 826 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = attrib_to_tpg(item); \ se_tpg 827 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \ se_tpg 828 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); \ se_tpg 836 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = attrib_to_tpg(item); \ se_tpg 837 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \ se_tpg 838 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); \ se_tpg 887 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 888 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 889 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 898 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 899 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; se_tpg 903 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 904 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 943 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 944 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 945 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 965 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 966 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 967 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 1019 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); se_tpg 1027 drivers/scsi/qla2xxx/tcm_qla2xxx.c return &tpg->se_tpg; se_tpg 1030 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_drop_tpg(struct se_portal_group *se_tpg) se_tpg 1032 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 1033 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 1043 drivers/scsi/qla2xxx/tcm_qla2xxx.c core_tpg_deregister(se_tpg); se_tpg 1060 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1061 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; se_tpg 1065 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 1066 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 1134 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); se_tpg 1140 drivers/scsi/qla2xxx/tcm_qla2xxx.c return &tpg->se_tpg; se_tpg 1392 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_session_cb(struct se_portal_group *se_tpg, se_tpg 1395 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, se_tpg 1396 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_tpg, se_tpg); se_tpg 1461 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = target_setup_session(&tpg->se_tpg, num_tags, se_tpg 50 drivers/scsi/qla2xxx/tcm_qla2xxx.h struct se_portal_group se_tpg; se_tpg 4349 drivers/target/iscsi/iscsi_target.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 4358 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&se_tpg->session_lock); se_tpg 4362 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 4397 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&se_tpg->session_lock); se_tpg 4412 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 4628 drivers/target/iscsi/iscsi_target.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 4633 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&se_tpg->session_lock); se_tpg 4635 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 4639 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_tpg 4659 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 155 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg, se_tpg 214 drivers/target/iscsi/iscsi_target_configfs.c tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); se_tpg 221 drivers/target/iscsi/iscsi_target_configfs.c config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), se_tpg 253 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg; se_tpg 262 drivers/target/iscsi/iscsi_target_configfs.c se_tpg = &tpg->tpg_se_tpg; se_tpg 264 drivers/target/iscsi/iscsi_target_configfs.c " PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), se_tpg 626 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = se_nacl->se_tpg; se_tpg 627 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, se_tpg 683 drivers/target/iscsi/iscsi_target_configfs.c ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); se_tpg 723 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = attrib_to_tpg(item); \ se_tpg 724 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 739 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = attrib_to_tpg(item); \ se_tpg 740 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 801 drivers/target/iscsi/iscsi_target_configfs.c static ssize_t __iscsi_##prefix##_##name##_show(struct se_portal_group *se_tpg, \ se_tpg 804 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 814 drivers/target/iscsi/iscsi_target_configfs.c static ssize_t __iscsi_##prefix##_##name##_store(struct se_portal_group *se_tpg,\ se_tpg 817 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 862 drivers/target/iscsi/iscsi_target_configfs.c static ssize_t __iscsi_##prefix##_##name##_show(struct se_portal_group *se_tpg, \ se_tpg 865 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 903 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = param_to_tpg(item); \ se_tpg 904 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 926 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = param_to_tpg(item); \ se_tpg 927 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, \ se_tpg 1011 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1012 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, se_tpg 1027 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1028 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, se_tpg 1133 drivers/target/iscsi/iscsi_target_configfs.c static void lio_target_tiqn_deltpg(struct se_portal_group *se_tpg) se_tpg 1138 drivers/target/iscsi/iscsi_target_configfs.c tpg = container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); se_tpg 1412 drivers/target/iscsi/iscsi_target_configfs.c static inline struct iscsi_portal_group *iscsi_tpg(struct se_portal_group *se_tpg) se_tpg 1414 drivers/target/iscsi/iscsi_target_configfs.c return container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); se_tpg 1417 drivers/target/iscsi/iscsi_target_configfs.c static char *lio_tpg_get_endpoint_wwn(struct se_portal_group *se_tpg) se_tpg 1419 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_tiqn->tiqn; se_tpg 1422 drivers/target/iscsi/iscsi_target_configfs.c static u16 lio_tpg_get_tag(struct se_portal_group *se_tpg) se_tpg 1424 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpgt; se_tpg 1427 drivers/target/iscsi/iscsi_target_configfs.c static u32 lio_tpg_get_default_depth(struct se_portal_group *se_tpg) se_tpg 1429 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.default_cmdsn_depth; se_tpg 1432 drivers/target/iscsi/iscsi_target_configfs.c static int lio_tpg_check_demo_mode(struct se_portal_group *se_tpg) se_tpg 1434 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.generate_node_acls; se_tpg 1437 drivers/target/iscsi/iscsi_target_configfs.c static int lio_tpg_check_demo_mode_cache(struct se_portal_group *se_tpg) se_tpg 1439 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.cache_dynamic_acls; se_tpg 1443 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg) se_tpg 1445 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.demo_mode_write_protect; se_tpg 1449 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg) se_tpg 1451 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.prod_mode_write_protect; se_tpg 1455 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg) se_tpg 1461 drivers/target/iscsi/iscsi_target_configfs.c if (!iscsi_tpg(se_tpg)->tpg_attrib.t10_pi) se_tpg 1463 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_attrib.fabric_prot_type; se_tpg 1473 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = &sess->tpg->tpg_se_tpg; se_tpg 1475 drivers/target/iscsi/iscsi_target_configfs.c spin_lock_bh(&se_tpg->session_lock); se_tpg 1482 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 1492 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 1498 drivers/target/iscsi/iscsi_target_configfs.c static u32 lio_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 1500 drivers/target/iscsi/iscsi_target_configfs.c return iscsi_tpg(se_tpg)->tpg_tiqn->tiqn_index; se_tpg 1507 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = se_acl->se_tpg; se_tpg 1508 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_portal_group *tpg = container_of(se_tpg, se_tpg 748 drivers/target/iscsi/iscsi_target_erl0.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 750 drivers/target/iscsi/iscsi_target_erl0.c spin_lock_bh(&se_tpg->session_lock); se_tpg 752 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 758 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 767 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 800 drivers/target/iscsi/iscsi_target_erl0.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 802 drivers/target/iscsi/iscsi_target_erl0.c lockdep_assert_held(&se_tpg->session_lock); se_tpg 811 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock(&se_tpg->session_lock); se_tpg 815 drivers/target/iscsi/iscsi_target_erl0.c spin_lock(&se_tpg->session_lock); se_tpg 136 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 151 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&se_tpg->session_lock); se_tpg 152 drivers/target/iscsi/iscsi_target_login.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_tpg 179 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 477 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 482 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&se_tpg->session_lock); se_tpg 483 drivers/target/iscsi/iscsi_target_login.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_tpg 500 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 682 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; se_tpg 738 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&se_tpg->session_lock); se_tpg 740 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 752 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&se_tpg->session_lock); se_tpg 782 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 1201 drivers/target/iscsi/iscsi_target_login.c struct se_portal_group *se_tpg = se_tpg 1206 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&se_tpg->session_lock); se_tpg 1208 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 131 drivers/target/iscsi/iscsi_target_nego.c iscsi_tpg = container_of(se_nacl->se_tpg, se_tpg 592 drivers/target/iscsi/iscsi_target_stat.c struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; se_tpg 448 drivers/target/loopback/tcm_loop.c static inline struct tcm_loop_tpg *tl_tpg(struct se_portal_group *se_tpg) se_tpg 450 drivers/target/loopback/tcm_loop.c return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); se_tpg 453 drivers/target/loopback/tcm_loop.c static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) se_tpg 458 drivers/target/loopback/tcm_loop.c return &tl_tpg(se_tpg)->tl_hba->tl_wwn_address[0]; se_tpg 461 drivers/target/loopback/tcm_loop.c static u16 tcm_loop_get_tag(struct se_portal_group *se_tpg) se_tpg 467 drivers/target/loopback/tcm_loop.c return tl_tpg(se_tpg)->tl_tpgt; se_tpg 474 drivers/target/loopback/tcm_loop.c static int tcm_loop_check_demo_mode(struct se_portal_group *se_tpg) se_tpg 479 drivers/target/loopback/tcm_loop.c static int tcm_loop_check_demo_mode_cache(struct se_portal_group *se_tpg) se_tpg 488 drivers/target/loopback/tcm_loop.c static int tcm_loop_check_demo_mode_write_protect(struct se_portal_group *se_tpg) se_tpg 498 drivers/target/loopback/tcm_loop.c static int tcm_loop_check_prod_mode_write_protect(struct se_portal_group *se_tpg) se_tpg 503 drivers/target/loopback/tcm_loop.c static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg) se_tpg 505 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, se_tpg 510 drivers/target/loopback/tcm_loop.c static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) se_tpg 627 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg, se_tpg 630 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 645 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg, se_tpg 652 drivers/target/loopback/tcm_loop.c tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); se_tpg 678 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 679 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, se_tpg 688 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 689 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, se_tpg 716 drivers/target/loopback/tcm_loop.c static int tcm_loop_alloc_sess_cb(struct se_portal_group *se_tpg, se_tpg 719 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 793 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 794 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 812 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 813 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 887 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 888 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 913 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 914 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 936 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 937 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 996 drivers/target/loopback/tcm_loop.c struct se_portal_group *se_tpg) se_tpg 998 drivers/target/loopback/tcm_loop.c struct se_wwn *wwn = se_tpg->se_tpg_wwn; se_tpg 999 drivers/target/loopback/tcm_loop.c struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, se_tpg 1013 drivers/target/loopback/tcm_loop.c core_tpg_deregister(se_tpg); se_tpg 83 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); se_tpg 84 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_tpg 89 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); se_tpg 119 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); se_tpg 120 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_tpg 133 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); se_tpg 145 drivers/target/sbp/sbp_target.c spin_lock_bh(&tpg->se_tpg.session_lock); se_tpg 146 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_tpg 156 drivers/target/sbp/sbp_target.c spin_unlock_bh(&tpg->se_tpg.session_lock); se_tpg 163 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = &tpg->se_tpg; se_tpg 167 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(se_lun, &se_tpg->tpg_lun_hlist, link) { se_tpg 199 drivers/target/sbp/sbp_target.c sess->se_sess = target_setup_session(&tpg->se_tpg, 128, se_tpg 1674 drivers/target/sbp/sbp_target.c static int sbp_check_true(struct se_portal_group *se_tpg) se_tpg 1679 drivers/target/sbp/sbp_target.c static int sbp_check_false(struct se_portal_group *se_tpg) se_tpg 1684 drivers/target/sbp/sbp_target.c static char *sbp_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 1686 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 1692 drivers/target/sbp/sbp_target.c static u16 sbp_get_tag(struct se_portal_group *se_tpg) se_tpg 1694 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 1698 drivers/target/sbp/sbp_target.c static u32 sbp_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 1826 drivers/target/sbp/sbp_target.c num_luns = sbp_count_se_tpg_luns(&tport->tpg->se_tpg); se_tpg 1877 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { se_tpg 1961 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg, se_tpg 1964 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 1970 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg, se_tpg 1973 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 1977 drivers/target/sbp/sbp_target.c if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) se_tpg 2026 drivers/target/sbp/sbp_target.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); se_tpg 2030 drivers/target/sbp/sbp_target.c return &tpg->se_tpg; se_tpg 2040 drivers/target/sbp/sbp_target.c static void sbp_drop_tpg(struct se_portal_group *se_tpg) se_tpg 2042 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2045 drivers/target/sbp/sbp_target.c core_tpg_deregister(se_tpg); se_tpg 2094 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2095 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2107 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2108 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2133 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2134 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2142 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2143 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2157 drivers/target/sbp/sbp_target.c if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { se_tpg 2163 drivers/target/sbp/sbp_target.c spin_lock_bh(&se_tpg->session_lock); se_tpg 2164 drivers/target/sbp/sbp_target.c if (!list_empty(&se_tpg->tpg_sess_list)) { se_tpg 2165 drivers/target/sbp/sbp_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 2168 drivers/target/sbp/sbp_target.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 2194 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2195 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2203 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2204 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2229 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2230 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2238 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2239 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2264 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2265 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 2273 drivers/target/sbp/sbp_target.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 2274 drivers/target/sbp/sbp_target.c struct sbp_tpg *tpg = container_of(se_tpg, struct sbp_tpg, se_tpg); se_tpg 161 drivers/target/sbp/sbp_target.h struct se_portal_group se_tpg; se_tpg 1197 drivers/target/target_core_alua.c struct se_portal_group *se_tpg = lun->lun_tpg; se_tpg 1216 drivers/target/target_core_alua.c if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) { se_tpg 1218 drivers/target/target_core_alua.c db_root, se_tpg->se_tpg_tfo->fabric_name, se_tpg 1219 drivers/target/target_core_alua.c se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), se_tpg 1220 drivers/target/target_core_alua.c se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg), se_tpg 1224 drivers/target/target_core_alua.c db_root, se_tpg->se_tpg_tfo->fabric_name, se_tpg 1225 drivers/target/target_core_alua.c se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), se_tpg 1612 drivers/target/target_core_configfs.c se_nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 1627 drivers/target/target_core_configfs.c se_nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 1688 drivers/target/target_core_configfs.c struct se_portal_group *se_tpg; se_tpg 1701 drivers/target/target_core_configfs.c se_tpg = se_nacl->se_tpg; se_tpg 1702 drivers/target/target_core_configfs.c tfo = se_tpg->se_tpg_tfo; se_tpg 1706 drivers/target/target_core_configfs.c tfo->tpg_get_wwn(se_tpg)); se_tpg 1710 drivers/target/target_core_configfs.c tfo->fabric_name, tfo->tpg_get_tag(se_tpg), se_tpg 1738 drivers/target/target_core_configfs.c tfo = pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; se_tpg 109 drivers/target/target_core_device.c se_lun = se_sess->se_tpg->tpg_virt_lun0; se_tpg 110 drivers/target/target_core_device.c se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; se_tpg 219 drivers/target/target_core_device.c struct se_portal_group *tpg = nacl->se_tpg; se_tpg 73 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg; se_tpg 96 drivers/target/target_core_fabric_configfs.c se_tpg = lun->lun_tpg; se_tpg 129 drivers/target/target_core_fabric_configfs.c (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( se_tpg 130 drivers/target/target_core_fabric_configfs.c se_tpg)) ? true : false; se_tpg 138 drivers/target/target_core_fabric_configfs.c return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); se_tpg 182 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = se_nacl->se_tpg; se_tpg 198 drivers/target/target_core_fabric_configfs.c se_tpg->se_tpg_tfo->fabric_name, se_tpg 216 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; se_tpg 218 drivers/target/target_core_fabric_configfs.c core_dev_free_initiator_node_lun_acl(se_tpg, lacl); se_tpg 270 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = se_nacl->se_tpg; se_tpg 271 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 300 drivers/target/target_core_fabric_configfs.c lacl = core_dev_init_initiator_node_lun_acl(se_tpg, se_nacl, se_tpg 376 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = container_of(group, se_tpg 378 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 381 drivers/target/target_core_fabric_configfs.c se_nacl = core_tpg_add_initiator_node_acl(se_tpg, name); se_tpg 450 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = se_tpg_np->tpg_np_parent; se_tpg 451 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 470 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = container_of(group, se_tpg 472 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 480 drivers/target/target_core_fabric_configfs.c se_tpg_np = tf->tf_ops->fabric_make_np(se_tpg, group, name); se_tpg 484 drivers/target/target_core_fabric_configfs.c se_tpg_np->tpg_np_parent = se_tpg; se_tpg 626 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg; se_tpg 644 drivers/target/target_core_fabric_configfs.c se_tpg = container_of(to_config_group(tpg_ci), se_tpg 646 drivers/target/target_core_fabric_configfs.c tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 653 drivers/target/target_core_fabric_configfs.c ret = core_dev_add_lun(se_tpg, dev, lun); se_tpg 665 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_post_link(se_tpg, lun); se_tpg 679 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = lun->lun_tpg; se_tpg 680 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 688 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_pre_unlink(se_tpg, lun); se_tpg 691 drivers/target/target_core_fabric_configfs.c core_dev_del_lun(se_tpg, lun); se_tpg 744 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = container_of(group, se_tpg 746 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; se_tpg 759 drivers/target/target_core_fabric_configfs.c lun = core_tpg_alloc_lun(se_tpg, unpacked_lun); se_tpg 806 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = container_of(to_config_group(item), se_tpg 808 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn = se_tpg->se_tpg_wwn; se_tpg 811 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_drop_tpg(se_tpg); se_tpg 830 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg; se_tpg 837 drivers/target/target_core_fabric_configfs.c se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); se_tpg 838 drivers/target/target_core_fabric_configfs.c if (!se_tpg || IS_ERR(se_tpg)) se_tpg 841 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_group, name, se_tpg 844 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_lun_group, "lun", se_tpg 846 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_lun_group, se_tpg 847 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 849 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_np_group, "np", se_tpg 851 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_np_group, se_tpg 852 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 854 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_acl_group, "acls", se_tpg 856 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_acl_group, se_tpg 857 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 859 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_attrib_group, "attrib", se_tpg 861 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_attrib_group, se_tpg 862 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 864 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_auth_group, "auth", se_tpg 866 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_auth_group, se_tpg 867 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 869 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&se_tpg->tpg_param_group, "param", se_tpg 871 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&se_tpg->tpg_param_group, se_tpg 872 drivers/target/target_core_fabric_configfs.c &se_tpg->tpg_group); se_tpg 874 drivers/target/target_core_fabric_configfs.c return &se_tpg->tpg_group; se_tpg 881 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = container_of(to_config_group(item), se_tpg 884 drivers/target/target_core_fabric_configfs.c configfs_remove_default_groups(&se_tpg->tpg_group); se_tpg 262 drivers/target/target_core_fabric_lib.c struct se_portal_group *se_tpg, se_tpg 352 drivers/target/target_core_fabric_lib.c switch (nacl->se_tpg->proto_id) { se_tpg 361 drivers/target/target_core_fabric_lib.c pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); se_tpg 376 drivers/target/target_core_fabric_lib.c switch (nacl->se_tpg->proto_id) { se_tpg 389 drivers/target/target_core_fabric_lib.c pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); se_tpg 208 drivers/target/target_core_pr.c if (!sess || !sess->se_tpg) se_tpg 227 drivers/target/target_core_pr.c tpg = sess->se_tpg; se_tpg 259 drivers/target/target_core_pr.c if (!sess || !sess->se_tpg) se_tpg 268 drivers/target/target_core_pr.c tpg = sess->se_tpg; se_tpg 704 drivers/target/target_core_pr.c const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; se_tpg 755 drivers/target/target_core_pr.c if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) se_tpg 1024 drivers/target/target_core_pr.c struct se_portal_group *se_tpg = nacl->se_tpg; se_tpg 1036 drivers/target/target_core_pr.c tfo->fabric_name, tfo->tpg_get_wwn(se_tpg), se_tpg 1037 drivers/target/target_core_pr.c tfo->tpg_get_tag(se_tpg)); se_tpg 1055 drivers/target/target_core_pr.c const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; se_tpg 1173 drivers/target/target_core_pr.c tpg = pr_reg->pr_reg_nacl->se_tpg; se_tpg 1216 drivers/target/target_core_pr.c struct se_portal_group *tpg = nacl->se_tpg; se_tpg 1294 drivers/target/target_core_pr.c pr_reg->pr_reg_nacl->se_tpg->se_tpg_tfo; se_tpg 1887 drivers/target/target_core_pr.c tpg = pr_reg->pr_reg_nacl->se_tpg; se_tpg 2051 drivers/target/target_core_pr.c struct se_portal_group *se_tpg; se_tpg 2062 drivers/target/target_core_pr.c se_tpg = se_sess->se_tpg; se_tpg 2064 drivers/target/target_core_pr.c if (se_tpg->se_tpg_tfo->sess_get_initiator_sid) { se_tpg 2066 drivers/target/target_core_pr.c se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, &isid_buf[0], se_tpg 2110 drivers/target/target_core_pr.c ret = core_scsi3_decode_spec_i_port(cmd, se_tpg, se_tpg 2352 drivers/target/target_core_pr.c pr_res_nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 2375 drivers/target/target_core_pr.c pr_res_nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 2451 drivers/target/target_core_pr.c const struct target_core_fabric_ops *tfo = se_nacl->se_tpg->se_tpg_tfo; se_tpg 2604 drivers/target/target_core_pr.c pr_res_nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 2762 drivers/target/target_core_pr.c const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; se_tpg 3147 drivers/target/target_core_pr.c struct se_portal_group *se_tpg, *dest_se_tpg = NULL; se_tpg 3166 drivers/target/target_core_pr.c se_tpg = se_sess->se_tpg; se_tpg 3167 drivers/target/target_core_pr.c tf_ops = se_tpg->se_tpg_tfo; se_tpg 3881 drivers/target/target_core_pr.c struct se_portal_group *se_tpg; se_tpg 3921 drivers/target/target_core_pr.c se_tpg = pr_reg->pr_reg_nacl->se_tpg; se_tpg 3991 drivers/target/target_core_pr.c buf[off+4] = se_tpg->proto_id; se_tpg 869 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 914 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 1209 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 1254 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 1277 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 1322 drivers/target/target_core_stat.c tpg = nacl->se_tpg; se_tpg 357 drivers/target/target_core_tmr.c tmr_tpg = tmr_sess->se_tpg; se_tpg 199 drivers/target/target_core_tpg.c acl->se_tpg = tpg; se_tpg 209 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; se_tpg 340 drivers/target/target_core_tpg.c if (acl->se_tpg->se_tpg_tfo->close_session) se_tpg 341 drivers/target/target_core_tpg.c acl->se_tpg->se_tpg_tfo->close_session(sess); se_tpg 349 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; se_tpg 385 drivers/target/target_core_tpg.c struct se_portal_group *tpg = acl->se_tpg; se_tpg 448 drivers/target/target_core_tpg.c struct se_portal_group *se_tpg, se_tpg 453 drivers/target/target_core_tpg.c if (!se_tpg) se_tpg 466 drivers/target/target_core_tpg.c se_tpg->se_tpg_tfo = se_wwn->wwn_tf->tf_ops; se_tpg 468 drivers/target/target_core_tpg.c if (!se_tpg->se_tpg_tfo) { se_tpg 473 drivers/target/target_core_tpg.c INIT_HLIST_HEAD(&se_tpg->tpg_lun_hlist); se_tpg 474 drivers/target/target_core_tpg.c se_tpg->proto_id = proto_id; se_tpg 475 drivers/target/target_core_tpg.c se_tpg->se_tpg_wwn = se_wwn; se_tpg 476 drivers/target/target_core_tpg.c atomic_set(&se_tpg->tpg_pr_ref_count, 0); se_tpg 477 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&se_tpg->acl_node_list); se_tpg 478 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&se_tpg->se_tpg_node); se_tpg 479 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&se_tpg->tpg_sess_list); se_tpg 480 drivers/target/target_core_tpg.c spin_lock_init(&se_tpg->session_lock); se_tpg 481 drivers/target/target_core_tpg.c mutex_init(&se_tpg->tpg_lun_mutex); se_tpg 482 drivers/target/target_core_tpg.c mutex_init(&se_tpg->acl_node_mutex); se_tpg 484 drivers/target/target_core_tpg.c if (se_tpg->proto_id >= 0) { se_tpg 485 drivers/target/target_core_tpg.c se_tpg->tpg_virt_lun0 = core_tpg_alloc_lun(se_tpg, 0); se_tpg 486 drivers/target/target_core_tpg.c if (IS_ERR(se_tpg->tpg_virt_lun0)) se_tpg 487 drivers/target/target_core_tpg.c return PTR_ERR(se_tpg->tpg_virt_lun0); se_tpg 489 drivers/target/target_core_tpg.c ret = core_tpg_add_lun(se_tpg, se_tpg->tpg_virt_lun0, se_tpg 492 drivers/target/target_core_tpg.c kfree(se_tpg->tpg_virt_lun0); se_tpg 498 drivers/target/target_core_tpg.c list_add_tail(&se_tpg->se_tpg_node, &tpg_list); se_tpg 502 drivers/target/target_core_tpg.c "Proto: %d, Portal Tag: %u\n", se_tpg->se_tpg_tfo->fabric_name, se_tpg 503 drivers/target/target_core_tpg.c se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg) ? se_tpg 504 drivers/target/target_core_tpg.c se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg) : NULL, se_tpg 505 drivers/target/target_core_tpg.c se_tpg->proto_id, se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); se_tpg 511 drivers/target/target_core_tpg.c int core_tpg_deregister(struct se_portal_group *se_tpg) se_tpg 513 drivers/target/target_core_tpg.c const struct target_core_fabric_ops *tfo = se_tpg->se_tpg_tfo; se_tpg 519 drivers/target/target_core_tpg.c tfo->tpg_get_wwn(se_tpg) ? tfo->tpg_get_wwn(se_tpg) : NULL, se_tpg 520 drivers/target/target_core_tpg.c se_tpg->proto_id, tfo->tpg_get_tag(se_tpg)); se_tpg 523 drivers/target/target_core_tpg.c list_del(&se_tpg->se_tpg_node); se_tpg 526 drivers/target/target_core_tpg.c while (atomic_read(&se_tpg->tpg_pr_ref_count) != 0) se_tpg 529 drivers/target/target_core_tpg.c mutex_lock(&se_tpg->acl_node_mutex); se_tpg 530 drivers/target/target_core_tpg.c list_splice_init(&se_tpg->acl_node_list, &node_list); se_tpg 531 drivers/target/target_core_tpg.c mutex_unlock(&se_tpg->acl_node_mutex); se_tpg 541 drivers/target/target_core_tpg.c core_free_device_list_for_node(nacl, se_tpg); se_tpg 545 drivers/target/target_core_tpg.c if (se_tpg->proto_id >= 0) { se_tpg 546 drivers/target/target_core_tpg.c core_tpg_remove_lun(se_tpg, se_tpg->tpg_virt_lun0); se_tpg 547 drivers/target/target_core_tpg.c kfree_rcu(se_tpg->tpg_virt_lun0, rcu_head); se_tpg 340 drivers/target/target_core_transport.c struct se_portal_group *se_tpg, se_tpg 345 drivers/target/target_core_transport.c const struct target_core_fabric_ops *tfo = se_tpg->se_tpg_tfo; se_tpg 349 drivers/target/target_core_transport.c se_sess->se_tpg = se_tpg; se_tpg 372 drivers/target/target_core_transport.c tfo->tpg_check_prot_fabric_only(se_tpg); se_tpg 377 drivers/target/target_core_transport.c if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { se_tpg 379 drivers/target/target_core_transport.c se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, se_tpg 395 drivers/target/target_core_transport.c list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); se_tpg 398 drivers/target/target_core_transport.c se_tpg->se_tpg_tfo->fabric_name, se_sess->fabric_sess_ptr); se_tpg 403 drivers/target/target_core_transport.c struct se_portal_group *se_tpg, se_tpg 410 drivers/target/target_core_transport.c spin_lock_irqsave(&se_tpg->session_lock, flags); se_tpg 411 drivers/target/target_core_transport.c __transport_register_session(se_tpg, se_nacl, se_sess, fabric_sess_ptr); se_tpg 412 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_tpg->session_lock, flags); se_tpg 461 drivers/target/target_core_transport.c ssize_t target_show_dynamic_sessions(struct se_portal_group *se_tpg, char *page) se_tpg 466 drivers/target/target_core_transport.c spin_lock_bh(&se_tpg->session_lock); se_tpg 467 drivers/target/target_core_transport.c list_for_each_entry(se_sess, &se_tpg->tpg_sess_list, sess_list) { se_tpg 479 drivers/target/target_core_transport.c spin_unlock_bh(&se_tpg->session_lock); se_tpg 489 drivers/target/target_core_transport.c struct se_portal_group *se_tpg = nacl->se_tpg; se_tpg 496 drivers/target/target_core_transport.c mutex_lock(&se_tpg->acl_node_mutex); se_tpg 498 drivers/target/target_core_transport.c mutex_unlock(&se_tpg->acl_node_mutex); se_tpg 501 drivers/target/target_core_transport.c core_free_device_list_for_node(nacl, se_tpg); se_tpg 549 drivers/target/target_core_transport.c struct se_portal_group *se_tpg = se_nacl->se_tpg; se_tpg 550 drivers/target/target_core_transport.c const struct target_core_fabric_ops *se_tfo = se_tpg->se_tpg_tfo; se_tpg 560 drivers/target/target_core_transport.c mutex_lock(&se_tpg->acl_node_mutex); se_tpg 562 drivers/target/target_core_transport.c !se_tfo->tpg_check_demo_mode_cache(se_tpg)) { se_tpg 571 drivers/target/target_core_transport.c mutex_unlock(&se_tpg->acl_node_mutex); se_tpg 598 drivers/target/target_core_transport.c struct se_portal_group *se_tpg = se_sess->se_tpg; se_tpg 601 drivers/target/target_core_transport.c if (!se_tpg) { se_tpg 606 drivers/target/target_core_transport.c spin_lock_irqsave(&se_tpg->session_lock, flags); se_tpg 608 drivers/target/target_core_transport.c se_sess->se_tpg = NULL; se_tpg 610 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_tpg->session_lock, flags); se_tpg 619 drivers/target/target_core_transport.c se_tpg->se_tpg_tfo->fabric_name); se_tpg 1564 drivers/target/target_core_transport.c struct se_portal_group *se_tpg; se_tpg 1568 drivers/target/target_core_transport.c se_tpg = se_sess->se_tpg; se_tpg 1569 drivers/target/target_core_transport.c BUG_ON(!se_tpg); se_tpg 1577 drivers/target/target_core_transport.c transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, se_tpg 1765 drivers/target/target_core_transport.c struct se_portal_group *se_tpg; se_tpg 1768 drivers/target/target_core_transport.c se_tpg = se_sess->se_tpg; se_tpg 1769 drivers/target/target_core_transport.c BUG_ON(!se_tpg); se_tpg 1771 drivers/target/target_core_transport.c transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, se_tpg 256 drivers/target/target_core_ua.c nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 317 drivers/target/target_core_ua.c " ASCQ: 0x%02x\n", nacl->se_tpg->se_tpg_tfo->fabric_name, se_tpg 484 drivers/target/target_core_xcopy.c xcopy_pt_nacl.se_tpg = &xcopy_pt_tpg; se_tpg 487 drivers/target/target_core_xcopy.c xcopy_pt_sess.se_tpg = &xcopy_pt_tpg; se_tpg 91 drivers/target/tcm_fc/tcm_fc.h struct se_portal_group se_tpg; se_tpg 178 drivers/target/tcm_fc/tfc_conf.c ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); se_tpg 259 drivers/target/tcm_fc/tfc_conf.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); se_tpg 271 drivers/target/tcm_fc/tfc_conf.c return &tpg->se_tpg; se_tpg 274 drivers/target/tcm_fc/tfc_conf.c static void ft_del_tpg(struct se_portal_group *se_tpg) se_tpg 276 drivers/target/tcm_fc/tfc_conf.c struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); se_tpg 280 drivers/target/tcm_fc/tfc_conf.c config_item_name(&tpg->se_tpg.tpg_group.cg_item)); se_tpg 295 drivers/target/tcm_fc/tfc_conf.c core_tpg_deregister(se_tpg); se_tpg 382 drivers/target/tcm_fc/tfc_conf.c static inline struct ft_tpg *ft_tpg(struct se_portal_group *se_tpg) se_tpg 384 drivers/target/tcm_fc/tfc_conf.c return container_of(se_tpg, struct ft_tpg, se_tpg); se_tpg 387 drivers/target/tcm_fc/tfc_conf.c static char *ft_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 389 drivers/target/tcm_fc/tfc_conf.c return ft_tpg(se_tpg)->lport_wwn->name; se_tpg 392 drivers/target/tcm_fc/tfc_conf.c static u16 ft_get_tag(struct se_portal_group *se_tpg) se_tpg 398 drivers/target/tcm_fc/tfc_conf.c return ft_tpg(se_tpg)->index; se_tpg 401 drivers/target/tcm_fc/tfc_conf.c static int ft_check_false(struct se_portal_group *se_tpg) se_tpg 410 drivers/target/tcm_fc/tfc_conf.c static u32 ft_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 412 drivers/target/tcm_fc/tfc_conf.c return ft_tpg(se_tpg)->index; se_tpg 189 drivers/target/tcm_fc/tfc_sess.c static int ft_sess_alloc_cb(struct se_portal_group *se_tpg, se_tpg 210 drivers/target/tcm_fc/tfc_sess.c struct se_portal_group *se_tpg = &tport->tpg->se_tpg; se_tpg 230 drivers/target/tcm_fc/tfc_sess.c sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, se_tpg 1050 drivers/usb/gadget/function/f_tcm.c tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, se_tpg 1180 drivers/usb/gadget/function/f_tcm.c tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, se_tpg 1249 drivers/usb/gadget/function/f_tcm.c static int usbg_check_true(struct se_portal_group *se_tpg) se_tpg 1254 drivers/usb/gadget/function/f_tcm.c static int usbg_check_false(struct se_portal_group *se_tpg) se_tpg 1259 drivers/usb/gadget/function/f_tcm.c static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 1261 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, se_tpg 1262 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg, se_tpg); se_tpg 1268 drivers/usb/gadget/function/f_tcm.c static u16 usbg_get_tag(struct se_portal_group *se_tpg) se_tpg 1270 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, se_tpg 1271 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg, se_tpg); se_tpg 1275 drivers/usb/gadget/function/f_tcm.c static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 1391 drivers/usb/gadget/function/f_tcm.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); se_tpg 1399 drivers/usb/gadget/function/f_tcm.c return &tpg->se_tpg; se_tpg 1420 drivers/usb/gadget/function/f_tcm.c static void usbg_drop_tpg(struct se_portal_group *se_tpg) se_tpg 1422 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, se_tpg 1423 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg, se_tpg); se_tpg 1428 drivers/usb/gadget/function/f_tcm.c core_tpg_deregister(se_tpg); se_tpg 1498 drivers/usb/gadget/function/f_tcm.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1499 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 1510 drivers/usb/gadget/function/f_tcm.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1511 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 1536 drivers/usb/gadget/function/f_tcm.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1537 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 1554 drivers/usb/gadget/function/f_tcm.c static int usbg_alloc_sess_cb(struct se_portal_group *se_tpg, se_tpg 1557 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, se_tpg 1558 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg, se_tpg); se_tpg 1582 drivers/usb/gadget/function/f_tcm.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, se_tpg 1641 drivers/usb/gadget/function/f_tcm.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1642 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 1683 drivers/usb/gadget/function/f_tcm.c static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) se_tpg 1685 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 1692 drivers/usb/gadget/function/f_tcm.c static void usbg_port_unlink(struct se_portal_group *se_tpg, se_tpg 1695 drivers/usb/gadget/function/f_tcm.c struct usbg_tpg *tpg = container_of(se_tpg, struct usbg_tpg, se_tpg); se_tpg 41 drivers/usb/gadget/function/tcm.h struct se_portal_group se_tpg; se_tpg 140 drivers/vhost/scsi.c struct se_portal_group se_tpg; se_tpg 284 drivers/vhost/scsi.c static int vhost_scsi_check_true(struct se_portal_group *se_tpg) se_tpg 289 drivers/vhost/scsi.c static int vhost_scsi_check_false(struct se_portal_group *se_tpg) se_tpg 294 drivers/vhost/scsi.c static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 296 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 297 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 303 drivers/vhost/scsi.c static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) se_tpg 305 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 306 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 310 drivers/vhost/scsi.c static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) se_tpg 312 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 313 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 318 drivers/vhost/scsi.c static u32 vhost_scsi_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 1387 drivers/vhost/scsi.c struct se_portal_group *se_tpg; se_tpg 1441 drivers/vhost/scsi.c se_tpg = &tpg->se_tpg; se_tpg 1442 drivers/vhost/scsi.c ret = target_depend_item(&se_tpg->tpg_group.cg_item); se_tpg 1490 drivers/vhost/scsi.c struct se_portal_group *se_tpg; se_tpg 1543 drivers/vhost/scsi.c se_tpg = &tpg->se_tpg; se_tpg 1544 drivers/vhost/scsi.c target_undepend_item(&se_tpg->tpg_group.cg_item); se_tpg 1819 drivers/vhost/scsi.c static int vhost_scsi_port_link(struct se_portal_group *se_tpg, se_tpg 1822 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 1823 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 1838 drivers/vhost/scsi.c static void vhost_scsi_port_unlink(struct se_portal_group *se_tpg, se_tpg 1841 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 1842 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 1875 drivers/vhost/scsi.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 1876 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 1877 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 1897 drivers/vhost/scsi.c struct se_portal_group *se_tpg = attrib_to_tpg(item); se_tpg 1898 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 1899 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 1911 drivers/vhost/scsi.c static int vhost_scsi_nexus_cb(struct se_portal_group *se_tpg, se_tpg 1973 drivers/vhost/scsi.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, se_tpg 2042 drivers/vhost/scsi.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2043 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 2044 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 2064 drivers/vhost/scsi.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 2065 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 2066 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 2171 drivers/vhost/scsi.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); se_tpg 2180 drivers/vhost/scsi.c return &tpg->se_tpg; se_tpg 2183 drivers/vhost/scsi.c static void vhost_scsi_drop_tpg(struct se_portal_group *se_tpg) se_tpg 2185 drivers/vhost/scsi.c struct vhost_scsi_tpg *tpg = container_of(se_tpg, se_tpg 2186 drivers/vhost/scsi.c struct vhost_scsi_tpg, se_tpg); se_tpg 2198 drivers/vhost/scsi.c core_tpg_deregister(se_tpg); se_tpg 175 drivers/xen/xen-scsiback.c struct se_portal_group se_tpg; se_tpg 921 drivers/xen/xen-scsiback.c mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); se_tpg 922 drivers/xen/xen-scsiback.c hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { se_tpg 931 drivers/xen/xen-scsiback.c mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); se_tpg 1297 drivers/xen/xen-scsiback.c static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) se_tpg 1299 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1300 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1306 drivers/xen/xen-scsiback.c static u16 scsiback_get_tag(struct se_portal_group *se_tpg) se_tpg 1308 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1309 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1379 drivers/xen/xen-scsiback.c static u32 scsiback_tpg_get_inst_index(struct se_portal_group *se_tpg) se_tpg 1458 drivers/xen/xen-scsiback.c struct se_portal_group *se_tpg = param_to_tpg(item); se_tpg 1459 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, struct scsiback_tpg, se_tpg 1460 drivers/xen/xen-scsiback.c se_tpg); se_tpg 1473 drivers/xen/xen-scsiback.c struct se_portal_group *se_tpg = param_to_tpg(item); se_tpg 1474 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, struct scsiback_tpg, se_tpg 1475 drivers/xen/xen-scsiback.c se_tpg); se_tpg 1500 drivers/xen/xen-scsiback.c static int scsiback_alloc_sess_cb(struct se_portal_group *se_tpg, se_tpg 1503 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1504 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1529 drivers/xen/xen-scsiback.c tv_nexus->tvn_se_sess = target_setup_session(&tpg->se_tpg, se_tpg 1594 drivers/xen/xen-scsiback.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1595 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1596 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1616 drivers/xen/xen-scsiback.c struct se_portal_group *se_tpg = to_tpg(item); se_tpg 1617 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1618 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1710 drivers/xen/xen-scsiback.c static int scsiback_port_link(struct se_portal_group *se_tpg, se_tpg 1713 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1714 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1723 drivers/xen/xen-scsiback.c static void scsiback_port_unlink(struct se_portal_group *se_tpg, se_tpg 1726 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1727 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1760 drivers/xen/xen-scsiback.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); se_tpg 1769 drivers/xen/xen-scsiback.c return &tpg->se_tpg; se_tpg 1772 drivers/xen/xen-scsiback.c static void scsiback_drop_tpg(struct se_portal_group *se_tpg) se_tpg 1774 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = container_of(se_tpg, se_tpg 1775 drivers/xen/xen-scsiback.c struct scsiback_tpg, se_tpg); se_tpg 1787 drivers/xen/xen-scsiback.c core_tpg_deregister(se_tpg); se_tpg 1791 drivers/xen/xen-scsiback.c static int scsiback_check_true(struct se_portal_group *se_tpg) se_tpg 1796 drivers/xen/xen-scsiback.c static int scsiback_check_false(struct se_portal_group *se_tpg) se_tpg 561 include/target/target_core_base.h struct se_portal_group *se_tpg; se_tpg 611 include/target/target_core_base.h struct se_portal_group *se_tpg;