Home
last modified time | relevance | path

Searched refs:se_tpg (Results 1 – 32 of 32) sorted by relevance

/linux-4.4.14/drivers/target/
Dtarget_core_tpg.c201 acl->se_tpg = tpg; in target_alloc_node_acl()
218 struct se_portal_group *tpg = acl->se_tpg; in target_add_node_acl()
310 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_del_initiator_node_acl()
507 struct se_portal_group *se_tpg, in core_tpg_register() argument
512 if (!se_tpg) in core_tpg_register()
525 se_tpg->se_tpg_tfo = se_wwn->wwn_tf->tf_ops; in core_tpg_register()
527 if (!se_tpg->se_tpg_tfo) { in core_tpg_register()
532 INIT_HLIST_HEAD(&se_tpg->tpg_lun_hlist); in core_tpg_register()
533 se_tpg->proto_id = proto_id; in core_tpg_register()
534 se_tpg->se_tpg_wwn = se_wwn; in core_tpg_register()
[all …]
Dtarget_core_fabric_configfs.c79 struct se_portal_group *se_tpg; in target_fabric_mappedlun_link() local
95 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
128 (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( in target_fabric_mappedlun_link()
129 se_tpg)) ? TRANSPORT_LUNFLAGS_READ_ONLY : in target_fabric_mappedlun_link()
138 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access); in target_fabric_mappedlun_link()
183 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_write_protect_store() local
201 se_tpg->se_tpg_tfo->get_fabric_name(), in target_fabric_mappedlun_write_protect_store()
219 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release() local
221 core_dev_free_initiator_node_lun_acl(se_tpg, lacl); in target_fabric_mappedlun_release()
273 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_make_mappedlun() local
[all …]
Dtarget_core_transport.c302 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()
310 se_sess->se_tpg = se_tpg; in __transport_register_session()
333 tfo->tpg_check_prot_fabric_only(se_tpg); in __transport_register_session()
338 if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { in __transport_register_session()
340 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 …]
Dtarget_core_fabric_lib.c275 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()
Dtarget_core_pr.c207 if (!sess || !sess->se_tpg) in target_scsi2_reservation_release()
231 tpg = sess->se_tpg; in target_scsi2_reservation_release()
264 if (!sess || !sess->se_tpg) in target_scsi2_reservation_reserve()
273 tpg = sess->se_tpg; in target_scsi2_reservation_reserve()
707 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration()
758 if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) in __core_scsi3_alloc_registration()
1027 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local
1039 tfo->get_fabric_name(), tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration()
1040 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration()
1058 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration()
[all …]
Dtarget_core_ua.c272 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()
Dtarget_core_stat.c862 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()
Dtarget_core_alua.c1249 struct se_portal_group *se_tpg = lun->lun_tpg; in core_alua_update_tpg_secondary_metadata() local
1267 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg)); in core_alua_update_tpg_secondary_metadata()
1269 if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) in core_alua_update_tpg_secondary_metadata()
1271 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg)); in core_alua_update_tpg_secondary_metadata()
1279 se_tpg->se_tpg_tfo->get_fabric_name(), wwn, in core_alua_update_tpg_secondary_metadata()
Dtarget_core_configfs.c1257 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()
Dtarget_core_device.c115 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
116 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
220 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi()
Dtarget_core_tmr.c422 tmr_tpg = tmr_sess->se_tpg; in core_tmr_lun_reset()
Dtarget_core_xcopy.c456 xcopy_pt_nacl.se_tpg = &xcopy_pt_tpg; in target_xcopy_setup_pt()
459 xcopy_pt_sess.se_tpg = &xcopy_pt_tpg; in target_xcopy_setup_pt()
/linux-4.4.14/drivers/target/tcm_fc/
Dtfc_conf.c205 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 …]
Dtcm_fc.h100 struct se_portal_group se_tpg; member
Dtfc_sess.c224 transport_register_session(&tport->tpg->se_tpg, &acl->se_node_acl, in ft_sess_create()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c188 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 …]
Dtcm_qla2xxx.h49 struct se_portal_group se_tpg; member
/linux-4.4.14/drivers/target/loopback/
Dtcm_loop.c221 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 …]
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_configfs.c201 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()
754 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in lio_target_nacl_tag_store()
821 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
[all …]
Discsi_target_login.c166 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()
206 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement()
498 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() local
503 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
504 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2()
520 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
703 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler() local
759 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler()
[all …]
Discsi_target_erl0.c756 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local
758 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
760 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
766 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
788 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
828 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local
837 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
841 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
Discsi_target.c4470 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_close_session() local
4479 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session()
4483 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session()
4518 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session()
4536 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session()
4791 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_release_sessions_for_tpg() local
4796 spin_lock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
4798 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
4802 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsit_release_sessions_for_tpg()
4818 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
Discsi_target_stat.c600 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_inst_show()
Discsi_target_nego.c136 iscsi_tpg = container_of(se_nacl->se_tpg, in iscsi_handle_authentication()
/linux-4.4.14/drivers/target/sbp/
Dsbp_target.c97 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 …]
Dsbp_target.h160 struct se_portal_group se_tpg; member
/linux-4.4.14/drivers/vhost/
Dscsi.c135 struct se_portal_group se_tpg; member
272 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument
277 static int vhost_scsi_check_false(struct se_portal_group *se_tpg) in vhost_scsi_check_false() argument
287 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument
289 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn()
290 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn()
296 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument
298 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt()
299 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt()
303 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument
[all …]
/linux-4.4.14/drivers/xen/
Dxen-scsiback.c176 struct se_portal_group se_tpg; member
600 transport_init_se_cmd(se_cmd, tpg->se_tpg.se_tpg_tfo, in scsiback_device_action()
885 mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
886 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
895 mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
1255 static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) in scsiback_get_fabric_wwn() argument
1257 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_fabric_wwn()
1258 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn()
1264 static u16 scsiback_get_tag(struct se_portal_group *se_tpg) in scsiback_get_tag() argument
1266 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_tag()
[all …]
/linux-4.4.14/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c1056 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 …]
Dtcm_usb_gadget.h39 struct se_portal_group se_tpg; member
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c3310 static int srpt_check_true(struct se_portal_group *se_tpg) in srpt_check_true() argument
3315 static int srpt_check_false(struct se_portal_group *se_tpg) in srpt_check_false() argument
3337 static u32 srpt_tpg_get_inst_index(struct se_portal_group *se_tpg) in srpt_tpg_get_inst_index() argument
3455 container_of(se_nacl->se_tpg, struct srpt_port, port_tpg_1); in srpt_init_nodeacl()
3493 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_show() local
3494 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rdma_size_show()
3502 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_store() local
3503 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rdma_size_store()
3530 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rsp_size_show() local
3531 struct srpt_port *sport = container_of(se_tpg, struct srpt_port, port_tpg_1); in srpt_tpg_attrib_srp_max_rsp_size_show()
[all …]
/linux-4.4.14/include/target/
Dtarget_core_base.h554 struct se_portal_group *se_tpg; member
605 struct se_portal_group *se_tpg; member