se_sess 2584 drivers/infiniband/ulp/isert/ib_isert.c target_sess_cmd_list_set_waiting(conn->sess->se_sess); se_sess 2585 drivers/infiniband/ulp/isert/ib_isert.c target_wait_for_sess_cmds(conn->sess->se_sess); se_sess 2092 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_session *se_sess; se_sess 2100 drivers/infiniband/ulp/srpt/ib_srpt.c se_sess = ch->sess; se_sess 2101 drivers/infiniband/ulp/srpt/ib_srpt.c BUG_ON(!se_sess); se_sess 2103 drivers/infiniband/ulp/srpt/ib_srpt.c target_sess_cmd_list_set_waiting(se_sess); se_sess 2104 drivers/infiniband/ulp/srpt/ib_srpt.c target_wait_for_sess_cmds(se_sess); se_sess 2106 drivers/infiniband/ulp/srpt/ib_srpt.c target_remove_session(se_sess); se_sess 3326 drivers/infiniband/ulp/srpt/ib_srpt.c target_free_tag(se_cmd->se_sess, se_cmd); se_sess 3337 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_close_session(struct se_session *se_sess) se_sess 3339 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_rdma_ch *ch = se_sess->fabric_sess_ptr; se_sess 3353 drivers/infiniband/ulp/srpt/ib_srpt.c static u32 srpt_sess_get_index(struct se_session *se_sess) se_sess 2228 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, se_sess 2231 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (IS_ERR(nexus->se_sess)) { se_sess 2232 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = PTR_ERR(nexus->se_sess); se_sess 2247 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct se_session *se_sess; se_sess 2254 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c se_sess = nexus->se_sess; se_sess 2255 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (!se_sess) se_sess 2261 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c target_remove_session(se_sess); se_sess 2732 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = target_submit_cmd(&cmd->se_cmd, nexus->se_sess, srp->cdb, se_sess 2814 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = target_submit_tmr(&cmd->se_cmd, nexus->se_sess, NULL, se_sess 3746 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static u32 ibmvscsis_sess_get_index(struct se_session *se_sess) se_sess 173 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h struct se_session *se_sess; se_sess 2424 drivers/scsi/qla2xxx/qla_def.h struct se_session *se_sess; se_sess 699 drivers/scsi/qla2xxx/qla_target.c if (fcport->se_sess) { se_sess 731 drivers/scsi/qla2xxx/qla_target.c if (!sess->se_sess) { se_sess 963 drivers/scsi/qla2xxx/qla_target.c __func__, sess->se_sess, sess, sess->port_name, sess->loop_id, se_sess 1018 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess != NULL) se_sess 1049 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) { se_sess 1050 drivers/scsi/qla2xxx/qla_target.c sess->se_sess = NULL; se_sess 1085 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, se_sess 1094 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, se_sess 1156 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) se_sess 1278 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) se_sess 1348 drivers/scsi/qla2xxx/qla_target.c if (fcport->se_sess) { se_sess 1399 drivers/scsi/qla2xxx/qla_target.c sess, sess->se_sess, vha->vha_tgt.qla_tgt, se_sess 1434 drivers/scsi/qla2xxx/qla_target.c if (!sess->se_sess) { se_sess 1444 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, max_gen, se_sess 3804 drivers/scsi/qla2xxx/qla_target.c if (!sess || !sess->se_sess) { se_sess 3809 drivers/scsi/qla2xxx/qla_target.c target_free_tag(sess->se_sess, &cmd->se_cmd); se_sess 4143 drivers/scsi/qla2xxx/qla_target.c target_free_tag(sess->se_sess, &cmd->se_cmd); se_sess 4270 drivers/scsi/qla2xxx/qla_target.c struct se_session *se_sess = sess->se_sess; se_sess 4274 drivers/scsi/qla2xxx/qla_target.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 4278 drivers/scsi/qla2xxx/qla_target.c cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; se_sess 4544 drivers/scsi/qla2xxx/qla_target.c fcport->se_sess, se_sess 5345 drivers/scsi/qla2xxx/qla_target.c struct se_session *se_sess; se_sess 5377 drivers/scsi/qla2xxx/qla_target.c se_sess = sess->se_sess; se_sess 5379 drivers/scsi/qla2xxx/qla_target.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 5395 drivers/scsi/qla2xxx/qla_target.c cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; se_sess 340 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_close_session(struct se_session *se_sess) se_sess 342 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess = se_sess->fabric_sess_ptr; se_sess 350 drivers/scsi/qla2xxx/tcm_qla2xxx.c target_sess_cmd_list_set_waiting(se_sess); se_sess 357 drivers/scsi/qla2xxx/tcm_qla2xxx.c static u32 tcm_qla2xxx_sess_get_index(struct se_session *se_sess) se_sess 425 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess; se_sess 445 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = sess->se_sess; se_sess 446 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!se_sess) { se_sess 452 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_tpg = se_sess->se_tpg; se_sess 461 drivers/scsi/qla2xxx/tcm_qla2xxx.c return target_submit_cmd(se_cmd, se_sess, cdb, &cmd->sense_buffer[0], se_sess 592 drivers/scsi/qla2xxx/tcm_qla2xxx.c return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, se_sess 603 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!sess->se_sess) se_sess 606 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_lock_irqsave(&sess->se_sess->sess_cmd_lock, flags); se_sess 607 drivers/scsi/qla2xxx/tcm_qla2xxx.c list_for_each_entry(secmd, &sess->se_sess->sess_cmd_list, se_cmd_list) { se_sess 617 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_unlock_irqrestore(&sess->se_sess->sess_cmd_lock, flags); se_sess 761 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; se_sess 800 drivers/scsi/qla2xxx/tcm_qla2xxx.c target_sess_cmd_list_set_waiting(sess->se_sess); se_sess 1188 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess, se_sess 1213 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1227 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1240 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1293 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess, se_sess 1309 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (fc_port->se_sess != se_sess) se_sess 1310 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1326 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (fc_port->se_sess != se_sess) se_sess 1327 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1341 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (fc_port->se_sess != se_sess) se_sess 1342 drivers/scsi/qla2xxx/tcm_qla2xxx.c fc_port->se_sess = se_sess; se_sess 1356 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess = sess->se_sess; se_sess 1358 drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess, se_sess 1360 drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess, se_sess 1369 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess; se_sess 1374 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = sess->se_sess; se_sess 1375 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!se_sess) { se_sess 1387 drivers/scsi/qla2xxx/tcm_qla2xxx.c target_wait_for_sess_cmds(se_sess); se_sess 1389 drivers/scsi/qla2xxx/tcm_qla2xxx.c target_remove_session(se_sess); se_sess 1393 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess, void *p) se_sess 1399 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_node_acl *se_nacl = se_sess->se_node_acl; se_sess 1411 drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess, se_sess 1414 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess, qlat_sess, loop_id); se_sess 1432 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess; se_sess 1461 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = target_setup_session(&tpg->se_tpg, num_tags, se_sess 1465 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (IS_ERR(se_sess)) se_sess 1466 drivers/scsi/qla2xxx/tcm_qla2xxx.c return PTR_ERR(se_sess); se_sess 1478 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; se_sess 1159 drivers/target/iscsi/iscsi_target.c conn->sess->se_sess, be32_to_cpu(hdr->data_length), se_sess 2002 drivers/target/iscsi/iscsi_target.c conn->sess->se_sess, 0, DMA_NONE, se_sess 4371 drivers/target/iscsi/iscsi_target.c transport_deregister_session_configfs(sess->se_sess); se_sess 4390 drivers/target/iscsi/iscsi_target.c transport_deregister_session(sess->se_sess); se_sess 4629 drivers/target/iscsi/iscsi_target.c struct se_session *se_sess, *se_sess_tmp; se_sess 4639 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_sess 4641 drivers/target/iscsi/iscsi_target.c sess = (struct iscsi_session *)se_sess->fabric_sess_ptr; se_sess 4657 drivers/target/iscsi/iscsi_target.c list_move_tail(&se_sess->sess_list, &free_list); se_sess 4661 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(se_sess, se_sess_tmp, &free_list, sess_list) { se_sess 4662 drivers/target/iscsi/iscsi_target.c sess = (struct iscsi_session *)se_sess->fabric_sess_ptr; se_sess 4664 drivers/target/iscsi/iscsi_target.c list_del_init(&se_sess->sess_list); se_sess 448 drivers/target/iscsi/iscsi_target_configfs.c struct se_session *se_sess; \ se_sess 452 drivers/target/iscsi/iscsi_target_configfs.c se_sess = se_nacl->nacl_sess; \ se_sess 453 drivers/target/iscsi/iscsi_target_configfs.c if (!se_sess) { \ se_sess 457 drivers/target/iscsi/iscsi_target_configfs.c sess = se_sess->fabric_sess_ptr; \ se_sess 504 drivers/target/iscsi/iscsi_target_configfs.c struct se_session *se_sess; se_sess 509 drivers/target/iscsi/iscsi_target_configfs.c se_sess = se_nacl->nacl_sess; se_sess 510 drivers/target/iscsi/iscsi_target_configfs.c if (!se_sess) { se_sess 514 drivers/target/iscsi/iscsi_target_configfs.c sess = se_sess->fabric_sess_ptr; se_sess 1345 drivers/target/iscsi/iscsi_target_configfs.c static u32 lio_sess_get_index(struct se_session *se_sess) se_sess 1347 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; se_sess 1353 drivers/target/iscsi/iscsi_target_configfs.c struct se_session *se_sess, se_sess 1357 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; se_sess 1470 drivers/target/iscsi/iscsi_target_configfs.c static void lio_tpg_close_session(struct se_session *se_sess) se_sess 1472 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; se_sess 33 drivers/target/iscsi/iscsi_target_device.c se_nacl = sess->se_sess->se_node_acl; se_sess 137 drivers/target/iscsi/iscsi_target_login.c struct se_session *se_sess, *se_sess_tmp; se_sess 152 drivers/target/iscsi/iscsi_target_login.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_sess 155 drivers/target/iscsi/iscsi_target_login.c sess_p = se_sess->fabric_sess_ptr; se_sess 319 drivers/target/iscsi/iscsi_target_login.c sess->se_sess = transport_alloc_session(TARGET_PROT_NORMAL); se_sess 320 drivers/target/iscsi/iscsi_target_login.c if (IS_ERR(sess->se_sess)) { se_sess 441 drivers/target/iscsi/iscsi_target_login.c if (sess->se_sess->sup_prot_ops & se_sess 478 drivers/target/iscsi/iscsi_target_login.c struct se_session *se_sess, *se_sess_tmp; se_sess 483 drivers/target/iscsi/iscsi_target_login.c list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, se_sess 486 drivers/target/iscsi/iscsi_target_login.c sess_p = (struct iscsi_session *)se_sess->fabric_sess_ptr; se_sess 680 drivers/target/iscsi/iscsi_target_login.c struct se_session *se_sess = sess->se_sess; se_sess 754 drivers/target/iscsi/iscsi_target_login.c se_sess->se_node_acl, se_sess, sess); se_sess 1186 drivers/target/iscsi/iscsi_target_login.c transport_free_session(conn->sess->se_sess); se_sess 1385 drivers/target/iscsi/iscsi_target_login.c conn->sess->se_sess->sup_prot_ops = se_sess 116 drivers/target/iscsi/iscsi_target_nego.c se_nacl = conn->sess->se_sess->se_node_acl; se_sess 298 drivers/target/iscsi/iscsi_target_nego.c se_nacl = conn->sess->se_sess->se_node_acl; se_sess 1236 drivers/target/iscsi/iscsi_target_nego.c sess->se_sess->se_node_acl = core_tpg_check_initiator_node_acl( se_sess 1238 drivers/target/iscsi/iscsi_target_nego.c if (!sess->se_sess->se_node_acl) { se_sess 1247 drivers/target/iscsi/iscsi_target_nego.c se_nacl = sess->se_sess->se_node_acl; se_sess 1262 drivers/target/iscsi/iscsi_target_nego.c ret = transport_alloc_session_tags(sess->se_sess, tag_num, tag_size); se_sess 102 drivers/target/iscsi/iscsi_target_nodeattrib.c struct se_session *se_sess; se_sess 126 drivers/target/iscsi/iscsi_target_nodeattrib.c se_sess = se_nacl->nacl_sess; se_sess 127 drivers/target/iscsi/iscsi_target_nodeattrib.c if (se_sess) { se_sess 128 drivers/target/iscsi/iscsi_target_nodeattrib.c sess = se_sess->fabric_sess_ptr; se_sess 604 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 608 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 609 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 610 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 625 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 629 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 630 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 631 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 647 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 651 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 652 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 653 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 669 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 673 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 674 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 675 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 691 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 695 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 696 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 697 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 713 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 717 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 718 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 719 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 735 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 739 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 740 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 741 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 757 drivers/target/iscsi/iscsi_target_stat.c struct se_session *se_sess; se_sess 761 drivers/target/iscsi/iscsi_target_stat.c se_sess = se_nacl->nacl_sess; se_sess 762 drivers/target/iscsi/iscsi_target_stat.c if (se_sess) { se_sess 763 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; se_sess 76 drivers/target/iscsi/iscsi_target_tmr.c sess->se_sess->se_node_acl->initiatorname); se_sess 96 drivers/target/iscsi/iscsi_target_tmr.c sess->se_sess->se_node_acl->initiatorname); se_sess 395 drivers/target/iscsi/iscsi_target_tpg.c struct se_session *se_sess = sess->se_sess; se_sess 396 drivers/target/iscsi/iscsi_target_tpg.c struct se_node_acl *se_nacl = se_sess->se_node_acl; se_sess 142 drivers/target/iscsi/iscsi_target_util.c static int iscsit_wait_for_tag(struct se_session *se_sess, int state, int *cpup) se_sess 152 drivers/target/iscsi/iscsi_target_util.c sbq = &se_sess->sess_tag_pool; se_sess 175 drivers/target/iscsi/iscsi_target_util.c struct se_session *se_sess = conn->sess->se_sess; se_sess 178 drivers/target/iscsi/iscsi_target_util.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 180 drivers/target/iscsi/iscsi_target_util.c tag = iscsit_wait_for_tag(se_sess, state, &cpu); se_sess 185 drivers/target/iscsi/iscsi_target_util.c cmd = (struct iscsi_cmd *)(se_sess->sess_cmd_map + (tag * size)); se_sess 726 drivers/target/iscsi/iscsi_target_util.c BUG_ON(!sess || !sess->se_sess); se_sess 736 drivers/target/iscsi/iscsi_target_util.c target_free_tag(sess->se_sess, se_cmd); se_sess 772 drivers/target/iscsi/iscsi_target_util.c if (!rc && shutdown && se_cmd->se_sess) { se_sess 145 drivers/target/loopback/tcm_loop.c rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, se_sess 198 drivers/target/loopback/tcm_loop.c struct se_session *se_sess; se_sess 219 drivers/target/loopback/tcm_loop.c se_sess = tl_tpg->tl_nexus->se_sess; se_sess 221 drivers/target/loopback/tcm_loop.c rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, se_sess 515 drivers/target/loopback/tcm_loop.c static u32 tcm_loop_sess_get_index(struct se_session *se_sess) se_sess 717 drivers/target/loopback/tcm_loop.c struct se_session *se_sess, void *p) se_sess 743 drivers/target/loopback/tcm_loop.c tl_nexus->se_sess = target_setup_session(&tl_tpg->tl_se_tpg, 0, 0, se_sess 746 drivers/target/loopback/tcm_loop.c if (IS_ERR(tl_nexus->se_sess)) { se_sess 747 drivers/target/loopback/tcm_loop.c ret = PTR_ERR(tl_nexus->se_sess); se_sess 760 drivers/target/loopback/tcm_loop.c struct se_session *se_sess; se_sess 767 drivers/target/loopback/tcm_loop.c se_sess = tl_nexus->se_sess; se_sess 768 drivers/target/loopback/tcm_loop.c if (!se_sess) se_sess 779 drivers/target/loopback/tcm_loop.c tl_nexus->se_sess->se_node_acl->initiatorname); se_sess 783 drivers/target/loopback/tcm_loop.c target_remove_session(se_sess); se_sess 804 drivers/target/loopback/tcm_loop.c tl_nexus->se_sess->se_node_acl->initiatorname); se_sess 924 drivers/target/loopback/tcm_loop.c struct se_session *tl_sess = tl_tpg->tl_nexus->se_sess; se_sess 29 drivers/target/loopback/tcm_loop.h struct se_session *se_sess; se_sess 80 drivers/target/sbp/sbp_target.c struct se_session *se_sess; se_sess 84 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_sess 85 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; se_sess 114 drivers/target/sbp/sbp_target.c struct se_session *se_sess; se_sess 120 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_sess 121 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; se_sess 141 drivers/target/sbp/sbp_target.c struct se_session *se_sess; se_sess 146 drivers/target/sbp/sbp_target.c list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { se_sess 147 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; se_sess 199 drivers/target/sbp/sbp_target.c sess->se_sess = target_setup_session(&tpg->se_tpg, 128, se_sess 203 drivers/target/sbp/sbp_target.c if (IS_ERR(sess->se_sess)) { se_sess 205 drivers/target/sbp/sbp_target.c ret = PTR_ERR(sess->se_sess); se_sess 225 drivers/target/sbp/sbp_target.c target_remove_session(sess->se_sess); se_sess 913 drivers/target/sbp/sbp_target.c struct se_session *se_sess = sess->se_sess; se_sess 917 drivers/target/sbp/sbp_target.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 921 drivers/target/sbp/sbp_target.c req = &((struct sbp_target_request *)se_sess->sess_cmd_map)[tag]; se_sess 1221 drivers/target/sbp/sbp_target.c if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, se_sess 1445 drivers/target/sbp/sbp_target.c struct se_session *se_sess = se_cmd->se_sess; se_sess 1450 drivers/target/sbp/sbp_target.c target_free_tag(se_sess, se_cmd); se_sess 1711 drivers/target/sbp/sbp_target.c static u32 sbp_sess_get_index(struct se_session *se_sess) se_sess 140 drivers/target/sbp/sbp_target.h struct se_session *se_sess; se_sess 272 drivers/target/target_core_alua.c struct se_node_acl *nacl = cmd->se_sess->se_node_acl; se_sess 51 drivers/target/target_core_device.c struct se_session *se_sess = se_cmd->se_sess; se_sess 52 drivers/target/target_core_device.c struct se_node_acl *nacl = se_sess->se_node_acl; se_sess 109 drivers/target/target_core_device.c se_lun = se_sess->se_tpg->tpg_virt_lun0; se_sess 110 drivers/target/target_core_device.c se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; se_sess 151 drivers/target/target_core_device.c struct se_session *se_sess = se_cmd->se_sess; se_sess 152 drivers/target/target_core_device.c struct se_node_acl *nacl = se_sess->se_node_acl; se_sess 195 drivers/target/target_core_device.c struct se_session *se_sess = cmd->se_sess; se_sess 200 drivers/target/target_core_device.c deve = target_nacl_find_deve(se_sess->se_node_acl, cmd->orig_fe_lun); se_sess 90 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; se_sess 121 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 127 drivers/target/target_core_pr.c pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, se_sess 128 drivers/target/target_core_pr.c se_sess); se_sess 204 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; se_sess 245 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; se_sess 315 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 316 drivers/target/target_core_pr.c struct se_node_acl *nacl = se_sess->se_node_acl; se_sess 504 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, cdb[0], se_sess 556 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, cdb[0], se_sess 566 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; se_sess 1497 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 1523 drivers/target/target_core_pr.c tidh_new->dest_node_acl = se_sess->se_node_acl; se_sess 1526 drivers/target/target_core_pr.c se_sess->se_node_acl, cmd->se_lun, se_sess 2048 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 2058 drivers/target/target_core_pr.c if (!se_sess || !se_lun) { se_sess 2062 drivers/target/target_core_pr.c se_tpg = se_sess->se_tpg; se_sess 2066 drivers/target/target_core_pr.c se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, &isid_buf[0], se_sess 2073 drivers/target/target_core_pr.c pr_reg = core_scsi3_locate_pr_reg(dev, se_sess->se_node_acl, se_sess); se_sess 2093 drivers/target/target_core_pr.c se_sess->se_node_acl, cmd->se_lun, se_sess 2273 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 2282 drivers/target/target_core_pr.c if (!se_sess || !se_lun) { se_sess 2289 drivers/target/target_core_pr.c pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, se_sess 2290 drivers/target/target_core_pr.c se_sess); se_sess 2351 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, se_sess 2374 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, se_sess 2412 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, se_sess 2517 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 2523 drivers/target/target_core_pr.c if (!se_sess || !se_lun) { se_sess 2530 drivers/target/target_core_pr.c pr_reg = core_scsi3_locate_pr_reg(dev, se_sess->se_node_acl, se_sess); se_sess 2603 drivers/target/target_core_pr.c se_sess->se_node_acl->initiatorname, se_sess 2627 drivers/target/target_core_pr.c __core_scsi3_complete_pro_release(dev, se_sess->se_node_acl, se_sess 2674 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 2683 drivers/target/target_core_pr.c se_sess->se_node_acl, se_sess); se_sess 2828 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 2837 drivers/target/target_core_pr.c if (!se_sess) se_sess 2840 drivers/target/target_core_pr.c pr_reg_n = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, se_sess 2841 drivers/target/target_core_pr.c se_sess); se_sess 3142 drivers/target/target_core_pr.c struct se_session *se_sess = cmd->se_sess; se_sess 3160 drivers/target/target_core_pr.c if (!se_sess || !se_lun) { se_sess 3166 drivers/target/target_core_pr.c se_tpg = se_sess->se_tpg; se_sess 3174 drivers/target/target_core_pr.c pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, se_sess 3175 drivers/target/target_core_pr.c se_sess); se_sess 3572 drivers/target/target_core_pr.c if (!cmd->se_sess) se_sess 4083 drivers/target/target_core_pr.c if (!cmd->se_sess) se_sess 78 drivers/target/target_core_sbc.c struct se_session *sess = cmd->se_sess; se_sess 693 drivers/target/target_core_sbc.c int sp_ops = cmd->se_sess->sup_prot_ops; se_sess 699 drivers/target/target_core_sbc.c !dev->dev_attrib.pi_prot_type && !cmd->se_sess->sess_prot_type)) { se_sess 731 drivers/target/target_core_sbc.c if (fabric_prot && cmd->se_sess->sess_prot_type) { se_sess 732 drivers/target/target_core_sbc.c pi_prot_type = cmd->se_sess->sess_prot_type; se_sess 55 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; se_sess 92 drivers/target/target_core_spc.c if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) se_sess 441 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; se_sess 450 drivers/target/target_core_spc.c cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE1_PROT) se_sess 453 drivers/target/target_core_spc.c cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE3_PROT) se_sess 460 drivers/target/target_core_spc.c (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { se_sess 777 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; se_sess 1203 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; se_sess 1266 drivers/target/target_core_stat.c struct se_session *se_sess; se_sess 1271 drivers/target/target_core_stat.c se_sess = nacl->nacl_sess; se_sess 1272 drivers/target/target_core_stat.c if (!se_sess) { se_sess 1280 drivers/target/target_core_stat.c tpg->se_tpg_tfo->sess_get_index(se_sess)); se_sess 1310 drivers/target/target_core_stat.c struct se_session *se_sess; se_sess 1316 drivers/target/target_core_stat.c se_sess = nacl->nacl_sess; se_sess 1317 drivers/target/target_core_stat.c if (!se_sess) { se_sess 1326 drivers/target/target_core_stat.c tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, buf, 64); se_sess 83 drivers/target/target_core_tmr.c struct se_session *sess = se_cmd->se_sess; se_sess 106 drivers/target/target_core_tmr.c if ((tmr_sess != se_cmd->se_sess) && tas) se_sess 117 drivers/target/target_core_tmr.c struct se_session *se_sess) se_sess 123 drivers/target/target_core_tmr.c spin_lock_irqsave(&se_sess->sess_cmd_lock, flags); se_sess 124 drivers/target/target_core_tmr.c list_for_each_entry(se_cmd, &se_sess->sess_cmd_list, se_cmd_list) { se_sess 140 drivers/target/target_core_tmr.c if (!__target_check_io_state(se_cmd, se_sess, se_sess 144 drivers/target/target_core_tmr.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 162 drivers/target/target_core_tmr.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 202 drivers/target/target_core_tmr.c sess = cmd->se_sess; se_sess 300 drivers/target/target_core_tmr.c sess = cmd->se_sess; se_sess 354 drivers/target/target_core_tmr.c if (tmr && tmr->task_cmd && tmr->task_cmd->se_sess) { se_sess 355 drivers/target/target_core_tmr.c tmr_sess = tmr->task_cmd->se_sess; se_sess 227 drivers/target/target_core_transport.c int transport_init_session(struct se_session *se_sess) se_sess 229 drivers/target/target_core_transport.c INIT_LIST_HEAD(&se_sess->sess_list); se_sess 230 drivers/target/target_core_transport.c INIT_LIST_HEAD(&se_sess->sess_acl_list); se_sess 231 drivers/target/target_core_transport.c INIT_LIST_HEAD(&se_sess->sess_cmd_list); se_sess 232 drivers/target/target_core_transport.c spin_lock_init(&se_sess->sess_cmd_lock); se_sess 233 drivers/target/target_core_transport.c init_waitqueue_head(&se_sess->cmd_list_wq); se_sess 234 drivers/target/target_core_transport.c return percpu_ref_init(&se_sess->cmd_count, se_sess 245 drivers/target/target_core_transport.c struct se_session *se_sess; se_sess 248 drivers/target/target_core_transport.c se_sess = kmem_cache_zalloc(se_sess_cache, GFP_KERNEL); se_sess 249 drivers/target/target_core_transport.c if (!se_sess) { se_sess 254 drivers/target/target_core_transport.c ret = transport_init_session(se_sess); se_sess 256 drivers/target/target_core_transport.c kmem_cache_free(se_sess_cache, se_sess); se_sess 259 drivers/target/target_core_transport.c se_sess->sup_prot_ops = sup_prot_ops; se_sess 261 drivers/target/target_core_transport.c return se_sess; se_sess 272 drivers/target/target_core_transport.c int transport_alloc_session_tags(struct se_session *se_sess, se_sess 277 drivers/target/target_core_transport.c se_sess->sess_cmd_map = kvcalloc(tag_size, tag_num, se_sess 279 drivers/target/target_core_transport.c if (!se_sess->sess_cmd_map) { se_sess 284 drivers/target/target_core_transport.c rc = sbitmap_queue_init_node(&se_sess->sess_tag_pool, tag_num, -1, se_sess 289 drivers/target/target_core_transport.c kvfree(se_sess->sess_cmd_map); se_sess 290 drivers/target/target_core_transport.c se_sess->sess_cmd_map = NULL; se_sess 309 drivers/target/target_core_transport.c struct se_session *se_sess; se_sess 323 drivers/target/target_core_transport.c se_sess = transport_alloc_session(sup_prot_ops); se_sess 324 drivers/target/target_core_transport.c if (IS_ERR(se_sess)) se_sess 325 drivers/target/target_core_transport.c return se_sess; se_sess 327 drivers/target/target_core_transport.c rc = transport_alloc_session_tags(se_sess, tag_num, tag_size); se_sess 329 drivers/target/target_core_transport.c transport_free_session(se_sess); se_sess 333 drivers/target/target_core_transport.c return se_sess; se_sess 342 drivers/target/target_core_transport.c struct se_session *se_sess, se_sess 349 drivers/target/target_core_transport.c se_sess->se_tpg = se_tpg; se_sess 350 drivers/target/target_core_transport.c se_sess->fabric_sess_ptr = fabric_sess_ptr; se_sess 369 drivers/target/target_core_transport.c se_sess->sess_prot_type = se_nacl->saved_prot_type; se_sess 371 drivers/target/target_core_transport.c se_sess->sess_prot_type = se_nacl->saved_prot_type = se_sess 379 drivers/target/target_core_transport.c se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, se_sess 381 drivers/target/target_core_transport.c se_sess->sess_bin_isid = get_unaligned_be64(&buf[0]); se_sess 389 drivers/target/target_core_transport.c se_nacl->nacl_sess = se_sess; se_sess 391 drivers/target/target_core_transport.c list_add_tail(&se_sess->sess_acl_list, se_sess 395 drivers/target/target_core_transport.c list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); se_sess 398 drivers/target/target_core_transport.c se_tpg->se_tpg_tfo->fabric_name, se_sess->fabric_sess_ptr); se_sess 405 drivers/target/target_core_transport.c struct se_session *se_sess, se_sess 411 drivers/target/target_core_transport.c __transport_register_session(se_tpg, se_nacl, se_sess, fabric_sess_ptr); se_sess 463 drivers/target/target_core_transport.c struct se_session *se_sess; se_sess 467 drivers/target/target_core_transport.c list_for_each_entry(se_sess, &se_tpg->tpg_sess_list, sess_list) { se_sess 468 drivers/target/target_core_transport.c if (!se_sess->se_node_acl) se_sess 470 drivers/target/target_core_transport.c if (!se_sess->se_node_acl->dynamic_node_acl) se_sess 472 drivers/target/target_core_transport.c if (strlen(se_sess->se_node_acl->initiatorname) + 1 + len > PAGE_SIZE) se_sess 476 drivers/target/target_core_transport.c se_sess->se_node_acl->initiatorname); se_sess 511 drivers/target/target_core_transport.c void transport_deregister_session_configfs(struct se_session *se_sess) se_sess 518 drivers/target/target_core_transport.c se_nacl = se_sess->se_node_acl; se_sess 521 drivers/target/target_core_transport.c if (!list_empty(&se_sess->sess_acl_list)) se_sess 522 drivers/target/target_core_transport.c list_del_init(&se_sess->sess_acl_list); se_sess 540 drivers/target/target_core_transport.c void transport_free_session(struct se_session *se_sess) se_sess 542 drivers/target/target_core_transport.c struct se_node_acl *se_nacl = se_sess->se_node_acl; se_sess 553 drivers/target/target_core_transport.c se_sess->se_node_acl = NULL; se_sess 578 drivers/target/target_core_transport.c if (se_sess->sess_cmd_map) { se_sess 579 drivers/target/target_core_transport.c sbitmap_queue_free(&se_sess->sess_tag_pool); se_sess 580 drivers/target/target_core_transport.c kvfree(se_sess->sess_cmd_map); se_sess 582 drivers/target/target_core_transport.c percpu_ref_exit(&se_sess->cmd_count); se_sess 583 drivers/target/target_core_transport.c kmem_cache_free(se_sess_cache, se_sess); se_sess 596 drivers/target/target_core_transport.c void transport_deregister_session(struct se_session *se_sess) se_sess 598 drivers/target/target_core_transport.c struct se_portal_group *se_tpg = se_sess->se_tpg; se_sess 602 drivers/target/target_core_transport.c transport_free_session(se_sess); se_sess 607 drivers/target/target_core_transport.c list_del(&se_sess->sess_list); se_sess 608 drivers/target/target_core_transport.c se_sess->se_tpg = NULL; se_sess 609 drivers/target/target_core_transport.c se_sess->fabric_sess_ptr = NULL; se_sess 616 drivers/target/target_core_transport.c target_for_each_device(target_release_res, se_sess); se_sess 629 drivers/target/target_core_transport.c transport_free_session(se_sess); se_sess 633 drivers/target/target_core_transport.c void target_remove_session(struct se_session *se_sess) se_sess 635 drivers/target/target_core_transport.c transport_deregister_session_configfs(se_sess); se_sess 636 drivers/target/target_core_transport.c transport_deregister_session(se_sess); se_sess 1350 drivers/target/target_core_transport.c struct se_session *se_sess, se_sess 1368 drivers/target/target_core_transport.c cmd->se_sess = se_sess; se_sess 1443 drivers/target/target_core_transport.c cmd->se_sess->se_node_acl->initiatorname, se_sess 1557 drivers/target/target_core_transport.c int target_submit_cmd_map_sgls(struct se_cmd *se_cmd, struct se_session *se_sess, se_sess 1568 drivers/target/target_core_transport.c se_tpg = se_sess->se_tpg; se_sess 1570 drivers/target/target_core_transport.c BUG_ON(se_cmd->se_tfo || se_cmd->se_sess); se_sess 1577 drivers/target/target_core_transport.c transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, se_sess 1699 drivers/target/target_core_transport.c int target_submit_cmd(struct se_cmd *se_cmd, struct se_session *se_sess, se_sess 1703 drivers/target/target_core_transport.c return target_submit_cmd_map_sgls(se_cmd, se_sess, cdb, sense, se_sess 1720 drivers/target/target_core_transport.c static bool target_lookup_lun_from_tag(struct se_session *se_sess, u64 tag, se_sess 1727 drivers/target/target_core_transport.c spin_lock_irqsave(&se_sess->sess_cmd_lock, flags); se_sess 1728 drivers/target/target_core_transport.c list_for_each_entry(se_cmd, &se_sess->sess_cmd_list, se_cmd_list) { se_sess 1738 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 1760 drivers/target/target_core_transport.c int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, se_sess 1768 drivers/target/target_core_transport.c se_tpg = se_sess->se_tpg; se_sess 1771 drivers/target/target_core_transport.c transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess, se_sess 1796 drivers/target/target_core_transport.c if (!target_lookup_lun_from_tag(se_sess, tag, &unpacked_lun)) se_sess 1887 drivers/target/target_core_transport.c if (cmd->se_sess && se_sess 1889 drivers/target/target_core_transport.c target_ua_allocate_lun(cmd->se_sess->se_node_acl, se_sess 1972 drivers/target/target_core_transport.c if (!(cmd->se_sess->sup_prot_ops & TARGET_PROT_DOUT_INSERT)) se_sess 1976 drivers/target/target_core_transport.c if (cmd->se_sess->sup_prot_ops & TARGET_PROT_DOUT_STRIP) se_sess 2240 drivers/target/target_core_transport.c if (!(cmd->se_sess->sup_prot_ops & TARGET_PROT_DIN_STRIP)) { se_sess 2252 drivers/target/target_core_transport.c if (cmd->se_sess->sup_prot_ops & TARGET_PROT_DIN_INSERT) se_sess 2748 drivers/target/target_core_transport.c struct se_session *se_sess = se_cmd->se_sess; se_sess 2764 drivers/target/target_core_transport.c spin_lock_irqsave(&se_sess->sess_cmd_lock, flags); se_sess 2765 drivers/target/target_core_transport.c if (se_sess->sess_tearing_down) { se_sess 2769 drivers/target/target_core_transport.c list_add_tail(&se_cmd->se_cmd_list, &se_sess->sess_cmd_list); se_sess 2770 drivers/target/target_core_transport.c percpu_ref_get(&se_sess->cmd_count); se_sess 2772 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 2794 drivers/target/target_core_transport.c struct se_session *se_sess = se_cmd->se_sess; se_sess 2799 drivers/target/target_core_transport.c if (se_sess) { se_sess 2800 drivers/target/target_core_transport.c spin_lock_irqsave(&se_sess->sess_cmd_lock, flags); se_sess 2802 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 2812 drivers/target/target_core_transport.c percpu_ref_put(&se_sess->cmd_count); se_sess 2934 drivers/target/target_core_transport.c void target_sess_cmd_list_set_waiting(struct se_session *se_sess) se_sess 2938 drivers/target/target_core_transport.c spin_lock_irqsave(&se_sess->sess_cmd_lock, flags); se_sess 2939 drivers/target/target_core_transport.c se_sess->sess_tearing_down = 1; se_sess 2940 drivers/target/target_core_transport.c spin_unlock_irqrestore(&se_sess->sess_cmd_lock, flags); se_sess 2942 drivers/target/target_core_transport.c percpu_ref_kill(&se_sess->cmd_count); se_sess 2950 drivers/target/target_core_transport.c void target_wait_for_sess_cmds(struct se_session *se_sess) se_sess 2955 drivers/target/target_core_transport.c WARN_ON_ONCE(!se_sess->sess_tearing_down); se_sess 2958 drivers/target/target_core_transport.c ret = wait_event_timeout(se_sess->cmd_list_wq, se_sess 2959 drivers/target/target_core_transport.c percpu_ref_is_zero(&se_sess->cmd_count), se_sess 2961 drivers/target/target_core_transport.c list_for_each_entry(cmd, &se_sess->sess_cmd_list, se_cmd_list) se_sess 3304 drivers/target/target_core_transport.c core_tmr_abort_task(dev, tmr, cmd->se_sess); se_sess 3316 drivers/target/target_core_transport.c target_ua_allocate_lun(cmd->se_sess->se_node_acl, se_sess 29 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; se_sess 198 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; se_sess 270 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; se_sess 34 drivers/target/tcm_fc/tcm_fc.h struct se_session *se_sess; se_sess 82 drivers/target/tcm_fc/tfc_cmd.c target_free_tag(sess->se_sess, &cmd->se_cmd); se_sess 371 drivers/target/tcm_fc/tfc_cmd.c rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, se_sess 430 drivers/target/tcm_fc/tfc_cmd.c struct se_session *se_sess = sess->se_sess; se_sess 433 drivers/target/tcm_fc/tfc_cmd.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 437 drivers/target/tcm_fc/tfc_cmd.c cmd = &((struct ft_cmd *)se_sess->sess_cmd_map)[tag]; se_sess 445 drivers/target/tcm_fc/tfc_cmd.c target_free_tag(se_sess, &cmd->se_cmd); se_sess 551 drivers/target/tcm_fc/tfc_cmd.c if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, se_sess 190 drivers/target/tcm_fc/tfc_sess.c struct se_session *se_sess, void *p) se_sess 230 drivers/target/tcm_fc/tfc_sess.c sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, se_sess 234 drivers/target/tcm_fc/tfc_sess.c if (IS_ERR(sess->se_sess)) { se_sess 235 drivers/target/tcm_fc/tfc_sess.c int rc = PTR_ERR(sess->se_sess); se_sess 278 drivers/target/tcm_fc/tfc_sess.c target_sess_cmd_list_set_waiting(sess->se_sess); se_sess 279 drivers/target/tcm_fc/tfc_sess.c target_wait_for_sess_cmds(sess->se_sess); se_sess 309 drivers/target/tcm_fc/tfc_sess.c void ft_sess_close(struct se_session *se_sess) se_sess 311 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; se_sess 328 drivers/target/tcm_fc/tfc_sess.c u32 ft_sess_get_index(struct se_session *se_sess) se_sess 330 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; se_sess 335 drivers/target/tcm_fc/tfc_sess.c u32 ft_sess_get_port_name(struct se_session *se_sess, se_sess 338 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; se_sess 438 drivers/target/tcm_fc/tfc_sess.c target_remove_session(sess->se_sess); se_sess 1072 drivers/usb/gadget/function/f_tcm.c struct se_session *se_sess = tv_nexus->tvn_se_sess; se_sess 1076 drivers/usb/gadget/function/f_tcm.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 1080 drivers/usb/gadget/function/f_tcm.c cmd = &((struct usbg_cmd *)se_sess->sess_cmd_map)[tag]; se_sess 1284 drivers/usb/gadget/function/f_tcm.c struct se_session *se_sess = se_cmd->se_sess; se_sess 1287 drivers/usb/gadget/function/f_tcm.c target_free_tag(se_sess, se_cmd); se_sess 1290 drivers/usb/gadget/function/f_tcm.c static u32 usbg_sess_get_index(struct se_session *se_sess) se_sess 1555 drivers/usb/gadget/function/f_tcm.c struct se_session *se_sess, void *p) se_sess 1602 drivers/usb/gadget/function/f_tcm.c struct se_session *se_sess; se_sess 1611 drivers/usb/gadget/function/f_tcm.c se_sess = tv_nexus->tvn_se_sess; se_sess 1612 drivers/usb/gadget/function/f_tcm.c if (!se_sess) se_sess 1628 drivers/usb/gadget/function/f_tcm.c target_remove_session(se_sess); se_sess 327 drivers/vhost/scsi.c struct se_session *se_sess = tv_cmd->tvc_nexus->tvn_se_sess; se_sess 340 drivers/vhost/scsi.c target_free_tag(se_sess, se_cmd); se_sess 343 drivers/vhost/scsi.c static u32 vhost_scsi_sess_get_index(struct se_session *se_sess) se_sess 575 drivers/vhost/scsi.c struct se_session *se_sess; se_sess 585 drivers/vhost/scsi.c se_sess = tv_nexus->tvn_se_sess; se_sess 587 drivers/vhost/scsi.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 593 drivers/vhost/scsi.c cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[tag]; se_sess 1855 drivers/vhost/scsi.c static void vhost_scsi_free_cmd_map_res(struct se_session *se_sess) se_sess 1860 drivers/vhost/scsi.c if (!se_sess->sess_cmd_map) se_sess 1864 drivers/vhost/scsi.c tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; se_sess 1912 drivers/vhost/scsi.c struct se_session *se_sess, void *p) se_sess 1918 drivers/vhost/scsi.c tv_cmd = &((struct vhost_scsi_cmd *)se_sess->sess_cmd_map)[i]; se_sess 1946 drivers/vhost/scsi.c vhost_scsi_free_cmd_map_res(se_sess); se_sess 1992 drivers/vhost/scsi.c struct se_session *se_sess; se_sess 2002 drivers/vhost/scsi.c se_sess = tv_nexus->tvn_se_sess; se_sess 2003 drivers/vhost/scsi.c if (!se_sess) { se_sess 2028 drivers/vhost/scsi.c vhost_scsi_free_cmd_map_res(se_sess); se_sess 2032 drivers/vhost/scsi.c target_remove_session(se_sess); se_sess 655 drivers/xen/xen-scsiback.c struct se_session *se_sess = nexus->tvn_se_sess; se_sess 659 drivers/xen/xen-scsiback.c tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); se_sess 665 drivers/xen/xen-scsiback.c req = &((struct vscsibk_pend *)se_sess->sess_cmd_map)[tag]; se_sess 1391 drivers/xen/xen-scsiback.c target_free_tag(se_cmd->se_sess, se_cmd); se_sess 1394 drivers/xen/xen-scsiback.c static u32 scsiback_sess_get_index(struct se_session *se_sess) se_sess 1501 drivers/xen/xen-scsiback.c struct se_session *se_sess, void *p) se_sess 1547 drivers/xen/xen-scsiback.c struct se_session *se_sess; se_sess 1557 drivers/xen/xen-scsiback.c se_sess = tv_nexus->tvn_se_sess; se_sess 1558 drivers/xen/xen-scsiback.c if (!se_sess) { se_sess 1584 drivers/xen/xen-scsiback.c target_remove_session(se_sess); se_sess 695 include/target/iscsi/iscsi_target_core.h struct se_session *se_sess; se_sess 483 include/target/target_core_base.h struct se_session *se_sess; se_sess 135 include/target/target_core_fabric.h int transport_init_session(struct se_session *se_sess); se_sess 162 include/target/target_core_fabric.h int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, se_sess 144 include/trace/events/target.h __string( initiator, cmd->se_sess->se_node_acl->initiatorname ) se_sess 153 include/trace/events/target.h __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname); se_sess 182 include/trace/events/target.h __string(initiator, cmd->se_sess->se_node_acl->initiatorname) se_sess 195 include/trace/events/target.h __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);