Lines Matching refs:qla_tgt
112 static void qlt_clear_tgt_db(struct qla_tgt *tgt);
227 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_queue_unknown_atio()
264 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_try_to_dequeue_unknown_atios()
706 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_fc_port_added()
950 struct qla_tgt *tgt = sess->tgt; in qlt_free_session_done()
1224 atomic_inc(&vha->vha_tgt.qla_tgt->tgt_global_resets_count); in qlt_reset()
1226 qlt_clear_tgt_db(vha->vha_tgt.qla_tgt); in qlt_reset()
1260 struct qla_tgt *tgt = sess->tgt; in qlt_schedule_sess_for_deletion()
1317 static void qlt_clear_tgt_db(struct qla_tgt *tgt) in qlt_clear_tgt_db()
1390 if (vha->vha_tgt.qla_tgt->tgt_stop) in qlt_create_sess()
1402 sess->tgt = vha->vha_tgt.qla_tgt; in qlt_create_sess()
1436 vha->vha_tgt.qla_tgt->sess_count++; in qlt_create_sess()
1444 sess, sess->se_sess, vha->vha_tgt.qla_tgt, in qlt_create_sess()
1445 vha->vha_tgt.qla_tgt->sess_count); in qlt_create_sess()
1464 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_fc_port_deleted()
1501 static inline int test_tgt_sess_count(struct qla_tgt *tgt) in test_tgt_sess_count()
1521 int qlt_stop_phase1(struct qla_tgt *tgt) in qlt_stop_phase1()
1579 void qlt_stop_phase2(struct qla_tgt *tgt) in qlt_stop_phase2()
1618 static void qlt_release(struct qla_tgt *tgt) in qlt_release()
1646 list_del(&vha->vha_tgt.qla_tgt->tgt_list_entry); in qlt_release()
1660 vha->vha_tgt.qla_tgt = NULL; in qlt_release()
1669 static int qlt_sched_sess_work(struct qla_tgt *tgt, int type, in qlt_sched_sess_work()
1726 if (vha->vha_tgt.qla_tgt != NULL) in qlt_send_notify_ack()
1727 vha->vha_tgt.qla_tgt->notify_ack_expected++; in qlt_send_notify_ack()
1841 vha->vha_tgt.qla_tgt->abts_resp_expected++; in qlt_build_abts_resp_iocb()
1916 vha->vha_tgt.qla_tgt->abts_resp_expected++; in qlt_24xx_send_abts_resp()
2043 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_find_qphint()
2116 struct qla_qpair_hint *h = &vha->vha_tgt.qla_tgt->qphints[0]; in __qlt_24xx_handle_abts()
3415 struct qla_tgt *tgt = cmd->tgt; in qlt_rdy_to_xfer()
3808 struct qla_tgt *tgt = cmd->tgt; in qlt_abort_cmd()
4239 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_clr_qp_table()
4264 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_assign_qpair()
4353 cmd->tgt = vha->vha_tgt.qla_tgt; in qlt_get_tag()
4378 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_handle_cmd_for_atio()
4457 struct qla_qpair_hint *h = &vha->vha_tgt.qla_tgt->qphints[0]; in qlt_issue_task_mgmt()
4597 return qlt_sched_sess_work(vha->vha_tgt.qla_tgt, in qlt_abort_task()
4952 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_24xx_handle_els()
5212 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_24xx_handle_els()
5279 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_handle_imm_notify()
5465 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_alloc_qfull_cmd()
5518 cmd->tgt = vha->vha_tgt.qla_tgt; in qlt_alloc_qfull_cmd()
5654 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_24xx_atio_pkt()
5829 vha->vha_tgt.qla_tgt->abts_resp_expected--; in qlt_handle_abts_completion()
5862 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_response_pkt()
6018 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_async_event()
6224 atomic_read(&vha->vha_tgt.qla_tgt->tgt_global_resets_count); in qlt_make_local_sess()
6253 atomic_read(&vha->vha_tgt.qla_tgt->tgt_global_resets_count)) { in qlt_make_local_sess()
6259 qla_tgt->tgt_global_resets_count)); in qlt_make_local_sess()
6270 static void qlt_abort_work(struct qla_tgt *tgt, in qlt_abort_work()
6333 struct qla_tgt *tgt = container_of(work, struct qla_tgt, sess_work); in qlt_sess_work_fn()
6372 struct qla_tgt *tgt; in qlt_add_target()
6388 BUG_ON(base_vha->vha_tgt.qla_tgt != NULL); in qlt_add_target()
6390 tgt = kzalloc(sizeof(struct qla_tgt), GFP_KERNEL); in qlt_add_target()
6447 base_vha->vha_tgt.qla_tgt = tgt; in qlt_add_target()
6468 if (!vha->vha_tgt.qla_tgt) in qlt_remove_target()
6472 qlt_release(vha->vha_tgt.qla_tgt); in qlt_remove_target()
6481 qlt_release(vha->vha_tgt.qla_tgt); in qlt_remove_target()
6519 struct qla_tgt *tgt; in qlt_lport_register()
6650 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_enable_vha()
6695 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qlt_disable_vha()
6730 vha->vha_tgt.qla_tgt = NULL; in qlt_vport_create()