/drivers/scsi/qla2xxx/ |
D | qla_inline.h | 156 struct qla_qpair *qpair, fc_port_t *fcport) in qla2xxx_init_sp() argument 162 sp->qpair = qpair; in qla2xxx_init_sp() 168 qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair, in qla2xxx_get_qpair_sp() argument 174 QLA_QPAIR_MARK_BUSY(qpair, bail); in qla2xxx_get_qpair_sp() 178 sp = mempool_alloc(qpair->srb_mempool, flag); in qla2xxx_get_qpair_sp() 180 qla2xxx_init_sp(sp, vha, qpair, fcport); in qla2xxx_get_qpair_sp() 182 QLA_QPAIR_MARK_NOT_BUSY(qpair); in qla2xxx_get_qpair_sp() 187 qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp) in qla2xxx_rel_qpair_sp() argument 189 sp->qpair = NULL; in qla2xxx_rel_qpair_sp() 190 mempool_free(sp, qpair->srb_mempool); in qla2xxx_rel_qpair_sp() [all …]
|
D | qla_target.c | 122 static void qlt_send_notify_ack(struct qla_qpair *qpair, 135 static int qlt_check_reserve_free_req(struct qla_qpair *qpair, uint32_t); 1589 if (h->qpair) { in qlt_release() 1590 spin_lock_irqsave(h->qpair->qp_lock_ptr, flags); in qlt_release() 1592 spin_unlock_irqrestore(h->qpair->qp_lock_ptr, flags); in qlt_release() 1593 h->qpair = NULL; in qlt_release() 1655 static void qlt_send_notify_ack(struct qla_qpair *qpair, in qlt_send_notify_ack() argument 1660 struct scsi_qla_host *vha = qpair->vha; in qlt_send_notify_ack() 1670 pkt = (request_t *)__qla2x00_alloc_iocbs(qpair, NULL); in qlt_send_notify_ack() 1711 qla2x00_start_iocbs(vha, qpair->req); in qlt_send_notify_ack() [all …]
|
D | qla_dfs.c | 177 struct qla_qpair *qpair = vha->hw->base_qpair; in qla_dfs_tgt_counters_show() local 183 qla_core_sbt_cmd = qpair->tgt_counters.qla_core_sbt_cmd; in qla_dfs_tgt_counters_show() 184 core_qla_que_buf = qpair->tgt_counters.core_qla_que_buf; in qla_dfs_tgt_counters_show() 185 qla_core_ret_ctio = qpair->tgt_counters.qla_core_ret_ctio; in qla_dfs_tgt_counters_show() 186 core_qla_snd_status = qpair->tgt_counters.core_qla_snd_status; in qla_dfs_tgt_counters_show() 187 qla_core_ret_sta_ctio = qpair->tgt_counters.qla_core_ret_sta_ctio; in qla_dfs_tgt_counters_show() 188 core_qla_free_cmd = qpair->tgt_counters.core_qla_free_cmd; in qla_dfs_tgt_counters_show() 189 num_q_full_sent = qpair->tgt_counters.num_q_full_sent; in qla_dfs_tgt_counters_show() 190 num_alloc_iocb_failed = qpair->tgt_counters.num_alloc_iocb_failed; in qla_dfs_tgt_counters_show() 191 num_term_xchg_sent = qpair->tgt_counters.num_term_xchg_sent; in qla_dfs_tgt_counters_show() [all …]
|
D | qla_nvme.c | 85 struct qla_qpair *qpair; in qla_nvme_alloc_queue() local 112 qpair = qla2xxx_create_qpair(vha, 5, vha->vp_idx, true); in qla_nvme_alloc_queue() 113 if (qpair == NULL) { in qla_nvme_alloc_queue() 118 *handle = qpair; in qla_nvme_alloc_queue() 151 qla2xxx_rel_qpair_sp(sp->qpair, sp); in qla_nvme_release_fcp_cmd_kref() 366 struct qla_qpair *qpair = sp->qpair; in qla2x00_start_nvme_mq() local 373 req = qpair->req; in qla2x00_start_nvme_mq() 377 spin_lock_irqsave(&qpair->qp_lock, flags); in qla2x00_start_nvme_mq() 520 spin_unlock_irqrestore(&qpair->qp_lock, flags); in qla2x00_start_nvme_mq() 534 struct qla_qpair *qpair = hw_queue_handle; in qla_nvme_post_cmd() local [all …]
|
D | qla_mid.c | 643 struct qla_qpair *qpair, *tqpair; in qla25xx_delete_queues() local 646 list_for_each_entry_safe(qpair, tqpair, &vha->qp_list, in qla25xx_delete_queues() 648 qla2xxx_delete_qpair(vha, qpair); in qla25xx_delete_queues() 800 struct qla_qpair *qpair = container_of(work, struct qla_qpair, q_work); in qla_do_work() local 802 struct qla_hw_data *ha = qpair->hw; in qla_do_work() 804 spin_lock_irqsave(&qpair->qp_lock, flags); in qla_do_work() 806 qla24xx_process_response_queue(vha, qpair->rsp); in qla_do_work() 807 spin_unlock_irqrestore(&qpair->qp_lock, flags); in qla_do_work() 814 uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp) in qla25xx_create_rsp_que() argument 850 rsp->msix = qpair->msix; in qla25xx_create_rsp_que() [all …]
|
D | qla_init.c | 59 req = sp->qpair->req; in qla2x00_sp_timeout() 100 struct qla_qpair *qpair = sp->qpair; in qla24xx_abort_iocb_timeout() local 114 spin_lock_irqsave(qpair->qp_lock_ptr, flags); in qla24xx_abort_iocb_timeout() 115 for (handle = 1; handle < qpair->req->num_outstanding_cmds; handle++) { in qla24xx_abort_iocb_timeout() 116 if (sp->cmd_sp && (qpair->req->outstanding_cmds[handle] == in qla24xx_abort_iocb_timeout() 118 qpair->req->outstanding_cmds[handle] = NULL; in qla24xx_abort_iocb_timeout() 121 if (qpair->req->outstanding_cmds[handle] == sp) { in qla24xx_abort_iocb_timeout() 122 qpair->req->outstanding_cmds[handle] = NULL; in qla24xx_abort_iocb_timeout() 126 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); in qla24xx_abort_iocb_timeout() 153 sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, in qla24xx_async_abort_cmd() [all …]
|
D | qla_iocb.c | 507 __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, in __qla2x00_marker() argument 512 struct req_que *req = qpair->req; in __qla2x00_marker() 516 mrk = (mrk_entry_t *)__qla2x00_alloc_iocbs(qpair, NULL); in __qla2x00_marker() 547 qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, in qla2x00_marker() argument 553 spin_lock_irqsave(qpair->qp_lock_ptr, flags); in qla2x00_marker() 554 ret = __qla2x00_marker(vha, qpair, loop_id, lun, type); in qla2x00_marker() 555 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); in qla2x00_marker() 1922 struct qla_qpair *qpair = sp->qpair; in qla2xxx_start_scsi_mq() local 1925 spin_lock_irqsave(&qpair->qp_lock, flags); in qla2xxx_start_scsi_mq() 1928 req = qpair->req; in qla2xxx_start_scsi_mq() [all …]
|
D | qla_os.c | 361 struct qla_qpair *qpair); 369 rsp->qpair = ha->base_qpair; in qla_init_base_qpair() 382 qla_cpu_update(rsp->qpair, raw_smp_processor_id()); in qla_init_base_qpair() 820 struct qla_qpair *qpair = NULL; in qla2xxx_queuecommand() local 824 qpair = ha->queue_pair_map[hwq]; in qla2xxx_queuecommand() 826 if (qpair) in qla2xxx_queuecommand() 827 return qla2xxx_mqueuecommand(host, cmd, qpair); in qla2xxx_queuecommand() 925 struct qla_qpair *qpair) in qla2xxx_mqueuecommand() argument 974 qla2xxx_init_sp(sp, vha, qpair, fcport); in qla2xxx_mqueuecommand() 1002 qla2xxx_rel_qpair_sp(sp->qpair, sp); in qla2xxx_mqueuecommand() [all …]
|
D | qla_attr.c | 2788 struct qla_qpair *qpair; in qla24xx_vport_create() local 2888 qpair = qla2xxx_create_qpair(vha, qos, vha->vp_idx, true); in qla24xx_vport_create() 2889 if (!qpair) in qla24xx_vport_create() 2896 qpair->id, qos, vha->vp_idx); in qla24xx_vport_create() 2899 qpair->id, qos, vha->vp_idx); in qla24xx_vport_create() 2900 req = qpair->req; in qla24xx_vport_create() 2901 vha->qpair = qpair; in qla24xx_vport_create() 2965 if (vha->qpair && vha->qpair->vp_idx == vha->vp_idx) { in qla24xx_vport_delete() 2966 if (qla2xxx_delete_qpair(vha, vha->qpair) != QLA_SUCCESS) in qla24xx_vport_delete()
|
D | qla_target.h | 769 struct qla_qpair *qpair; member 859 struct qla_qpair *qpair; member 949 struct qla_qpair *qpair; member
|
D | qla_isr.c | 2987 if (rsp->qpair->cpuid != smp_processor_id()) in qla24xx_process_response_queue() 2988 qla_cpu_update(rsp->qpair, smp_processor_id()); in qla24xx_process_response_queue() 3391 struct qla_qpair *qpair; in qla2xxx_msix_rsp_q() local 3395 qpair = dev_id; in qla2xxx_msix_rsp_q() 3396 if (!qpair) { in qla2xxx_msix_rsp_q() 3401 ha = qpair->hw; in qla2xxx_msix_rsp_q() 3411 queue_work(ha->wq, &qpair->q_work); in qla2xxx_msix_rsp_q() 3712 int qla25xx_request_irq(struct qla_hw_data *ha, struct qla_qpair *qpair, in qla25xx_request_irq() argument 3720 "qla2xxx%lu_qpair%d", vha->host_no, qpair->id); in qla25xx_request_irq() 3721 ret = request_irq(msix->vector, intr->handler, 0, msix->name, qpair); in qla25xx_request_irq() [all …]
|
D | tcm_qla2xxx.c | 264 cmd->qpair->tgt_counters.qla_core_ret_sta_ctio++; in tcm_qla2xxx_complete_free() 278 cmd->qpair->tgt_counters.core_qla_free_cmd++; in tcm_qla2xxx_free_cmd() 460 cmd->qpair->tgt_counters.qla_core_sbt_cmd++; in tcm_qla2xxx_handle_cmd() 482 cmd->qpair->tgt_counters.qla_core_ret_ctio++; in tcm_qla2xxx_handle_data_work()
|
D | qla_mbx.c | 1478 if (vha->flags.qpairs_available && sp->qpair) in qla2x00_abort_command() 1479 req = sp->qpair->req; in qla2x00_abort_command() 2373 if (vha->vp_idx && vha->qpair) in qla24xx_login_fabric() 2374 req = vha->qpair->req; in qla24xx_login_fabric() 3115 struct qla_qpair *qpair = sp->qpair; in qla24xx_abort_command() local 3120 if (vha->flags.qpairs_available && sp->qpair) in qla24xx_abort_command() 3121 req = sp->qpair->req; in qla24xx_abort_command() 3128 spin_lock_irqsave(qpair->qp_lock_ptr, flags); in qla24xx_abort_command() 3133 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); in qla24xx_abort_command() 3203 struct qla_qpair *qpair; in __qla24xx_issue_tmf() local [all …]
|
D | qla_dbg.c | 2779 ql_log_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, in ql_log_qp() argument 2789 if (qpair != NULL) { in ql_log_qp() 2790 const struct pci_dev *pdev = qpair->pdev; in ql_log_qp() 2837 ql_dbg_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, in ql_dbg_qp() argument 2851 if (qpair != NULL) { in ql_dbg_qp() 2852 const struct pci_dev *pdev = qpair->pdev; in ql_dbg_qp()
|
D | qla_def.h | 609 struct qla_qpair *qpair; member 3451 struct qla_qpair *qpair; member 4472 struct qla_qpair *qpair; /* base qpair */ member
|
/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 2415 static void qp_lock(const struct vmci_qp *qpair) in qp_lock() argument 2417 qp_acquire_queue_mutex(qpair->produce_q); in qp_lock() 2424 static void qp_unlock(const struct vmci_qp *qpair) in qp_unlock() argument 2426 qp_release_queue_mutex(qpair->produce_q); in qp_unlock() 2456 static int qp_get_queue_headers(const struct vmci_qp *qpair, in qp_get_queue_headers() argument 2462 result = qp_map_queue_headers(qpair->produce_q, qpair->consume_q); in qp_get_queue_headers() 2464 *produce_q_header = qpair->produce_q->q_header; in qp_get_queue_headers() 2465 *consume_q_header = qpair->consume_q->q_header; in qp_get_queue_headers() 2466 } else if (qpair->produce_q->saved_header && in qp_get_queue_headers() 2467 qpair->consume_q->saved_header) { in qp_get_queue_headers() [all …]
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_virtchnl.c | 255 len = struct_size(vqci, qpair, pairs); in iavf_configure_queues() 267 vqpi = vqci->qpair; in iavf_configure_queues()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_virtchnl_pf.c | 2266 qpi = &qci->qpair[i]; in ice_vc_cfg_qs_msg()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 2126 qpi = &qci->qpair[i]; in i40e_vc_config_queues_msg()
|