/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_transport.c | 227 int transport_init_session(struct se_session *se_sess) in transport_init_session() argument 229 INIT_LIST_HEAD(&se_sess->sess_list); in transport_init_session() 230 INIT_LIST_HEAD(&se_sess->sess_acl_list); in transport_init_session() 231 INIT_LIST_HEAD(&se_sess->sess_cmd_list); in transport_init_session() 232 spin_lock_init(&se_sess->sess_cmd_lock); in transport_init_session() 233 init_waitqueue_head(&se_sess->cmd_list_wq); in transport_init_session() 234 return percpu_ref_init(&se_sess->cmd_count, in transport_init_session() 239 void transport_uninit_session(struct se_session *se_sess) in transport_uninit_session() argument 241 percpu_ref_exit(&se_sess->cmd_count); in transport_uninit_session() 250 struct se_session *se_sess; in transport_alloc_session() local [all …]
|
D | target_core_tmr.c | 83 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state() 106 if ((tmr_sess != se_cmd->se_sess) && tas) in __target_check_io_state() 117 struct se_session *se_sess) in core_tmr_abort_task() argument 128 if (se_sess != se_cmd->se_sess) in core_tmr_abort_task() 142 spin_lock(&se_sess->sess_cmd_lock); in core_tmr_abort_task() 143 rc = __target_check_io_state(se_cmd, se_sess, 0); in core_tmr_abort_task() 144 spin_unlock(&se_sess->sess_cmd_lock); in core_tmr_abort_task() 217 sess = cmd->se_sess; in core_tmr_drain_tmr_list() 315 sess = cmd->se_sess; in core_tmr_drain_state_list() 374 if (tmr && tmr->task_cmd && tmr->task_cmd->se_sess) { in core_tmr_lun_reset() [all …]
|
D | target_core_pr.c | 90 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_check() 121 struct se_session *se_sess = cmd->se_sess; in target_check_scsi2_reservation_conflict() local 127 pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, in target_check_scsi2_reservation_conflict() 128 se_sess); in target_check_scsi2_reservation_conflict() 204 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_release() 245 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_reserve() 315 struct se_session *se_sess = cmd->se_sess; in core_scsi3_pr_seq_non_holder() local 316 struct se_node_acl *nacl = se_sess->se_node_acl; in core_scsi3_pr_seq_non_holder() 504 se_sess->se_node_acl->initiatorname, cdb[0], in core_scsi3_pr_seq_non_holder() 556 se_sess->se_node_acl->initiatorname, cdb[0], in core_scsi3_pr_seq_non_holder() [all …]
|
D | target_core_device.c | 51 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_cmd_lun() local 52 struct se_node_acl *nacl = se_sess->se_node_acl; in transport_lookup_cmd_lun() 109 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 110 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun() 150 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_tmr_lun() local 151 struct se_node_acl *nacl = se_sess->se_node_acl; in transport_lookup_tmr_lun() 194 struct se_session *se_sess = cmd->se_sess; in target_lun_is_rdonly() local 199 deve = target_nacl_find_deve(se_sess->se_node_acl, cmd->orig_fe_lun); in target_lun_is_rdonly()
|
D | target_core_ua.c | 29 struct se_session *sess = cmd->se_sess; in target_scsi3_ua_check() 198 struct se_session *sess = cmd->se_sess; in core_scsi3_ua_for_check_condition() 272 struct se_session *sess = cmd->se_sess; in core_scsi3_ua_clear_for_request_sense()
|
D | target_core_spc.c | 55 struct se_session *sess = cmd->se_sess; in spc_emulate_inquiry_std() 92 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std() 441 struct se_session *sess = cmd->se_sess; in spc_emulate_evpd_86() 450 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE1_PROT) in spc_emulate_evpd_86() 453 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE3_PROT) in spc_emulate_evpd_86() 460 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86() 777 struct se_session *sess = cmd->se_sess; in spc_modesense_control() 1212 struct se_session *sess = cmd->se_sess; in spc_emulate_report_luns()
|
D | target_core_stat.c | 1266 struct se_session *se_sess; in target_stat_iport_indx_show() local 1271 se_sess = nacl->nacl_sess; in target_stat_iport_indx_show() 1272 if (!se_sess) { in target_stat_iport_indx_show() 1280 tpg->se_tpg_tfo->sess_get_index(se_sess)); in target_stat_iport_indx_show() 1310 struct se_session *se_sess; in target_stat_iport_port_ident_show() local 1316 se_sess = nacl->nacl_sess; in target_stat_iport_port_ident_show() 1317 if (!se_sess) { in target_stat_iport_port_ident_show() 1326 tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, buf, 64); in target_stat_iport_port_ident_show()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/ |
D | iscsi_target_stat.c | 604 struct se_session *se_sess; in iscsi_stat_sess_node_show() local 608 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_node_show() 609 if (se_sess) { in iscsi_stat_sess_node_show() 610 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_node_show() 625 struct se_session *se_sess; in iscsi_stat_sess_indx_show() local 629 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_indx_show() 630 if (se_sess) { in iscsi_stat_sess_indx_show() 631 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_indx_show() 647 struct se_session *se_sess; in iscsi_stat_sess_cmd_pdus_show() local 651 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_cmd_pdus_show() [all …]
|
D | iscsi_target_nodeattrib.c | 102 struct se_session *se_sess; in iscsit_na_nopin_timeout() local 126 se_sess = se_nacl->nacl_sess; in iscsit_na_nopin_timeout() 127 if (se_sess) { in iscsit_na_nopin_timeout() 128 sess = se_sess->fabric_sess_ptr; in iscsit_na_nopin_timeout()
|
D | iscsi_target_login.c | 138 struct se_session *se_sess, *se_sess_tmp; in iscsi_check_for_session_reinstatement() local 153 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement() 156 sess_p = se_sess->fabric_sess_ptr; in iscsi_check_for_session_reinstatement() 320 sess->se_sess = transport_alloc_session(TARGET_PROT_NORMAL); in iscsi_login_zero_tsih_s1() 321 if (IS_ERR(sess->se_sess)) { in iscsi_login_zero_tsih_s1() 442 if (sess->se_sess->sup_prot_ops & in iscsi_login_zero_tsih_s2() 479 struct se_session *se_sess, *se_sess_tmp; in iscsi_login_non_zero_tsih_s2() local 484 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2() 487 sess_p = (struct iscsi_session *)se_sess->fabric_sess_ptr; in iscsi_login_non_zero_tsih_s2() 681 struct se_session *se_sess = sess->se_sess; in iscsi_post_login_handler() local [all …]
|
D | iscsi_target_configfs.c | 448 struct se_session *se_sess; \ 452 se_sess = se_nacl->nacl_sess; \ 453 if (!se_sess) { \ 457 sess = se_sess->fabric_sess_ptr; \ 504 struct se_session *se_sess; in lio_target_nacl_info_show() local 509 se_sess = se_nacl->nacl_sess; in lio_target_nacl_info_show() 510 if (!se_sess) { in lio_target_nacl_info_show() 514 sess = se_sess->fabric_sess_ptr; in lio_target_nacl_info_show() 1345 static u32 lio_sess_get_index(struct se_session *se_sess) in lio_sess_get_index() argument 1347 struct iscsi_session *sess = se_sess->fabric_sess_ptr; in lio_sess_get_index() [all …]
|
D | iscsi_target_util.c | 142 static int iscsit_wait_for_tag(struct se_session *se_sess, int state, int *cpup) in iscsit_wait_for_tag() argument 152 sbq = &se_sess->sess_tag_pool; in iscsit_wait_for_tag() 175 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd() local 178 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in iscsit_allocate_cmd() 180 tag = iscsit_wait_for_tag(se_sess, state, &cpu); in iscsit_allocate_cmd() 185 cmd = (struct iscsi_cmd *)(se_sess->sess_cmd_map + (tag * size)); in iscsit_allocate_cmd() 726 BUG_ON(!sess || !sess->se_sess); in iscsit_release_cmd() 736 target_free_tag(sess->se_sess, se_cmd); in iscsit_release_cmd() 772 if (!rc && shutdown && se_cmd->se_sess) { in iscsit_free_cmd()
|
D | iscsi_target_device.c | 33 se_nacl = sess->se_sess->se_node_acl; in iscsit_determine_maxcmdsn()
|
D | iscsi_target_nego.c | 116 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_handle_authentication() 298 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_target_check_first_request() 1261 sess->se_sess->se_node_acl = core_tpg_check_initiator_node_acl( in iscsi_target_locate_portal() 1263 if (!sess->se_sess->se_node_acl) { in iscsi_target_locate_portal() 1272 se_nacl = sess->se_sess->se_node_acl; in iscsi_target_locate_portal() 1287 ret = transport_alloc_session_tags(sess->se_sess, tag_num, tag_size); in iscsi_target_locate_portal()
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 273 struct se_session *se_sess = sess->se_sess; in tcm_qla2xxx_get_cmd() local 277 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in tcm_qla2xxx_get_cmd() 281 cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; in tcm_qla2xxx_get_cmd() 291 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd() 363 static void tcm_qla2xxx_close_session(struct se_session *se_sess) in tcm_qla2xxx_close_session() argument 365 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session() 373 target_sess_cmd_list_set_waiting(se_sess); in tcm_qla2xxx_close_session() 380 static u32 tcm_qla2xxx_sess_get_index(struct se_session *se_sess) in tcm_qla2xxx_sess_get_index() argument 448 struct se_session *se_sess; in tcm_qla2xxx_handle_cmd() local 468 se_sess = sess->se_sess; in tcm_qla2xxx_handle_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
D | tfc_sess.c | 190 struct se_session *se_sess, void *p) in ft_sess_alloc_cb() argument 230 sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, in ft_sess_create() 234 if (IS_ERR(sess->se_sess)) { in ft_sess_create() 235 int rc = PTR_ERR(sess->se_sess); in ft_sess_create() 278 target_sess_cmd_list_set_waiting(sess->se_sess); in ft_close_sess() 279 target_wait_for_sess_cmds(sess->se_sess); in ft_close_sess() 309 void ft_sess_close(struct se_session *se_sess) in ft_sess_close() argument 311 struct ft_sess *sess = se_sess->fabric_sess_ptr; in ft_sess_close() 328 u32 ft_sess_get_index(struct se_session *se_sess) in ft_sess_get_index() argument 330 struct ft_sess *sess = se_sess->fabric_sess_ptr; in ft_sess_get_index() [all …]
|
D | tfc_cmd.c | 82 target_free_tag(sess->se_sess, &cmd->se_cmd); in ft_free_cmd() 371 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm() 430 struct se_session *se_sess = sess->se_sess; in ft_recv_cmd() local 433 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in ft_recv_cmd() 437 cmd = &((struct ft_cmd *)se_sess->sess_cmd_map)[tag]; in ft_recv_cmd() 445 target_free_tag(se_sess, &cmd->se_cmd); in ft_recv_cmd() 551 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, in ft_send_work()
|
D | tcm_fc.h | 34 struct se_session *se_sess; member
|
/kernel/linux/linux-5.10/drivers/target/loopback/ |
D | tcm_loop.c | 145 rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, in tcm_loop_submission_work() 198 struct se_session *se_sess; in tcm_loop_issue_tmr() local 219 se_sess = tl_tpg->tl_nexus->se_sess; in tcm_loop_issue_tmr() 221 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, in tcm_loop_issue_tmr() 516 static u32 tcm_loop_sess_get_index(struct se_session *se_sess) in tcm_loop_sess_get_index() argument 712 struct se_session *se_sess, void *p) in tcm_loop_alloc_sess_cb() argument 738 tl_nexus->se_sess = target_setup_session(&tl_tpg->tl_se_tpg, 0, 0, in tcm_loop_make_nexus() 741 if (IS_ERR(tl_nexus->se_sess)) { in tcm_loop_make_nexus() 742 ret = PTR_ERR(tl_nexus->se_sess); in tcm_loop_make_nexus() 755 struct se_session *se_sess; in tcm_loop_drop_nexus() local [all …]
|
D | tcm_loop.h | 29 struct se_session *se_sess; member
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | target.h | 146 __string( initiator, cmd->se_sess->se_node_acl->initiatorname ) 157 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname); 186 __string(initiator, cmd->se_sess->se_node_acl->initiatorname) 201 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
|
/kernel/linux/linux-5.10/drivers/target/sbp/ |
D | sbp_target.c | 80 struct se_session *se_sess; in sbp_session_find_by_guid() local 84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid() 85 sess = se_sess->fabric_sess_ptr; in sbp_session_find_by_guid() 114 struct se_session *se_sess; in sbp_login_count_all_by_lun() local 120 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun() 121 sess = se_sess->fabric_sess_ptr; in sbp_login_count_all_by_lun() 141 struct se_session *se_sess; in sbp_login_find_by_id() local 146 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id() 147 sess = se_sess->fabric_sess_ptr; in sbp_login_find_by_id() 199 sess->se_sess = target_setup_session(&tpg->se_tpg, 128, in sbp_session_create() [all …]
|
/kernel/linux/linux-5.10/include/target/ |
D | target_core_fabric.h | 135 int transport_init_session(struct se_session *se_sess); 163 int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess,
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | xen-scsiback.c | 618 struct se_session *se_sess = nexus->tvn_se_sess; in scsiback_get_pend_req() local 622 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in scsiback_get_pend_req() 628 req = &((struct vscsibk_pend *)se_sess->sess_cmd_map)[tag]; in scsiback_get_pend_req() 1364 target_free_tag(se_cmd->se_sess, se_cmd); in scsiback_release_cmd() 1367 static u32 scsiback_sess_get_index(struct se_session *se_sess) in scsiback_sess_get_index() argument 1474 struct se_session *se_sess, void *p) in scsiback_alloc_sess_cb() argument 1520 struct se_session *se_sess; in scsiback_drop_nexus() local 1530 se_sess = tv_nexus->tvn_se_sess; in scsiback_drop_nexus() 1531 if (!se_sess) { in scsiback_drop_nexus() 1557 target_remove_session(se_sess); in scsiback_drop_nexus()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | f_tcm.c | 1077 struct se_session *se_sess = tv_nexus->tvn_se_sess; in usbg_get_cmd() local 1081 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in usbg_get_cmd() 1085 cmd = &((struct usbg_cmd *)se_sess->sess_cmd_map)[tag]; in usbg_get_cmd() 1290 struct se_session *se_sess = se_cmd->se_sess; in usbg_release_cmd() local 1293 target_free_tag(se_sess, se_cmd); in usbg_release_cmd() 1296 static u32 usbg_sess_get_index(struct se_session *se_sess) in usbg_sess_get_index() argument 1561 struct se_session *se_sess, void *p) in usbg_alloc_sess_cb() argument 1608 struct se_session *se_sess; in tcm_usbg_drop_nexus() local 1617 se_sess = tv_nexus->tvn_se_sess; in tcm_usbg_drop_nexus() 1618 if (!se_sess) in tcm_usbg_drop_nexus() [all …]
|