/drivers/staging/media/meson/vdec/ |
D | vdec.c | 40 u32 amvdec_get_output_size(struct amvdec_session *sess) in amvdec_get_output_size() argument 42 return get_output_size(sess->width, sess->height); in amvdec_get_output_size() 46 static int vdec_codec_needs_recycle(struct amvdec_session *sess) in vdec_codec_needs_recycle() argument 48 struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; in vdec_codec_needs_recycle() 55 struct amvdec_session *sess = data; in vdec_recycle_thread() local 56 struct amvdec_core *core = sess->core; in vdec_recycle_thread() 57 struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; in vdec_recycle_thread() 61 mutex_lock(&sess->bufs_recycle_lock); in vdec_recycle_thread() 62 list_for_each_entry_safe(tmp, n, &sess->bufs_recycle, list) { in vdec_recycle_thread() 70 mutex_unlock(&sess->bufs_recycle_lock); in vdec_recycle_thread() [all …]
|
D | vdec_helpers.c | 80 static int canvas_alloc(struct amvdec_session *sess, u8 *canvas_id) in canvas_alloc() argument 84 if (sess->canvas_num >= MAX_CANVAS) { in canvas_alloc() 85 dev_err(sess->core->dev, "Reached max number of canvas\n"); in canvas_alloc() 89 ret = meson_canvas_alloc(sess->core->canvas, canvas_id); in canvas_alloc() 93 sess->canvas_alloc[sess->canvas_num++] = *canvas_id; in canvas_alloc() 97 static int set_canvas_yuv420m(struct amvdec_session *sess, in set_canvas_yuv420m() argument 101 struct amvdec_core *core = sess->core; in set_canvas_yuv420m() 107 ret = canvas_alloc(sess, &canvas_id[i]); in set_canvas_yuv420m() 141 static int set_canvas_nv12m(struct amvdec_session *sess, in set_canvas_nv12m() argument 145 struct amvdec_core *core = sess->core; in set_canvas_nv12m() [all …]
|
D | codec_hevc_common.c | 30 void codec_hevc_setup_decode_head(struct amvdec_session *sess, int is_10bit) in codec_hevc_setup_decode_head() argument 32 struct amvdec_core *core = sess->core; in codec_hevc_setup_decode_head() 33 u32 body_size = amvdec_am21c_body_size(sess->width, sess->height); in codec_hevc_setup_decode_head() 34 u32 head_size = amvdec_am21c_head_size(sess->width, sess->height); in codec_hevc_setup_decode_head() 36 if (!codec_hevc_use_fbc(sess->pixfmt_cap, is_10bit)) { in codec_hevc_setup_decode_head() 43 sess->pixfmt_cap, is_10bit)) in codec_hevc_setup_decode_head() 56 static void codec_hevc_setup_buffers_gxbb(struct amvdec_session *sess, in codec_hevc_setup_buffers_gxbb() argument 60 struct amvdec_core *core = sess->core; in codec_hevc_setup_buffers_gxbb() 62 u32 buf_num = v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx); in codec_hevc_setup_buffers_gxbb() 71 v4l2_m2m_for_each_dst_buf(sess->m2m_ctx, buf) { in codec_hevc_setup_buffers_gxbb() [all …]
|
D | esparser.c | 235 static u32 esparser_vififo_get_free_space(struct amvdec_session *sess) in esparser_vififo_get_free_space() argument 238 struct amvdec_ops *vdec_ops = sess->fmt_out->vdec_ops; in esparser_vififo_get_free_space() 239 struct amvdec_core *core = sess->core; in esparser_vififo_get_free_space() 241 vififo_usage = vdec_ops->vififo_level(sess); in esparser_vififo_get_free_space() 245 if (vififo_usage > sess->vififo_size) { in esparser_vififo_get_free_space() 246 dev_warn(sess->core->dev, in esparser_vififo_get_free_space() 248 vififo_usage, sess->vififo_size); in esparser_vififo_get_free_space() 252 return sess->vififo_size - vififo_usage; in esparser_vififo_get_free_space() 275 static u32 esparser_get_offset(struct amvdec_session *sess) in esparser_get_offset() argument 277 struct amvdec_core *core = sess->core; in esparser_get_offset() [all …]
|
D | vdec_1.c | 26 vdec_1_load_firmware(struct amvdec_session *sess, const char *fwname) in vdec_1_load_firmware() argument 29 struct amvdec_core *core = sess->core; in vdec_1_load_firmware() 31 struct amvdec_codec_ops *codec_ops = sess->fmt_out->codec_ops; in vdec_1_load_firmware() 75 ret = codec_ops->load_extended_firmware(sess, in vdec_1_load_firmware() 86 static int vdec_1_stbuf_power_up(struct amvdec_session *sess) in vdec_1_stbuf_power_up() argument 88 struct amvdec_core *core = sess->core; in vdec_1_stbuf_power_up() 94 amvdec_write_dos(core, VLD_MEM_VIFIFO_START_PTR, sess->vififo_paddr); in vdec_1_stbuf_power_up() 95 amvdec_write_dos(core, VLD_MEM_VIFIFO_CURR_PTR, sess->vififo_paddr); in vdec_1_stbuf_power_up() 97 sess->vififo_paddr + sess->vififo_size - 8); in vdec_1_stbuf_power_up() 103 amvdec_write_dos(core, VLD_MEM_VIFIFO_WP, sess->vififo_paddr); in vdec_1_stbuf_power_up() [all …]
|
D | vdec_hevc.c | 26 static int vdec_hevc_load_firmware(struct amvdec_session *sess, in vdec_hevc_load_firmware() argument 29 struct amvdec_core *core = sess->core; in vdec_hevc_load_firmware() 80 static void vdec_hevc_stbuf_init(struct amvdec_session *sess) in vdec_hevc_stbuf_init() argument 82 struct amvdec_core *core = sess->core; in vdec_hevc_stbuf_init() 86 amvdec_write_dos(core, HEVC_STREAM_START_ADDR, sess->vififo_paddr); in vdec_hevc_stbuf_init() 88 sess->vififo_paddr + sess->vififo_size); in vdec_hevc_stbuf_init() 89 amvdec_write_dos(core, HEVC_STREAM_RD_PTR, sess->vififo_paddr); in vdec_hevc_stbuf_init() 90 amvdec_write_dos(core, HEVC_STREAM_WR_PTR, sess->vififo_paddr); in vdec_hevc_stbuf_init() 94 static void vdec_hevc_conf_esparser(struct amvdec_session *sess) in vdec_hevc_conf_esparser() argument 96 struct amvdec_core *core = sess->core; in vdec_hevc_conf_esparser() [all …]
|
D | codec_h264.c | 166 static int codec_h264_start(struct amvdec_session *sess) in codec_h264_start() argument 169 struct amvdec_core *core = sess->core; in codec_h264_start() 170 struct codec_h264 *h264 = sess->priv; in codec_h264_start() 203 static int codec_h264_stop(struct amvdec_session *sess) in codec_h264_stop() argument 205 struct codec_h264 *h264 = sess->priv; in codec_h264_stop() 206 struct amvdec_core *core = sess->core; in codec_h264_stop() 227 static int codec_h264_load_extended_firmware(struct amvdec_session *sess, in codec_h264_load_extended_firmware() argument 231 struct amvdec_core *core = sess->core; in codec_h264_load_extended_firmware() 249 sess->priv = h264; in codec_h264_load_extended_firmware() 262 static void codec_h264_set_par(struct amvdec_session *sess) in codec_h264_set_par() argument [all …]
|
D | codec_mpeg12.c | 63 static int codec_mpeg12_start(struct amvdec_session *sess) in codec_mpeg12_start() argument 65 struct amvdec_core *core = sess->core; in codec_mpeg12_start() 83 ret = amvdec_set_canvases(sess, (u32[]){ AV_SCRATCH_0, 0 }, in codec_mpeg12_start() 98 amvdec_write_dos(core, MREG_CMD, (sess->width << 16) | sess->height); in codec_mpeg12_start() 103 sess->keyframe_found = 1; in codec_mpeg12_start() 104 sess->priv = mpeg12; in codec_mpeg12_start() 117 static int codec_mpeg12_stop(struct amvdec_session *sess) in codec_mpeg12_stop() argument 119 struct codec_mpeg12 *mpeg12 = sess->priv; in codec_mpeg12_stop() 120 struct amvdec_core *core = sess->core; in codec_mpeg12_stop() 130 static void codec_mpeg12_update_dar(struct amvdec_session *sess) in codec_mpeg12_update_dar() argument [all …]
|
D | vdec.h | 107 int (*start)(struct amvdec_session *sess); 108 int (*stop)(struct amvdec_session *sess); 109 void (*conf_esparser)(struct amvdec_session *sess); 110 u32 (*vififo_level)(struct amvdec_session *sess); 132 int (*start)(struct amvdec_session *sess); 133 int (*stop)(struct amvdec_session *sess); 134 int (*load_extended_firmware)(struct amvdec_session *sess, 136 u32 (*num_pending_bufs)(struct amvdec_session *sess); 139 void (*drain)(struct amvdec_session *sess); 140 void (*resume)(struct amvdec_session *sess); [all …]
|
D | codec_vp9.c | 664 static void codec_vp9_flush_output(struct amvdec_session *sess) in codec_vp9_flush_output() argument 666 struct codec_vp9 *vp9 = sess->priv; in codec_vp9_flush_output() 673 amvdec_dst_buf_done(sess, tmp->vbuf, in codec_vp9_flush_output() 676 v4l2_m2m_buf_queue(sess->m2m_ctx, tmp->vbuf); in codec_vp9_flush_output() 687 static u32 codec_vp9_num_pending_bufs(struct amvdec_session *sess) in codec_vp9_num_pending_bufs() argument 689 struct codec_vp9 *vp9 = sess->priv; in codec_vp9_num_pending_bufs() 712 static void codec_vp9_setup_workspace(struct amvdec_session *sess, in codec_vp9_setup_workspace() argument 715 struct amvdec_core *core = sess->core; in codec_vp9_setup_workspace() 742 if (codec_hevc_use_mmu(revision, sess->pixfmt_cap, vp9->is_10bit)) { in codec_vp9_setup_workspace() 757 static int codec_vp9_start(struct amvdec_session *sess) in codec_vp9_start() argument [all …]
|
D | vdec_helpers.h | 19 int amvdec_set_canvases(struct amvdec_session *sess, 42 void amvdec_dst_buf_done_idx(struct amvdec_session *sess, u32 buf_idx, 44 void amvdec_dst_buf_done(struct amvdec_session *sess, 46 void amvdec_dst_buf_done_offset(struct amvdec_session *sess, 59 int amvdec_add_ts(struct amvdec_session *sess, u64 ts, 61 void amvdec_remove_ts(struct amvdec_session *sess, u64 ts); 70 void amvdec_set_par_from_dar(struct amvdec_session *sess, 81 void amvdec_src_change(struct amvdec_session *sess, u32 width, 89 void amvdec_abort(struct amvdec_session *sess);
|
/drivers/target/tcm_fc/ |
D | tfc_sess.c | 162 struct ft_sess *sess; in ft_sess_get() local 173 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_get() 174 if (sess->port_id == port_id) { in ft_sess_get() 175 kref_get(&sess->kref); in ft_sess_get() 178 port_id, sess); in ft_sess_get() 179 return sess; in ft_sess_get() 192 struct ft_sess *sess = p; in ft_sess_alloc_cb() local 193 struct ft_tport *tport = sess->tport; in ft_sess_alloc_cb() 194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb() 196 TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess); in ft_sess_alloc_cb() [all …]
|
/drivers/block/rnbd/ |
D | rnbd-clt.c | 36 static inline bool rnbd_clt_get_sess(struct rnbd_clt_session *sess) in rnbd_clt_get_sess() argument 38 return refcount_inc_not_zero(&sess->refcount); in rnbd_clt_get_sess() 41 static void free_sess(struct rnbd_clt_session *sess); 43 static void rnbd_clt_put_sess(struct rnbd_clt_session *sess) in rnbd_clt_put_sess() argument 47 if (refcount_dec_and_test(&sess->refcount)) in rnbd_clt_put_sess() 48 free_sess(sess); in rnbd_clt_put_sess() 61 rnbd_clt_put_sess(dev->sess); in rnbd_clt_put_dev() 161 rnbd_get_cpu_qlist(struct rnbd_clt_session *sess, int cpu) in rnbd_get_cpu_qlist() argument 166 bit = find_next_bit(sess->cpu_queues_bm, nr_cpu_ids, cpu); in rnbd_get_cpu_qlist() 168 return per_cpu_ptr(sess->cpu_queues, bit); in rnbd_get_cpu_qlist() [all …]
|
/drivers/target/iscsi/ |
D | iscsi_target_erl2.c | 41 conn->sess->sess_ops->MaxBurstLength) { in iscsit_create_conn_recovery_datain_values() 48 (conn->sess->sess_ops->MaxBurstLength - in iscsit_create_conn_recovery_datain_values() 66 if ((write_data_done + conn->sess->sess_ops->MaxBurstLength) <= in iscsit_create_conn_recovery_dataout_values() 68 write_data_done += conn->sess->sess_ops->MaxBurstLength; in iscsit_create_conn_recovery_dataout_values() 77 struct iscsit_session *sess, in iscsit_attach_active_connection_recovery_entry() argument 80 spin_lock(&sess->cr_a_lock); in iscsit_attach_active_connection_recovery_entry() 81 list_add_tail(&cr->cr_list, &sess->cr_active_list); in iscsit_attach_active_connection_recovery_entry() 82 spin_unlock(&sess->cr_a_lock); in iscsit_attach_active_connection_recovery_entry() 88 struct iscsit_session *sess, in iscsit_attach_inactive_connection_recovery_entry() argument 91 spin_lock(&sess->cr_i_lock); in iscsit_attach_inactive_connection_recovery_entry() [all …]
|
D | iscsi_target_login.c | 136 struct iscsit_session *sess = NULL, *sess_p = NULL; in iscsi_check_for_session_reinstatement() local 165 if (!memcmp(sess_p->isid, conn->sess->isid, 6) && in iscsi_check_for_session_reinstatement() 175 sess = sess_p; in iscsi_check_for_session_reinstatement() 184 if (!sess) in iscsi_check_for_session_reinstatement() 189 "Discovery" : "Normal", sess->sid, in iscsi_check_for_session_reinstatement() 190 sess->sess_ops->InitiatorName); in iscsi_check_for_session_reinstatement() 192 spin_lock_bh(&sess->conn_lock); in iscsi_check_for_session_reinstatement() 193 if (sess->session_state == TARG_SESS_STATE_FAILED) { in iscsi_check_for_session_reinstatement() 194 spin_unlock_bh(&sess->conn_lock); in iscsi_check_for_session_reinstatement() 195 iscsit_dec_session_usage_count(sess); in iscsi_check_for_session_reinstatement() [all …]
|
D | iscsi_target_erl0.c | 42 conn->sess->sess_ops->FirstBurstLength); in iscsit_set_dataout_sequence_values() 46 if (!conn->sess->sess_ops->DataSequenceInOrder) in iscsit_set_dataout_sequence_values() 52 conn->sess->sess_ops->MaxBurstLength) ? in iscsit_set_dataout_sequence_values() 54 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values() 58 conn->sess->sess_ops->MaxBurstLength) >= in iscsit_set_dataout_sequence_values() 61 conn->sess->sess_ops->MaxBurstLength); in iscsit_set_dataout_sequence_values() 85 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_within_command_recovery_check() 103 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_dataout_within_command_recovery_check() 153 if (first_burst_len > conn->sess->sess_ops->FirstBurstLength) { in iscsit_dataout_check_unsolicited_sequence() 156 first_burst_len, conn->sess->sess_ops->FirstBurstLength); in iscsit_dataout_check_unsolicited_sequence() [all …]
|
D | iscsi_target_util.c | 158 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd() 241 static inline int iscsit_check_received_cmdsn(struct iscsit_session *sess, u32 cmdsn) in iscsit_check_received_cmdsn() argument 252 max_cmdsn = atomic_read(&sess->max_cmd_sn); in iscsit_check_received_cmdsn() 258 } else if (cmdsn == sess->exp_cmd_sn) { in iscsit_check_received_cmdsn() 259 sess->exp_cmd_sn++; in iscsit_check_received_cmdsn() 262 sess->exp_cmd_sn); in iscsit_check_received_cmdsn() 265 } else if (iscsi_sna_gt(cmdsn, sess->exp_cmd_sn)) { in iscsit_check_received_cmdsn() 268 cmdsn, sess->exp_cmd_sn); in iscsit_check_received_cmdsn() 274 sess->exp_cmd_sn); in iscsit_check_received_cmdsn() 292 mutex_lock(&conn->sess->cmdsn_mutex); in iscsit_sequence_cmd() [all …]
|
D | iscsi_target_erl1.c | 48 if (conn->sess->sess_ops->RDMAExtensions) in iscsit_dump_data_payload() 182 conn->sess->sess_ops->MaxBurstLength) { in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 189 (conn->sess->sess_ops->MaxBurstLength - in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 198 if (!conn->sess->sess_ops->DataPDUInOrder) { in iscsit_create_recovery_datain_values_datasequenceinorder_yes() 299 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_create_recovery_datain_values_datasequenceinorder_no() 362 (conn->sess->sess_ops->DataPDUInOrder) ? "Yes" : "No"); in iscsit_create_recovery_datain_values_datasequenceinorder_no() 594 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_dataout_datapduinorder_no_fbit() 668 if (conn->sess->sess_ops->DataSequenceInOrder) { in iscsit_recalculate_dataout_values() 671 if (conn->sess->sess_ops->DataPDUInOrder) { in iscsit_recalculate_dataout_values() 718 if (conn->sess->sess_ops->DataPDUInOrder) in iscsit_recalculate_dataout_values() [all …]
|
D | iscsi_target.c | 966 if (conn->sess->sess_ops->RDMAExtensions) in iscsit_ack_from_expstatsn() 1012 atomic_long_inc(&conn->sess->cmd_pdus); in iscsit_setup_scsi_cmd() 1070 if (payload_length && !conn->sess->sess_ops->ImmediateData) { in iscsit_setup_scsi_cmd() 1102 if (payload_length > conn->sess->sess_ops->FirstBurstLength) { in iscsit_setup_scsi_cmd() 1105 payload_length, conn->sess->sess_ops->FirstBurstLength); in iscsit_setup_scsi_cmd() 1164 conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt; in iscsit_setup_scsi_cmd() 1166 cmd->targ_xfer_tag = session_get_next_ttt(conn->sess); in iscsit_setup_scsi_cmd() 1173 if (!conn->sess->sess_ops->RDMAExtensions && in iscsit_setup_scsi_cmd() 1192 conn->sess->se_sess, be32_to_cpu(hdr->data_length), in iscsit_setup_scsi_cmd() 1496 atomic_long_add(payload_length, &conn->sess->rx_data_octets); in __iscsit_check_dataout_hdr() [all …]
|
D | iscsi_target_device.c | 20 void iscsit_determine_maxcmdsn(struct iscsit_session *sess) in iscsit_determine_maxcmdsn() argument 30 if (sess->sess_ops->SessionType) in iscsit_determine_maxcmdsn() 33 se_nacl = sess->se_sess->se_node_acl; in iscsit_determine_maxcmdsn() 41 sess->cmdsn_window = se_nacl->queue_depth; in iscsit_determine_maxcmdsn() 42 atomic_add(se_nacl->queue_depth - 1, &sess->max_cmd_sn); in iscsit_determine_maxcmdsn() 45 void iscsit_increment_maxcmdsn(struct iscsit_cmd *cmd, struct iscsit_session *sess) in iscsit_increment_maxcmdsn() argument 54 max_cmd_sn = atomic_inc_return(&sess->max_cmd_sn); in iscsit_increment_maxcmdsn()
|
D | iscsi_target_tmr.c | 44 return (iscsi_sna_gte(be32_to_cpu(hdr->refcmdsn), conn->sess->exp_cmd_sn) && in iscsit_tmr_abort_task() 45 iscsi_sna_lte(be32_to_cpu(hdr->refcmdsn), (u32) atomic_read(&conn->sess->max_cmd_sn))) ? in iscsit_tmr_abort_task() 70 struct iscsit_session *sess = conn->sess; in iscsit_tmr_task_warm_reset() local 71 struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); in iscsit_tmr_task_warm_reset() 76 sess->se_sess->se_node_acl->initiatorname); in iscsit_tmr_task_warm_reset() 90 struct iscsit_session *sess = conn->sess; in iscsit_tmr_task_cold_reset() local 91 struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); in iscsit_tmr_task_cold_reset() 96 sess->se_sess->se_node_acl->initiatorname); in iscsit_tmr_task_cold_reset() 121 if (conn->sess->sess_ops->ErrorRecoveryLevel != 2) { in iscsit_tmr_task_reassign() 127 ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt); in iscsit_tmr_task_reassign() [all …]
|
/drivers/tee/amdtee/ |
D | core.c | 51 static void release_session(struct amdtee_session *sess) in release_session() argument 58 if (!test_bit(i, sess->sess_mask)) in release_session() 61 handle_close_session(sess->ta_handle, sess->session_info[i]); in release_session() 62 handle_unload_ta(sess->ta_handle); in release_session() 65 kfree(sess); in release_session() 76 struct amdtee_session *sess; in amdtee_release() local 78 sess = list_first_entry_or_null(&ctxdata->sess_list, in amdtee_release() 82 if (!sess) in amdtee_release() 85 list_del(&sess->list_node); in amdtee_release() 86 release_session(sess); in amdtee_release() [all …]
|
/drivers/target/sbp/ |
D | sbp_target.c | 81 struct sbp_session *sess, *found = NULL; in sbp_session_find_by_guid() local 85 sess = se_sess->fabric_sess_ptr; in sbp_session_find_by_guid() 86 if (sess->guid == guid) in sbp_session_find_by_guid() 87 found = sess; in sbp_session_find_by_guid() 115 struct sbp_session *sess; in sbp_login_count_all_by_lun() local 121 sess = se_sess->fabric_sess_ptr; in sbp_login_count_all_by_lun() 123 spin_lock_bh(&sess->lock); in sbp_login_count_all_by_lun() 124 list_for_each_entry(login, &sess->login_list, link) { in sbp_login_count_all_by_lun() 131 spin_unlock_bh(&sess->lock); in sbp_login_count_all_by_lun() 142 struct sbp_session *sess; in sbp_login_find_by_id() local [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_target.c | 105 static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun, 121 void qlt_unreg_sess(struct fc_port *sess); 707 struct fc_port *sess = fcport; in qlt_fc_port_added() local 724 if (!sess->se_sess) { in qlt_fc_port_added() 728 sess = qlt_create_sess(vha, fcport, false); in qlt_fc_port_added() 738 if (!kref_get_unless_zero(&sess->sess_kref)) { in qlt_fc_port_added() 741 __func__, sess->port_name); in qlt_fc_port_added() 749 sess->local ? "local " : "", sess->port_name, sess->loop_id); in qlt_fc_port_added() 752 "Reappeared sess %p\n", sess); in qlt_fc_port_added() 754 ha->tgt.tgt_ops->update_sess(sess, fcport->d_id, in qlt_fc_port_added() [all …]
|
D | tcm_qla2xxx.c | 269 spin_lock_irqsave(&cmd->sess->sess_cmd_lock, flags); in tcm_qla2xxx_complete_free() 271 spin_unlock_irqrestore(&cmd->sess->sess_cmd_lock, flags); in tcm_qla2xxx_complete_free() 276 static struct qla_tgt_cmd *tcm_qla2xxx_get_cmd(struct fc_port *sess) in tcm_qla2xxx_get_cmd() argument 278 struct se_session *se_sess = sess->se_sess; in tcm_qla2xxx_get_cmd() 296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd() 354 struct fc_port *sess = container_of(kref, in tcm_qla2xxx_release_session() local 357 qlt_unreg_sess(sess); in tcm_qla2xxx_release_session() 360 static void tcm_qla2xxx_put_sess(struct fc_port *sess) in tcm_qla2xxx_put_sess() argument 362 if (!sess) in tcm_qla2xxx_put_sess() 365 kref_put(&sess->sess_kref, tcm_qla2xxx_release_session); in tcm_qla2xxx_put_sess() [all …]
|