Home
last modified time | relevance | path

Searched refs:qpair (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.15/include/linux/
Dvmw_vmci_api.h48 int vmci_qpair_alloc(struct vmci_qp **qpair,
53 int vmci_qpair_detach(struct vmci_qp **qpair);
54 int vmci_qpair_get_produce_indexes(const struct vmci_qp *qpair,
57 int vmci_qpair_get_consume_indexes(const struct vmci_qp *qpair,
60 s64 vmci_qpair_produce_free_space(const struct vmci_qp *qpair);
61 s64 vmci_qpair_produce_buf_ready(const struct vmci_qp *qpair);
62 s64 vmci_qpair_consume_free_space(const struct vmci_qp *qpair);
63 s64 vmci_qpair_consume_buf_ready(const struct vmci_qp *qpair);
64 ssize_t vmci_qpair_enqueue(struct vmci_qp *qpair,
66 ssize_t vmci_qpair_dequeue(struct vmci_qp *qpair,
[all …]
/Linux-v5.15/drivers/scsi/qla2xxx/
Dqla_inline.h179 struct qla_qpair *qpair, fc_port_t *fcport) in qla2xxx_init_sp() argument
185 sp->qpair = qpair; in qla2xxx_init_sp()
191 qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair, in qla2xxx_get_qpair_sp() argument
197 QLA_QPAIR_MARK_BUSY(qpair, bail); in qla2xxx_get_qpair_sp()
201 sp = mempool_alloc(qpair->srb_mempool, flag); in qla2xxx_get_qpair_sp()
203 qla2xxx_init_sp(sp, vha, qpair, fcport); in qla2xxx_get_qpair_sp()
205 QLA_QPAIR_MARK_NOT_BUSY(qpair); in qla2xxx_get_qpair_sp()
213 qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp) in qla2xxx_rel_qpair_sp() argument
215 sp->qpair = NULL; in qla2xxx_rel_qpair_sp()
218 mempool_free(sp, qpair->srb_mempool); in qla2xxx_rel_qpair_sp()
[all …]
Dqla_target.c120 static void qlt_send_notify_ack(struct qla_qpair *qpair,
133 static int qlt_check_reserve_free_req(struct qla_qpair *qpair, uint32_t);
1649 if (h->qpair) { in qlt_release()
1650 spin_lock_irqsave(h->qpair->qp_lock_ptr, flags); in qlt_release()
1652 spin_unlock_irqrestore(h->qpair->qp_lock_ptr, flags); in qlt_release()
1653 h->qpair = NULL; in qlt_release()
1715 static void qlt_send_notify_ack(struct qla_qpair *qpair, in qlt_send_notify_ack() argument
1720 struct scsi_qla_host *vha = qpair->vha; in qlt_send_notify_ack()
1730 pkt = (request_t *)__qla2x00_alloc_iocbs(qpair, NULL); in qlt_send_notify_ack()
1777 qla2x00_start_iocbs(vha, qpair->req); in qlt_send_notify_ack()
[all …]
Dqla_dfs.c284 struct qla_qpair *qpair = vha->hw->base_qpair; in qla_dfs_tgt_counters_show() local
294 qla_core_sbt_cmd = qpair->tgt_counters.qla_core_sbt_cmd; in qla_dfs_tgt_counters_show()
295 core_qla_que_buf = qpair->tgt_counters.core_qla_que_buf; in qla_dfs_tgt_counters_show()
296 qla_core_ret_ctio = qpair->tgt_counters.qla_core_ret_ctio; in qla_dfs_tgt_counters_show()
297 core_qla_snd_status = qpair->tgt_counters.core_qla_snd_status; in qla_dfs_tgt_counters_show()
298 qla_core_ret_sta_ctio = qpair->tgt_counters.qla_core_ret_sta_ctio; in qla_dfs_tgt_counters_show()
299 core_qla_free_cmd = qpair->tgt_counters.core_qla_free_cmd; in qla_dfs_tgt_counters_show()
300 num_q_full_sent = qpair->tgt_counters.num_q_full_sent; in qla_dfs_tgt_counters_show()
301 num_alloc_iocb_failed = qpair->tgt_counters.num_alloc_iocb_failed; in qla_dfs_tgt_counters_show()
302 num_term_xchg_sent = qpair->tgt_counters.num_term_xchg_sent; in qla_dfs_tgt_counters_show()
[all …]
Dqla_nvme.c92 struct qla_qpair *qpair; in qla_nvme_alloc_queue() local
114 qpair = ha->base_qpair; in qla_nvme_alloc_queue()
124 qpair = qla2xxx_create_qpair(vha, 5, vha->vp_idx, true); in qla_nvme_alloc_queue()
125 if (!qpair) { in qla_nvme_alloc_queue()
131 *handle = qpair; in qla_nvme_alloc_queue()
165 qla2xxx_rel_qpair_sp(sp->qpair, sp); in qla_nvme_release_fcp_cmd_kref()
394 struct qla_qpair *qpair = sp->qpair; in qla2x00_start_nvme_mq() local
402 req = qpair->req; in qla2x00_start_nvme_mq()
406 spin_lock_irqsave(&qpair->qp_lock, flags); in qla2x00_start_nvme_mq()
462 qpair->counters.input_bytes += fd->payload_length; in qla2x00_start_nvme_mq()
[all …]
Dqla_iocb.c508 __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, in __qla2x00_marker() argument
513 struct req_que *req = qpair->req; in __qla2x00_marker()
517 mrk = (mrk_entry_t *)__qla2x00_alloc_iocbs(qpair, NULL); in __qla2x00_marker()
548 qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, in qla2x00_marker() argument
554 spin_lock_irqsave(qpair->qp_lock_ptr, flags); in qla2x00_marker()
555 ret = __qla2x00_marker(vha, qpair, loop_id, lun, type); in qla2x00_marker()
556 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); in qla2x00_marker()
598 struct qla_qpair *qpair = sp->qpair; in qla24xx_build_scsi_type_6_iocbs() local
617 qpair->counters.output_bytes += scsi_bufflen(cmd); in qla24xx_build_scsi_type_6_iocbs()
618 qpair->counters.output_requests++; in qla24xx_build_scsi_type_6_iocbs()
[all …]
Dqla_mid.c665 struct qla_qpair *qpair, *tqpair; in qla25xx_delete_queues() local
668 list_for_each_entry_safe(qpair, tqpair, &vha->qp_list, in qla25xx_delete_queues()
670 qla2xxx_delete_qpair(vha, qpair); in qla25xx_delete_queues()
822 struct qla_qpair *qpair = container_of(work, struct qla_qpair, q_work); in qla_do_work() local
823 struct scsi_qla_host *vha = qpair->vha; in qla_do_work()
825 spin_lock_irqsave(&qpair->qp_lock, flags); in qla_do_work()
826 qla24xx_process_response_queue(vha, qpair->rsp); in qla_do_work()
827 spin_unlock_irqrestore(&qpair->qp_lock, flags); in qla_do_work()
834 uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp) in qla25xx_create_rsp_que() argument
870 rsp->msix = qpair->msix; in qla25xx_create_rsp_que()
[all …]
Dqla_init.c100 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()
157 sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, in qla24xx_async_abort_cmd()
165 sp->qpair = cmd_sp->qpair; in qla24xx_async_abort_cmd()
[all …]
Dqla_attr.c2772 struct qla_qpair *qpair; in qla2x00_get_fc_host_stats() local
2813 qpair = vha->hw->queue_pair_map[i]; in qla2x00_get_fc_host_stats()
2814 if (!qpair) in qla2x00_get_fc_host_stats()
2816 ir += qpair->counters.input_requests; in qla2x00_get_fc_host_stats()
2817 or += qpair->counters.output_requests; in qla2x00_get_fc_host_stats()
2818 ib += qpair->counters.input_bytes; in qla2x00_get_fc_host_stats()
2819 ob += qpair->counters.output_bytes; in qla2x00_get_fc_host_stats()
2881 struct qla_qpair *qpair; in qla2x00_reset_host_stats() local
2886 qpair = vha->hw->queue_pair_map[i]; in qla2x00_reset_host_stats()
2887 if (!qpair) in qla2x00_reset_host_stats()
[all …]
Dqla_isr.c2561 sp->qpair->cmd_completion_cnt++; in qla24xx_nvme_iocb_entry()
3188 qla_put_iocbs(sp->qpair, &sp->iores); in qla2x00_status_entry()
3218 sp->qpair->cmd_completion_cnt++; in qla2x00_status_entry()
3608 qla_put_iocbs(sp->qpair, &sp->iores); in qla2x00_error_entry()
3739 rsp_q_in = rsp->qpair->use_shadow_reg ? *rsp->in_ptr : in qla_chk_cont_iocb_avail()
3774 if (rsp->qpair->cpuid != smp_processor_id() || !rsp->qpair->rcv_intr) { in qla24xx_process_response_queue()
3775 rsp->qpair->rcv_intr = 1; in qla24xx_process_response_queue()
3776 qla_cpu_update(rsp->qpair, smp_processor_id()); in qla24xx_process_response_queue()
4232 struct qla_qpair *qpair; in qla2xxx_msix_rsp_q() local
4234 qpair = dev_id; in qla2xxx_msix_rsp_q()
[all …]
Dqla_os.c394 struct qla_qpair *qpair);
402 rsp->qpair = ha->base_qpair; in qla_init_base_qpair()
415 qla_cpu_update(rsp->qpair, raw_smp_processor_id()); in qla_init_base_qpair()
856 struct qla_qpair *qpair = NULL; in qla2xxx_queuecommand() local
860 qpair = ha->queue_pair_map[hwq]; in qla2xxx_queuecommand()
862 if (qpair) in qla2xxx_queuecommand()
863 return qla2xxx_mqueuecommand(host, cmd, qpair); in qla2xxx_queuecommand()
961 struct qla_qpair *qpair) in qla2xxx_mqueuecommand() argument
980 if (!qpair->online) { in qla2xxx_mqueuecommand()
1017 qla2xxx_init_sp(sp, vha, qpair, fcport); in qla2xxx_mqueuecommand()
[all …]
Dqla_target.h784 struct qla_qpair *qpair; member
875 struct qla_qpair *qpair; member
966 struct qla_qpair *qpair; member
Dqla_edif.c2355 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2364 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2373 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2383 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2402 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2415 qla_els_reject_iocb(vha, (*rsp)->qpair, &a); in qla24xx_auth_els()
2428 qla_els_reject_iocb(host, (*rsp)->qpair, &a); in qla24xx_auth_els()
2761 struct req_que *req = sp->qpair->req; in qla28xx_start_scsi_edif()
2762 spinlock_t *lock = sp->qpair->qp_lock_ptr; in qla28xx_start_scsi_edif()
2772 if (qla2x00_marker(vha, sp->qpair, 0, 0, MK_SYNC_ALL) != in qla28xx_start_scsi_edif()
[all …]
Dtcm_qla2xxx.c265 cmd->qpair->tgt_counters.qla_core_ret_sta_ctio++; in tcm_qla2xxx_complete_free()
306 cmd->qpair->tgt_counters.core_qla_free_cmd++; in tcm_qla2xxx_free_cmd()
483 cmd->qpair->tgt_counters.qla_core_sbt_cmd++; in tcm_qla2xxx_handle_cmd()
519 cmd->qpair->tgt_counters.qla_core_ret_ctio++; in tcm_qla2xxx_handle_data_work()
Dqla_mbx.c1525 if (sp->qpair) in qla2x00_abort_command()
1526 req = sp->qpair->req; in qla2x00_abort_command()
2499 if (vha->vp_idx && vha->qpair) in qla24xx_login_fabric()
2500 req = vha->qpair->req; in qla24xx_login_fabric()
3240 struct qla_qpair *qpair = sp->qpair; in qla24xx_abort_command() local
3245 if (sp->qpair) in qla24xx_abort_command()
3246 req = sp->qpair->req; in qla24xx_abort_command()
3253 spin_lock_irqsave(qpair->qp_lock_ptr, flags); in qla24xx_abort_command()
3258 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags); in qla24xx_abort_command()
3334 struct qla_qpair *qpair; in __qla24xx_issue_tmf() local
[all …]
Dqla_dbg.c2706 ql_log_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, in ql_log_qp() argument
2716 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), qpair ? qpair->vha : NULL, id); in ql_log_qp()
2755 ql_dbg_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, in ql_dbg_qp() argument
2770 ql_dbg_prefix(pbuf, ARRAY_SIZE(pbuf), qpair ? qpair->vha : NULL, in ql_dbg_qp()
Dqla_def.h689 struct qla_qpair *qpair; member
3652 struct qla_qpair *qpair; member
4929 struct qla_qpair *qpair; /* base qpair */ member
/Linux-v5.15/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c2427 static void qp_lock(const struct vmci_qp *qpair) in qp_lock() argument
2429 qp_acquire_queue_mutex(qpair->produce_q); in qp_lock()
2436 static void qp_unlock(const struct vmci_qp *qpair) in qp_unlock() argument
2438 qp_release_queue_mutex(qpair->produce_q); in qp_unlock()
2468 static int qp_get_queue_headers(const struct vmci_qp *qpair, in qp_get_queue_headers() argument
2474 result = qp_map_queue_headers(qpair->produce_q, qpair->consume_q); in qp_get_queue_headers()
2476 *produce_q_header = qpair->produce_q->q_header; in qp_get_queue_headers()
2477 *consume_q_header = qpair->consume_q->q_header; in qp_get_queue_headers()
2478 } else if (qpair->produce_q->saved_header && in qp_get_queue_headers()
2479 qpair->consume_q->saved_header) { in qp_get_queue_headers()
[all …]
/Linux-v5.15/net/vmw_vsock/
Dvmci_transport.c545 vmci_transport_queue_pair_alloc(struct vmci_qp **qpair, in vmci_transport_queue_pair_alloc() argument
558 err = vmci_qpair_alloc(qpair, handle, produce_size, in vmci_transport_queue_pair_alloc()
567 err = vmci_qpair_alloc(qpair, handle, produce_size, consume_size, in vmci_transport_queue_pair_alloc()
1133 struct vmci_qp *qpair; in vmci_transport_recv_connecting_server() local
1195 &qpair, in vmci_transport_recv_connecting_server()
1211 vmci_trans(vpending)->qpair = qpair; in vmci_transport_recv_connecting_server()
1310 || vmci_trans(vsk)->qpair in vmci_transport_recv_connecting_client()
1379 struct vmci_qp *qpair; in vmci_transport_recv_connecting_client_negotiate() local
1452 err = vmci_transport_queue_pair_alloc(&qpair, in vmci_transport_recv_connecting_client_negotiate()
1472 vmci_trans(vsk)->qpair = qpair; in vmci_transport_recv_connecting_client_negotiate()
[all …]
Dvmci_transport_notify.c68 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) > in vmci_transport_notify_waiting_write()
98 return vmci_qpair_produce_buf_ready(vmci_trans(vsk)->qpair) > 0; in vmci_transport_notify_waiting_read()
201 vmci_qpair_get_consume_indexes(vmci_trans(vsk)->qpair, &tail, &head); in send_waiting_read()
237 vmci_qpair_get_produce_indexes(vmci_trans(vsk)->qpair, &tail, &head); in send_waiting_write()
464 vmci_qpair_get_consume_indexes(vmci_trans(vsk)->qpair, in vmci_transport_notify_pkt_recv_pre_dequeue()
538 vmci_qpair_get_produce_indexes(vmci_trans(vsk)->qpair, in vmci_transport_notify_pkt_send_pre_enqueue()
Dvmci_transport_notify_qstate.c59 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) > in vmci_transport_notify_waiting_write()
272 vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair); in vmci_transport_notify_pkt_recv_post_dequeue()
319 vmci_qpair_produce_buf_ready(vmci_trans(vsk)->qpair) == written; in vmci_transport_notify_pkt_send_post_enqueue()
Dvmci_transport.h108 struct vmci_qp *qpair; member
/Linux-v5.15/include/linux/avf/
Dvirtchnl.h341 struct virtchnl_queue_pair_info qpair[1]; member
/Linux-v5.15/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c259 len = struct_size(vqci, qpair, pairs); in iavf_configure_queues()
271 vqpi = vqci->qpair; in iavf_configure_queues()
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.c3578 qpi = &qci->qpair[i]; in ice_vc_cfg_qs_msg()

12