sess 1310 drivers/infiniband/ulp/isert/ib_isert.c if (conn->sess->sess_ops->SessionType && sess 2583 drivers/infiniband/ulp/isert/ib_isert.c if (conn->sess) { sess 2584 drivers/infiniband/ulp/isert/ib_isert.c target_sess_cmd_list_set_waiting(conn->sess->se_sess); sess 2585 drivers/infiniband/ulp/isert/ib_isert.c target_wait_for_sess_cmds(conn->sess->se_sess); sess 2607 drivers/infiniband/ulp/isert/ib_isert.c (cmd->write_data_done < conn->sess->sess_ops->FirstBurstLength) && sess 1224 drivers/infiniband/ulp/srpt/ib_srpt.c tag = sbitmap_queue_get(&ch->sess->sess_tag_pool, &cpu); sess 1530 drivers/infiniband/ulp/srpt/ib_srpt.c rc = target_submit_cmd_map_sgls(cmd, ch->sess, srp_cmd->cdb, sess 1581 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_session *sess = ch->sess; sess 1592 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess); sess 1597 drivers/infiniband/ulp/srpt/ib_srpt.c rc = target_submit_tmr(&send_ioctx->cmd, sess, NULL, sess 2100 drivers/infiniband/ulp/srpt/ib_srpt.c se_sess = ch->sess; sess 2107 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess = NULL; sess 2328 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess = target_setup_session(&sport->port_guid_tpg, tag_num, sess 2331 drivers/infiniband/ulp/srpt/ib_srpt.c if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess)) sess 2332 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess = target_setup_session(&sport->port_gid_tpg, tag_num, sess 2336 drivers/infiniband/ulp/srpt/ib_srpt.c if (sport->port_gid_tpg.se_tpg_wwn && IS_ERR_OR_NULL(ch->sess)) sess 2337 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess = target_setup_session(&sport->port_gid_tpg, tag_num, sess 2340 drivers/infiniband/ulp/srpt/ib_srpt.c if (IS_ERR_OR_NULL(ch->sess)) { sess 2341 drivers/infiniband/ulp/srpt/ib_srpt.c WARN_ON_ONCE(ch->sess == NULL); sess 2342 drivers/infiniband/ulp/srpt/ib_srpt.c ret = PTR_ERR(ch->sess); sess 2343 drivers/infiniband/ulp/srpt/ib_srpt.c ch->sess = NULL; sess 2389 drivers/infiniband/ulp/srpt/ib_srpt.c pr_debug("Establish connection sess=%p name=%s ch=%p\n", ch->sess, sess 2495 drivers/infiniband/ulp/srpt/ib_srpt.c if (ch && ch->sess) { sess 328 drivers/infiniband/ulp/srpt/ib_srpt.h struct se_session *sess; sess 596 drivers/misc/fastrpc.c struct fastrpc_session_ctx *sess = fl->sctx; sess 616 drivers/misc/fastrpc.c map->attach = dma_buf_attach(map->buf, sess->dev); sess 618 drivers/misc/fastrpc.c dev_err(sess->dev, "Failed to attach dmabuf\n"); sess 1326 drivers/misc/fastrpc.c struct fastrpc_session_ctx *sess; sess 1339 drivers/misc/fastrpc.c sess = &cctx->session[cctx->sesscount]; sess 1340 drivers/misc/fastrpc.c sess->used = false; sess 1341 drivers/misc/fastrpc.c sess->valid = true; sess 1342 drivers/misc/fastrpc.c sess->dev = dev; sess 1343 drivers/misc/fastrpc.c dev_set_drvdata(dev, sess); sess 1345 drivers/misc/fastrpc.c if (of_property_read_u32(dev->of_node, "reg", &sess->sid)) sess 1355 drivers/misc/fastrpc.c memcpy(dup_sess, sess, sizeof(*dup_sess)); sess 1372 drivers/misc/fastrpc.c struct fastrpc_session_ctx *sess = dev_get_drvdata(&pdev->dev); sess 1378 drivers/misc/fastrpc.c if (cctx->session[i].sid == sess->sid) { sess 43 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_session *sess; sess 82 drivers/scsi/be2iscsi/be_iscsi.c sess = cls_session->dd_data; sess 83 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_sess = sess->dd_data; sess 106 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_session *sess = cls_session->dd_data; sess 107 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_session *beiscsi_sess = sess->dd_data; sess 137 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_session *sess; sess 156 drivers/scsi/be2iscsi/be_iscsi.c sess = cls_session->dd_data; sess 157 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_sess = sess->dd_data; sess 1462 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_session *sess = conn->session; sess 1467 drivers/scsi/cxgbi/libcxgbi.c u32 sw_tag = cxgbi_build_sw_tag(task->itt, sess->age); sess 1497 drivers/scsi/cxgbi/libcxgbi.c cdev, task, sw_tag, task->itt, sess->age, tag, *hdr_itt); sess 945 drivers/scsi/qedi/qedi_main.c struct iscsi_session *sess; sess 985 drivers/scsi/qedi/qedi_main.c sess = cls_sess->dd_data; sess 990 drivers/scsi/qedi/qedi_main.c if (!sess->targetname) sess 994 drivers/scsi/qedi/qedi_main.c if (!strcmp(pri_tgt->iscsi_name, sess->targetname) && sess 1002 drivers/scsi/qedi/qedi_main.c if (!strcmp(sec_tgt->iscsi_name, sess->targetname) && sess 1021 drivers/scsi/qedi/qedi_main.c iscsi->boot_taget_portal = sess->tpgt; sess 21 drivers/scsi/qla2xxx/qla_dfs.c struct fc_port *sess = NULL; sess 29 drivers/scsi/qla2xxx/qla_dfs.c list_for_each_entry(sess, &vha->vp_fcports, list) sess 31 drivers/scsi/qla2xxx/qla_dfs.c sess->d_id.b.domain, sess->d_id.b.area, sess 32 drivers/scsi/qla2xxx/qla_dfs.c sess->d_id.b.al_pa, sess->port_name, sess 33 drivers/scsi/qla2xxx/qla_dfs.c sess->loop_id); sess 114 drivers/scsi/qla2xxx/qla_target.c static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun, sess 130 drivers/scsi/qla2xxx/qla_target.c void qlt_unreg_sess(struct fc_port *sess); sess 714 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = fcport; sess 731 drivers/scsi/qla2xxx/qla_target.c if (!sess->se_sess) { sess 735 drivers/scsi/qla2xxx/qla_target.c sess = qlt_create_sess(vha, fcport, false); sess 745 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 748 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name); sess 756 drivers/scsi/qla2xxx/qla_target.c sess->local ? "local " : "", sess->port_name, sess->loop_id); sess 759 drivers/scsi/qla2xxx/qla_target.c "Reappeared sess %p\n", sess); sess 761 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->update_sess(sess, fcport->d_id, sess 766 drivers/scsi/qla2xxx/qla_target.c if (sess && sess->local) { sess 770 drivers/scsi/qla2xxx/qla_target.c fcport->port_name, sess->loop_id); sess 771 drivers/scsi/qla2xxx/qla_target.c sess->local = 0; sess 775 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 867 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess, enum qlt_plogi_link_t link) sess 876 drivers/scsi/qla2xxx/qla_target.c sess, link, sess->port_name, sess 882 drivers/scsi/qla2xxx/qla_target.c switch (sess->disc_state) { sess 892 drivers/scsi/qla2xxx/qla_target.c if (sess->plogi_link[link]) sess 893 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_unref(vha, sess->plogi_link[link]); sess 896 drivers/scsi/qla2xxx/qla_target.c pla->fcport = sess; sess 898 drivers/scsi/qla2xxx/qla_target.c sess->plogi_link[link] = pla; sess 949 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = container_of(work, struct fc_port, sess 951 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = sess->tgt; sess 952 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; sess 958 drivers/scsi/qla2xxx/qla_target.c sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN]; sess 963 drivers/scsi/qla2xxx/qla_target.c __func__, sess->se_sess, sess, sess->port_name, sess->loop_id, sess 964 drivers/scsi/qla2xxx/qla_target.c sess->d_id.b.domain, sess->d_id.b.area, sess->d_id.b.al_pa, sess 965 drivers/scsi/qla2xxx/qla_target.c sess->logout_on_delete, sess->keep_nport_handle, sess 966 drivers/scsi/qla2xxx/qla_target.c sess->send_els_logo); sess 968 drivers/scsi/qla2xxx/qla_target.c if (!IS_SW_RESV_ADDR(sess->d_id)) { sess 969 drivers/scsi/qla2xxx/qla_target.c qla2x00_mark_device_lost(vha, sess, 0, 0); sess 971 drivers/scsi/qla2xxx/qla_target.c if (sess->send_els_logo) { sess 974 drivers/scsi/qla2xxx/qla_target.c logo.id = sess->d_id; sess 978 drivers/scsi/qla2xxx/qla_target.c sess->send_els_logo = 0; sess 981 drivers/scsi/qla2xxx/qla_target.c if (sess->logout_on_delete && sess->loop_id != FC_NO_LOOP_ID) { sess 987 drivers/scsi/qla2xxx/qla_target.c rc = qla2x00_post_async_logout_work(vha, sess, sess 992 drivers/scsi/qla2xxx/qla_target.c sess, rc); sess 997 drivers/scsi/qla2xxx/qla_target.c rc = qla2x00_post_async_prlo_work(vha, sess, sess 1002 drivers/scsi/qla2xxx/qla_target.c sess, rc); sess 1008 drivers/scsi/qla2xxx/qla_target.c if (sess->nvme_flag & NVME_FLAG_REGISTERED && sess 1009 drivers/scsi/qla2xxx/qla_target.c !(sess->nvme_flag & NVME_FLAG_DELETING)) { sess 1010 drivers/scsi/qla2xxx/qla_target.c sess->nvme_flag |= NVME_FLAG_DELETING; sess 1011 drivers/scsi/qla2xxx/qla_target.c qla_nvme_unregister_remote_port(sess); sess 1018 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess != NULL) sess 1019 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->free_session(sess); sess 1025 drivers/scsi/qla2xxx/qla_target.c while (!READ_ONCE(sess->logout_completed)) { sess 1029 drivers/scsi/qla2xxx/qla_target.c __func__, sess); sess 1039 drivers/scsi/qla2xxx/qla_target.c "%s: sess %p logout completed\n", __func__, sess); sess 1042 drivers/scsi/qla2xxx/qla_target.c if (sess->logo_ack_needed) { sess 1043 drivers/scsi/qla2xxx/qla_target.c sess->logo_ack_needed = 0; sess 1044 drivers/scsi/qla2xxx/qla_target.c qla24xx_async_notify_ack(vha, sess, sess 1045 drivers/scsi/qla2xxx/qla_target.c (struct imm_ntfy_from_isp *)sess->iocb, SRB_NACK_LOGO); sess 1049 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) { sess 1050 drivers/scsi/qla2xxx/qla_target.c sess->se_sess = NULL; sess 1051 drivers/scsi/qla2xxx/qla_target.c if (tgt && !IS_SW_RESV_ADDR(sess->d_id)) sess 1055 drivers/scsi/qla2xxx/qla_target.c sess->disc_state = DSC_DELETED; sess 1056 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PORT_UNAVAIL; sess 1057 drivers/scsi/qla2xxx/qla_target.c sess->deleted = QLA_SESS_DELETED; sess 1059 drivers/scsi/qla2xxx/qla_target.c if (sess->login_succ && !IS_SW_RESV_ADDR(sess->d_id)) { sess 1061 drivers/scsi/qla2xxx/qla_target.c sess->login_succ = 0; sess 1064 drivers/scsi/qla2xxx/qla_target.c qla2x00_clear_loop_id(sess); sess 1066 drivers/scsi/qla2xxx/qla_target.c if (sess->conflict) { sess 1067 drivers/scsi/qla2xxx/qla_target.c sess->conflict->login_pause = 0; sess 1068 drivers/scsi/qla2xxx/qla_target.c sess->conflict = NULL; sess 1075 drivers/scsi/qla2xxx/qla_target.c sess->plogi_link[QLT_PLOGI_LINK_CONFLICT]; sess 1078 drivers/scsi/qla2xxx/qla_target.c own = sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN]; sess 1085 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, sess 1090 drivers/scsi/qla2xxx/qla_target.c sess->plogi_link[QLT_PLOGI_LINK_CONFLICT] = NULL; sess 1094 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, sess 1101 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PLOGI_PEND; sess 1103 drivers/scsi/qla2xxx/qla_target.c sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN] = NULL; sess 1107 drivers/scsi/qla2xxx/qla_target.c sess->explicit_logout = 0; sess 1109 drivers/scsi/qla2xxx/qla_target.c sess->free_pending = 0; sess 1113 drivers/scsi/qla2xxx/qla_target.c sess, sess->port_name, vha->fcport_count); sess 1139 drivers/scsi/qla2xxx/qla_target.c void qlt_unreg_sess(struct fc_port *sess) sess 1141 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; sess 1144 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0x210a, sess 1146 drivers/scsi/qla2xxx/qla_target.c __func__, sess, sess->port_name); sess 1148 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&sess->vha->work_lock, flags); sess 1149 drivers/scsi/qla2xxx/qla_target.c if (sess->free_pending) { sess 1150 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); sess 1153 drivers/scsi/qla2xxx/qla_target.c sess->free_pending = 1; sess 1154 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); sess 1156 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) sess 1157 drivers/scsi/qla2xxx/qla_target.c vha->hw->tgt.tgt_ops->clear_nacl_from_fcport_map(sess); sess 1159 drivers/scsi/qla2xxx/qla_target.c sess->deleted = QLA_SESS_DELETION_IN_PROGRESS; sess 1160 drivers/scsi/qla2xxx/qla_target.c sess->disc_state = DSC_DELETE_PEND; sess 1161 drivers/scsi/qla2xxx/qla_target.c sess->last_rscn_gen = sess->rscn_gen; sess 1162 drivers/scsi/qla2xxx/qla_target.c sess->last_login_gen = sess->login_gen; sess 1164 drivers/scsi/qla2xxx/qla_target.c queue_work(sess->vha->hw->wq, &sess->free_work); sess 1171 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL; sess 1186 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_loop_id(vha, loop_id); sess 1191 drivers/scsi/qla2xxx/qla_target.c "Using sess for qla_tgt_reset: %p\n", sess); sess 1192 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 1199 drivers/scsi/qla2xxx/qla_target.c "loop_id %d)\n", vha->host_no, sess, sess->port_name, sess 1202 drivers/scsi/qla2xxx/qla_target.c return qlt_issue_task_mgmt(sess, 0, mcmd, iocb, QLA24XX_MGMT_SEND_NACK); sess 1205 drivers/scsi/qla2xxx/qla_target.c static void qla24xx_chk_fcp_state(struct fc_port *sess) sess 1207 drivers/scsi/qla2xxx/qla_target.c if (sess->chip_reset != sess->vha->hw->base_qpair->chip_reset) { sess 1208 drivers/scsi/qla2xxx/qla_target.c sess->logout_on_delete = 0; sess 1209 drivers/scsi/qla2xxx/qla_target.c sess->logo_ack_needed = 0; sess 1210 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PORT_UNAVAIL; sess 1214 drivers/scsi/qla2xxx/qla_target.c void qlt_schedule_sess_for_deletion(struct fc_port *sess) sess 1216 drivers/scsi/qla2xxx/qla_target.c struct qla_tgt *tgt = sess->tgt; sess 1220 drivers/scsi/qla2xxx/qla_target.c switch (sess->disc_state) { sess 1226 drivers/scsi/qla2xxx/qla_target.c if (sess->vha->fcport_count == 0) sess 1227 drivers/scsi/qla2xxx/qla_target.c wake_up_all(&sess->vha->fcport_waitQ); sess 1229 drivers/scsi/qla2xxx/qla_target.c if (!sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN] && sess 1230 drivers/scsi/qla2xxx/qla_target.c !sess->plogi_link[QLT_PLOGI_LINK_CONFLICT]) sess 1238 drivers/scsi/qla2xxx/qla_target.c sess->next_disc_state = DSC_DELETE_PEND; sess 1240 drivers/scsi/qla2xxx/qla_target.c sess->jiffies_at_registration)/1000; sess 1241 drivers/scsi/qla2xxx/qla_target.c if (sess->sec_since_registration < sec && sec && !(sec % 5)) { sess 1242 drivers/scsi/qla2xxx/qla_target.c sess->sec_since_registration = sec; sess 1243 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0xffff, sess 1245 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name, sec); sess 1252 drivers/scsi/qla2xxx/qla_target.c spin_lock_irqsave(&sess->vha->work_lock, flags); sess 1253 drivers/scsi/qla2xxx/qla_target.c if (sess->deleted == QLA_SESS_DELETION_IN_PROGRESS) { sess 1254 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); sess 1257 drivers/scsi/qla2xxx/qla_target.c sess->deleted = QLA_SESS_DELETION_IN_PROGRESS; sess 1258 drivers/scsi/qla2xxx/qla_target.c spin_unlock_irqrestore(&sess->vha->work_lock, flags); sess 1260 drivers/scsi/qla2xxx/qla_target.c sess->prli_pend_timer = 0; sess 1261 drivers/scsi/qla2xxx/qla_target.c sess->disc_state = DSC_DELETE_PEND; sess 1263 drivers/scsi/qla2xxx/qla_target.c qla24xx_chk_fcp_state(sess); sess 1265 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt, sess->vha, 0xe001, sess 1267 drivers/scsi/qla2xxx/qla_target.c sess, sess->port_name); sess 1269 drivers/scsi/qla2xxx/qla_target.c WARN_ON(!queue_work(sess->vha->hw->wq, &sess->del_work)); sess 1274 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 1277 drivers/scsi/qla2xxx/qla_target.c list_for_each_entry(sess, &vha->vp_fcports, list) { sess 1278 drivers/scsi/qla2xxx/qla_target.c if (sess->se_sess) sess 1279 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(sess); sess 1342 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = fcport; sess 1349 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 1352 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name); sess 1357 drivers/scsi/qla2xxx/qla_target.c sess->tgt = vha->vha_tgt.qla_tgt; sess 1358 drivers/scsi/qla2xxx/qla_target.c sess->local = local; sess 1366 drivers/scsi/qla2xxx/qla_target.c sess->logout_on_delete = 1; sess 1367 drivers/scsi/qla2xxx/qla_target.c sess->keep_nport_handle = 0; sess 1368 drivers/scsi/qla2xxx/qla_target.c sess->logout_completed = 0; sess 1371 drivers/scsi/qla2xxx/qla_target.c &fcport->port_name[0], sess) < 0) { sess 1382 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 1385 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name); sess 1390 drivers/scsi/qla2xxx/qla_target.c if (!IS_SW_RESV_ADDR(sess->d_id)) sess 1393 drivers/scsi/qla2xxx/qla_target.c qlt_do_generation_tick(vha, &sess->generation); sess 1399 drivers/scsi/qla2xxx/qla_target.c sess, sess->se_sess, vha->vha_tgt.qla_tgt, sess 1406 drivers/scsi/qla2xxx/qla_target.c fcport->loop_id, sess->d_id.b.domain, sess->d_id.b.area, sess 1407 drivers/scsi/qla2xxx/qla_target.c sess->d_id.b.al_pa, sess->conf_compl_supported ? "" : "not "); sess 1409 drivers/scsi/qla2xxx/qla_target.c return sess; sess 1420 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = fcport; sess 1434 drivers/scsi/qla2xxx/qla_target.c if (!sess->se_sess) { sess 1439 drivers/scsi/qla2xxx/qla_target.c if (max_gen - sess->generation < 0) { sess 1444 drivers/scsi/qla2xxx/qla_target.c sess->se_sess, sess, sess->port_name, max_gen, sess 1445 drivers/scsi/qla2xxx/qla_target.c sess->generation); sess 1449 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_tgt_mgt, vha, 0xf008, "qla_tgt_fc_port_deleted %p", sess); sess 1451 drivers/scsi/qla2xxx/qla_target.c sess->local = 1; sess 1453 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(sess); sess 2069 drivers/scsi/qla2xxx/qla_target.c struct abts_recv_from_24xx *abts, struct fc_port *sess) sess 2088 drivers/scsi/qla2xxx/qla_target.c mcmd->sess = sess; sess 2104 drivers/scsi/qla2xxx/qla_target.c abort_cmd = ha->tgt.tgt_ops->find_cmd_by_tag(sess, sess 2127 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 2160 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); sess 2161 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 2174 drivers/scsi/qla2xxx/qla_target.c if (sess->deleted) { sess 2180 drivers/scsi/qla2xxx/qla_target.c rc = __qlt_24xx_handle_abts(vha, abts, sess); sess 2218 drivers/scsi/qla2xxx/qla_target.c ctio->nport_handle = mcmd->sess->loop_id; sess 2275 drivers/scsi/qla2xxx/qla_target.c ctio->nport_handle = cmd->sess->loop_id; sess 2318 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = mcmd->sess->vha; sess 2351 drivers/scsi/qla2xxx/qla_target.c mcmd->sess->port_name, mcmd->fc_tm_rsp, sess 2353 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(mcmd->sess); sess 3207 drivers/scsi/qla2xxx/qla_target.c (cmd->sess && cmd->sess->deleted)) { sess 3373 drivers/scsi/qla2xxx/qla_target.c (cmd->sess && cmd->sess->deleted)) { sess 3784 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = cmd->sess; sess 3804 drivers/scsi/qla2xxx/qla_target.c if (!sess || !sess->se_sess) { sess 3809 drivers/scsi/qla2xxx/qla_target.c target_free_tag(sess->se_sess, &cmd->se_cmd); sess 3966 drivers/scsi/qla2xxx/qla_target.c if (logged_out && cmd->sess) { sess 3971 drivers/scsi/qla2xxx/qla_target.c cmd->sess->send_els_logo = 1; sess 3974 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, cmd->sess->port_name); sess 3976 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(cmd->sess); sess 4085 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = cmd->sess; sess 4129 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 4143 drivers/scsi/qla2xxx/qla_target.c target_free_tag(sess->se_sess, &cmd->se_cmd); sess 4146 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 4267 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess, sess 4270 drivers/scsi/qla2xxx/qla_target.c struct se_session *se_sess = sess->se_sess; sess 4288 drivers/scsi/qla2xxx/qla_target.c cmd->sess = sess; sess 4289 drivers/scsi/qla2xxx/qla_target.c cmd->loop_id = sess->loop_id; sess 4290 drivers/scsi/qla2xxx/qla_target.c cmd->conf_compl_supported = sess->conf_compl_supported; sess 4310 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 4325 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, atio->u.isp24.fcp_hdr.s_id); sess 4326 drivers/scsi/qla2xxx/qla_target.c if (unlikely(!sess)) sess 4331 drivers/scsi/qla2xxx/qla_target.c if (sess->deleted) { sess 4334 drivers/scsi/qla2xxx/qla_target.c sess); sess 4341 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 4344 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name, sess 4349 drivers/scsi/qla2xxx/qla_target.c cmd = qlt_get_tag(vha, sess, atio); sess 4353 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 4382 drivers/scsi/qla2xxx/qla_target.c static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun, sess 4385 drivers/scsi/qla2xxx/qla_target.c struct scsi_qla_host *vha = sess->vha; sess 4400 drivers/scsi/qla2xxx/qla_target.c mcmd->sess = sess; sess 4447 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 4455 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, sess 4462 drivers/scsi/qla2xxx/qla_target.c if (sess == NULL || sess->deleted) sess 4465 drivers/scsi/qla2xxx/qla_target.c return qlt_issue_task_mgmt(sess, unpacked_lun, fn, iocb, 0); sess 4470 drivers/scsi/qla2xxx/qla_target.c struct imm_ntfy_from_isp *iocb, struct fc_port *sess) sess 4487 drivers/scsi/qla2xxx/qla_target.c mcmd->sess = sess; sess 4515 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 4522 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_loop_id(vha, loop_id); sess 4525 drivers/scsi/qla2xxx/qla_target.c if (sess == NULL) { sess 4533 drivers/scsi/qla2xxx/qla_target.c return __qlt_abort_task(vha, iocb, sess); sess 4565 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL, *other_sess; sess 4575 drivers/scsi/qla2xxx/qla_target.c WARN_ON(sess); sess 4576 drivers/scsi/qla2xxx/qla_target.c sess = other_sess; sess 4624 drivers/scsi/qla2xxx/qla_target.c return sess; sess 4675 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL, *conflict_sess = NULL; sess 4699 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, sess 4731 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 4749 drivers/scsi/qla2xxx/qla_target.c if (sess->disc_state == DSC_UPD_FCPORT) { sess 4757 drivers/scsi/qla2xxx/qla_target.c sess->next_disc_state = DSC_DELETE_PEND; sess 4759 drivers/scsi/qla2xxx/qla_target.c sess->jiffies_at_registration) / 1000; sess 4760 drivers/scsi/qla2xxx/qla_target.c if (sess->sec_since_registration < sec && sec && sess 4762 drivers/scsi/qla2xxx/qla_target.c sess->sec_since_registration = sec; sess 4765 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name, sec); sess 4777 drivers/scsi/qla2xxx/qla_target.c qlt_plogi_ack_link(vha, pla, sess, QLT_PLOGI_LINK_SAME_WWN); sess 4778 drivers/scsi/qla2xxx/qla_target.c sess->d_id = port_id; sess 4779 drivers/scsi/qla2xxx/qla_target.c sess->login_gen++; sess 4782 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PRLI_PEND; sess 4783 drivers/scsi/qla2xxx/qla_target.c sess->local = 0; sess 4784 drivers/scsi/qla2xxx/qla_target.c sess->loop_id = loop_id; sess 4785 drivers/scsi/qla2xxx/qla_target.c sess->d_id = port_id; sess 4786 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PRLI_PEND; sess 4790 drivers/scsi/qla2xxx/qla_target.c sess->conf_compl_supported = 1; sess 4793 drivers/scsi/qla2xxx/qla_target.c sess->port_type = FCT_INITIATOR; sess 4795 drivers/scsi/qla2xxx/qla_target.c sess->port_type = FCT_TARGET; sess 4798 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PLOGI_PEND; sess 4803 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, sess->port_name, sess->disc_state); sess 4805 drivers/scsi/qla2xxx/qla_target.c switch (sess->disc_state) { sess 4830 drivers/scsi/qla2xxx/qla_target.c sess->keep_nport_handle = ((sess->loop_id == loop_id) && sess 4831 drivers/scsi/qla2xxx/qla_target.c (sess->d_id.b24 == port_id.b24)); sess 4835 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, sess->port_name); sess 4838 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(sess); sess 4853 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL, *conflict_sess = NULL; sess 4889 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_wwpn(vha, sess 4892 drivers/scsi/qla2xxx/qla_target.c if (sess && sess->plogi_link[QLT_PLOGI_LINK_SAME_WWN]) { sess 4914 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, sess 4936 drivers/scsi/qla2xxx/qla_target.c if (sess != NULL) { sess 4941 drivers/scsi/qla2xxx/qla_target.c switch (sess->fw_login_state) { sess 4951 drivers/scsi/qla2xxx/qla_target.c switch (sess->disc_state) { sess 4957 drivers/scsi/qla2xxx/qla_target.c sess->jiffies_at_registration)/1000; sess 4958 drivers/scsi/qla2xxx/qla_target.c if (sess->sec_since_registration < sec && sec && sess 4960 drivers/scsi/qla2xxx/qla_target.c sess->sec_since_registration = sec; sess 4961 drivers/scsi/qla2xxx/qla_target.c ql_dbg(ql_dbg_disc, sess->vha, 0xffff, sess 4963 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name, sec); sess 4986 drivers/scsi/qla2xxx/qla_target.c ql_log(ql_log_warn, sess->vha, 0xf095, sess 4988 drivers/scsi/qla2xxx/qla_target.c sess); sess 5000 drivers/scsi/qla2xxx/qla_target.c sess->loop_id, sess, iocb->u.isp24.nport_handle); sess 5002 drivers/scsi/qla2xxx/qla_target.c sess->local = 0; sess 5003 drivers/scsi/qla2xxx/qla_target.c sess->loop_id = loop_id; sess 5004 drivers/scsi/qla2xxx/qla_target.c sess->d_id = port_id; sess 5005 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_PRLI_PEND; sess 5008 drivers/scsi/qla2xxx/qla_target.c sess->conf_compl_supported = 1; sess 5011 drivers/scsi/qla2xxx/qla_target.c sess->port_type = FCT_INITIATOR; sess 5013 drivers/scsi/qla2xxx/qla_target.c sess->port_type = FCT_TARGET; sess 5021 drivers/scsi/qla2xxx/qla_target.c if (sess) { sess 5024 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, sess->port_name); sess 5025 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, sess, iocb, sess 5034 drivers/scsi/qla2xxx/qla_target.c if (sess) { sess 5037 drivers/scsi/qla2xxx/qla_target.c __func__, __LINE__, sess->port_name); sess 5038 drivers/scsi/qla2xxx/qla_target.c qla24xx_post_nack_work(vha, sess, iocb, sess 5057 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_loopid(vha, loop_id); sess 5060 drivers/scsi/qla2xxx/qla_target.c if (sess) { sess 5061 drivers/scsi/qla2xxx/qla_target.c sess->login_gen++; sess 5062 drivers/scsi/qla2xxx/qla_target.c sess->fw_login_state = DSC_LS_LOGO_PEND; sess 5063 drivers/scsi/qla2xxx/qla_target.c sess->logo_ack_needed = 1; sess 5064 drivers/scsi/qla2xxx/qla_target.c memcpy(sess->iocb, iocb, IOCB_SIZE); sess 5071 drivers/scsi/qla2xxx/qla_target.c __func__, wwn, res, sess); sess 5077 drivers/scsi/qla2xxx/qla_target.c BUG_ON(!sess); sess 5081 drivers/scsi/qla2xxx/qla_target.c if (sess) { sess 5082 drivers/scsi/qla2xxx/qla_target.c qlt_schedule_sess_for_deletion(sess); sess 5099 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_wwpn(vha, sess 5101 drivers/scsi/qla2xxx/qla_target.c if (sess) { sess 5104 drivers/scsi/qla2xxx/qla_target.c sess, sess->loop_id, loop_id, sess 5105 drivers/scsi/qla2xxx/qla_target.c sess->disc_state, sess->fw_login_state); sess 5273 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL; sess 5281 drivers/scsi/qla2xxx/qla_target.c sess = qla2x00_find_fcport_by_nportid(vha, &id, 1); sess 5283 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 5303 drivers/scsi/qla2xxx/qla_target.c ctio24->nport_handle = sess->loop_id; sess 5344 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 5372 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id sess 5374 drivers/scsi/qla2xxx/qla_target.c if (!sess) sess 5377 drivers/scsi/qla2xxx/qla_target.c se_sess = sess->se_sess; sess 6094 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL; sess 6153 drivers/scsi/qla2xxx/qla_target.c sess = qlt_create_sess(vha, fcport, true); sess 6157 drivers/scsi/qla2xxx/qla_target.c return sess; sess 6165 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess = NULL; sess 6177 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); sess 6178 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 6181 drivers/scsi/qla2xxx/qla_target.c sess = qlt_make_local_sess(vha, s_id); sess 6185 drivers/scsi/qla2xxx/qla_target.c if (!sess) sess 6188 drivers/scsi/qla2xxx/qla_target.c if (sess->deleted) { sess 6189 drivers/scsi/qla2xxx/qla_target.c sess = NULL; sess 6193 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 6196 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name); sess 6197 drivers/scsi/qla2xxx/qla_target.c sess = NULL; sess 6202 drivers/scsi/qla2xxx/qla_target.c rc = __qlt_24xx_handle_abts(vha, &prm->abts, sess); sess 6205 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 6227 drivers/scsi/qla2xxx/qla_target.c struct fc_port *sess; sess 6241 drivers/scsi/qla2xxx/qla_target.c sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id); sess 6242 drivers/scsi/qla2xxx/qla_target.c if (!sess) { sess 6245 drivers/scsi/qla2xxx/qla_target.c sess = qlt_make_local_sess(vha, s_id); sess 6249 drivers/scsi/qla2xxx/qla_target.c if (!sess) sess 6252 drivers/scsi/qla2xxx/qla_target.c if (sess->deleted) { sess 6256 drivers/scsi/qla2xxx/qla_target.c if (!kref_get_unless_zero(&sess->sess_kref)) { sess 6259 drivers/scsi/qla2xxx/qla_target.c __func__, sess->port_name); sess 6269 drivers/scsi/qla2xxx/qla_target.c rc = qlt_issue_task_mgmt(sess, unpacked_lun, fn, iocb, 0); sess 6272 drivers/scsi/qla2xxx/qla_target.c ha->tgt.tgt_ops->put_sess(sess); sess 858 drivers/scsi/qla2xxx/qla_target.h struct fc_port *sess; sess 948 drivers/scsi/qla2xxx/qla_target.h struct fc_port *sess; sess 326 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess = container_of(kref, sess 329 drivers/scsi/qla2xxx/tcm_qla2xxx.c qlt_unreg_sess(sess); sess 332 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_put_sess(struct fc_port *sess) sess 334 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!sess) sess 337 drivers/scsi/qla2xxx/tcm_qla2xxx.c kref_put(&sess->sess_kref, tcm_qla2xxx_release_session); sess 342 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess = se_sess->fabric_sess_ptr; sess 346 drivers/scsi/qla2xxx/tcm_qla2xxx.c BUG_ON(!sess); sess 347 drivers/scsi/qla2xxx/tcm_qla2xxx.c vha = sess->vha; sess 353 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->explicit_logout = 1; sess 354 drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_put_sess(sess); sess 426 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess; sess 439 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess = cmd->sess; sess 440 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!sess) { sess 445 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = sess->se_sess; sess 551 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct fc_port *sess = mcmd->sess; sess 558 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: ABTS received\n", sess->vha->host_no); sess 563 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: 2G Abort Task received\n", sess->vha->host_no); sess 567 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: CLEAR_ACA received\n", sess->vha->host_no); sess 571 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: TARGET_RESET received\n", sess->vha->host_no); sess 575 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: LUN_RESET received\n", sess->vha->host_no); sess 579 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: CLEAR_TS received\n", sess->vha->host_no); sess 583 drivers/scsi/qla2xxx/tcm_qla2xxx.c pr_debug("%ld: ABORT_TS received\n", sess->vha->host_no); sess 588 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->vha->host_no, tmr_func); sess 592 drivers/scsi/qla2xxx/tcm_qla2xxx.c return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, sess 596 drivers/scsi/qla2xxx/tcm_qla2xxx.c static struct qla_tgt_cmd *tcm_qla2xxx_find_cmd_by_tag(struct fc_port *sess, sess 603 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (!sess->se_sess) sess 606 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_lock_irqsave(&sess->se_sess->sess_cmd_lock, flags); sess 607 drivers/scsi/qla2xxx/tcm_qla2xxx.c list_for_each_entry(secmd, &sess->se_sess->sess_cmd_list, se_cmd_list) { sess 617 drivers/scsi/qla2xxx/tcm_qla2xxx.c spin_unlock_irqrestore(&sess->se_sess->sess_cmd_lock, flags); sess 759 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_clear_nacl_from_fcport_map(struct fc_port *sess) sess 761 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; sess 795 drivers/scsi/qla2xxx/tcm_qla2xxx.c tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess); sess 798 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_shutdown_sess(struct fc_port *sess) sess 800 drivers/scsi/qla2xxx/tcm_qla2xxx.c target_sess_cmd_list_set_waiting(sess->se_sess); sess 1354 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_nacl *nacl, struct fc_port *sess) sess 1356 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_session *se_sess = sess->se_sess; sess 1359 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess, port_id_to_be_id(sess->d_id)); sess 1361 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess, sess->loop_id); sess 1364 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_free_session(struct fc_port *sess) sess 1366 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct qla_tgt *tgt = sess->tgt; sess 1374 drivers/scsi/qla2xxx/tcm_qla2xxx.c se_sess = sess->se_sess; sess 1471 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_update_sess(struct fc_port *sess, port_id_t s_id, sess 1474 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct qla_tgt *tgt = sess->tgt; sess 1478 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct se_node_acl *se_nacl = sess->se_sess->se_node_acl; sess 1484 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (sess->loop_id != loop_id || sess->d_id.b24 != s_id.b24) sess 1486 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess, sess->port_name, sess 1487 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->loop_id, loop_id, sess->d_id.b.domain, sess 1488 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.area, sess->d_id.b.al_pa, s_id.b.domain, sess 1491 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (sess->loop_id != loop_id) { sess 1500 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (lport->lport_loopid_map[sess->loop_id].se_nacl == se_nacl) sess 1501 drivers/scsi/qla2xxx/tcm_qla2xxx.c lport->lport_loopid_map[sess->loop_id].se_nacl = NULL; sess 1505 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->loop_id = loop_id; sess 1508 drivers/scsi/qla2xxx/tcm_qla2xxx.c if (sess->d_id.b24 != s_id.b24) { sess 1509 drivers/scsi/qla2xxx/tcm_qla2xxx.c key = (((u32) sess->d_id.b.domain << 16) | sess 1510 drivers/scsi/qla2xxx/tcm_qla2xxx.c ((u32) sess->d_id.b.area << 8) | sess 1511 drivers/scsi/qla2xxx/tcm_qla2xxx.c ((u32) sess->d_id.b.al_pa)); sess 1516 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.domain, sess->d_id.b.area, sess 1517 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.al_pa); sess 1520 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.domain, sess->d_id.b.area, sess 1521 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id.b.al_pa); sess 1536 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->d_id = s_id; sess 1540 drivers/scsi/qla2xxx/tcm_qla2xxx.c sess->conf_compl_supported = conf_compl_supported; sess 288 drivers/scsi/qla4xxx/ql4_def.h struct iscsi_cls_session *sess; sess 1020 drivers/scsi/qla4xxx/ql4_init.c ddb_entry->unblock_sess(ddb_entry->sess); sess 1040 drivers/scsi/qla4xxx/ql4_init.c iscsi_session_failure(ddb_entry->sess->dd_data, sess 1054 drivers/scsi/qla4xxx/ql4_init.c ddb_entry->unblock_sess(ddb_entry->sess); sess 1059 drivers/scsi/qla4xxx/ql4_init.c iscsi_session_failure(ddb_entry->sess->dd_data, sess 1113 drivers/scsi/qla4xxx/ql4_init.c ddb_entry->unblock_sess(ddb_entry->sess); sess 1118 drivers/scsi/qla4xxx/ql4_init.c iscsi_block_session(ddb_entry->sess); sess 1128 drivers/scsi/qla4xxx/ql4_init.c iscsi_block_session(ddb_entry->sess); sess 1138 drivers/scsi/qla4xxx/ql4_init.c ddb_entry->unblock_sess(ddb_entry->sess); sess 1204 drivers/scsi/qla4xxx/ql4_init.c struct iscsi_session *sess; sess 1212 drivers/scsi/qla4xxx/ql4_init.c sess = cls_session->dd_data; sess 1213 drivers/scsi/qla4xxx/ql4_init.c ddb_entry = sess->dd_data; sess 1243 drivers/scsi/qla4xxx/ql4_init.c ddb_entry->sess->target_id = ddb_entry->fw_ddb_index; sess 1256 drivers/scsi/qla4xxx/ql4_init.c sess->targetname); sess 387 drivers/scsi/qla4xxx/ql4_iocb.c struct iscsi_session *sess = task->conn->session; sess 388 drivers/scsi/qla4xxx/ql4_iocb.c struct ddb_entry *ddb_entry = sess->dd_data; sess 227 drivers/scsi/qla4xxx/ql4_isr.c if (iscsi_is_session_online(ddb_entry->sess)) sess 228 drivers/scsi/qla4xxx/ql4_isr.c qla4xxx_mark_device_missing(ddb_entry->sess); sess 325 drivers/scsi/qla4xxx/ql4_isr.c if (iscsi_is_session_online(ddb_entry->sess)) sess 326 drivers/scsi/qla4xxx/ql4_isr.c qla4xxx_mark_device_missing(ddb_entry->sess); sess 1987 drivers/scsi/qla4xxx/ql4_mbx.c struct iscsi_session *sess; sess 2012 drivers/scsi/qla4xxx/ql4_mbx.c sess = conn->session; sess 2025 drivers/scsi/qla4xxx/ql4_mbx.c *ptid = cpu_to_le16((uint16_t)ddb_entry->sess->target_id); sess 2034 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->targetname != NULL) { sess 2035 drivers/scsi/qla4xxx/ql4_mbx.c memcpy(fw_ddb_entry->iscsi_name, sess->targetname, sess 2036 drivers/scsi/qla4xxx/ql4_mbx.c min(strlen(sess->targetname), sess 2073 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->username != NULL && sess->password != NULL) { sess 2074 drivers/scsi/qla4xxx/ql4_mbx.c if (strlen(sess->username) && strlen(sess->password)) { sess 2077 drivers/scsi/qla4xxx/ql4_mbx.c rval = qla4xxx_get_chap_index(ha, sess->username, sess 2078 drivers/scsi/qla4xxx/ql4_mbx.c sess->password, sess 2087 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->username_in != NULL && sess->password_in != NULL) { sess 2089 drivers/scsi/qla4xxx/ql4_mbx.c if (strlen(sess->username_in) && strlen(sess->password_in)) { sess 2092 drivers/scsi/qla4xxx/ql4_mbx.c rval = qla4xxx_get_chap_index(ha, sess->username_in, sess 2093 drivers/scsi/qla4xxx/ql4_mbx.c sess->password_in, sess 2100 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->initial_r2t_en) sess 2103 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->imm_data_en) sess 2112 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->max_r2t) sess 2113 drivers/scsi/qla4xxx/ql4_mbx.c fw_ddb_entry->iscsi_max_outsnd_r2t = cpu_to_le16(sess->max_r2t); sess 2115 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->first_burst) sess 2117 drivers/scsi/qla4xxx/ql4_mbx.c __constant_cpu_to_le16((sess->first_burst / BYTE_UNITS)); sess 2119 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->max_burst) sess 2121 drivers/scsi/qla4xxx/ql4_mbx.c __constant_cpu_to_le16((sess->max_burst / BYTE_UNITS)); sess 2123 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->time2wait) sess 2125 drivers/scsi/qla4xxx/ql4_mbx.c cpu_to_le16(sess->time2wait); sess 2127 drivers/scsi/qla4xxx/ql4_mbx.c if (sess->time2retain) sess 2129 drivers/scsi/qla4xxx/ql4_mbx.c cpu_to_le16(sess->time2retain); sess 138 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_session_destroy(struct iscsi_cls_session *sess); sess 804 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 811 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 812 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 1780 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 1790 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 1791 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 1848 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 1853 drivers/scsi/qla4xxx/ql4_os.c sess = session->dd_data; sess 2819 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess = cls_sess->dd_data; sess 2820 drivers/scsi/qla4xxx/ql4_os.c struct ddb_entry *ddb_entry = sess->dd_data; sess 2830 drivers/scsi/qla4xxx/ql4_os.c rval = qla4xxx_get_chap_index(ha, sess->username_in, sess 2831 drivers/scsi/qla4xxx/ql4_os.c sess->password_in, BIDI_CHAP, sess 2847 drivers/scsi/qla4xxx/ql4_os.c rval = qla4xxx_get_chap_index(ha, sess->username, sess 2848 drivers/scsi/qla4xxx/ql4_os.c sess->password, sess 2864 drivers/scsi/qla4xxx/ql4_os.c !sess->username && !sess->password) { sess 2985 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess, *existing_sess; sess 2989 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 2992 drivers/scsi/qla4xxx/ql4_os.c if (sess->targetname == NULL || sess 3008 drivers/scsi/qla4xxx/ql4_os.c existing_sess = ddb_entry->sess->dd_data; sess 3019 drivers/scsi/qla4xxx/ql4_os.c sess->targetname)); sess 3031 drivers/scsi/qla4xxx/ql4_os.c if (strcmp(existing_sess->targetname, sess->targetname)) sess 3061 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3087 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3088 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3092 drivers/scsi/qla4xxx/ql4_os.c ddb_entry->sess = cls_sess; sess 3105 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3114 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3115 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3163 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3175 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3176 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3194 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3196 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 3197 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3217 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3226 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3227 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3263 drivers/scsi/qla4xxx/ql4_os.c ddb_entry->unblock_sess(ddb_entry->sess); sess 3275 drivers/scsi/qla4xxx/ql4_os.c sess->targetname); sess 3299 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3304 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3305 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3362 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3367 drivers/scsi/qla4xxx/ql4_os.c sess = task->conn->session; sess 3368 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3428 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3434 drivers/scsi/qla4xxx/ql4_os.c sess = task->conn->session; sess 3435 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3457 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess = task->conn->session; sess 3458 drivers/scsi/qla4xxx/ql4_os.c struct ddb_entry *ddb_entry = sess->dd_data; sess 3469 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_copy_from_fwddb_param(struct iscsi_bus_flash_session *sess, sess 3479 drivers/scsi/qla4xxx/ql4_os.c rc = iscsi_switch_str_param(&sess->portal_type, sess 3484 drivers/scsi/qla4xxx/ql4_os.c rc = iscsi_switch_str_param(&sess->portal_type, sess 3490 drivers/scsi/qla4xxx/ql4_os.c sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, sess 3492 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); sess 3493 drivers/scsi/qla4xxx/ql4_os.c sess->entry_state = test_bit(OPT_ENTRY_STATE, &options); sess 3498 drivers/scsi/qla4xxx/ql4_os.c sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); sess 3499 drivers/scsi/qla4xxx/ql4_os.c sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); sess 3500 drivers/scsi/qla4xxx/ql4_os.c sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, sess 3502 drivers/scsi/qla4xxx/ql4_os.c sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); sess 3503 drivers/scsi/qla4xxx/ql4_os.c sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); sess 3505 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, sess 3507 drivers/scsi/qla4xxx/ql4_os.c sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); sess 3508 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_auth_optional = sess 3511 drivers/scsi/qla4xxx/ql4_os.c sess->erl |= BIT_1; sess 3513 drivers/scsi/qla4xxx/ql4_os.c sess->erl |= BIT_0; sess 3536 drivers/scsi/qla4xxx/ql4_os.c sess->first_burst = BYTE_UNITS * sess 3538 drivers/scsi/qla4xxx/ql4_os.c sess->max_burst = BYTE_UNITS * sess 3540 drivers/scsi/qla4xxx/ql4_os.c sess->max_r2t = le16_to_cpu(fw_ddb_entry->iscsi_max_outsnd_r2t); sess 3541 drivers/scsi/qla4xxx/ql4_os.c sess->time2wait = le16_to_cpu(fw_ddb_entry->iscsi_def_time2wait); sess 3542 drivers/scsi/qla4xxx/ql4_os.c sess->time2retain = le16_to_cpu(fw_ddb_entry->iscsi_def_time2retain); sess 3543 drivers/scsi/qla4xxx/ql4_os.c sess->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp); sess 3552 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_parent_idx = le16_to_cpu(fw_ddb_entry->ddb_link); sess 3553 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_parent_type = le16_to_cpu(fw_ddb_entry->ddb_link); sess 3554 drivers/scsi/qla4xxx/ql4_os.c sess->chap_out_idx = le16_to_cpu(fw_ddb_entry->chap_tbl_idx); sess 3555 drivers/scsi/qla4xxx/ql4_os.c sess->tsid = le16_to_cpu(fw_ddb_entry->tsid); sess 3557 drivers/scsi/qla4xxx/ql4_os.c sess->default_taskmgmt_timeout = sess 3592 drivers/scsi/qla4xxx/ql4_os.c rc = iscsi_switch_str_param(&sess->targetname, sess 3599 drivers/scsi/qla4xxx/ql4_os.c rc = iscsi_switch_str_param(&sess->targetalias, sess 3605 drivers/scsi/qla4xxx/ql4_os.c COPY_ISID(sess->isid, fw_ddb_entry->isid); sess 3611 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess, sess 3620 drivers/scsi/qla4xxx/ql4_os.c if (!strncmp(sess->portal_type, PORTAL_TYPE_IPV6, 4)) sess 3625 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->auto_snd_tgt_disable, options, BIT_6); sess 3626 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->discovery_sess, options, BIT_4); sess 3627 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->entry_state, options, BIT_3); sess 3633 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->imm_data_en, options, BIT_11); sess 3634 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->initial_r2t_en, options, BIT_10); sess 3635 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->dataseq_inorder_en, options, BIT_9); sess 3636 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->pdu_inorder_en, options, BIT_8); sess 3637 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->chap_auth_en, options, BIT_7); sess 3639 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->discovery_logout_en, options, BIT_5); sess 3640 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->bidi_chap_en, options, BIT_4); sess 3641 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->discovery_auth_optional, options, BIT_3); sess 3642 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->erl & BIT_1, options, BIT_1); sess 3643 drivers/scsi/qla4xxx/ql4_os.c SET_BITVAL(sess->erl & BIT_0, options, BIT_0); sess 3660 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->iscsi_max_outsnd_r2t = cpu_to_le16(sess->max_r2t); sess 3666 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(sess->first_burst / BYTE_UNITS); sess 3667 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->iscsi_max_burst_len = cpu_to_le16(sess->max_burst / sess 3669 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->iscsi_def_time2wait = cpu_to_le16(sess->time2wait); sess 3670 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->iscsi_def_time2retain = cpu_to_le16(sess->time2retain); sess 3671 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->tgt_portal_grp = cpu_to_le16(sess->tpgt); sess 3680 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->ddb_link = cpu_to_le16(sess->discovery_parent_idx); sess 3681 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->chap_tbl_idx = cpu_to_le16(sess->chap_out_idx); sess 3682 drivers/scsi/qla4xxx/ql4_os.c fw_ddb_entry->tsid = cpu_to_le16(sess->tsid); sess 3685 drivers/scsi/qla4xxx/ql4_os.c cpu_to_le16(sess->default_taskmgmt_timeout); sess 3687 drivers/scsi/qla4xxx/ql4_os.c if (!strncmp(sess->portal_type, PORTAL_TYPE_IPV6, 4)) sess 3705 drivers/scsi/qla4xxx/ql4_os.c if (sess->targetname) sess 3706 drivers/scsi/qla4xxx/ql4_os.c memcpy(fw_ddb_entry->iscsi_name, sess->targetname, sess 3709 drivers/scsi/qla4xxx/ql4_os.c if (sess->targetalias) sess 3710 drivers/scsi/qla4xxx/ql4_os.c memcpy(fw_ddb_entry->iscsi_alias, sess->targetalias, sess 3713 drivers/scsi/qla4xxx/ql4_os.c COPY_ISID(fw_ddb_entry->isid, sess->isid); sess 3719 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess, sess 3729 drivers/scsi/qla4xxx/ql4_os.c sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, sess 3731 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); sess 3736 drivers/scsi/qla4xxx/ql4_os.c sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); sess 3737 drivers/scsi/qla4xxx/ql4_os.c sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); sess 3738 drivers/scsi/qla4xxx/ql4_os.c sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, sess 3740 drivers/scsi/qla4xxx/ql4_os.c sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); sess 3741 drivers/scsi/qla4xxx/ql4_os.c sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); sess 3742 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, sess 3744 drivers/scsi/qla4xxx/ql4_os.c sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); sess 3745 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_auth_optional = sess 3748 drivers/scsi/qla4xxx/ql4_os.c sess->erl |= BIT_1; sess 3750 drivers/scsi/qla4xxx/ql4_os.c sess->erl |= BIT_0; sess 3773 drivers/scsi/qla4xxx/ql4_os.c sess->max_r2t = le16_to_cpu(fw_ddb_entry->iscsi_max_outsnd_r2t); sess 3774 drivers/scsi/qla4xxx/ql4_os.c sess->first_burst = BYTE_UNITS * sess 3776 drivers/scsi/qla4xxx/ql4_os.c sess->max_burst = BYTE_UNITS * sess 3778 drivers/scsi/qla4xxx/ql4_os.c sess->time2wait = le16_to_cpu(fw_ddb_entry->iscsi_def_time2wait); sess 3779 drivers/scsi/qla4xxx/ql4_os.c sess->time2retain = le16_to_cpu(fw_ddb_entry->iscsi_def_time2retain); sess 3780 drivers/scsi/qla4xxx/ql4_os.c sess->tpgt = le32_to_cpu(fw_ddb_entry->tgt_portal_grp); sess 3789 drivers/scsi/qla4xxx/ql4_os.c sess->tsid = le16_to_cpu(fw_ddb_entry->tsid); sess 3790 drivers/scsi/qla4xxx/ql4_os.c COPY_ISID(sess->isid, fw_ddb_entry->isid); sess 3823 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3830 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3831 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 3837 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_copy_to_sess_conn_params(conn, sess, fw_ddb_entry); sess 3839 drivers/scsi/qla4xxx/ql4_os.c sess->def_taskmgmt_tmo = le16_to_cpu(fw_ddb_entry->def_timeout); sess 3902 drivers/scsi/qla4xxx/ql4_os.c cls_sess = ddb_entry->sess; sess 3920 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 3944 drivers/scsi/qla4xxx/ql4_os.c cls_sess = ddb_entry->sess; sess 3945 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 3960 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_copy_to_sess_conn_params(conn, sess, fw_ddb_entry); sess 3962 drivers/scsi/qla4xxx/ql4_os.c memcpy(sess->initiatorname, ha->name_string, sess 3963 drivers/scsi/qla4xxx/ql4_os.c min(sizeof(ha->name_string), sizeof(sess->initiatorname))); sess 4077 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_cls_session *sess = ddb_entry->sess; sess 4089 drivers/scsi/qla4xxx/ql4_os.c if (!sess) { sess 4094 drivers/scsi/qla4xxx/ql4_os.c rval = iscsi_session_chkready(sess); sess 4464 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 4468 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 4469 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 4803 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 4806 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 4807 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 4811 drivers/scsi/qla4xxx/ql4_os.c iscsi_block_session(ddb_entry->sess); sess 5029 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 5033 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 5034 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 5041 drivers/scsi/qla4xxx/ql4_os.c iscsi_unblock_session(ddb_entry->sess); sess 5058 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 5062 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 5063 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 5069 drivers/scsi/qla4xxx/ql4_os.c iscsi_unblock_session(ddb_entry->sess); sess 5076 drivers/scsi/qla4xxx/ql4_os.c scsi_queue_work(ha->host, &ddb_entry->sess->scan_work); sess 5083 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 5088 drivers/scsi/qla4xxx/ql4_os.c sess = cls_session->dd_data; sess 5089 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 5118 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 5122 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 5123 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 5139 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 5143 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 5144 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 6255 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 6260 drivers/scsi/qla4xxx/ql4_os.c cls_sess = ddb_entry->sess; sess 6261 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 6265 drivers/scsi/qla4xxx/ql4_os.c tddb->tpgt = sess->tpgt; sess 6267 drivers/scsi/qla4xxx/ql4_os.c strlcpy(tddb->iscsi_name, sess->targetname, ISCSI_NAME_SIZE); sess 6857 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 6864 drivers/scsi/qla4xxx/ql4_os.c cls_sess = ddb_entry->sess; sess 6865 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 6869 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_parent_idx = ddb_link; sess 6871 drivers/scsi/qla4xxx/ql4_os.c sess->discovery_parent_idx = DDB_NO_LINK; sess 6879 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 6906 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 6907 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 6908 drivers/scsi/qla4xxx/ql4_os.c ddb_entry->sess = cls_sess; sess 7593 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 7604 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 7605 drivers/scsi/qla4xxx/ql4_os.c ddb_entry = sess->dd_data; sess 7696 drivers/scsi/qla4xxx/ql4_os.c iscsi_session_teardown(ddb_entry->sess); sess 7792 drivers/scsi/qla4xxx/ql4_os.c index = ddb_entry->sess->target_id; sess 7807 drivers/scsi/qla4xxx/ql4_os.c ret = qla4xxx_sysfs_ddb_logout_sid(ddb_entry->sess); sess 8974 drivers/scsi/qla4xxx/ql4_os.c iscsi_session_teardown(ddb_entry->sess); sess 9036 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_session *sess; sess 9041 drivers/scsi/qla4xxx/ql4_os.c sess = cls_sess->dd_data; sess 9042 drivers/scsi/qla4xxx/ql4_os.c ddb = sess->dd_data; sess 1618 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_session *sess = iscsi_dev_to_session(conn->dev.parent); sess 1619 drivers/scsi/scsi_transport_iscsi.c return sess->sid; sess 1628 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_session *sess; sess 1631 drivers/scsi/scsi_transport_iscsi.c list_for_each_entry(sess, &sesslist, sess_list) { sess 1632 drivers/scsi/scsi_transport_iscsi.c if (sess->sid == sid) { sess 1634 drivers/scsi/scsi_transport_iscsi.c return sess; sess 3973 drivers/scsi/scsi_transport_iscsi.c static ISCSI_CLASS_ATTR(sess, field, S_IRUGO, show_session_param_##param, \ sess 63 drivers/staging/media/meson/vdec/codec_mpeg12.c static int codec_mpeg12_start(struct amvdec_session *sess) sess 65 drivers/staging/media/meson/vdec/codec_mpeg12.c struct amvdec_core *core = sess->core; sess 83 drivers/staging/media/meson/vdec/codec_mpeg12.c ret = amvdec_set_canvases(sess, (u32[]){ AV_SCRATCH_0, 0 }, sess 98 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_write_dos(core, MREG_CMD, (sess->width << 16) | sess->height); sess 103 drivers/staging/media/meson/vdec/codec_mpeg12.c sess->keyframe_found = 1; sess 104 drivers/staging/media/meson/vdec/codec_mpeg12.c sess->priv = mpeg12; sess 117 drivers/staging/media/meson/vdec/codec_mpeg12.c static int codec_mpeg12_stop(struct amvdec_session *sess) sess 119 drivers/staging/media/meson/vdec/codec_mpeg12.c struct codec_mpeg12 *mpeg12 = sess->priv; sess 120 drivers/staging/media/meson/vdec/codec_mpeg12.c struct amvdec_core *core = sess->core; sess 130 drivers/staging/media/meson/vdec/codec_mpeg12.c static void codec_mpeg12_update_dar(struct amvdec_session *sess) sess 132 drivers/staging/media/meson/vdec/codec_mpeg12.c struct amvdec_core *core = sess->core; sess 138 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_set_par_from_dar(sess, 4, 3); sess 141 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_set_par_from_dar(sess, 16, 9); sess 144 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_set_par_from_dar(sess, 221, 100); sess 147 drivers/staging/media/meson/vdec/codec_mpeg12.c sess->pixelaspect.numerator = 1; sess 148 drivers/staging/media/meson/vdec/codec_mpeg12.c sess->pixelaspect.denominator = 1; sess 153 drivers/staging/media/meson/vdec/codec_mpeg12.c static irqreturn_t codec_mpeg12_threaded_isr(struct amvdec_session *sess) sess 155 drivers/staging/media/meson/vdec/codec_mpeg12.c struct amvdec_core *core = sess->core; sess 167 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_abort(sess); sess 187 drivers/staging/media/meson/vdec/codec_mpeg12.c codec_mpeg12_update_dar(sess); sess 190 drivers/staging/media/meson/vdec/codec_mpeg12.c amvdec_dst_buf_done_idx(sess, buffer_index, offset, field); sess 197 drivers/staging/media/meson/vdec/codec_mpeg12.c static irqreturn_t codec_mpeg12_isr(struct amvdec_session *sess) sess 122 drivers/staging/media/meson/vdec/esparser.c static u32 esparser_vififo_get_free_space(struct amvdec_session *sess) sess 125 drivers/staging/media/meson/vdec/esparser.c struct amvdec_ops *vdec_ops = sess->fmt_out->vdec_ops; sess 126 drivers/staging/media/meson/vdec/esparser.c struct amvdec_core *core = sess->core; sess 128 drivers/staging/media/meson/vdec/esparser.c vififo_usage = vdec_ops->vififo_level(sess); sess 132 drivers/staging/media/meson/vdec/esparser.c if (vififo_usage > sess->vififo_size) { sess 133 drivers/staging/media/meson/vdec/esparser.c dev_warn(sess->core->dev, sess 135 drivers/staging/media/meson/vdec/esparser.c vififo_usage, sess->vififo_size); sess 139 drivers/staging/media/meson/vdec/esparser.c return sess->vififo_size - vififo_usage; sess 162 drivers/staging/media/meson/vdec/esparser.c static u32 esparser_get_offset(struct amvdec_session *sess) sess 164 drivers/staging/media/meson/vdec/esparser.c struct amvdec_core *core = sess->core; sess 166 drivers/staging/media/meson/vdec/esparser.c sess->vififo_paddr; sess 168 drivers/staging/media/meson/vdec/esparser.c if (offset < sess->last_offset) sess 169 drivers/staging/media/meson/vdec/esparser.c sess->wrap_count++; sess 171 drivers/staging/media/meson/vdec/esparser.c sess->last_offset = offset; sess 172 drivers/staging/media/meson/vdec/esparser.c offset += (sess->wrap_count * sess->vififo_size); sess 178 drivers/staging/media/meson/vdec/esparser.c esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) sess 182 drivers/staging/media/meson/vdec/esparser.c struct amvdec_core *core = sess->core; sess 183 drivers/staging/media/meson/vdec/esparser.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 191 drivers/staging/media/meson/vdec/esparser.c num_dst_bufs = codec_ops->num_pending_bufs(sess); sess 193 drivers/staging/media/meson/vdec/esparser.c num_dst_bufs += v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx); sess 195 drivers/staging/media/meson/vdec/esparser.c if (esparser_vififo_get_free_space(sess) < payload_size || sess 196 drivers/staging/media/meson/vdec/esparser.c atomic_read(&sess->esparser_queued_bufs) >= num_dst_bufs) sess 199 drivers/staging/media/meson/vdec/esparser.c v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); sess 201 drivers/staging/media/meson/vdec/esparser.c offset = esparser_get_offset(sess); sess 203 drivers/staging/media/meson/vdec/esparser.c amvdec_add_ts_reorder(sess, vb->timestamp, offset); sess 212 drivers/staging/media/meson/vdec/esparser.c amvdec_remove_ts(sess, vb->timestamp); sess 222 drivers/staging/media/meson/vdec/esparser.c if (!sess->keyframe_found) sess 225 drivers/staging/media/meson/vdec/esparser.c if (sess->keyframe_found) sess 226 drivers/staging/media/meson/vdec/esparser.c atomic_inc(&sess->esparser_queued_bufs); sess 228 drivers/staging/media/meson/vdec/esparser.c amvdec_remove_ts(sess, vb->timestamp); sess 240 drivers/staging/media/meson/vdec/esparser.c struct amvdec_session *sess = sess 243 drivers/staging/media/meson/vdec/esparser.c mutex_lock(&sess->lock); sess 244 drivers/staging/media/meson/vdec/esparser.c v4l2_m2m_for_each_src_buf_safe(sess->m2m_ctx, buf, n) { sess 245 drivers/staging/media/meson/vdec/esparser.c if (sess->should_stop) sess 248 drivers/staging/media/meson/vdec/esparser.c if (esparser_queue(sess, &buf->vb) < 0) sess 251 drivers/staging/media/meson/vdec/esparser.c mutex_unlock(&sess->lock); sess 254 drivers/staging/media/meson/vdec/esparser.c int esparser_power_up(struct amvdec_session *sess) sess 256 drivers/staging/media/meson/vdec/esparser.c struct amvdec_core *core = sess->core; sess 257 drivers/staging/media/meson/vdec/esparser.c struct amvdec_ops *vdec_ops = sess->fmt_out->vdec_ops; sess 281 drivers/staging/media/meson/vdec/esparser.c amvdec_write_parser(core, PARSER_VIDEO_START_PTR, sess->vififo_paddr); sess 283 drivers/staging/media/meson/vdec/esparser.c sess->vififo_paddr + sess->vififo_size - 8); sess 288 drivers/staging/media/meson/vdec/esparser.c vdec_ops->conf_esparser(sess); sess 15 drivers/staging/media/meson/vdec/esparser.h int esparser_power_up(struct amvdec_session *sess); sess 40 drivers/staging/media/meson/vdec/vdec.c u32 amvdec_get_output_size(struct amvdec_session *sess) sess 42 drivers/staging/media/meson/vdec/vdec.c return get_output_size(sess->width, sess->height); sess 46 drivers/staging/media/meson/vdec/vdec.c static int vdec_codec_needs_recycle(struct amvdec_session *sess) sess 48 drivers/staging/media/meson/vdec/vdec.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 55 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = data; sess 56 drivers/staging/media/meson/vdec/vdec.c struct amvdec_core *core = sess->core; sess 57 drivers/staging/media/meson/vdec/vdec.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 61 drivers/staging/media/meson/vdec/vdec.c mutex_lock(&sess->bufs_recycle_lock); sess 62 drivers/staging/media/meson/vdec/vdec.c list_for_each_entry_safe(tmp, n, &sess->bufs_recycle, list) { sess 70 drivers/staging/media/meson/vdec/vdec.c mutex_unlock(&sess->bufs_recycle_lock); sess 78 drivers/staging/media/meson/vdec/vdec.c static int vdec_poweron(struct amvdec_session *sess) sess 81 drivers/staging/media/meson/vdec/vdec.c struct amvdec_ops *vdec_ops = sess->fmt_out->vdec_ops; sess 83 drivers/staging/media/meson/vdec/vdec.c ret = clk_prepare_enable(sess->core->dos_parser_clk); sess 87 drivers/staging/media/meson/vdec/vdec.c ret = clk_prepare_enable(sess->core->dos_clk); sess 91 drivers/staging/media/meson/vdec/vdec.c ret = vdec_ops->start(sess); sess 95 drivers/staging/media/meson/vdec/vdec.c esparser_power_up(sess); sess 100 drivers/staging/media/meson/vdec/vdec.c clk_disable_unprepare(sess->core->dos_clk); sess 102 drivers/staging/media/meson/vdec/vdec.c clk_disable_unprepare(sess->core->dos_parser_clk); sess 107 drivers/staging/media/meson/vdec/vdec.c static void vdec_wait_inactive(struct amvdec_session *sess) sess 110 drivers/staging/media/meson/vdec/vdec.c while (time_is_after_jiffies64(sess->last_irq_jiffies + sess 115 drivers/staging/media/meson/vdec/vdec.c static void vdec_poweroff(struct amvdec_session *sess) sess 117 drivers/staging/media/meson/vdec/vdec.c struct amvdec_ops *vdec_ops = sess->fmt_out->vdec_ops; sess 118 drivers/staging/media/meson/vdec/vdec.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 120 drivers/staging/media/meson/vdec/vdec.c sess->should_stop = 1; sess 121 drivers/staging/media/meson/vdec/vdec.c vdec_wait_inactive(sess); sess 123 drivers/staging/media/meson/vdec/vdec.c codec_ops->drain(sess); sess 125 drivers/staging/media/meson/vdec/vdec.c vdec_ops->stop(sess); sess 126 drivers/staging/media/meson/vdec/vdec.c clk_disable_unprepare(sess->core->dos_clk); sess 127 drivers/staging/media/meson/vdec/vdec.c clk_disable_unprepare(sess->core->dos_parser_clk); sess 131 drivers/staging/media/meson/vdec/vdec.c vdec_queue_recycle(struct amvdec_session *sess, struct vb2_buffer *vb) sess 140 drivers/staging/media/meson/vdec/vdec.c mutex_lock(&sess->bufs_recycle_lock); sess 141 drivers/staging/media/meson/vdec/vdec.c list_add_tail(&new_buf->list, &sess->bufs_recycle); sess 142 drivers/staging/media/meson/vdec/vdec.c mutex_unlock(&sess->bufs_recycle_lock); sess 147 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = priv; sess 149 drivers/staging/media/meson/vdec/vdec.c schedule_work(&sess->esparser_queue_work); sess 154 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = priv; sess 156 drivers/staging/media/meson/vdec/vdec.c v4l2_m2m_job_finish(sess->m2m_dev, sess->m2m_ctx); sess 165 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess, sess 169 drivers/staging/media/meson/vdec/vdec.c const struct amvdec_format *fmt_out = sess->fmt_out; sess 182 drivers/staging/media/meson/vdec/vdec.c sess->num_dst_bufs = q->num_buffers + *num_buffers; sess 183 drivers/staging/media/meson/vdec/vdec.c q->min_buffers_needed = max(fmt_out->min_buffers, sess->num_dst_bufs); sess 190 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = vb2_get_drv_priv(q); sess 191 drivers/staging/media/meson/vdec/vdec.c u32 output_size = amvdec_get_output_size(sess); sess 200 drivers/staging/media/meson/vdec/vdec.c switch (sess->pixfmt_cap) { sess 218 drivers/staging/media/meson/vdec/vdec.c process_num_buffers(q, sess, num_buffers, false); sess 227 drivers/staging/media/meson/vdec/vdec.c sizes[0] = amvdec_get_output_size(sess); sess 231 drivers/staging/media/meson/vdec/vdec.c switch (sess->pixfmt_cap) { sess 247 drivers/staging/media/meson/vdec/vdec.c process_num_buffers(q, sess, num_buffers, true); sess 259 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = vb2_get_drv_priv(vb->vb2_queue); sess 260 drivers/staging/media/meson/vdec/vdec.c struct v4l2_m2m_ctx *m2m_ctx = sess->m2m_ctx; sess 264 drivers/staging/media/meson/vdec/vdec.c if (!sess->streamon_out || !sess->streamon_cap) sess 268 drivers/staging/media/meson/vdec/vdec.c vdec_codec_needs_recycle(sess)) sess 269 drivers/staging/media/meson/vdec/vdec.c vdec_queue_recycle(sess, vb); sess 271 drivers/staging/media/meson/vdec/vdec.c schedule_work(&sess->esparser_queue_work); sess 276 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = vb2_get_drv_priv(q); sess 277 drivers/staging/media/meson/vdec/vdec.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 278 drivers/staging/media/meson/vdec/vdec.c struct amvdec_core *core = sess->core; sess 282 drivers/staging/media/meson/vdec/vdec.c if (core->cur_sess && core->cur_sess != sess) { sess 288 drivers/staging/media/meson/vdec/vdec.c sess->streamon_out = 1; sess 290 drivers/staging/media/meson/vdec/vdec.c sess->streamon_cap = 1; sess 292 drivers/staging/media/meson/vdec/vdec.c if (!sess->streamon_out || !sess->streamon_cap) sess 295 drivers/staging/media/meson/vdec/vdec.c if (sess->status == STATUS_NEEDS_RESUME && sess 297 drivers/staging/media/meson/vdec/vdec.c codec_ops->resume(sess); sess 298 drivers/staging/media/meson/vdec/vdec.c sess->status = STATUS_RUNNING; sess 302 drivers/staging/media/meson/vdec/vdec.c sess->vififo_size = SIZE_VIFIFO; sess 303 drivers/staging/media/meson/vdec/vdec.c sess->vififo_vaddr = sess 304 drivers/staging/media/meson/vdec/vdec.c dma_alloc_coherent(sess->core->dev, sess->vififo_size, sess 305 drivers/staging/media/meson/vdec/vdec.c &sess->vififo_paddr, GFP_KERNEL); sess 306 drivers/staging/media/meson/vdec/vdec.c if (!sess->vififo_vaddr) { sess 307 drivers/staging/media/meson/vdec/vdec.c dev_err(sess->core->dev, "Failed to request VIFIFO buffer\n"); sess 312 drivers/staging/media/meson/vdec/vdec.c sess->should_stop = 0; sess 313 drivers/staging/media/meson/vdec/vdec.c sess->keyframe_found = 0; sess 314 drivers/staging/media/meson/vdec/vdec.c sess->last_offset = 0; sess 315 drivers/staging/media/meson/vdec/vdec.c sess->wrap_count = 0; sess 316 drivers/staging/media/meson/vdec/vdec.c sess->pixelaspect.numerator = 1; sess 317 drivers/staging/media/meson/vdec/vdec.c sess->pixelaspect.denominator = 1; sess 318 drivers/staging/media/meson/vdec/vdec.c atomic_set(&sess->esparser_queued_bufs, 0); sess 319 drivers/staging/media/meson/vdec/vdec.c v4l2_ctrl_s_ctrl(sess->ctrl_min_buf_capture, 1); sess 321 drivers/staging/media/meson/vdec/vdec.c ret = vdec_poweron(sess); sess 325 drivers/staging/media/meson/vdec/vdec.c sess->sequence_cap = 0; sess 326 drivers/staging/media/meson/vdec/vdec.c if (vdec_codec_needs_recycle(sess)) sess 327 drivers/staging/media/meson/vdec/vdec.c sess->recycle_thread = kthread_run(vdec_recycle_thread, sess, sess 330 drivers/staging/media/meson/vdec/vdec.c sess->status = STATUS_RUNNING; sess 331 drivers/staging/media/meson/vdec/vdec.c core->cur_sess = sess; sess 336 drivers/staging/media/meson/vdec/vdec.c dma_free_coherent(sess->core->dev, sess->vififo_size, sess 337 drivers/staging/media/meson/vdec/vdec.c sess->vififo_vaddr, sess->vififo_paddr); sess 339 drivers/staging/media/meson/vdec/vdec.c while ((buf = v4l2_m2m_src_buf_remove(sess->m2m_ctx))) sess 341 drivers/staging/media/meson/vdec/vdec.c while ((buf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx))) sess 345 drivers/staging/media/meson/vdec/vdec.c sess->streamon_out = 0; sess 347 drivers/staging/media/meson/vdec/vdec.c sess->streamon_cap = 0; sess 352 drivers/staging/media/meson/vdec/vdec.c static void vdec_free_canvas(struct amvdec_session *sess) sess 356 drivers/staging/media/meson/vdec/vdec.c for (i = 0; i < sess->canvas_num; ++i) sess 357 drivers/staging/media/meson/vdec/vdec.c meson_canvas_free(sess->core->canvas, sess->canvas_alloc[i]); sess 359 drivers/staging/media/meson/vdec/vdec.c sess->canvas_num = 0; sess 362 drivers/staging/media/meson/vdec/vdec.c static void vdec_reset_timestamps(struct amvdec_session *sess) sess 366 drivers/staging/media/meson/vdec/vdec.c list_for_each_entry_safe(tmp, n, &sess->timestamps, list) { sess 372 drivers/staging/media/meson/vdec/vdec.c static void vdec_reset_bufs_recycle(struct amvdec_session *sess) sess 376 drivers/staging/media/meson/vdec/vdec.c list_for_each_entry_safe(tmp, n, &sess->bufs_recycle, list) { sess 384 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = vb2_get_drv_priv(q); sess 385 drivers/staging/media/meson/vdec/vdec.c struct amvdec_core *core = sess->core; sess 388 drivers/staging/media/meson/vdec/vdec.c if (sess->status == STATUS_RUNNING || sess 389 drivers/staging/media/meson/vdec/vdec.c (sess->status == STATUS_NEEDS_RESUME && sess 390 drivers/staging/media/meson/vdec/vdec.c (!sess->streamon_out || !sess->streamon_cap))) { sess 391 drivers/staging/media/meson/vdec/vdec.c if (vdec_codec_needs_recycle(sess)) sess 392 drivers/staging/media/meson/vdec/vdec.c kthread_stop(sess->recycle_thread); sess 394 drivers/staging/media/meson/vdec/vdec.c vdec_poweroff(sess); sess 395 drivers/staging/media/meson/vdec/vdec.c vdec_free_canvas(sess); sess 396 drivers/staging/media/meson/vdec/vdec.c dma_free_coherent(sess->core->dev, sess->vififo_size, sess 397 drivers/staging/media/meson/vdec/vdec.c sess->vififo_vaddr, sess->vififo_paddr); sess 398 drivers/staging/media/meson/vdec/vdec.c vdec_reset_timestamps(sess); sess 399 drivers/staging/media/meson/vdec/vdec.c vdec_reset_bufs_recycle(sess); sess 400 drivers/staging/media/meson/vdec/vdec.c kfree(sess->priv); sess 401 drivers/staging/media/meson/vdec/vdec.c sess->priv = NULL; sess 403 drivers/staging/media/meson/vdec/vdec.c sess->status = STATUS_STOPPED; sess 407 drivers/staging/media/meson/vdec/vdec.c while ((buf = v4l2_m2m_src_buf_remove(sess->m2m_ctx))) sess 410 drivers/staging/media/meson/vdec/vdec.c sess->streamon_out = 0; sess 412 drivers/staging/media/meson/vdec/vdec.c while ((buf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx))) sess 415 drivers/staging/media/meson/vdec/vdec.c sess->streamon_cap = 0; sess 473 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(struct amvdec_session *sess, u32 size, sess 478 drivers/staging/media/meson/vdec/vdec.c const struct amvdec_format *fmts = sess->core->platform->formats; sess 496 drivers/staging/media/meson/vdec/vdec.c fmt_out = sess->fmt_out; sess 539 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 542 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, sess->core->platform->num_formats, f); sess 549 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 554 drivers/staging/media/meson/vdec/vdec.c pixmp->pixelformat = sess->pixfmt_cap; sess 556 drivers/staging/media/meson/vdec/vdec.c pixmp->pixelformat = sess->fmt_out->pixfmt; sess 559 drivers/staging/media/meson/vdec/vdec.c pixmp->width = sess->width; sess 560 drivers/staging/media/meson/vdec/vdec.c pixmp->height = sess->height; sess 561 drivers/staging/media/meson/vdec/vdec.c pixmp->colorspace = sess->colorspace; sess 562 drivers/staging/media/meson/vdec/vdec.c pixmp->ycbcr_enc = sess->ycbcr_enc; sess 563 drivers/staging/media/meson/vdec/vdec.c pixmp->quantization = sess->quantization; sess 564 drivers/staging/media/meson/vdec/vdec.c pixmp->xfer_func = sess->xfer_func; sess 566 drivers/staging/media/meson/vdec/vdec.c pixmp->width = sess->width; sess 567 drivers/staging/media/meson/vdec/vdec.c pixmp->height = sess->height; sess 570 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, sess->core->platform->num_formats, f); sess 577 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 580 drivers/staging/media/meson/vdec/vdec.c u32 num_formats = sess->core->platform->num_formats; sess 588 drivers/staging/media/meson/vdec/vdec.c fmt_out = vdec_try_fmt_common(sess, num_formats, f); sess 592 drivers/staging/media/meson/vdec/vdec.c pixfmt_cap = sess->pixfmt_cap; sess 595 drivers/staging/media/meson/vdec/vdec.c pixfmt_out = sess->fmt_out->pixfmt; sess 604 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, num_formats, &format); sess 607 drivers/staging/media/meson/vdec/vdec.c sess->width = format.fmt.pix_mp.width; sess 608 drivers/staging/media/meson/vdec/vdec.c sess->height = format.fmt.pix_mp.height; sess 609 drivers/staging/media/meson/vdec/vdec.c sess->colorspace = pixmp->colorspace; sess 610 drivers/staging/media/meson/vdec/vdec.c sess->ycbcr_enc = pixmp->ycbcr_enc; sess 611 drivers/staging/media/meson/vdec/vdec.c sess->quantization = pixmp->quantization; sess 612 drivers/staging/media/meson/vdec/vdec.c sess->xfer_func = pixmp->xfer_func; sess 621 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, num_formats, &format); sess 623 drivers/staging/media/meson/vdec/vdec.c sess->width = format.fmt.pix_mp.width; sess 624 drivers/staging/media/meson/vdec/vdec.c sess->height = format.fmt.pix_mp.height; sess 627 drivers/staging/media/meson/vdec/vdec.c sess->fmt_out = fmt_out; sess 629 drivers/staging/media/meson/vdec/vdec.c sess->pixfmt_cap = format.fmt.pix_mp.pixelformat; sess 636 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 638 drivers/staging/media/meson/vdec/vdec.c const struct vdec_platform *platform = sess->core->platform; sess 651 drivers/staging/media/meson/vdec/vdec.c fmt_out = sess->fmt_out; sess 666 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 668 drivers/staging/media/meson/vdec/vdec.c const struct amvdec_format *formats = sess->core->platform->formats; sess 670 drivers/staging/media/meson/vdec/vdec.c u32 num_formats = sess->core->platform->num_formats; sess 691 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 693 drivers/staging/media/meson/vdec/vdec.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 694 drivers/staging/media/meson/vdec/vdec.c struct device *dev = sess->core->dev; sess 701 drivers/staging/media/meson/vdec/vdec.c if (!(sess->streamon_out & sess->streamon_cap)) sess 716 drivers/staging/media/meson/vdec/vdec.c sess->should_stop = 1; sess 718 drivers/staging/media/meson/vdec/vdec.c vdec_wait_inactive(sess); sess 721 drivers/staging/media/meson/vdec/vdec.c codec_ops->drain(sess); sess 726 drivers/staging/media/meson/vdec/vdec.c esparser_queue_eos(sess->core, data, len); sess 749 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 755 drivers/staging/media/meson/vdec/vdec.c *f = sess->pixelaspect; sess 789 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = priv; sess 797 drivers/staging/media/meson/vdec/vdec.c src_vq->drv_priv = sess; sess 800 drivers/staging/media/meson/vdec/vdec.c src_vq->dev = sess->core->dev; sess 801 drivers/staging/media/meson/vdec/vdec.c src_vq->lock = &sess->lock; sess 811 drivers/staging/media/meson/vdec/vdec.c dst_vq->drv_priv = sess; sess 814 drivers/staging/media/meson/vdec/vdec.c dst_vq->dev = sess->core->dev; sess 815 drivers/staging/media/meson/vdec/vdec.c dst_vq->lock = &sess->lock; sess 825 drivers/staging/media/meson/vdec/vdec.c static int vdec_init_ctrls(struct amvdec_session *sess) sess 827 drivers/staging/media/meson/vdec/vdec.c struct v4l2_ctrl_handler *ctrl_handler = &sess->ctrl_handler; sess 834 drivers/staging/media/meson/vdec/vdec.c sess->ctrl_min_buf_capture = sess 853 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess; sess 856 drivers/staging/media/meson/vdec/vdec.c sess = kzalloc(sizeof(*sess), GFP_KERNEL); sess 857 drivers/staging/media/meson/vdec/vdec.c if (!sess) sess 860 drivers/staging/media/meson/vdec/vdec.c sess->core = core; sess 862 drivers/staging/media/meson/vdec/vdec.c sess->m2m_dev = v4l2_m2m_init(&vdec_m2m_ops); sess 863 drivers/staging/media/meson/vdec/vdec.c if (IS_ERR(sess->m2m_dev)) { sess 865 drivers/staging/media/meson/vdec/vdec.c ret = PTR_ERR(sess->m2m_dev); sess 869 drivers/staging/media/meson/vdec/vdec.c sess->m2m_ctx = v4l2_m2m_ctx_init(sess->m2m_dev, sess, m2m_queue_init); sess 870 drivers/staging/media/meson/vdec/vdec.c if (IS_ERR(sess->m2m_ctx)) { sess 872 drivers/staging/media/meson/vdec/vdec.c ret = PTR_ERR(sess->m2m_ctx); sess 876 drivers/staging/media/meson/vdec/vdec.c ret = vdec_init_ctrls(sess); sess 880 drivers/staging/media/meson/vdec/vdec.c sess->pixfmt_cap = formats[0].pixfmts_cap[0]; sess 881 drivers/staging/media/meson/vdec/vdec.c sess->fmt_out = &formats[0]; sess 882 drivers/staging/media/meson/vdec/vdec.c sess->width = 1280; sess 883 drivers/staging/media/meson/vdec/vdec.c sess->height = 720; sess 884 drivers/staging/media/meson/vdec/vdec.c sess->pixelaspect.numerator = 1; sess 885 drivers/staging/media/meson/vdec/vdec.c sess->pixelaspect.denominator = 1; sess 887 drivers/staging/media/meson/vdec/vdec.c INIT_LIST_HEAD(&sess->timestamps); sess 888 drivers/staging/media/meson/vdec/vdec.c INIT_LIST_HEAD(&sess->bufs_recycle); sess 889 drivers/staging/media/meson/vdec/vdec.c INIT_WORK(&sess->esparser_queue_work, esparser_queue_all_src); sess 890 drivers/staging/media/meson/vdec/vdec.c mutex_init(&sess->lock); sess 891 drivers/staging/media/meson/vdec/vdec.c mutex_init(&sess->bufs_recycle_lock); sess 892 drivers/staging/media/meson/vdec/vdec.c spin_lock_init(&sess->ts_spinlock); sess 894 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_init(&sess->fh, core->vdev_dec); sess 895 drivers/staging/media/meson/vdec/vdec.c sess->fh.ctrl_handler = &sess->ctrl_handler; sess 896 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_add(&sess->fh); sess 897 drivers/staging/media/meson/vdec/vdec.c sess->fh.m2m_ctx = sess->m2m_ctx; sess 898 drivers/staging/media/meson/vdec/vdec.c file->private_data = &sess->fh; sess 903 drivers/staging/media/meson/vdec/vdec.c v4l2_m2m_release(sess->m2m_dev); sess 905 drivers/staging/media/meson/vdec/vdec.c kfree(sess); sess 911 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = sess 914 drivers/staging/media/meson/vdec/vdec.c v4l2_m2m_ctx_release(sess->m2m_ctx); sess 915 drivers/staging/media/meson/vdec/vdec.c v4l2_m2m_release(sess->m2m_dev); sess 916 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_del(&sess->fh); sess 917 drivers/staging/media/meson/vdec/vdec.c v4l2_fh_exit(&sess->fh); sess 919 drivers/staging/media/meson/vdec/vdec.c mutex_destroy(&sess->lock); sess 920 drivers/staging/media/meson/vdec/vdec.c mutex_destroy(&sess->bufs_recycle_lock); sess 922 drivers/staging/media/meson/vdec/vdec.c kfree(sess); sess 939 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = core->cur_sess; sess 941 drivers/staging/media/meson/vdec/vdec.c sess->last_irq_jiffies = get_jiffies_64(); sess 943 drivers/staging/media/meson/vdec/vdec.c return sess->fmt_out->codec_ops->isr(sess); sess 949 drivers/staging/media/meson/vdec/vdec.c struct amvdec_session *sess = core->cur_sess; sess 951 drivers/staging/media/meson/vdec/vdec.c return sess->fmt_out->codec_ops->threaded_isr(sess); sess 98 drivers/staging/media/meson/vdec/vdec.h int (*start)(struct amvdec_session *sess); sess 99 drivers/staging/media/meson/vdec/vdec.h int (*stop)(struct amvdec_session *sess); sess 100 drivers/staging/media/meson/vdec/vdec.h void (*conf_esparser)(struct amvdec_session *sess); sess 101 drivers/staging/media/meson/vdec/vdec.h u32 (*vififo_level)(struct amvdec_session *sess); sess 122 drivers/staging/media/meson/vdec/vdec.h int (*start)(struct amvdec_session *sess); sess 123 drivers/staging/media/meson/vdec/vdec.h int (*stop)(struct amvdec_session *sess); sess 124 drivers/staging/media/meson/vdec/vdec.h int (*load_extended_firmware)(struct amvdec_session *sess, sess 126 drivers/staging/media/meson/vdec/vdec.h u32 (*num_pending_bufs)(struct amvdec_session *sess); sess 129 drivers/staging/media/meson/vdec/vdec.h void (*drain)(struct amvdec_session *sess); sess 130 drivers/staging/media/meson/vdec/vdec.h void (*resume)(struct amvdec_session *sess); sess 132 drivers/staging/media/meson/vdec/vdec.h irqreturn_t (*isr)(struct amvdec_session *sess); sess 133 drivers/staging/media/meson/vdec/vdec.h irqreturn_t (*threaded_isr)(struct amvdec_session *sess); sess 265 drivers/staging/media/meson/vdec/vdec.h u32 amvdec_get_output_size(struct amvdec_session *sess); sess 25 drivers/staging/media/meson/vdec/vdec_1.c vdec_1_load_firmware(struct amvdec_session *sess, const char *fwname) sess 28 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 30 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 74 drivers/staging/media/meson/vdec/vdec_1.c ret = codec_ops->load_extended_firmware(sess, sess 85 drivers/staging/media/meson/vdec/vdec_1.c static int vdec_1_stbuf_power_up(struct amvdec_session *sess) sess 87 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 93 drivers/staging/media/meson/vdec/vdec_1.c amvdec_write_dos(core, VLD_MEM_VIFIFO_START_PTR, sess->vififo_paddr); sess 94 drivers/staging/media/meson/vdec/vdec_1.c amvdec_write_dos(core, VLD_MEM_VIFIFO_CURR_PTR, sess->vififo_paddr); sess 96 drivers/staging/media/meson/vdec/vdec_1.c sess->vififo_paddr + sess->vififo_size - 8); sess 102 drivers/staging/media/meson/vdec/vdec_1.c amvdec_write_dos(core, VLD_MEM_VIFIFO_WP, sess->vififo_paddr); sess 114 drivers/staging/media/meson/vdec/vdec_1.c static void vdec_1_conf_esparser(struct amvdec_session *sess) sess 116 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 124 drivers/staging/media/meson/vdec/vdec_1.c static u32 vdec_1_vififo_level(struct amvdec_session *sess) sess 126 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 131 drivers/staging/media/meson/vdec/vdec_1.c static int vdec_1_stop(struct amvdec_session *sess) sess 133 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 134 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 154 drivers/staging/media/meson/vdec/vdec_1.c if (sess->priv) sess 155 drivers/staging/media/meson/vdec/vdec_1.c codec_ops->stop(sess); sess 160 drivers/staging/media/meson/vdec/vdec_1.c static int vdec_1_start(struct amvdec_session *sess) sess 163 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_core *core = sess->core; sess 164 drivers/staging/media/meson/vdec/vdec_1.c struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; sess 193 drivers/staging/media/meson/vdec/vdec_1.c vdec_1_stbuf_power_up(sess); sess 195 drivers/staging/media/meson/vdec/vdec_1.c ret = vdec_1_load_firmware(sess, sess->fmt_out->firmware_path); sess 199 drivers/staging/media/meson/vdec/vdec_1.c ret = codec_ops->start(sess); sess 208 drivers/staging/media/meson/vdec/vdec_1.c if (sess->pixfmt_cap == V4L2_PIX_FMT_NV12M) sess 221 drivers/staging/media/meson/vdec/vdec_1.c vdec_1_stop(sess); sess 53 drivers/staging/media/meson/vdec/vdec_helpers.c static int canvas_alloc(struct amvdec_session *sess, u8 *canvas_id) sess 57 drivers/staging/media/meson/vdec/vdec_helpers.c if (sess->canvas_num >= MAX_CANVAS) { sess 58 drivers/staging/media/meson/vdec/vdec_helpers.c dev_err(sess->core->dev, "Reached max number of canvas\n"); sess 62 drivers/staging/media/meson/vdec/vdec_helpers.c ret = meson_canvas_alloc(sess->core->canvas, canvas_id); sess 66 drivers/staging/media/meson/vdec/vdec_helpers.c sess->canvas_alloc[sess->canvas_num++] = *canvas_id; sess 70 drivers/staging/media/meson/vdec/vdec_helpers.c static int set_canvas_yuv420m(struct amvdec_session *sess, sess 74 drivers/staging/media/meson/vdec/vdec_helpers.c struct amvdec_core *core = sess->core; sess 80 drivers/staging/media/meson/vdec/vdec_helpers.c ret = canvas_alloc(sess, &canvas_id[i]); sess 114 drivers/staging/media/meson/vdec/vdec_helpers.c static int set_canvas_nv12m(struct amvdec_session *sess, sess 118 drivers/staging/media/meson/vdec/vdec_helpers.c struct amvdec_core *core = sess->core; sess 124 drivers/staging/media/meson/vdec/vdec_helpers.c ret = canvas_alloc(sess, &canvas_id[i]); sess 152 drivers/staging/media/meson/vdec/vdec_helpers.c int amvdec_set_canvases(struct amvdec_session *sess, sess 156 drivers/staging/media/meson/vdec/vdec_helpers.c u32 pixfmt = sess->pixfmt_cap; sess 157 drivers/staging/media/meson/vdec/vdec_helpers.c u32 width = ALIGN(sess->width, 64); sess 158 drivers/staging/media/meson/vdec/vdec_helpers.c u32 height = ALIGN(sess->height, 64); sess 165 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { sess 173 drivers/staging/media/meson/vdec/vdec_helpers.c ret = set_canvas_nv12m(sess, &buf->vb.vb2_buf, width, sess 179 drivers/staging/media/meson/vdec/vdec_helpers.c ret = set_canvas_yuv420m(sess, &buf->vb.vb2_buf, width, sess 185 drivers/staging/media/meson/vdec/vdec_helpers.c dev_err(sess->core->dev, "Unsupported pixfmt %08X\n", sess 196 drivers/staging/media/meson/vdec/vdec_helpers.c sess->fw_idx_to_vb2_idx[i++] = buf->vb.vb2_buf.index; sess 203 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_add_ts_reorder(struct amvdec_session *sess, u64 ts, u32 offset) sess 212 drivers/staging/media/meson/vdec/vdec_helpers.c spin_lock_irqsave(&sess->ts_spinlock, flags); sess 214 drivers/staging/media/meson/vdec/vdec_helpers.c if (list_empty(&sess->timestamps)) sess 217 drivers/staging/media/meson/vdec/vdec_helpers.c list_for_each_entry(tmp, &sess->timestamps, list) { sess 225 drivers/staging/media/meson/vdec/vdec_helpers.c list_add_tail(&new_ts->list, &sess->timestamps); sess 227 drivers/staging/media/meson/vdec/vdec_helpers.c spin_unlock_irqrestore(&sess->ts_spinlock, flags); sess 231 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_remove_ts(struct amvdec_session *sess, u64 ts) sess 236 drivers/staging/media/meson/vdec/vdec_helpers.c spin_lock_irqsave(&sess->ts_spinlock, flags); sess 237 drivers/staging/media/meson/vdec/vdec_helpers.c list_for_each_entry(tmp, &sess->timestamps, list) { sess 244 drivers/staging/media/meson/vdec/vdec_helpers.c dev_warn(sess->core->dev_dec, sess 248 drivers/staging/media/meson/vdec/vdec_helpers.c spin_unlock_irqrestore(&sess->ts_spinlock, flags); sess 252 drivers/staging/media/meson/vdec/vdec_helpers.c static void dst_buf_done(struct amvdec_session *sess, sess 257 drivers/staging/media/meson/vdec/vdec_helpers.c struct device *dev = sess->core->dev_dec; sess 258 drivers/staging/media/meson/vdec/vdec_helpers.c u32 output_size = amvdec_get_output_size(sess); sess 260 drivers/staging/media/meson/vdec/vdec_helpers.c switch (sess->pixfmt_cap) { sess 273 drivers/staging/media/meson/vdec/vdec_helpers.c vbuf->sequence = sess->sequence_cap++; sess 275 drivers/staging/media/meson/vdec/vdec_helpers.c if (sess->should_stop && sess 276 drivers/staging/media/meson/vdec/vdec_helpers.c atomic_read(&sess->esparser_queued_bufs) <= 2) { sess 280 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_event_queue_fh(&sess->fh, &ev); sess 282 drivers/staging/media/meson/vdec/vdec_helpers.c } else if (sess->should_stop) sess 284 drivers/staging/media/meson/vdec/vdec_helpers.c atomic_read(&sess->esparser_queued_bufs)); sess 291 drivers/staging/media/meson/vdec/vdec_helpers.c schedule_work(&sess->esparser_queue_work); sess 294 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_dst_buf_done(struct amvdec_session *sess, sess 297 drivers/staging/media/meson/vdec/vdec_helpers.c struct device *dev = sess->core->dev_dec; sess 299 drivers/staging/media/meson/vdec/vdec_helpers.c struct list_head *timestamps = &sess->timestamps; sess 303 drivers/staging/media/meson/vdec/vdec_helpers.c spin_lock_irqsave(&sess->ts_spinlock, flags); sess 309 drivers/staging/media/meson/vdec/vdec_helpers.c spin_unlock_irqrestore(&sess->ts_spinlock, flags); sess 317 drivers/staging/media/meson/vdec/vdec_helpers.c spin_unlock_irqrestore(&sess->ts_spinlock, flags); sess 319 drivers/staging/media/meson/vdec/vdec_helpers.c dst_buf_done(sess, vbuf, field, timestamp); sess 320 drivers/staging/media/meson/vdec/vdec_helpers.c atomic_dec(&sess->esparser_queued_bufs); sess 324 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_dst_buf_done_offset(struct amvdec_session *sess, sess 328 drivers/staging/media/meson/vdec/vdec_helpers.c struct device *dev = sess->core->dev_dec; sess 334 drivers/staging/media/meson/vdec/vdec_helpers.c spin_lock_irqsave(&sess->ts_spinlock, flags); sess 337 drivers/staging/media/meson/vdec/vdec_helpers.c list_for_each_entry_safe(tmp, n, &sess->timestamps, list) { sess 355 drivers/staging/media/meson/vdec/vdec_helpers.c if (delta > 0 || delta < -1 * (s32)sess->vififo_size) { sess 356 drivers/staging/media/meson/vdec/vdec_helpers.c atomic_dec(&sess->esparser_queued_bufs); sess 370 drivers/staging/media/meson/vdec/vdec_helpers.c spin_unlock_irqrestore(&sess->ts_spinlock, flags); sess 372 drivers/staging/media/meson/vdec/vdec_helpers.c dst_buf_done(sess, vbuf, field, timestamp); sess 374 drivers/staging/media/meson/vdec/vdec_helpers.c atomic_dec(&sess->esparser_queued_bufs); sess 378 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_dst_buf_done_idx(struct amvdec_session *sess, sess 382 drivers/staging/media/meson/vdec/vdec_helpers.c struct device *dev = sess->core->dev_dec; sess 384 drivers/staging/media/meson/vdec/vdec_helpers.c vbuf = v4l2_m2m_dst_buf_remove_by_idx(sess->m2m_ctx, sess 385 drivers/staging/media/meson/vdec/vdec_helpers.c sess->fw_idx_to_vb2_idx[buf_idx]); sess 395 drivers/staging/media/meson/vdec/vdec_helpers.c amvdec_dst_buf_done_offset(sess, vbuf, offset, field, true); sess 397 drivers/staging/media/meson/vdec/vdec_helpers.c amvdec_dst_buf_done(sess, vbuf, field); sess 401 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_set_par_from_dar(struct amvdec_session *sess, sess 406 drivers/staging/media/meson/vdec/vdec_helpers.c sess->pixelaspect.numerator = sess->height * dar_num; sess 407 drivers/staging/media/meson/vdec/vdec_helpers.c sess->pixelaspect.denominator = sess->width * dar_den; sess 408 drivers/staging/media/meson/vdec/vdec_helpers.c div = gcd(sess->pixelaspect.numerator, sess->pixelaspect.denominator); sess 409 drivers/staging/media/meson/vdec/vdec_helpers.c sess->pixelaspect.numerator /= div; sess 410 drivers/staging/media/meson/vdec/vdec_helpers.c sess->pixelaspect.denominator /= div; sess 414 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_src_change(struct amvdec_session *sess, u32 width, sess 421 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_ctrl_s_ctrl(sess->ctrl_min_buf_capture, dpb_size); sess 426 drivers/staging/media/meson/vdec/vdec_helpers.c if (sess->width == width && sess 427 drivers/staging/media/meson/vdec/vdec_helpers.c sess->height == height && sess 428 drivers/staging/media/meson/vdec/vdec_helpers.c dpb_size <= sess->num_dst_bufs) { sess 429 drivers/staging/media/meson/vdec/vdec_helpers.c sess->fmt_out->codec_ops->resume(sess); sess 433 drivers/staging/media/meson/vdec/vdec_helpers.c sess->width = width; sess 434 drivers/staging/media/meson/vdec/vdec_helpers.c sess->height = height; sess 435 drivers/staging/media/meson/vdec/vdec_helpers.c sess->status = STATUS_NEEDS_RESUME; sess 437 drivers/staging/media/meson/vdec/vdec_helpers.c dev_dbg(sess->core->dev, "Res. changed (%ux%u), DPB size %u\n", sess 439 drivers/staging/media/meson/vdec/vdec_helpers.c v4l2_event_queue_fh(&sess->fh, &ev); sess 443 drivers/staging/media/meson/vdec/vdec_helpers.c void amvdec_abort(struct amvdec_session *sess) sess 445 drivers/staging/media/meson/vdec/vdec_helpers.c dev_info(sess->core->dev, "Aborting decoding session!\n"); sess 446 drivers/staging/media/meson/vdec/vdec_helpers.c vb2_queue_error(&sess->m2m_ctx->cap_q_ctx.q); sess 447 drivers/staging/media/meson/vdec/vdec_helpers.c vb2_queue_error(&sess->m2m_ctx->out_q_ctx.q); sess 19 drivers/staging/media/meson/vdec/vdec_helpers.h int amvdec_set_canvases(struct amvdec_session *sess, sess 38 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx, sess 40 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_dst_buf_done(struct amvdec_session *sess, sess 42 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_dst_buf_done_offset(struct amvdec_session *sess, sess 53 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_add_ts_reorder(struct amvdec_session *sess, u64 ts, u32 offset); sess 54 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_remove_ts(struct amvdec_session *sess, u64 ts); sess 63 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_set_par_from_dar(struct amvdec_session *sess, sess 74 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_src_change(struct amvdec_session *sess, u32 width, sess 82 drivers/staging/media/meson/vdec/vdec_helpers.h void amvdec_abort(struct amvdec_session *sess); sess 456 drivers/target/iscsi/cxgbit/cxgbit_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 542 drivers/target/iscsi/cxgbit/cxgbit_target.c &conn->sess->tx_data_octets); sess 665 drivers/target/iscsi/cxgbit/cxgbit_target.c mbl = conn->sess->sess_ops->MaxBurstLength; sess 723 drivers/target/iscsi/cxgbit/cxgbit_target.c if (!conn->sess->sess_ops->DataSequenceInOrder) sess 725 drivers/target/iscsi/cxgbit/cxgbit_target.c if (!conn->sess->sess_ops->DataPDUInOrder) sess 757 drivers/target/iscsi/cxgbit/cxgbit_target.c erl = conn->sess->sess_ops->ErrorRecoveryLevel; sess 882 drivers/target/iscsi/cxgbit/cxgbit_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 1035 drivers/target/iscsi/cxgbit/cxgbit_target.c atomic_long_add(ddp_data_len, &conn->sess->rx_data_octets); sess 1103 drivers/target/iscsi/cxgbit/cxgbit_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 1171 drivers/target/iscsi/cxgbit/cxgbit_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 1296 drivers/target/iscsi/cxgbit/cxgbit_target.c atomic_long_inc(&conn->sess->conn_digest_errors); sess 1305 drivers/target/iscsi/cxgbit/cxgbit_target.c if (conn->sess->sess_ops->SessionType && sess 959 drivers/target/iscsi/iscsi_target.c if (conn->sess->sess_ops->RDMAExtensions) sess 1003 drivers/target/iscsi/iscsi_target.c atomic_long_inc(&conn->sess->cmd_pdus); sess 1061 drivers/target/iscsi/iscsi_target.c if (payload_length && !conn->sess->sess_ops->ImmediateData) { sess 1093 drivers/target/iscsi/iscsi_target.c if (payload_length > conn->sess->sess_ops->FirstBurstLength) { sess 1096 drivers/target/iscsi/iscsi_target.c payload_length, conn->sess->sess_ops->FirstBurstLength); sess 1134 drivers/target/iscsi/iscsi_target.c conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt; sess 1136 drivers/target/iscsi/iscsi_target.c cmd->targ_xfer_tag = session_get_next_ttt(conn->sess); sess 1143 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->RDMAExtensions && sess 1159 drivers/target/iscsi/iscsi_target.c conn->sess->se_sess, be32_to_cpu(hdr->data_length), sess 1442 drivers/target/iscsi/iscsi_target.c atomic_long_add(payload_length, &conn->sess->rx_data_octets); sess 1474 drivers/target/iscsi/iscsi_target.c if (conn->sess->sess_ops->InitialR2T) { sess 1756 drivers/target/iscsi/iscsi_target.c conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt; sess 1888 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 2002 drivers/target/iscsi/iscsi_target.c conn->sess->se_sess, 0, DMA_NONE, sess 2164 drivers/target/iscsi/iscsi_target.c conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt; sess 2292 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 2330 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 2333 drivers/target/iscsi/iscsi_target.c " for SID: %u.\n", conn->cid, conn->sess->sid); sess 2335 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_logout, 1); sess 2340 drivers/target/iscsi/iscsi_target.c iscsit_inc_session_usage_count(sess); sess 2342 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 2343 drivers/target/iscsi/iscsi_target.c list_for_each_entry(conn_p, &sess->sess_conn_list, conn_list) { sess 2350 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 2360 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 2388 drivers/target/iscsi/iscsi_target.c l_conn = iscsit_get_conn_from_cid(sess, sess 2407 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 2412 drivers/target/iscsi/iscsi_target.c if (sess->sess_ops->ErrorRecoveryLevel != 2) { sess 2470 drivers/target/iscsi/iscsi_target.c conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt; sess 2529 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 2653 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 2694 drivers/target/iscsi/iscsi_target.c lockdep_assert_held(&conn->sess->conn_lock); sess 2700 drivers/target/iscsi/iscsi_target.c list_for_each_entry(conn_p, &conn->sess->sess_conn_list, conn_list) { sess 2745 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 2746 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 2749 drivers/target/iscsi/iscsi_target.c hdr->param2 = cpu_to_be16(conn->sess->sess_ops->DefaultTime2Wait); sess 2750 drivers/target/iscsi/iscsi_target.c hdr->param3 = cpu_to_be16(conn->sess->sess_ops->DefaultTime2Retain); sess 2803 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 2804 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 2841 drivers/target/iscsi/iscsi_target.c atomic_long_add(datain.length, &conn->sess->tx_data_octets); sess 2852 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 2881 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 2920 drivers/target/iscsi/iscsi_target.c logout_conn = iscsit_get_conn_from_cid_rcfr(sess, sess 2928 drivers/target/iscsi/iscsi_target.c conn->sess, cmd->logout_cid); sess 2957 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 2958 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 2959 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 2999 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 3001 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3002 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3079 drivers/target/iscsi/iscsi_target.c r2t->targ_xfer_tag = session_get_next_ttt(conn->sess); sess 3082 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3083 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3128 drivers/target/iscsi/iscsi_target.c if (conn->sess->sess_ops->DataSequenceInOrder && sess 3132 drivers/target/iscsi/iscsi_target.c while (cmd->outstanding_r2ts < conn->sess->sess_ops->MaxOutstandingR2T) { sess 3133 drivers/target/iscsi/iscsi_target.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 3138 drivers/target/iscsi/iscsi_target.c conn->sess->sess_ops->MaxBurstLength - sess 3145 drivers/target/iscsi/iscsi_target.c conn->sess->sess_ops->MaxBurstLength - sess 3149 drivers/target/iscsi/iscsi_target.c conn->sess->sess_ops->MaxBurstLength; sess 3154 drivers/target/iscsi/iscsi_target.c xfer_len = conn->sess->sess_ops->MaxBurstLength; sess 3204 drivers/target/iscsi/iscsi_target.c atomic_long_inc(&conn->sess->rsp_pdus); sess 3221 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 3222 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3223 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3301 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 3302 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3303 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3384 drivers/target/iscsi/iscsi_target.c cmd->conn->sess->sess_ops->InitiatorName))) { sess 3493 drivers/target/iscsi/iscsi_target.c cmd->targ_xfer_tag = session_get_next_ttt(conn->sess); sess 3503 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, conn->sess); sess 3510 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3511 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3551 drivers/target/iscsi/iscsi_target.c hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 3552 drivers/target/iscsi/iscsi_target.c hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 3723 drivers/target/iscsi/iscsi_target.c iscsit_fall_back_to_erl0(conn->sess); sess 3912 drivers/target/iscsi/iscsi_target.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 3991 drivers/target/iscsi/iscsi_target.c atomic_long_inc(&conn->sess->conn_digest_errors); sess 4003 drivers/target/iscsi/iscsi_target.c if (conn->sess->sess_ops->SessionType && sess 4063 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 4086 drivers/target/iscsi/iscsi_target.c iscsit_increment_maxcmdsn(cmd, sess); sess 4109 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 4112 drivers/target/iscsi/iscsi_target.c " %u\n", conn->cid, sess->sid); sess 4179 drivers/target/iscsi/iscsi_target.c iscsit_dec_session_usage_count(sess); sess 4185 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_reinstatement, 0); sess 4186 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_fall_back_to_erl0, 1); sess 4189 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4200 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4255 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4256 drivers/target/iscsi/iscsi_target.c atomic_dec(&sess->nconn); sess 4258 drivers/target/iscsi/iscsi_target.c " %s\n", atomic_read(&sess->nconn), sess 4259 drivers/target/iscsi/iscsi_target.c sess->sess_ops->InitiatorName); sess 4264 drivers/target/iscsi/iscsi_target.c if ((sess->sess_ops->ErrorRecoveryLevel != 2) && !conn_logout && sess 4265 drivers/target/iscsi/iscsi_target.c !atomic_read(&sess->session_logout)) sess 4266 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_fall_back_to_erl0, 1); sess 4274 drivers/target/iscsi/iscsi_target.c if (atomic_read(&sess->nconn)) { sess 4275 drivers/target/iscsi/iscsi_target.c if (!atomic_read(&sess->session_reinstatement) && sess 4276 drivers/target/iscsi/iscsi_target.c !atomic_read(&sess->session_fall_back_to_erl0)) { sess 4277 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4280 drivers/target/iscsi/iscsi_target.c if (!atomic_read(&sess->session_stop_active)) { sess 4281 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_stop_active, 1); sess 4282 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4283 drivers/target/iscsi/iscsi_target.c iscsit_stop_session(sess, 0, 0); sess 4286 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4303 drivers/target/iscsi/iscsi_target.c if (!atomic_read(&sess->session_reinstatement) && sess 4304 drivers/target/iscsi/iscsi_target.c atomic_read(&sess->session_fall_back_to_erl0)) { sess 4305 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4306 drivers/target/iscsi/iscsi_target.c complete_all(&sess->session_wait_comp); sess 4307 drivers/target/iscsi/iscsi_target.c iscsit_close_session(sess); sess 4310 drivers/target/iscsi/iscsi_target.c } else if (atomic_read(&sess->session_logout)) { sess 4312 drivers/target/iscsi/iscsi_target.c sess->session_state = TARG_SESS_STATE_FREE; sess 4314 drivers/target/iscsi/iscsi_target.c if (atomic_read(&sess->session_close)) { sess 4315 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4316 drivers/target/iscsi/iscsi_target.c complete_all(&sess->session_wait_comp); sess 4317 drivers/target/iscsi/iscsi_target.c iscsit_close_session(sess); sess 4319 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4325 drivers/target/iscsi/iscsi_target.c sess->session_state = TARG_SESS_STATE_FAILED; sess 4327 drivers/target/iscsi/iscsi_target.c if (!atomic_read(&sess->session_continuation)) sess 4328 drivers/target/iscsi/iscsi_target.c iscsit_start_time2retain_handler(sess); sess 4330 drivers/target/iscsi/iscsi_target.c if (atomic_read(&sess->session_close)) { sess 4331 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4332 drivers/target/iscsi/iscsi_target.c complete_all(&sess->session_wait_comp); sess 4333 drivers/target/iscsi/iscsi_target.c iscsit_close_session(sess); sess 4335 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4346 drivers/target/iscsi/iscsi_target.c int iscsit_close_session(struct iscsi_session *sess) sess 4348 drivers/target/iscsi/iscsi_target.c struct iscsi_portal_group *tpg = sess->tpg; sess 4351 drivers/target/iscsi/iscsi_target.c if (atomic_read(&sess->nconn)) { sess 4353 drivers/target/iscsi/iscsi_target.c " to %s\n", atomic_read(&sess->nconn), sess 4354 drivers/target/iscsi/iscsi_target.c sess->sess_ops->InitiatorName); sess 4359 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_logout, 1); sess 4360 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_reinstatement, 1); sess 4361 drivers/target/iscsi/iscsi_target.c iscsit_stop_time2retain_timer(sess); sess 4371 drivers/target/iscsi/iscsi_target.c transport_deregister_session_configfs(sess->se_sess); sess 4380 drivers/target/iscsi/iscsi_target.c if (iscsit_check_session_usage_count(sess) == 1) sess 4381 drivers/target/iscsi/iscsi_target.c iscsit_stop_session(sess, 1, 1); sess 4383 drivers/target/iscsi/iscsi_target.c if (iscsit_check_session_usage_count(sess) == 2) { sess 4384 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_logout, 0); sess 4385 drivers/target/iscsi/iscsi_target.c iscsit_start_time2retain_handler(sess); sess 4390 drivers/target/iscsi/iscsi_target.c transport_deregister_session(sess->se_sess); sess 4392 drivers/target/iscsi/iscsi_target.c if (sess->sess_ops->ErrorRecoveryLevel == 2) sess 4393 drivers/target/iscsi/iscsi_target.c iscsit_free_connection_recovery_entries(sess); sess 4395 drivers/target/iscsi/iscsi_target.c iscsit_free_all_ooo_cmdsns(sess); sess 4399 drivers/target/iscsi/iscsi_target.c sess->session_state = TARG_SESS_STATE_FREE; sess 4401 drivers/target/iscsi/iscsi_target.c sess->sess_ops->InitiatorName); sess 4409 drivers/target/iscsi/iscsi_target.c ida_free(&sess_ida, sess->session_index); sess 4410 drivers/target/iscsi/iscsi_target.c kfree(sess->sess_ops); sess 4411 drivers/target/iscsi/iscsi_target.c sess->sess_ops = NULL; sess 4414 drivers/target/iscsi/iscsi_target.c kfree(sess); sess 4421 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 4442 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_close, 1); sess 4443 drivers/target/iscsi/iscsi_target.c iscsit_stop_session(sess, sleep, sleep); sess 4444 drivers/target/iscsi/iscsi_target.c iscsit_dec_session_usage_count(sess); sess 4470 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess = conn->sess; sess 4473 drivers/target/iscsi/iscsi_target.c if (!sess) sess 4476 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4477 drivers/target/iscsi/iscsi_target.c list_for_each_entry(l_conn, &sess->sess_conn_list, conn_list) { sess 4484 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4564 drivers/target/iscsi/iscsi_target.c void iscsit_fail_session(struct iscsi_session *sess) sess 4568 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4569 drivers/target/iscsi/iscsi_target.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { sess 4573 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4576 drivers/target/iscsi/iscsi_target.c sess->session_state = TARG_SESS_STATE_FAILED; sess 4580 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess, sess 4584 drivers/target/iscsi/iscsi_target.c u16 conn_count = atomic_read(&sess->nconn); sess 4588 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4591 drivers/target/iscsi/iscsi_target.c list_for_each_entry_safe(conn, conn_tmp, &sess->sess_conn_list, sess 4596 drivers/target/iscsi/iscsi_target.c if (list_is_last(&conn->conn_list, &sess->sess_conn_list)) { sess 4604 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4606 drivers/target/iscsi/iscsi_target.c spin_lock_bh(&sess->conn_lock); sess 4614 drivers/target/iscsi/iscsi_target.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) sess 4618 drivers/target/iscsi/iscsi_target.c if (session_sleep && atomic_read(&sess->nconn)) { sess 4619 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4620 drivers/target/iscsi/iscsi_target.c wait_for_completion(&sess->session_wait_comp); sess 4622 drivers/target/iscsi/iscsi_target.c spin_unlock_bh(&sess->conn_lock); sess 4627 drivers/target/iscsi/iscsi_target.c struct iscsi_session *sess; sess 4641 drivers/target/iscsi/iscsi_target.c sess = (struct iscsi_session *)se_sess->fabric_sess_ptr; sess 4643 drivers/target/iscsi/iscsi_target.c spin_lock(&sess->conn_lock); sess 4644 drivers/target/iscsi/iscsi_target.c if (atomic_read(&sess->session_fall_back_to_erl0) || sess 4645 drivers/target/iscsi/iscsi_target.c atomic_read(&sess->session_logout) || sess 4646 drivers/target/iscsi/iscsi_target.c atomic_read(&sess->session_close) || sess 4647 drivers/target/iscsi/iscsi_target.c (sess->time2retain_timer_flags & ISCSI_TF_EXPIRED)) { sess 4648 drivers/target/iscsi/iscsi_target.c spin_unlock(&sess->conn_lock); sess 4651 drivers/target/iscsi/iscsi_target.c iscsit_inc_session_usage_count(sess); sess 4652 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_reinstatement, 1); sess 4653 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_fall_back_to_erl0, 1); sess 4654 drivers/target/iscsi/iscsi_target.c atomic_set(&sess->session_close, 1); sess 4655 drivers/target/iscsi/iscsi_target.c spin_unlock(&sess->conn_lock); sess 4662 drivers/target/iscsi/iscsi_target.c sess = (struct iscsi_session *)se_sess->fabric_sess_ptr; sess 4665 drivers/target/iscsi/iscsi_target.c iscsit_stop_session(sess, 1, 1); sess 4666 drivers/target/iscsi/iscsi_target.c iscsit_dec_session_usage_count(sess); sess 447 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess; \ sess 457 drivers/target/iscsi/iscsi_target_configfs.c sess = se_sess->fabric_sess_ptr; \ sess 459 drivers/target/iscsi/iscsi_target_configfs.c (u32)sess->sess_ops->name); \ sess 502 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess; sess 514 drivers/target/iscsi/iscsi_target_configfs.c sess = se_sess->fabric_sess_ptr; sess 517 drivers/target/iscsi/iscsi_target_configfs.c sess->sess_ops->InitiatorName); sess 519 drivers/target/iscsi/iscsi_target_configfs.c sess->sess_ops->InitiatorAlias); sess 523 drivers/target/iscsi/iscsi_target_configfs.c sess->sid, sess->isid, sess->tsih); sess 525 drivers/target/iscsi/iscsi_target_configfs.c (sess->sess_ops->SessionType) ? sess 528 drivers/target/iscsi/iscsi_target_configfs.c switch (sess->session_state) { sess 554 drivers/target/iscsi/iscsi_target_configfs.c max_cmd_sn = (u32) atomic_read(&sess->max_cmd_sn); sess 557 drivers/target/iscsi/iscsi_target_configfs.c sess->cmdsn_window, sess 558 drivers/target/iscsi/iscsi_target_configfs.c (max_cmd_sn - sess->exp_cmd_sn) + 1, sess 559 drivers/target/iscsi/iscsi_target_configfs.c sess->exp_cmd_sn, max_cmd_sn, sess 560 drivers/target/iscsi/iscsi_target_configfs.c sess->init_task_tag, sess->targ_xfer_tag); sess 564 drivers/target/iscsi/iscsi_target_configfs.c spin_lock(&sess->conn_lock); sess 565 drivers/target/iscsi/iscsi_target_configfs.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { sess 609 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock(&sess->conn_lock); sess 1347 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; sess 1349 drivers/target/iscsi/iscsi_target_configfs.c return sess->session_index; sess 1357 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; sess 1361 drivers/target/iscsi/iscsi_target_configfs.c return snprintf(buf, size, "%6phN", sess->isid); sess 1472 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_session *sess = se_sess->fabric_sess_ptr; sess 1473 drivers/target/iscsi/iscsi_target_configfs.c struct se_portal_group *se_tpg = &sess->tpg->tpg_se_tpg; sess 1476 drivers/target/iscsi/iscsi_target_configfs.c spin_lock(&sess->conn_lock); sess 1477 drivers/target/iscsi/iscsi_target_configfs.c if (atomic_read(&sess->session_fall_back_to_erl0) || sess 1478 drivers/target/iscsi/iscsi_target_configfs.c atomic_read(&sess->session_logout) || sess 1479 drivers/target/iscsi/iscsi_target_configfs.c atomic_read(&sess->session_close) || sess 1480 drivers/target/iscsi/iscsi_target_configfs.c (sess->time2retain_timer_flags & ISCSI_TF_EXPIRED)) { sess 1481 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock(&sess->conn_lock); sess 1485 drivers/target/iscsi/iscsi_target_configfs.c iscsit_inc_session_usage_count(sess); sess 1486 drivers/target/iscsi/iscsi_target_configfs.c atomic_set(&sess->session_reinstatement, 1); sess 1487 drivers/target/iscsi/iscsi_target_configfs.c atomic_set(&sess->session_fall_back_to_erl0, 1); sess 1488 drivers/target/iscsi/iscsi_target_configfs.c atomic_set(&sess->session_close, 1); sess 1489 drivers/target/iscsi/iscsi_target_configfs.c spin_unlock(&sess->conn_lock); sess 1491 drivers/target/iscsi/iscsi_target_configfs.c iscsit_stop_time2retain_timer(sess); sess 1494 drivers/target/iscsi/iscsi_target_configfs.c iscsit_stop_session(sess, 1, 1); sess 1495 drivers/target/iscsi/iscsi_target_configfs.c iscsit_dec_session_usage_count(sess); sess 111 drivers/target/iscsi/iscsi_target_datain_values.c (read_data_left <= (conn->sess->sess_ops->MaxBurstLength - sess 116 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 121 drivers/target/iscsi/iscsi_target_datain_values.c conn->sess->sess_ops->MaxBurstLength) { sess 126 drivers/target/iscsi/iscsi_target_datain_values.c datain->length = (conn->sess->sess_ops->MaxBurstLength - sess 131 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 226 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 234 drivers/target/iscsi/iscsi_target_datain_values.c conn->sess->sess_ops->MaxBurstLength) { sess 241 drivers/target/iscsi/iscsi_target_datain_values.c datain->length = (conn->sess->sess_ops->MaxBurstLength - sess 246 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 336 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 342 drivers/target/iscsi/iscsi_target_datain_values.c conn->sess->sess_ops->MaxBurstLength) sess 346 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 445 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->ErrorRecoveryLevel > 0) sess 504 drivers/target/iscsi/iscsi_target_datain_values.c if (conn->sess->sess_ops->DataSequenceInOrder && sess 505 drivers/target/iscsi/iscsi_target_datain_values.c conn->sess->sess_ops->DataPDUInOrder) sess 507 drivers/target/iscsi/iscsi_target_datain_values.c else if (!conn->sess->sess_ops->DataSequenceInOrder && sess 508 drivers/target/iscsi/iscsi_target_datain_values.c conn->sess->sess_ops->DataPDUInOrder) sess 510 drivers/target/iscsi/iscsi_target_datain_values.c else if (conn->sess->sess_ops->DataSequenceInOrder && sess 511 drivers/target/iscsi/iscsi_target_datain_values.c !conn->sess->sess_ops->DataPDUInOrder) sess 513 drivers/target/iscsi/iscsi_target_datain_values.c else if (!conn->sess->sess_ops->DataSequenceInOrder && sess 514 drivers/target/iscsi/iscsi_target_datain_values.c !conn->sess->sess_ops->DataPDUInOrder) sess 20 drivers/target/iscsi/iscsi_target_device.c void iscsit_determine_maxcmdsn(struct iscsi_session *sess) sess 30 drivers/target/iscsi/iscsi_target_device.c if (sess->sess_ops->SessionType) sess 33 drivers/target/iscsi/iscsi_target_device.c se_nacl = sess->se_sess->se_node_acl; sess 41 drivers/target/iscsi/iscsi_target_device.c sess->cmdsn_window = se_nacl->queue_depth; sess 42 drivers/target/iscsi/iscsi_target_device.c atomic_add(se_nacl->queue_depth - 1, &sess->max_cmd_sn); sess 45 drivers/target/iscsi/iscsi_target_device.c void iscsit_increment_maxcmdsn(struct iscsi_cmd *cmd, struct iscsi_session *sess) sess 54 drivers/target/iscsi/iscsi_target_device.c max_cmd_sn = atomic_inc_return(&sess->max_cmd_sn); sess 42 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->FirstBurstLength); sess 46 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataSequenceInOrder) sess 52 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) ? sess 54 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; sess 58 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) >= sess 61 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength); sess 85 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 103 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 153 drivers/target/iscsi/iscsi_target_erl0.c if (first_burst_len > conn->sess->sess_ops->FirstBurstLength) { sess 156 drivers/target/iscsi/iscsi_target_erl0.c first_burst_len, conn->sess->sess_ops->FirstBurstLength); sess 172 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataPDUInOrder) sess 176 drivers/target/iscsi/iscsi_target_erl0.c (first_burst_len != conn->sess->sess_ops->FirstBurstLength)) { sess 180 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->FirstBurstLength, sess 187 drivers/target/iscsi/iscsi_target_erl0.c if (first_burst_len == conn->sess->sess_ops->FirstBurstLength) { sess 191 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->FirstBurstLength); sess 223 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 262 drivers/target/iscsi/iscsi_target_erl0.c if (next_burst_len > conn->sess->sess_ops->MaxBurstLength) { sess 267 drivers/target/iscsi/iscsi_target_erl0.c payload_length, conn->sess->sess_ops->MaxBurstLength); sess 281 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataPDUInOrder) sess 284 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 286 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) && sess 303 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 305 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) { sess 309 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength); sess 352 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) sess 374 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 404 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 434 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 544 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->FirstBurstLength) { sess 551 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataPDUInOrder) { sess 561 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) sess 576 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 578 drivers/target/iscsi/iscsi_target_erl0.c conn->sess->sess_ops->MaxBurstLength) { sess 586 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataPDUInOrder) { sess 611 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->DataPDUInOrder) { sess 630 drivers/target/iscsi/iscsi_target_erl0.c if (send_r2t && conn->sess->sess_ops->DataSequenceInOrder) sess 652 drivers/target/iscsi/iscsi_target_erl0.c if (conn->sess->sess_ops->DataPDUInOrder) sess 710 drivers/target/iscsi/iscsi_target_erl0.c return (conn->sess->sess_ops->DataPDUInOrder) ? sess 731 drivers/target/iscsi/iscsi_target_erl0.c if (!conn->sess->sess_ops->ErrorRecoveryLevel) { sess 746 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_session *sess = from_timer(sess, t, time2retain_timer); sess 747 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_portal_group *tpg = sess->tpg; sess 751 drivers/target/iscsi/iscsi_target_erl0.c if (sess->time2retain_timer_flags & ISCSI_TF_STOP) { sess 755 drivers/target/iscsi/iscsi_target_erl0.c if (atomic_read(&sess->session_reinstatement)) { sess 761 drivers/target/iscsi/iscsi_target_erl0.c sess->time2retain_timer_flags |= ISCSI_TF_EXPIRED; sess 764 drivers/target/iscsi/iscsi_target_erl0.c " iSCSI session.\n", sess->sid); sess 766 drivers/target/iscsi/iscsi_target_erl0.c iscsit_fill_cxn_timeout_err_stats(sess); sess 768 drivers/target/iscsi/iscsi_target_erl0.c iscsit_close_session(sess); sess 771 drivers/target/iscsi/iscsi_target_erl0.c void iscsit_start_time2retain_handler(struct iscsi_session *sess) sess 778 drivers/target/iscsi/iscsi_target_erl0.c spin_lock(&sess->tpg->tpg_state_lock); sess 779 drivers/target/iscsi/iscsi_target_erl0.c tpg_active = (sess->tpg->tpg_state == TPG_STATE_ACTIVE); sess 780 drivers/target/iscsi/iscsi_target_erl0.c spin_unlock(&sess->tpg->tpg_state_lock); sess 785 drivers/target/iscsi/iscsi_target_erl0.c if (sess->time2retain_timer_flags & ISCSI_TF_RUNNING) sess 789 drivers/target/iscsi/iscsi_target_erl0.c " SID: %u\n", sess->sess_ops->DefaultTime2Retain, sess->sid); sess 791 drivers/target/iscsi/iscsi_target_erl0.c sess->time2retain_timer_flags &= ~ISCSI_TF_STOP; sess 792 drivers/target/iscsi/iscsi_target_erl0.c sess->time2retain_timer_flags |= ISCSI_TF_RUNNING; sess 793 drivers/target/iscsi/iscsi_target_erl0.c mod_timer(&sess->time2retain_timer, sess 794 drivers/target/iscsi/iscsi_target_erl0.c jiffies + sess->sess_ops->DefaultTime2Retain * HZ); sess 797 drivers/target/iscsi/iscsi_target_erl0.c int iscsit_stop_time2retain_timer(struct iscsi_session *sess) sess 799 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_portal_group *tpg = sess->tpg; sess 804 drivers/target/iscsi/iscsi_target_erl0.c if (sess->time2retain_timer_flags & ISCSI_TF_EXPIRED) sess 807 drivers/target/iscsi/iscsi_target_erl0.c if (!(sess->time2retain_timer_flags & ISCSI_TF_RUNNING)) sess 810 drivers/target/iscsi/iscsi_target_erl0.c sess->time2retain_timer_flags |= ISCSI_TF_STOP; sess 813 drivers/target/iscsi/iscsi_target_erl0.c del_timer_sync(&sess->time2retain_timer); sess 816 drivers/target/iscsi/iscsi_target_erl0.c sess->time2retain_timer_flags &= ~ISCSI_TF_RUNNING; sess 818 drivers/target/iscsi/iscsi_target_erl0.c sess->sid); sess 883 drivers/target/iscsi/iscsi_target_erl0.c void iscsit_fall_back_to_erl0(struct iscsi_session *sess) sess 886 drivers/target/iscsi/iscsi_target_erl0.c " %u\n", sess->sid); sess 888 drivers/target/iscsi/iscsi_target_erl0.c atomic_set(&sess->session_fall_back_to_erl0, 1); sess 893 drivers/target/iscsi/iscsi_target_erl0.c struct iscsi_session *sess = conn->sess; sess 895 drivers/target/iscsi/iscsi_target_erl0.c if ((sess->sess_ops->ErrorRecoveryLevel == 2) && sess 896 drivers/target/iscsi/iscsi_target_erl0.c !atomic_read(&sess->session_reinstatement) && sess 897 drivers/target/iscsi/iscsi_target_erl0.c !atomic_read(&sess->session_fall_back_to_erl0)) sess 902 drivers/target/iscsi/iscsi_target_erl0.c sess->sess_ops->InitiatorName); sess 48 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->RDMAExtensions) sess 182 drivers/target/iscsi/iscsi_target_erl1.c conn->sess->sess_ops->MaxBurstLength) { sess 189 drivers/target/iscsi/iscsi_target_erl1.c (conn->sess->sess_ops->MaxBurstLength - sess 198 drivers/target/iscsi/iscsi_target_erl1.c if (!conn->sess->sess_ops->DataPDUInOrder) { sess 299 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 362 drivers/target/iscsi/iscsi_target_erl1.c (conn->sess->sess_ops->DataPDUInOrder) ? "Yes" : "No"); sess 594 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 668 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 671 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 718 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataPDUInOrder) sess 770 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess, sess 775 drivers/target/iscsi/iscsi_target_erl1.c lockdep_assert_held(&sess->cmdsn_mutex); sess 783 drivers/target/iscsi/iscsi_target_erl1.c if (list_empty(&sess->sess_ooo_cmdsn_list)) sess 785 drivers/target/iscsi/iscsi_target_erl1.c &sess->sess_ooo_cmdsn_list); sess 787 drivers/target/iscsi/iscsi_target_erl1.c ooo_tail = list_entry(sess->sess_ooo_cmdsn_list.prev, sess 794 drivers/target/iscsi/iscsi_target_erl1.c &sess->sess_ooo_cmdsn_list); sess 800 drivers/target/iscsi/iscsi_target_erl1.c list_for_each_entry(ooo_tmp, &sess->sess_ooo_cmdsn_list, sess 821 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess, sess 831 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess = conn->sess; sess 833 drivers/target/iscsi/iscsi_target_erl1.c mutex_lock(&sess->cmdsn_mutex); sess 834 drivers/target/iscsi/iscsi_target_erl1.c list_for_each_entry(ooo_cmdsn, &sess->sess_ooo_cmdsn_list, ooo_list) { sess 840 drivers/target/iscsi/iscsi_target_erl1.c mutex_unlock(&sess->cmdsn_mutex); sess 843 drivers/target/iscsi/iscsi_target_erl1.c int iscsit_execute_ooo_cmdsns(struct iscsi_session *sess) sess 849 drivers/target/iscsi/iscsi_target_erl1.c lockdep_assert_held(&sess->cmdsn_mutex); sess 852 drivers/target/iscsi/iscsi_target_erl1.c &sess->sess_ooo_cmdsn_list, ooo_list) { sess 853 drivers/target/iscsi/iscsi_target_erl1.c if (ooo_cmdsn->cmdsn != sess->exp_cmd_sn) sess 857 drivers/target/iscsi/iscsi_target_erl1.c sess->exp_cmd_sn++; sess 858 drivers/target/iscsi/iscsi_target_erl1.c iscsit_remove_ooo_cmdsn(sess, ooo_cmdsn); sess 865 drivers/target/iscsi/iscsi_target_erl1.c sess->exp_cmd_sn++; sess 868 drivers/target/iscsi/iscsi_target_erl1.c cmd->cmd_sn, sess->exp_cmd_sn); sess 870 drivers/target/iscsi/iscsi_target_erl1.c iscsit_remove_ooo_cmdsn(sess, ooo_cmdsn); sess 999 drivers/target/iscsi/iscsi_target_erl1.c void iscsit_free_all_ooo_cmdsns(struct iscsi_session *sess) sess 1003 drivers/target/iscsi/iscsi_target_erl1.c mutex_lock(&sess->cmdsn_mutex); sess 1005 drivers/target/iscsi/iscsi_target_erl1.c &sess->sess_ooo_cmdsn_list, ooo_list) { sess 1010 drivers/target/iscsi/iscsi_target_erl1.c mutex_unlock(&sess->cmdsn_mutex); sess 1014 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess, sess 1025 drivers/target/iscsi/iscsi_target_erl1.c if (list_empty(&sess->sess_ooo_cmdsn_list)) sess 1028 drivers/target/iscsi/iscsi_target_erl1.c ooo_tail = list_entry(sess->sess_ooo_cmdsn_list.prev, sess 1040 drivers/target/iscsi/iscsi_target_erl1.c (cmdsn - sess->exp_cmd_sn) : 1; sess 1042 drivers/target/iscsi/iscsi_target_erl1.c ooo_cmdsn->exp_cmdsn = sess->exp_cmd_sn; sess 1045 drivers/target/iscsi/iscsi_target_erl1.c if (iscsit_attach_ooo_cmdsn(sess, ooo_cmdsn) < 0) { sess 1063 drivers/target/iscsi/iscsi_target_erl1.c *length = (conn->sess->sess_ops->FirstBurstLength > sess 1066 drivers/target/iscsi/iscsi_target_erl1.c conn->sess->sess_ops->FirstBurstLength; sess 1102 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess = NULL; sess 1114 drivers/target/iscsi/iscsi_target_erl1.c sess = conn->sess; sess 1115 drivers/target/iscsi/iscsi_target_erl1.c na = iscsit_tpg_get_node_attrib(sess); sess 1117 drivers/target/iscsi/iscsi_target_erl1.c if (!sess->sess_ops->ErrorRecoveryLevel) { sess 1121 drivers/target/iscsi/iscsi_target_erl1.c sess->sess_ops->InitiatorName, sess->isid, sess 1122 drivers/target/iscsi/iscsi_target_erl1.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); sess 1131 drivers/target/iscsi/iscsi_target_erl1.c sess->sess_ops->InitiatorName, sess->isid, sess 1132 drivers/target/iscsi/iscsi_target_erl1.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); sess 1138 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 1139 drivers/target/iscsi/iscsi_target_erl1.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 1141 drivers/target/iscsi/iscsi_target_erl1.c if ((pdu_offset + (conn->sess->sess_ops->MaxBurstLength - sess 1146 drivers/target/iscsi/iscsi_target_erl1.c pdu_length = (conn->sess->sess_ops->MaxBurstLength - sess 1179 drivers/target/iscsi/iscsi_target_erl1.c iscsit_fill_cxn_timeout_err_stats(sess); sess 1187 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess = conn->sess; sess 1188 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 1207 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_session *sess = conn->sess; sess 1208 drivers/target/iscsi/iscsi_target_erl1.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 41 drivers/target/iscsi/iscsi_target_erl2.c conn->sess->sess_ops->MaxBurstLength) { sess 48 drivers/target/iscsi/iscsi_target_erl2.c (conn->sess->sess_ops->MaxBurstLength - sess 66 drivers/target/iscsi/iscsi_target_erl2.c if ((write_data_done + conn->sess->sess_ops->MaxBurstLength) <= sess 68 drivers/target/iscsi/iscsi_target_erl2.c write_data_done += conn->sess->sess_ops->MaxBurstLength; sess 77 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess, sess 80 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_a_lock); sess 81 drivers/target/iscsi/iscsi_target_erl2.c list_add_tail(&cr->cr_list, &sess->cr_active_list); sess 82 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_a_lock); sess 88 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess, sess 91 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_i_lock); sess 92 drivers/target/iscsi/iscsi_target_erl2.c list_add_tail(&cr->cr_list, &sess->cr_inactive_list); sess 94 drivers/target/iscsi/iscsi_target_erl2.c sess->conn_recovery_count++; sess 96 drivers/target/iscsi/iscsi_target_erl2.c " SID: %u\n", sess->conn_recovery_count, sess->sid); sess 97 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 103 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess, sess 108 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_i_lock); sess 109 drivers/target/iscsi/iscsi_target_erl2.c list_for_each_entry(cr, &sess->cr_inactive_list, cr_list) { sess 111 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 115 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 120 drivers/target/iscsi/iscsi_target_erl2.c void iscsit_free_connection_recovery_entries(struct iscsi_session *sess) sess 125 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_a_lock); sess 126 drivers/target/iscsi/iscsi_target_erl2.c list_for_each_entry_safe(cr, cr_tmp, &sess->cr_active_list, cr_list) { sess 128 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_a_lock); sess 141 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_a_lock); sess 145 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_a_lock); sess 147 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_i_lock); sess 148 drivers/target/iscsi/iscsi_target_erl2.c list_for_each_entry_safe(cr, cr_tmp, &sess->cr_inactive_list, cr_list) { sess 150 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 163 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_i_lock); sess 167 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 172 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess) sess 174 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_a_lock); sess 177 drivers/target/iscsi/iscsi_target_erl2.c sess->conn_recovery_count--; sess 179 drivers/target/iscsi/iscsi_target_erl2.c " SID: %u\n", sess->conn_recovery_count, sess->sid); sess 180 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_a_lock); sess 189 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess) sess 191 drivers/target/iscsi/iscsi_target_erl2.c spin_lock(&sess->cr_i_lock); sess 193 drivers/target/iscsi/iscsi_target_erl2.c spin_unlock(&sess->cr_i_lock); sess 201 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess) sess 222 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess = cr->sess; sess 239 drivers/target/iscsi/iscsi_target_erl2.c iscsit_remove_cmd_from_connection_recovery(cmd, sess); sess 254 drivers/target/iscsi/iscsi_target_erl2.c cr->cid, sess->sid); sess 255 drivers/target/iscsi/iscsi_target_erl2.c iscsit_remove_inactive_connection_recovery_entry(cr, sess); sess 256 drivers/target/iscsi/iscsi_target_erl2.c iscsit_attach_active_connection_recovery_entry(sess, cr); sess 258 drivers/target/iscsi/iscsi_target_erl2.c " %hu on SID: %u\n", cr->cid, sess->sid); sess 259 drivers/target/iscsi/iscsi_target_erl2.c iscsit_remove_active_connection_recovery_entry(cr, sess); sess 261 drivers/target/iscsi/iscsi_target_erl2.c iscsit_remove_inactive_connection_recovery_entry(cr, sess); sess 262 drivers/target/iscsi/iscsi_target_erl2.c iscsit_attach_active_connection_recovery_entry(sess, cr); sess 271 drivers/target/iscsi/iscsi_target_erl2.c struct iscsi_session *sess = conn->sess; sess 273 drivers/target/iscsi/iscsi_target_erl2.c mutex_lock(&sess->cmdsn_mutex); sess 275 drivers/target/iscsi/iscsi_target_erl2.c &sess->sess_ooo_cmdsn_list, ooo_list) { sess 284 drivers/target/iscsi/iscsi_target_erl2.c iscsit_remove_ooo_cmdsn(sess, ooo_cmdsn); sess 286 drivers/target/iscsi/iscsi_target_erl2.c mutex_unlock(&sess->cmdsn_mutex); sess 303 drivers/target/iscsi/iscsi_target_erl2.c sess->exp_cmd_sn); sess 366 drivers/target/iscsi/iscsi_target_erl2.c iscsi_sna_gte(cmd->cmd_sn, conn->sess->exp_cmd_sn)) { sess 387 drivers/target/iscsi/iscsi_target_erl2.c cmd->sess = conn->sess; sess 414 drivers/target/iscsi/iscsi_target_erl2.c cr->sess = conn->sess; sess 416 drivers/target/iscsi/iscsi_target_erl2.c iscsit_attach_inactive_connection_recovery_entry(conn->sess, cr); sess 135 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = NULL, *sess_p = NULL; sess 164 drivers/target/iscsi/iscsi_target_login.c if (!memcmp(sess_p->isid, conn->sess->isid, 6) && sess 174 drivers/target/iscsi/iscsi_target_login.c sess = sess_p; sess 183 drivers/target/iscsi/iscsi_target_login.c if (!sess) sess 188 drivers/target/iscsi/iscsi_target_login.c "Discovery" : "Normal", sess->sid, sess 189 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops->InitiatorName); sess 191 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&sess->conn_lock); sess 192 drivers/target/iscsi/iscsi_target_login.c if (sess->session_state == TARG_SESS_STATE_FAILED) { sess 193 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&sess->conn_lock); sess 194 drivers/target/iscsi/iscsi_target_login.c iscsit_dec_session_usage_count(sess); sess 197 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&sess->conn_lock); sess 199 drivers/target/iscsi/iscsi_target_login.c iscsit_stop_session(sess, 1, 1); sess 200 drivers/target/iscsi/iscsi_target_login.c iscsit_dec_session_usage_count(sess); sess 206 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess, sess 211 drivers/target/iscsi/iscsi_target_login.c conn->sess = sess; sess 258 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = NULL; sess 262 drivers/target/iscsi/iscsi_target_login.c sess = kzalloc(sizeof(struct iscsi_session), GFP_KERNEL); sess 263 drivers/target/iscsi/iscsi_target_login.c if (!sess) { sess 270 drivers/target/iscsi/iscsi_target_login.c if (iscsi_login_set_conn_values(sess, conn, pdu->cid)) sess 273 drivers/target/iscsi/iscsi_target_login.c sess->init_task_tag = pdu->itt; sess 274 drivers/target/iscsi/iscsi_target_login.c memcpy(&sess->isid, pdu->isid, 6); sess 275 drivers/target/iscsi/iscsi_target_login.c sess->exp_cmd_sn = be32_to_cpu(pdu->cmdsn); sess 276 drivers/target/iscsi/iscsi_target_login.c INIT_LIST_HEAD(&sess->sess_conn_list); sess 277 drivers/target/iscsi/iscsi_target_login.c INIT_LIST_HEAD(&sess->sess_ooo_cmdsn_list); sess 278 drivers/target/iscsi/iscsi_target_login.c INIT_LIST_HEAD(&sess->cr_active_list); sess 279 drivers/target/iscsi/iscsi_target_login.c INIT_LIST_HEAD(&sess->cr_inactive_list); sess 280 drivers/target/iscsi/iscsi_target_login.c init_completion(&sess->async_msg_comp); sess 281 drivers/target/iscsi/iscsi_target_login.c init_completion(&sess->reinstatement_comp); sess 282 drivers/target/iscsi/iscsi_target_login.c init_completion(&sess->session_wait_comp); sess 283 drivers/target/iscsi/iscsi_target_login.c init_completion(&sess->session_waiting_on_uc_comp); sess 284 drivers/target/iscsi/iscsi_target_login.c mutex_init(&sess->cmdsn_mutex); sess 285 drivers/target/iscsi/iscsi_target_login.c spin_lock_init(&sess->conn_lock); sess 286 drivers/target/iscsi/iscsi_target_login.c spin_lock_init(&sess->cr_a_lock); sess 287 drivers/target/iscsi/iscsi_target_login.c spin_lock_init(&sess->cr_i_lock); sess 288 drivers/target/iscsi/iscsi_target_login.c spin_lock_init(&sess->session_usage_lock); sess 289 drivers/target/iscsi/iscsi_target_login.c spin_lock_init(&sess->ttt_lock); sess 291 drivers/target/iscsi/iscsi_target_login.c timer_setup(&sess->time2retain_timer, sess 302 drivers/target/iscsi/iscsi_target_login.c sess->session_index = ret; sess 303 drivers/target/iscsi/iscsi_target_login.c sess->creation_time = get_jiffies_64(); sess 308 drivers/target/iscsi/iscsi_target_login.c atomic_set(&sess->max_cmd_sn, be32_to_cpu(pdu->cmdsn)); sess 310 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops = kzalloc(sizeof(struct iscsi_sess_ops), GFP_KERNEL); sess 311 drivers/target/iscsi/iscsi_target_login.c if (!sess->sess_ops) { sess 319 drivers/target/iscsi/iscsi_target_login.c sess->se_sess = transport_alloc_session(TARGET_PROT_NORMAL); sess 320 drivers/target/iscsi/iscsi_target_login.c if (IS_ERR(sess->se_sess)) { sess 329 drivers/target/iscsi/iscsi_target_login.c kfree(sess->sess_ops); sess 331 drivers/target/iscsi/iscsi_target_login.c ida_free(&sess_ida, sess->session_index); sess 333 drivers/target/iscsi/iscsi_target_login.c kfree(sess); sess 334 drivers/target/iscsi/iscsi_target_login.c conn->sess = NULL; sess 342 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = conn->sess; sess 345 drivers/target/iscsi/iscsi_target_login.c sess->tpg = conn->tpg; sess 351 drivers/target/iscsi/iscsi_target_login.c sess->tsih = ++sess->tpg->ntsih; sess 352 drivers/target/iscsi/iscsi_target_login.c if (!sess->tsih) sess 353 drivers/target/iscsi/iscsi_target_login.c sess->tsih = ++sess->tpg->ntsih; sess 370 drivers/target/iscsi/iscsi_target_login.c if (sess->sess_ops->SessionType) sess 374 drivers/target/iscsi/iscsi_target_login.c na = iscsit_tpg_get_node_attrib(sess); sess 383 drivers/target/iscsi/iscsi_target_login.c if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) sess 441 drivers/target/iscsi/iscsi_target_login.c if (sess->se_sess->sup_prot_ops & sess 476 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = NULL, *sess_p = NULL; sess 496 drivers/target/iscsi/iscsi_target_login.c sess = sess_p; sess 505 drivers/target/iscsi/iscsi_target_login.c if (!sess) { sess 517 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&sess->conn_lock); sess 518 drivers/target/iscsi/iscsi_target_login.c if (sess->session_state == TARG_SESS_STATE_FAILED) sess 519 drivers/target/iscsi/iscsi_target_login.c atomic_set(&sess->session_continuation, 1); sess 520 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&sess->conn_lock); sess 522 drivers/target/iscsi/iscsi_target_login.c if (iscsi_login_set_conn_values(sess, conn, pdu->cid) < 0 || sess 541 drivers/target/iscsi/iscsi_target_login.c if (iscsi_change_param_sprintf(conn, "TargetPortalGroupTag=%hu", sess->tpg->tpgt)) sess 554 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = conn->sess; sess 563 drivers/target/iscsi/iscsi_target_login.c conn_ptr = iscsit_get_conn_from_cid_rcfr(sess, cid); sess 567 drivers/target/iscsi/iscsi_target_login.c conn_ptr->cid, sess->sess_ops->InitiatorName); sess 582 drivers/target/iscsi/iscsi_target_login.c if (sess->sess_ops->ErrorRecoveryLevel == 2) { sess 584 drivers/target/iscsi/iscsi_target_login.c sess, cid); sess 600 drivers/target/iscsi/iscsi_target_login.c cid, sess->sess_ops->InitiatorName); sess 602 drivers/target/iscsi/iscsi_target_login.c if ((atomic_read(&sess->nconn) + 1) > sess->sess_ops->MaxConnections) { sess 605 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops->MaxConnections); sess 616 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = conn->sess; sess 623 drivers/target/iscsi/iscsi_target_login.c if (!sess->sess_ops->SessionType) sess 679 drivers/target/iscsi/iscsi_target_login.c struct iscsi_session *sess = conn->sess; sess 680 drivers/target/iscsi/iscsi_target_login.c struct se_session *se_sess = sess->se_sess; sess 681 drivers/target/iscsi/iscsi_target_login.c struct iscsi_portal_group *tpg = sess->tpg; sess 697 drivers/target/iscsi/iscsi_target_login.c iscsi_set_session_parameters(sess->sess_ops, sess 702 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&sess->conn_lock); sess 703 drivers/target/iscsi/iscsi_target_login.c atomic_set(&sess->session_continuation, 0); sess 704 drivers/target/iscsi/iscsi_target_login.c if (sess->session_state == TARG_SESS_STATE_FAILED) { sess 707 drivers/target/iscsi/iscsi_target_login.c sess->session_state = TARG_SESS_STATE_LOGGED_IN; sess 715 drivers/target/iscsi/iscsi_target_login.c list_add_tail(&conn->conn_list, &sess->sess_conn_list); sess 716 drivers/target/iscsi/iscsi_target_login.c atomic_inc(&sess->nconn); sess 718 drivers/target/iscsi/iscsi_target_login.c " from node: %s\n", atomic_read(&sess->nconn), sess 719 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops->InitiatorName); sess 720 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&sess->conn_lock); sess 739 drivers/target/iscsi/iscsi_target_login.c iscsit_stop_time2retain_timer(sess); sess 742 drivers/target/iscsi/iscsi_target_login.c iscsit_dec_session_usage_count(sess); sess 746 drivers/target/iscsi/iscsi_target_login.c iscsi_set_session_parameters(sess->sess_ops, conn->param_list, 1); sess 750 drivers/target/iscsi/iscsi_target_login.c iscsit_determine_maxcmdsn(sess); sess 753 drivers/target/iscsi/iscsi_target_login.c __transport_register_session(&sess->tpg->tpg_se_tpg, sess 754 drivers/target/iscsi/iscsi_target_login.c se_sess->se_node_acl, se_sess, sess); sess 756 drivers/target/iscsi/iscsi_target_login.c sess->session_state = TARG_SESS_STATE_LOGGED_IN; sess 762 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&sess->conn_lock); sess 763 drivers/target/iscsi/iscsi_target_login.c list_add_tail(&conn->conn_list, &sess->sess_conn_list); sess 764 drivers/target/iscsi/iscsi_target_login.c atomic_inc(&sess->nconn); sess 766 drivers/target/iscsi/iscsi_target_login.c " %s\n", atomic_read(&sess->nconn), sess 767 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops->InitiatorName); sess 768 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&sess->conn_lock); sess 770 drivers/target/iscsi/iscsi_target_login.c sess->sid = tpg->sid++; sess 771 drivers/target/iscsi/iscsi_target_login.c if (!sess->sid) sess 772 drivers/target/iscsi/iscsi_target_login.c sess->sid = tpg->sid++; sess 774 drivers/target/iscsi/iscsi_target_login.c sess->sess_ops->InitiatorName); sess 1183 drivers/target/iscsi/iscsi_target_login.c if (!zero_tsih || !conn->sess) sess 1186 drivers/target/iscsi/iscsi_target_login.c transport_free_session(conn->sess->se_sess); sess 1187 drivers/target/iscsi/iscsi_target_login.c ida_free(&sess_ida, conn->sess->session_index); sess 1188 drivers/target/iscsi/iscsi_target_login.c kfree(conn->sess->sess_ops); sess 1189 drivers/target/iscsi/iscsi_target_login.c kfree(conn->sess); sess 1190 drivers/target/iscsi/iscsi_target_login.c conn->sess = NULL; sess 1198 drivers/target/iscsi/iscsi_target_login.c if (!zero_tsih && conn->sess) { sess 1199 drivers/target/iscsi/iscsi_target_login.c spin_lock_bh(&conn->sess->conn_lock); sess 1200 drivers/target/iscsi/iscsi_target_login.c if (conn->sess->session_state == TARG_SESS_STATE_FAILED) { sess 1204 drivers/target/iscsi/iscsi_target_login.c atomic_set(&conn->sess->session_continuation, 0); sess 1205 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&conn->sess->conn_lock); sess 1207 drivers/target/iscsi/iscsi_target_login.c iscsit_start_time2retain_handler(conn->sess); sess 1210 drivers/target/iscsi/iscsi_target_login.c spin_unlock_bh(&conn->sess->conn_lock); sess 1211 drivers/target/iscsi/iscsi_target_login.c iscsit_dec_session_usage_count(conn->sess); sess 1384 drivers/target/iscsi/iscsi_target_login.c if (conn->sess) sess 1385 drivers/target/iscsi/iscsi_target_login.c conn->sess->se_sess->sup_prot_ops = sess 106 drivers/target/iscsi/iscsi_target_nego.c struct iscsi_session *sess = conn->sess; sess 112 drivers/target/iscsi/iscsi_target_nego.c if (!sess->sess_ops->SessionType) { sess 116 drivers/target/iscsi/iscsi_target_nego.c se_nacl = conn->sess->se_sess->se_node_acl; sess 149 drivers/target/iscsi/iscsi_target_nego.c strcpy(conn->sess->auth_type, "CHAP"); sess 151 drivers/target/iscsi/iscsi_target_nego.c strcpy(conn->sess->auth_type, NONE); sess 298 drivers/target/iscsi/iscsi_target_nego.c se_nacl = conn->sess->se_sess->se_node_acl; sess 339 drivers/target/iscsi/iscsi_target_nego.c login_rsp->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn); sess 340 drivers/target/iscsi/iscsi_target_nego.c login_rsp->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn)); sess 991 drivers/target/iscsi/iscsi_target_nego.c login->tsih = conn->sess->tsih; sess 1045 drivers/target/iscsi/iscsi_target_nego.c struct iscsi_session *sess = conn->sess; sess 1130 drivers/target/iscsi/iscsi_target_nego.c sess->sess_ops->SessionType = 1; sess 1231 drivers/target/iscsi/iscsi_target_nego.c sess->sess_ops->SessionType = 0; sess 1236 drivers/target/iscsi/iscsi_target_nego.c sess->se_sess->se_node_acl = core_tpg_check_initiator_node_acl( sess 1238 drivers/target/iscsi/iscsi_target_nego.c if (!sess->se_sess->se_node_acl) { sess 1247 drivers/target/iscsi/iscsi_target_nego.c se_nacl = sess->se_sess->se_node_acl; sess 1262 drivers/target/iscsi/iscsi_target_nego.c ret = transport_alloc_session_tags(sess->se_sess, tag_num, tag_size); sess 99 drivers/target/iscsi/iscsi_target_nodeattrib.c struct iscsi_session *sess; sess 128 drivers/target/iscsi/iscsi_target_nodeattrib.c sess = se_sess->fabric_sess_ptr; sess 130 drivers/target/iscsi/iscsi_target_nodeattrib.c spin_lock(&sess->conn_lock); sess 131 drivers/target/iscsi/iscsi_target_nodeattrib.c list_for_each_entry(conn, &sess->sess_conn_list, sess 141 drivers/target/iscsi/iscsi_target_nodeattrib.c spin_unlock(&sess->conn_lock); sess 225 drivers/target/iscsi/iscsi_target_seq_pdu_list.c conn->sess->sess_ops->FirstBurstLength); sess 247 drivers/target/iscsi/iscsi_target_seq_pdu_list.c >= conn->sess->sess_ops->FirstBurstLength) { sess 249 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->FirstBurstLength - sess 251 drivers/target/iscsi/iscsi_target_seq_pdu_list.c offset += (conn->sess->sess_ops->FirstBurstLength - sess 267 drivers/target/iscsi/iscsi_target_seq_pdu_list.c conn->sess->sess_ops->MaxBurstLength) { sess 268 drivers/target/iscsi/iscsi_target_seq_pdu_list.c offset += (conn->sess->sess_ops->MaxBurstLength - sess 301 drivers/target/iscsi/iscsi_target_seq_pdu_list.c datapduinorder = conn->sess->sess_ops->DataPDUInOrder; sess 302 drivers/target/iscsi/iscsi_target_seq_pdu_list.c datasequenceinorder = conn->sess->sess_ops->DataSequenceInOrder; sess 311 drivers/target/iscsi/iscsi_target_seq_pdu_list.c conn->sess->sess_ops->FirstBurstLength); sess 365 drivers/target/iscsi/iscsi_target_seq_pdu_list.c conn->sess->sess_ops->FirstBurstLength) { sess 369 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->FirstBurstLength - sess 376 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->FirstBurstLength - sess 380 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->FirstBurstLength - sess 382 drivers/target/iscsi/iscsi_target_seq_pdu_list.c offset += (conn->sess->sess_ops->FirstBurstLength - sess 414 drivers/target/iscsi/iscsi_target_seq_pdu_list.c conn->sess->sess_ops->MaxBurstLength) { sess 418 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->MaxBurstLength - sess 425 drivers/target/iscsi/iscsi_target_seq_pdu_list.c (conn->sess->sess_ops->MaxBurstLength - sess 428 drivers/target/iscsi/iscsi_target_seq_pdu_list.c offset += (conn->sess->sess_ops->MaxBurstLength - sess 496 drivers/target/iscsi/iscsi_target_seq_pdu_list.c struct iscsi_session *sess = conn->sess; sess 502 drivers/target/iscsi/iscsi_target_seq_pdu_list.c if (sess->sess_ops->DataSequenceInOrder && sess 503 drivers/target/iscsi/iscsi_target_seq_pdu_list.c sess->sess_ops->DataPDUInOrder) sess 509 drivers/target/iscsi/iscsi_target_seq_pdu_list.c na = iscsit_tpg_get_node_attrib(sess); sess 537 drivers/target/iscsi/iscsi_target_seq_pdu_list.c if (!conn->sess->sess_ops->DataSequenceInOrder) { sess 547 drivers/target/iscsi/iscsi_target_seq_pdu_list.c if (!conn->sess->sess_ops->DataPDUInOrder) { sess 598 drivers/target/iscsi/iscsi_target_seq_pdu_list.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 603 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 610 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 611 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 613 drivers/target/iscsi/iscsi_target_stat.c sess->sess_ops->SessionType ? 0 : ISCSI_NODE_INDEX); sess 624 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 631 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 632 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 634 drivers/target/iscsi/iscsi_target_stat.c sess->session_index); sess 646 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 653 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 654 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 656 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->cmd_pdus)); sess 668 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 675 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 676 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 678 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->rsp_pdus)); sess 690 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 697 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 698 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 700 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->tx_data_octets)); sess 712 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 719 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 720 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 722 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->rx_data_octets)); sess 734 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 741 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 742 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 744 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->conn_digest_errors)); sess 756 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_session *sess; sess 763 drivers/target/iscsi/iscsi_target_stat.c sess = se_sess->fabric_sess_ptr; sess 764 drivers/target/iscsi/iscsi_target_stat.c if (sess) sess 766 drivers/target/iscsi/iscsi_target_stat.c atomic_long_read(&sess->conn_timeout_errors)); sess 44 drivers/target/iscsi/iscsi_target_tmr.c return (iscsi_sna_gte(be32_to_cpu(hdr->refcmdsn), conn->sess->exp_cmd_sn) && sess 45 drivers/target/iscsi/iscsi_target_tmr.c iscsi_sna_lte(be32_to_cpu(hdr->refcmdsn), (u32) atomic_read(&conn->sess->max_cmd_sn))) ? sess 70 drivers/target/iscsi/iscsi_target_tmr.c struct iscsi_session *sess = conn->sess; sess 71 drivers/target/iscsi/iscsi_target_tmr.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 76 drivers/target/iscsi/iscsi_target_tmr.c sess->se_sess->se_node_acl->initiatorname); sess 90 drivers/target/iscsi/iscsi_target_tmr.c struct iscsi_session *sess = conn->sess; sess 91 drivers/target/iscsi/iscsi_target_tmr.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 96 drivers/target/iscsi/iscsi_target_tmr.c sess->se_sess->se_node_acl->initiatorname); sess 121 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->ErrorRecoveryLevel != 2) { sess 127 drivers/target/iscsi/iscsi_target_tmr.c ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt); sess 180 drivers/target/iscsi/iscsi_target_tmr.c struct iscsi_session *sess) sess 185 drivers/target/iscsi/iscsi_target_tmr.c ret = iscsit_remove_cmd_from_connection_recovery(cmd, sess); sess 189 drivers/target/iscsi/iscsi_target_tmr.c " %hu on SID: %u\n", cr->cid, sess->sid); sess 190 drivers/target/iscsi/iscsi_target_tmr.c iscsit_remove_active_connection_recovery_entry(cr, sess); sess 215 drivers/target/iscsi/iscsi_target_tmr.c iscsit_task_reassign_remove_cmd(cmd, cr, conn->sess); sess 274 drivers/target/iscsi/iscsi_target_tmr.c if ((conn->sess->sess_ops->FirstBurstLength - offset) >= sess 279 drivers/target/iscsi/iscsi_target_tmr.c length = (conn->sess->sess_ops->FirstBurstLength - offset); sess 383 drivers/target/iscsi/iscsi_target_tmr.c iscsit_task_reassign_remove_cmd(cmd, cr, conn->sess); sess 485 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 492 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 530 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataPDUInOrder) sess 635 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataSequenceInOrder) { sess 641 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataPDUInOrder) { sess 687 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataPDUInOrder) sess 761 drivers/target/iscsi/iscsi_target_tmr.c if (conn->sess->sess_ops->DataSequenceInOrder) sess 393 drivers/target/iscsi/iscsi_target_tpg.c struct iscsi_session *sess) sess 395 drivers/target/iscsi/iscsi_target_tpg.c struct se_session *se_sess = sess->se_sess; sess 175 drivers/target/iscsi/iscsi_target_util.c struct se_session *se_sess = conn->sess->se_sess; sess 258 drivers/target/iscsi/iscsi_target_util.c static inline int iscsit_check_received_cmdsn(struct iscsi_session *sess, u32 cmdsn) sess 269 drivers/target/iscsi/iscsi_target_util.c max_cmdsn = atomic_read(&sess->max_cmd_sn); sess 275 drivers/target/iscsi/iscsi_target_util.c } else if (cmdsn == sess->exp_cmd_sn) { sess 276 drivers/target/iscsi/iscsi_target_util.c sess->exp_cmd_sn++; sess 279 drivers/target/iscsi/iscsi_target_util.c sess->exp_cmd_sn); sess 282 drivers/target/iscsi/iscsi_target_util.c } else if (iscsi_sna_gt(cmdsn, sess->exp_cmd_sn)) { sess 285 drivers/target/iscsi/iscsi_target_util.c cmdsn, sess->exp_cmd_sn); sess 291 drivers/target/iscsi/iscsi_target_util.c sess->exp_cmd_sn); sess 309 drivers/target/iscsi/iscsi_target_util.c mutex_lock(&conn->sess->cmdsn_mutex); sess 311 drivers/target/iscsi/iscsi_target_util.c cmdsn_ret = iscsit_check_received_cmdsn(conn->sess, be32_to_cpu(cmdsn)); sess 315 drivers/target/iscsi/iscsi_target_util.c if ((ret >= 0) && !list_empty(&conn->sess->sess_ooo_cmdsn_list)) sess 316 drivers/target/iscsi/iscsi_target_util.c iscsit_execute_ooo_cmdsns(conn->sess); sess 323 drivers/target/iscsi/iscsi_target_util.c ret = iscsit_handle_ooo_cmdsn(conn->sess, cmd, be32_to_cpu(cmdsn)); sess 344 drivers/target/iscsi/iscsi_target_util.c mutex_unlock(&conn->sess->cmdsn_mutex); sess 360 drivers/target/iscsi/iscsi_target_util.c if (conn->sess->sess_ops->InitialR2T) { sess 369 drivers/target/iscsi/iscsi_target_util.c conn->sess->sess_ops->FirstBurstLength) { sess 373 drivers/target/iscsi/iscsi_target_util.c conn->sess->sess_ops->FirstBurstLength); sess 384 drivers/target/iscsi/iscsi_target_util.c conn->sess->sess_ops->FirstBurstLength)) { sess 389 drivers/target/iscsi/iscsi_target_util.c conn->sess->sess_ops->FirstBurstLength, cmd->se_cmd.data_length); sess 466 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess, sess 477 drivers/target/iscsi/iscsi_target_util.c spin_lock(&sess->cr_i_lock); sess 478 drivers/target/iscsi/iscsi_target_util.c list_for_each_entry(cr, &sess->cr_inactive_list, cr_list) { sess 483 drivers/target/iscsi/iscsi_target_util.c spin_unlock(&sess->cr_i_lock); sess 492 drivers/target/iscsi/iscsi_target_util.c spin_unlock(&sess->cr_i_lock); sess 497 drivers/target/iscsi/iscsi_target_util.c spin_lock(&sess->cr_a_lock); sess 498 drivers/target/iscsi/iscsi_target_util.c list_for_each_entry(cr, &sess->cr_active_list, cr_list) { sess 503 drivers/target/iscsi/iscsi_target_util.c spin_unlock(&sess->cr_a_lock); sess 512 drivers/target/iscsi/iscsi_target_util.c spin_unlock(&sess->cr_a_lock); sess 716 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess; sess 722 drivers/target/iscsi/iscsi_target_util.c sess = cmd->conn->sess; sess 724 drivers/target/iscsi/iscsi_target_util.c sess = cmd->sess; sess 726 drivers/target/iscsi/iscsi_target_util.c BUG_ON(!sess || !sess->se_sess); sess 736 drivers/target/iscsi/iscsi_target_util.c target_free_tag(sess->se_sess, se_cmd); sess 782 drivers/target/iscsi/iscsi_target_util.c int iscsit_check_session_usage_count(struct iscsi_session *sess) sess 784 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->session_usage_lock); sess 785 drivers/target/iscsi/iscsi_target_util.c if (sess->session_usage_count != 0) { sess 786 drivers/target/iscsi/iscsi_target_util.c sess->session_waiting_on_uc = 1; sess 787 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->session_usage_lock); sess 791 drivers/target/iscsi/iscsi_target_util.c wait_for_completion(&sess->session_waiting_on_uc_comp); sess 794 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->session_usage_lock); sess 799 drivers/target/iscsi/iscsi_target_util.c void iscsit_dec_session_usage_count(struct iscsi_session *sess) sess 801 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->session_usage_lock); sess 802 drivers/target/iscsi/iscsi_target_util.c sess->session_usage_count--; sess 804 drivers/target/iscsi/iscsi_target_util.c if (!sess->session_usage_count && sess->session_waiting_on_uc) sess 805 drivers/target/iscsi/iscsi_target_util.c complete(&sess->session_waiting_on_uc_comp); sess 807 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->session_usage_lock); sess 810 drivers/target/iscsi/iscsi_target_util.c void iscsit_inc_session_usage_count(struct iscsi_session *sess) sess 812 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->session_usage_lock); sess 813 drivers/target/iscsi/iscsi_target_util.c sess->session_usage_count++; sess 814 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->session_usage_lock); sess 817 drivers/target/iscsi/iscsi_target_util.c struct iscsi_conn *iscsit_get_conn_from_cid(struct iscsi_session *sess, u16 cid) sess 821 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->conn_lock); sess 822 drivers/target/iscsi/iscsi_target_util.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { sess 826 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->conn_lock); sess 830 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->conn_lock); sess 835 drivers/target/iscsi/iscsi_target_util.c struct iscsi_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *sess, u16 cid) sess 839 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->conn_lock); sess 840 drivers/target/iscsi/iscsi_target_util.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) { sess 846 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->conn_lock); sess 850 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->conn_lock); sess 900 drivers/target/iscsi/iscsi_target_util.c session_get_next_ttt(conn->sess) : 0xFFFFFFFF; sess 915 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess = conn->sess; sess 928 drivers/target/iscsi/iscsi_target_util.c conn->cid, sess->sess_ops->InitiatorName, sess->isid, sess 929 drivers/target/iscsi/iscsi_target_util.c sess->tpg->tpg_tiqn->tiqn, (u32)sess->tpg->tpgt); sess 933 drivers/target/iscsi/iscsi_target_util.c iscsit_fill_cxn_timeout_err_stats(sess); sess 940 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess = conn->sess; sess 941 drivers/target/iscsi/iscsi_target_util.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 956 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess = conn->sess; sess 957 drivers/target/iscsi/iscsi_target_util.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 1013 drivers/target/iscsi/iscsi_target_util.c struct iscsi_session *sess = conn->sess; sess 1014 drivers/target/iscsi/iscsi_target_util.c struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); sess 1217 drivers/target/iscsi/iscsi_target_util.c void iscsit_print_session_params(struct iscsi_session *sess) sess 1222 drivers/target/iscsi/iscsi_target_util.c " SID: %u]-----------------------------\n", sess->sid); sess 1223 drivers/target/iscsi/iscsi_target_util.c spin_lock_bh(&sess->conn_lock); sess 1224 drivers/target/iscsi/iscsi_target_util.c list_for_each_entry(conn, &sess->sess_conn_list, conn_list) sess 1226 drivers/target/iscsi/iscsi_target_util.c spin_unlock_bh(&sess->conn_lock); sess 1228 drivers/target/iscsi/iscsi_target_util.c iscsi_dump_sess_ops(sess->sess_ops); sess 1388 drivers/target/iscsi/iscsi_target_util.c void iscsit_fill_cxn_timeout_err_stats(struct iscsi_session *sess) sess 1390 drivers/target/iscsi/iscsi_target_util.c struct iscsi_portal_group *tpg = sess->tpg; sess 1398 drivers/target/iscsi/iscsi_target_util.c sess->sess_ops->InitiatorName, sess 1403 drivers/target/iscsi/iscsi_target_util.c atomic_long_inc(&sess->conn_timeout_errors); sess 81 drivers/target/sbp/sbp_target.c struct sbp_session *sess, *found = NULL; sess 85 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; sess 86 drivers/target/sbp/sbp_target.c if (sess->guid == guid) sess 87 drivers/target/sbp/sbp_target.c found = sess; sess 115 drivers/target/sbp/sbp_target.c struct sbp_session *sess; sess 121 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; sess 123 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 124 drivers/target/sbp/sbp_target.c list_for_each_entry(login, &sess->login_list, link) { sess 131 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 142 drivers/target/sbp/sbp_target.c struct sbp_session *sess; sess 147 drivers/target/sbp/sbp_target.c sess = se_sess->fabric_sess_ptr; sess 149 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 150 drivers/target/sbp/sbp_target.c list_for_each_entry(login, &sess->login_list, link) { sess 154 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 184 drivers/target/sbp/sbp_target.c struct sbp_session *sess; sess 190 drivers/target/sbp/sbp_target.c sess = kmalloc(sizeof(*sess), GFP_KERNEL); sess 191 drivers/target/sbp/sbp_target.c if (!sess) sess 194 drivers/target/sbp/sbp_target.c spin_lock_init(&sess->lock); sess 195 drivers/target/sbp/sbp_target.c INIT_LIST_HEAD(&sess->login_list); sess 196 drivers/target/sbp/sbp_target.c INIT_DELAYED_WORK(&sess->maint_work, session_maintenance_work); sess 197 drivers/target/sbp/sbp_target.c sess->guid = guid; sess 199 drivers/target/sbp/sbp_target.c sess->se_sess = target_setup_session(&tpg->se_tpg, 128, sess 202 drivers/target/sbp/sbp_target.c sess, NULL); sess 203 drivers/target/sbp/sbp_target.c if (IS_ERR(sess->se_sess)) { sess 205 drivers/target/sbp/sbp_target.c ret = PTR_ERR(sess->se_sess); sess 206 drivers/target/sbp/sbp_target.c kfree(sess); sess 210 drivers/target/sbp/sbp_target.c return sess; sess 213 drivers/target/sbp/sbp_target.c static void sbp_session_release(struct sbp_session *sess, bool cancel_work) sess 215 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 216 drivers/target/sbp/sbp_target.c if (!list_empty(&sess->login_list)) { sess 217 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 220 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 223 drivers/target/sbp/sbp_target.c cancel_delayed_work_sync(&sess->maint_work); sess 225 drivers/target/sbp/sbp_target.c target_remove_session(sess->se_sess); sess 227 drivers/target/sbp/sbp_target.c if (sess->card) sess 228 drivers/target/sbp/sbp_target.c fw_card_put(sess->card); sess 230 drivers/target/sbp/sbp_target.c kfree(sess); sess 238 drivers/target/sbp/sbp_target.c struct sbp_session *sess = login->sess; sess 244 drivers/target/sbp/sbp_target.c if (sess) { sess 245 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 247 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 249 drivers/target/sbp/sbp_target.c sbp_session_release(sess, cancel_work); sess 264 drivers/target/sbp/sbp_target.c struct sbp_session *sess; sess 296 drivers/target/sbp/sbp_target.c sess = sbp_session_find_by_guid(tpg, guid); sess 297 drivers/target/sbp/sbp_target.c if (sess) { sess 298 drivers/target/sbp/sbp_target.c login = sbp_login_find_by_lun(sess, unpacked_lun); sess 362 drivers/target/sbp/sbp_target.c if (!sess) { sess 363 drivers/target/sbp/sbp_target.c sess = sbp_session_create(tpg, guid); sess 364 drivers/target/sbp/sbp_target.c if (IS_ERR(sess)) { sess 365 drivers/target/sbp/sbp_target.c switch (PTR_ERR(sess)) { sess 381 drivers/target/sbp/sbp_target.c sess->node_id = req->node_addr; sess 382 drivers/target/sbp/sbp_target.c sess->card = fw_card_get(req->card); sess 383 drivers/target/sbp/sbp_target.c sess->generation = req->generation; sess 384 drivers/target/sbp/sbp_target.c sess->speed = req->speed; sess 386 drivers/target/sbp/sbp_target.c schedule_delayed_work(&sess->maint_work, sess 391 drivers/target/sbp/sbp_target.c sess->reconnect_hold = min( sess 399 drivers/target/sbp/sbp_target.c sbp_session_release(sess, true); sess 407 drivers/target/sbp/sbp_target.c login->sess = sess; sess 418 drivers/target/sbp/sbp_target.c sbp_session_release(sess, true); sess 427 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 428 drivers/target/sbp/sbp_target.c list_add_tail(&login->link, &sess->login_list); sess 429 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 450 drivers/target/sbp/sbp_target.c response->reconnect_hold = cpu_to_be32(sess->reconnect_hold & 0xffff); sess 454 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(sess->card, TCODE_WRITE_BLOCK_REQUEST, sess 455 drivers/target/sbp/sbp_target.c sess->node_id, sess->generation, sess->speed, sess 523 drivers/target/sbp/sbp_target.c if (login->sess->guid != guid) { sess 532 drivers/target/sbp/sbp_target.c spin_lock_bh(&login->sess->lock); sess 533 drivers/target/sbp/sbp_target.c if (login->sess->card) sess 534 drivers/target/sbp/sbp_target.c fw_card_put(login->sess->card); sess 537 drivers/target/sbp/sbp_target.c login->sess->generation = req->generation; sess 538 drivers/target/sbp/sbp_target.c login->sess->node_id = req->node_addr; sess 539 drivers/target/sbp/sbp_target.c login->sess->card = fw_card_get(req->card); sess 540 drivers/target/sbp/sbp_target.c login->sess->speed = req->speed; sess 541 drivers/target/sbp/sbp_target.c spin_unlock_bh(&login->sess->lock); sess 572 drivers/target/sbp/sbp_target.c if (req->node_addr != login->sess->node_id) { sess 588 drivers/target/sbp/sbp_target.c static void session_check_for_reset(struct sbp_session *sess) sess 592 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 594 drivers/target/sbp/sbp_target.c if (sess->card) { sess 595 drivers/target/sbp/sbp_target.c spin_lock_irq(&sess->card->lock); sess 596 drivers/target/sbp/sbp_target.c card_valid = (sess->card->local_node != NULL); sess 597 drivers/target/sbp/sbp_target.c spin_unlock_irq(&sess->card->lock); sess 600 drivers/target/sbp/sbp_target.c fw_card_put(sess->card); sess 601 drivers/target/sbp/sbp_target.c sess->card = NULL; sess 605 drivers/target/sbp/sbp_target.c if (!card_valid || (sess->generation != sess->card->generation)) { sess 607 drivers/target/sbp/sbp_target.c sess->guid); sess 609 drivers/target/sbp/sbp_target.c sess->node_id = -1; sess 610 drivers/target/sbp/sbp_target.c sess->reconnect_expires = get_jiffies_64() + sess 611 drivers/target/sbp/sbp_target.c ((sess->reconnect_hold + 1) * HZ); sess 614 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 617 drivers/target/sbp/sbp_target.c static void session_reconnect_expired(struct sbp_session *sess) sess 622 drivers/target/sbp/sbp_target.c pr_info("Reconnect timer expired for node: %016llx\n", sess->guid); sess 624 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 625 drivers/target/sbp/sbp_target.c list_for_each_entry_safe(login, temp, &sess->login_list, link) { sess 626 drivers/target/sbp/sbp_target.c login->sess = NULL; sess 629 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 636 drivers/target/sbp/sbp_target.c sbp_session_release(sess, false); sess 641 drivers/target/sbp/sbp_target.c struct sbp_session *sess = container_of(work, struct sbp_session, sess 645 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 646 drivers/target/sbp/sbp_target.c if (list_empty(&sess->login_list)) { sess 647 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 650 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 652 drivers/target/sbp/sbp_target.c if (sess->node_id != -1) { sess 654 drivers/target/sbp/sbp_target.c session_check_for_reset(sess); sess 656 drivers/target/sbp/sbp_target.c schedule_delayed_work(&sess->maint_work, sess 658 drivers/target/sbp/sbp_target.c } else if (!time_after64(get_jiffies_64(), sess->reconnect_expires)) { sess 660 drivers/target/sbp/sbp_target.c schedule_delayed_work(&sess->maint_work, sess 664 drivers/target/sbp/sbp_target.c session_reconnect_expired(sess); sess 802 drivers/target/sbp/sbp_target.c struct sbp_session *sess = agent->login->sess; sess 805 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 806 drivers/target/sbp/sbp_target.c sess_gen = sess->generation; sess 807 drivers/target/sbp/sbp_target.c sess_node = sess->node_id; sess 808 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 910 drivers/target/sbp/sbp_target.c static struct sbp_target_request *sbp_mgt_get_req(struct sbp_session *sess, sess 913 drivers/target/sbp/sbp_target.c struct se_session *se_sess = sess->se_sess; sess 934 drivers/target/sbp/sbp_target.c struct sbp_session *sess = agent->login->sess; sess 941 drivers/target/sbp/sbp_target.c req = sbp_mgt_get_req(sess, sess->card, next_orb); sess 958 drivers/target/sbp/sbp_target.c ret = sbp_run_transaction(sess->card, TCODE_READ_BLOCK_REQUEST, sess 959 drivers/target/sbp/sbp_target.c sess->node_id, sess->generation, sess->speed, sess 1090 drivers/target/sbp/sbp_target.c struct sbp_session *sess = login->sess; sess 1094 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 1095 drivers/target/sbp/sbp_target.c card = fw_card_get(sess->card); sess 1096 drivers/target/sbp/sbp_target.c node_id = sess->node_id; sess 1097 drivers/target/sbp/sbp_target.c generation = sess->generation; sess 1098 drivers/target/sbp/sbp_target.c speed = sess->speed; sess 1099 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 1195 drivers/target/sbp/sbp_target.c struct sbp_session *sess = login->sess; sess 1221 drivers/target/sbp/sbp_target.c if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, sess 1243 drivers/target/sbp/sbp_target.c struct sbp_session *sess = req->login->sess; sess 1269 drivers/target/sbp/sbp_target.c spin_lock_bh(&sess->lock); sess 1270 drivers/target/sbp/sbp_target.c card = fw_card_get(sess->card); sess 1271 drivers/target/sbp/sbp_target.c node_id = sess->node_id; sess 1272 drivers/target/sbp/sbp_target.c generation = sess->generation; sess 1273 drivers/target/sbp/sbp_target.c spin_unlock_bh(&sess->lock); sess 126 drivers/target/sbp/sbp_target.h struct sbp_session *sess; sess 1619 drivers/target/target_core_configfs.c struct se_session *sess = dev->reservation_holder; sess 1623 drivers/target/target_core_configfs.c if (sess) { sess 1624 drivers/target/target_core_configfs.c se_nacl = sess->se_node_acl; sess 90 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; sess 101 drivers/target/target_core_pr.c if (!dev->reservation_holder || !sess) sess 104 drivers/target/target_core_pr.c if (dev->reservation_holder->se_node_acl != sess->se_node_acl) sess 108 drivers/target/target_core_pr.c if (dev->dev_res_bin_isid != sess->sess_bin_isid) sess 204 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; sess 208 drivers/target/target_core_pr.c if (!sess || !sess->se_tpg) sess 217 drivers/target/target_core_pr.c if (!dev->reservation_holder || !sess) sess 220 drivers/target/target_core_pr.c if (dev->reservation_holder->se_node_acl != sess->se_node_acl) sess 223 drivers/target/target_core_pr.c if (dev->dev_res_bin_isid != sess->sess_bin_isid) sess 227 drivers/target/target_core_pr.c tpg = sess->se_tpg; sess 232 drivers/target/target_core_pr.c sess->se_node_acl->initiatorname); sess 245 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; sess 259 drivers/target/target_core_pr.c if (!sess || !sess->se_tpg) sess 268 drivers/target/target_core_pr.c tpg = sess->se_tpg; sess 271 drivers/target/target_core_pr.c dev->reservation_holder->se_node_acl != sess->se_node_acl) { sess 280 drivers/target/target_core_pr.c sess->se_node_acl->initiatorname); sess 285 drivers/target/target_core_pr.c dev->reservation_holder = sess; sess 287 drivers/target/target_core_pr.c if (sess->sess_bin_isid != 0) { sess 288 drivers/target/target_core_pr.c dev->dev_res_bin_isid = sess->sess_bin_isid; sess 294 drivers/target/target_core_pr.c sess->se_node_acl->initiatorname); sess 566 drivers/target/target_core_pr.c struct se_session *sess = cmd->se_sess; sess 575 drivers/target/target_core_pr.c if (dev->dev_pr_res_holder->pr_reg_nacl != sess->se_node_acl) sess 580 drivers/target/target_core_pr.c sess->sess_bin_isid) { sess 1214 drivers/target/target_core_pr.c struct se_session *sess) sess 1221 drivers/target/target_core_pr.c tpg->se_tpg_tfo->sess_get_initiator_sid(sess, &buf[0], sess 78 drivers/target/target_core_sbc.c struct se_session *sess = cmd->se_sess; sess 91 drivers/target/target_core_sbc.c if (sess->sup_prot_ops & (TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS)) { sess 97 drivers/target/target_core_sbc.c pi_prot_type = sess->sess_prot_type; sess 55 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; sess 91 drivers/target/target_core_spc.c if (sess->sup_prot_ops & (TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS)) { sess 441 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; sess 448 drivers/target/target_core_spc.c if (sess->sup_prot_ops & (TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS)) { sess 459 drivers/target/target_core_spc.c (sess->sup_prot_ops & (TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS)) && sess 777 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; sess 875 drivers/target/target_core_spc.c if (sess->sup_prot_ops & (TARGET_PROT_DIN_PASS | TARGET_PROT_DOUT_PASS)) { sess 876 drivers/target/target_core_spc.c if (dev->dev_attrib.pi_prot_type || sess->sess_prot_type) sess 1203 drivers/target/target_core_spc.c struct se_session *sess = cmd->se_sess; sess 1219 drivers/target/target_core_spc.c if (!sess) sess 1222 drivers/target/target_core_spc.c nacl = sess->se_node_acl; sess 83 drivers/target/target_core_tmr.c struct se_session *sess = se_cmd->se_sess; sess 85 drivers/target/target_core_tmr.c assert_spin_locked(&sess->sess_cmd_lock); sess 176 drivers/target/target_core_tmr.c struct se_session *sess; sess 202 drivers/target/target_core_tmr.c sess = cmd->se_sess; sess 203 drivers/target/target_core_tmr.c if (WARN_ON_ONCE(!sess)) sess 206 drivers/target/target_core_tmr.c spin_lock(&sess->sess_cmd_lock); sess 207 drivers/target/target_core_tmr.c rc = __target_check_io_state(cmd, sess, 0); sess 208 drivers/target/target_core_tmr.c spin_unlock(&sess->sess_cmd_lock); sess 258 drivers/target/target_core_tmr.c struct se_session *sess; sess 300 drivers/target/target_core_tmr.c sess = cmd->se_sess; sess 301 drivers/target/target_core_tmr.c if (WARN_ON_ONCE(!sess)) sess 304 drivers/target/target_core_tmr.c spin_lock(&sess->sess_cmd_lock); sess 306 drivers/target/target_core_tmr.c spin_unlock(&sess->sess_cmd_lock); sess 328 drivers/target/target_core_tpg.c struct se_session *sess; sess 333 drivers/target/target_core_tpg.c list_for_each_entry(sess, &acl->acl_sess_list, sess_acl_list) { sess 334 drivers/target/target_core_tpg.c if (sess->sess_tearing_down) sess 337 drivers/target/target_core_tpg.c list_del_init(&sess->sess_acl_list); sess 341 drivers/target/target_core_tpg.c acl->se_tpg->se_tpg_tfo->close_session(sess); sess 216 drivers/target/target_core_transport.c struct se_session *sess = container_of(ref, typeof(*sess), cmd_count); sess 218 drivers/target/target_core_transport.c wake_up(&sess->cmd_list_wq); sess 424 drivers/target/target_core_transport.c struct se_session *sess; sess 431 drivers/target/target_core_transport.c sess = transport_init_session_tags(tag_num, tag_size, prot_op); sess 433 drivers/target/target_core_transport.c sess = transport_alloc_session(prot_op); sess 435 drivers/target/target_core_transport.c if (IS_ERR(sess)) sess 436 drivers/target/target_core_transport.c return sess; sess 438 drivers/target/target_core_transport.c sess->se_node_acl = core_tpg_check_initiator_node_acl(tpg, sess 440 drivers/target/target_core_transport.c if (!sess->se_node_acl) { sess 441 drivers/target/target_core_transport.c transport_free_session(sess); sess 449 drivers/target/target_core_transport.c int rc = callback(tpg, sess, private); sess 451 drivers/target/target_core_transport.c transport_free_session(sess); sess 456 drivers/target/target_core_transport.c transport_register_session(tpg, sess->se_node_acl, sess, private); sess 457 drivers/target/target_core_transport.c return sess; sess 589 drivers/target/target_core_transport.c struct se_session *sess = data; sess 591 drivers/target/target_core_transport.c if (dev->reservation_holder == sess) sess 29 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; sess 32 drivers/target/target_core_ua.c if (!sess) sess 35 drivers/target/target_core_ua.c nacl = sess->se_node_acl; sess 198 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; sess 203 drivers/target/target_core_ua.c if (WARN_ON_ONCE(!sess)) sess 206 drivers/target/target_core_ua.c nacl = sess->se_node_acl; sess 270 drivers/target/target_core_ua.c struct se_session *sess = cmd->se_sess; sess 275 drivers/target/target_core_ua.c if (!sess) sess 278 drivers/target/target_core_ua.c nacl = sess->se_node_acl; sess 107 drivers/target/tcm_fc/tcm_fc.h struct ft_sess *sess; /* session held for cmd */ sess 42 drivers/target/tcm_fc/tfc_cmd.c caller, cmd, cmd->sess, cmd->seq, se_cmd); sess 73 drivers/target/tcm_fc/tfc_cmd.c struct ft_sess *sess; sess 77 drivers/target/tcm_fc/tfc_cmd.c sess = cmd->sess; sess 82 drivers/target/tcm_fc/tfc_cmd.c target_free_tag(sess->se_sess, &cmd->se_cmd); sess 83 drivers/target/tcm_fc/tfc_cmd.c ft_sess_put(sess); /* undo get from lookup at recv */ sess 317 drivers/target/tcm_fc/tfc_cmd.c ft_send_resp_status(cmd->sess->tport->lport, sess 371 drivers/target/tcm_fc/tfc_cmd.c rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, sess 426 drivers/target/tcm_fc/tfc_cmd.c static void ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp) sess 429 drivers/target/tcm_fc/tfc_cmd.c struct fc_lport *lport = sess->tport->lport; sess 430 drivers/target/tcm_fc/tfc_cmd.c struct se_session *se_sess = sess->se_sess; sess 442 drivers/target/tcm_fc/tfc_cmd.c cmd->sess = sess; sess 451 drivers/target/tcm_fc/tfc_cmd.c queue_work(sess->tport->tpg->workqueue, &cmd->work); sess 458 drivers/target/tcm_fc/tfc_cmd.c ft_sess_put(sess); /* undo get from lookup */ sess 466 drivers/target/tcm_fc/tfc_cmd.c void ft_recv_req(struct ft_sess *sess, struct fc_frame *fp) sess 472 drivers/target/tcm_fc/tfc_cmd.c ft_recv_cmd(sess, fp); sess 483 drivers/target/tcm_fc/tfc_cmd.c ft_sess_put(sess); /* undo get from lookup */ sess 551 drivers/target/tcm_fc/tfc_cmd.c if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, sess 112 drivers/target/tcm_fc/tfc_io.c cmd->sess->max_frame; sess 126 drivers/target/tcm_fc/tfc_io.c fr_max_payload(fp) = cmd->sess->max_frame; sess 319 drivers/target/tcm_fc/tfc_io.c queue_work(cmd->sess->tport->tpg->workqueue, &cmd->work); sess 162 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 173 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { sess 174 drivers/target/tcm_fc/tfc_sess.c if (sess->port_id == port_id) { sess 175 drivers/target/tcm_fc/tfc_sess.c kref_get(&sess->kref); sess 178 drivers/target/tcm_fc/tfc_sess.c port_id, sess); sess 179 drivers/target/tcm_fc/tfc_sess.c return sess; sess 192 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = p; sess 193 drivers/target/tcm_fc/tfc_sess.c struct ft_tport *tport = sess->tport; sess 194 drivers/target/tcm_fc/tfc_sess.c struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; sess 196 drivers/target/tcm_fc/tfc_sess.c TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess); sess 197 drivers/target/tcm_fc/tfc_sess.c hlist_add_head_rcu(&sess->hash, head); sess 211 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 218 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) sess 219 drivers/target/tcm_fc/tfc_sess.c if (sess->port_id == port_id) sess 220 drivers/target/tcm_fc/tfc_sess.c return sess; sess 222 drivers/target/tcm_fc/tfc_sess.c sess = kzalloc(sizeof(*sess), GFP_KERNEL); sess 223 drivers/target/tcm_fc/tfc_sess.c if (!sess) sess 226 drivers/target/tcm_fc/tfc_sess.c kref_init(&sess->kref); /* ref for table entry */ sess 227 drivers/target/tcm_fc/tfc_sess.c sess->tport = tport; sess 228 drivers/target/tcm_fc/tfc_sess.c sess->port_id = port_id; sess 230 drivers/target/tcm_fc/tfc_sess.c sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, sess 233 drivers/target/tcm_fc/tfc_sess.c sess, ft_sess_alloc_cb); sess 234 drivers/target/tcm_fc/tfc_sess.c if (IS_ERR(sess->se_sess)) { sess 235 drivers/target/tcm_fc/tfc_sess.c int rc = PTR_ERR(sess->se_sess); sess 236 drivers/target/tcm_fc/tfc_sess.c kfree(sess); sess 237 drivers/target/tcm_fc/tfc_sess.c sess = ERR_PTR(rc); sess 239 drivers/target/tcm_fc/tfc_sess.c return sess; sess 246 drivers/target/tcm_fc/tfc_sess.c static void ft_sess_unhash(struct ft_sess *sess) sess 248 drivers/target/tcm_fc/tfc_sess.c struct ft_tport *tport = sess->tport; sess 250 drivers/target/tcm_fc/tfc_sess.c hlist_del_rcu(&sess->hash); sess 253 drivers/target/tcm_fc/tfc_sess.c sess->port_id = -1; sess 254 drivers/target/tcm_fc/tfc_sess.c sess->params = 0; sess 264 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 267 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { sess 268 drivers/target/tcm_fc/tfc_sess.c if (sess->port_id == port_id) { sess 269 drivers/target/tcm_fc/tfc_sess.c ft_sess_unhash(sess); sess 270 drivers/target/tcm_fc/tfc_sess.c return sess; sess 276 drivers/target/tcm_fc/tfc_sess.c static void ft_close_sess(struct ft_sess *sess) sess 278 drivers/target/tcm_fc/tfc_sess.c target_sess_cmd_list_set_waiting(sess->se_sess); sess 279 drivers/target/tcm_fc/tfc_sess.c target_wait_for_sess_cmds(sess->se_sess); sess 280 drivers/target/tcm_fc/tfc_sess.c ft_sess_put(sess); sess 290 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 294 drivers/target/tcm_fc/tfc_sess.c hlist_for_each_entry_rcu(sess, head, hash) { sess 295 drivers/target/tcm_fc/tfc_sess.c ft_sess_unhash(sess); sess 296 drivers/target/tcm_fc/tfc_sess.c ft_close_sess(sess); /* release from table */ sess 311 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; sess 315 drivers/target/tcm_fc/tfc_sess.c port_id = sess->port_id; sess 320 drivers/target/tcm_fc/tfc_sess.c TFC_SESS_DBG(sess->tport->lport, "port_id %x close session\n", port_id); sess 321 drivers/target/tcm_fc/tfc_sess.c ft_sess_unhash(sess); sess 323 drivers/target/tcm_fc/tfc_sess.c ft_close_sess(sess); sess 330 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; sess 332 drivers/target/tcm_fc/tfc_sess.c return sess->port_id; /* XXX TBD probably not what is needed */ sess 338 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = se_sess->fabric_sess_ptr; sess 340 drivers/target/tcm_fc/tfc_sess.c return ft_format_wwn(buf, len, sess->port_name); sess 351 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 379 drivers/target/tcm_fc/tfc_sess.c sess = ft_sess_create(tport, rdata->ids.port_id, rdata); sess 380 drivers/target/tcm_fc/tfc_sess.c if (IS_ERR(sess)) { sess 381 drivers/target/tcm_fc/tfc_sess.c if (PTR_ERR(sess) == -EACCES) { sess 387 drivers/target/tcm_fc/tfc_sess.c if (!sess->params) sess 389 drivers/target/tcm_fc/tfc_sess.c sess->params = fcp_parm; sess 390 drivers/target/tcm_fc/tfc_sess.c sess->port_name = rdata->ids.port_name; sess 391 drivers/target/tcm_fc/tfc_sess.c sess->max_frame = rdata->maxframe_size; sess 436 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess = container_of(kref, struct ft_sess, kref); sess 438 drivers/target/tcm_fc/tfc_sess.c target_remove_session(sess->se_sess); sess 439 drivers/target/tcm_fc/tfc_sess.c kfree_rcu(sess, rcu); sess 442 drivers/target/tcm_fc/tfc_sess.c void ft_sess_put(struct ft_sess *sess) sess 444 drivers/target/tcm_fc/tfc_sess.c int sess_held = kref_read(&sess->kref); sess 447 drivers/target/tcm_fc/tfc_sess.c kref_put(&sess->kref, ft_sess_free); sess 452 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 463 drivers/target/tcm_fc/tfc_sess.c sess = ft_sess_delete(tport, rdata->ids.port_id); sess 464 drivers/target/tcm_fc/tfc_sess.c if (!sess) { sess 469 drivers/target/tcm_fc/tfc_sess.c ft_close_sess(sess); /* release from table */ sess 480 drivers/target/tcm_fc/tfc_sess.c struct ft_sess *sess; sess 485 drivers/target/tcm_fc/tfc_sess.c sess = ft_sess_get(lport, sid); sess 486 drivers/target/tcm_fc/tfc_sess.c if (!sess) { sess 492 drivers/target/tcm_fc/tfc_sess.c ft_recv_req(sess, fp); /* must do ft_sess_put() */ sess 106 drivers/tee/optee/call.c struct optee_session *sess; sess 108 drivers/tee/optee/call.c list_for_each_entry(sess, &ctxdata->sess_list, list_node) sess 109 drivers/tee/optee/call.c if (sess->session_id == session_id) sess 110 drivers/tee/optee/call.c return sess; sess 217 drivers/tee/optee/call.c struct optee_session *sess = NULL; sess 243 drivers/tee/optee/call.c sess = kzalloc(sizeof(*sess), GFP_KERNEL); sess 244 drivers/tee/optee/call.c if (!sess) { sess 256 drivers/tee/optee/call.c sess->session_id = msg_arg->session; sess 258 drivers/tee/optee/call.c list_add(&sess->list_node, &ctxdata->sess_list); sess 261 drivers/tee/optee/call.c kfree(sess); sess 286 drivers/tee/optee/call.c struct optee_session *sess; sess 290 drivers/tee/optee/call.c sess = find_session(ctxdata, session); sess 291 drivers/tee/optee/call.c if (sess) sess 292 drivers/tee/optee/call.c list_del(&sess->list_node); sess 294 drivers/tee/optee/call.c if (!sess) sess 296 drivers/tee/optee/call.c kfree(sess); sess 317 drivers/tee/optee/call.c struct optee_session *sess; sess 322 drivers/tee/optee/call.c sess = find_session(ctxdata, arg->session); sess 324 drivers/tee/optee/call.c if (!sess) sess 362 drivers/tee/optee/call.c struct optee_session *sess; sess 366 drivers/tee/optee/call.c sess = find_session(ctxdata, session); sess 368 drivers/tee/optee/call.c if (!sess) sess 261 drivers/tee/optee/core.c struct optee_session *sess; sess 281 drivers/tee/optee/core.c list_for_each_entry_safe(sess, sess_tmp, &ctxdata->sess_list, sess 283 drivers/tee/optee/core.c list_del(&sess->list_node); sess 287 drivers/tee/optee/core.c arg->session = sess->session_id; sess 290 drivers/tee/optee/core.c kfree(sess); sess 399 drivers/xen/xen-scsiback.c struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; sess 404 drivers/xen/xen-scsiback.c rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, sess 973 fs/nfs/nfs4client.c struct nfs4_session *sess; sess 979 fs/nfs/nfs4client.c sess = server->nfs_client->cl_session; sess 980 fs/nfs/nfs4client.c server_resp_sz = sess->fc_attrs.max_resp_sz - nfs41_maxread_overhead; sess 981 fs/nfs/nfs4client.c server_rqst_sz = sess->fc_attrs.max_rqst_sz - nfs41_maxwrite_overhead; sess 1431 fs/nfsd/nfs4xdr.c struct nfsd4_create_session *sess) sess 1436 fs/nfsd/nfs4xdr.c COPYMEM(&sess->clientid, 8); sess 1437 fs/nfsd/nfs4xdr.c sess->seqid = be32_to_cpup(p++); sess 1438 fs/nfsd/nfs4xdr.c sess->flags = be32_to_cpup(p++); sess 1443 fs/nfsd/nfs4xdr.c sess->fore_channel.maxreq_sz = be32_to_cpup(p++); sess 1444 fs/nfsd/nfs4xdr.c sess->fore_channel.maxresp_sz = be32_to_cpup(p++); sess 1445 fs/nfsd/nfs4xdr.c sess->fore_channel.maxresp_cached = be32_to_cpup(p++); sess 1446 fs/nfsd/nfs4xdr.c sess->fore_channel.maxops = be32_to_cpup(p++); sess 1447 fs/nfsd/nfs4xdr.c sess->fore_channel.maxreqs = be32_to_cpup(p++); sess 1448 fs/nfsd/nfs4xdr.c sess->fore_channel.nr_rdma_attrs = be32_to_cpup(p++); sess 1449 fs/nfsd/nfs4xdr.c if (sess->fore_channel.nr_rdma_attrs == 1) { sess 1451 fs/nfsd/nfs4xdr.c sess->fore_channel.rdma_attrs = be32_to_cpup(p++); sess 1452 fs/nfsd/nfs4xdr.c } else if (sess->fore_channel.nr_rdma_attrs > 1) { sess 1460 fs/nfsd/nfs4xdr.c sess->back_channel.maxreq_sz = be32_to_cpup(p++); sess 1461 fs/nfsd/nfs4xdr.c sess->back_channel.maxresp_sz = be32_to_cpup(p++); sess 1462 fs/nfsd/nfs4xdr.c sess->back_channel.maxresp_cached = be32_to_cpup(p++); sess 1463 fs/nfsd/nfs4xdr.c sess->back_channel.maxops = be32_to_cpup(p++); sess 1464 fs/nfsd/nfs4xdr.c sess->back_channel.maxreqs = be32_to_cpup(p++); sess 1465 fs/nfsd/nfs4xdr.c sess->back_channel.nr_rdma_attrs = be32_to_cpup(p++); sess 1466 fs/nfsd/nfs4xdr.c if (sess->back_channel.nr_rdma_attrs == 1) { sess 1468 fs/nfsd/nfs4xdr.c sess->back_channel.rdma_attrs = be32_to_cpup(p++); sess 1469 fs/nfsd/nfs4xdr.c } else if (sess->back_channel.nr_rdma_attrs > 1) { sess 1475 fs/nfsd/nfs4xdr.c sess->callback_prog = be32_to_cpup(p++); sess 1476 fs/nfsd/nfs4xdr.c nfsd4_decode_cb_sec(argp, &sess->cb_sec); sess 4012 fs/nfsd/nfs4xdr.c struct nfsd4_create_session *sess) sess 4020 fs/nfsd/nfs4xdr.c p = xdr_encode_opaque_fixed(p, sess->sessionid.data, sess 4022 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->seqid); sess 4023 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->flags); sess 4029 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.maxreq_sz); sess 4030 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.maxresp_sz); sess 4031 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.maxresp_cached); sess 4032 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.maxops); sess 4033 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.maxreqs); sess 4034 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.nr_rdma_attrs); sess 4036 fs/nfsd/nfs4xdr.c if (sess->fore_channel.nr_rdma_attrs) { sess 4040 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->fore_channel.rdma_attrs); sess 4047 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.maxreq_sz); sess 4048 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.maxresp_sz); sess 4049 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.maxresp_cached); sess 4050 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.maxops); sess 4051 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.maxreqs); sess 4052 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.nr_rdma_attrs); sess 4054 fs/nfsd/nfs4xdr.c if (sess->back_channel.nr_rdma_attrs) { sess 4058 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(sess->back_channel.rdma_attrs); sess 83 include/scsi/scsi_transport_iscsi.h struct iscsi_cls_conn *(*create_conn) (struct iscsi_cls_session *sess, sess 424 include/scsi/scsi_transport_iscsi.h extern struct iscsi_cls_conn *iscsi_create_conn(struct iscsi_cls_session *sess, sess 495 include/target/iscsi/iscsi_target_core.h struct iscsi_session *sess; sess 609 include/target/iscsi/iscsi_target_core.h struct iscsi_session *sess; sess 629 include/target/iscsi/iscsi_target_core.h struct iscsi_session *sess; sess 943 include/target/target_core_base.h static inline void target_free_tag(struct se_session *sess, struct se_cmd *cmd) sess 945 include/target/target_core_base.h sbitmap_queue_clear(&sess->sess_tag_pool, cmd->map_tag, cmd->map_cpu); sess 95 net/sched/cls_rsvp.h struct rsvp_session *sess; sess 348 net/sched/cls_rsvp.h struct rsvp_session *nsp, *s = f->sess; sess 602 net/sched/cls_rsvp.h f->sess = s; sess 700 net/sched/cls_rsvp.h s = f->sess; sess 474 security/keys/trusted.c struct osapsess sess; sess 492 security/keys/trusted.c ret = osap(tb, &sess, keyauth, keytype, keyhandle); sess 495 security/keys/trusted.c dump_sess(&sess); sess 498 security/keys/trusted.c memcpy(td->xorwork, sess.secret, SHA1_DIGEST_SIZE); sess 499 security/keys/trusted.c memcpy(td->xorwork + SHA1_DIGEST_SIZE, sess.enonce, SHA1_DIGEST_SIZE); sess 519 security/keys/trusted.c ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, sess 520 security/keys/trusted.c sess.enonce, td->nonceodd, cont, sess 527 security/keys/trusted.c ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, sess 528 security/keys/trusted.c sess.enonce, td->nonceodd, cont, sess 548 security/keys/trusted.c store32(tb, sess.handle); sess 565 security/keys/trusted.c ret = TSS_checkhmac1(tb->data, ordinal, td->nonceodd, sess.secret,