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

12

/linux-master/include/linux/
H A 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-master/drivers/scsi/qla2xxx/
H A Dqla_inline.h182 struct qla_qpair *qpair, fc_port_t *fcport)
188 sp->qpair = qpair;
196 qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair, argument
202 QLA_QPAIR_MARK_BUSY(qpair, bail);
206 sp = mempool_alloc(qpair->srb_mempool, flag);
208 qla2xxx_init_sp(sp, vha, qpair, fcport);
210 QLA_QPAIR_MARK_NOT_BUSY(qpair);
218 qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp) argument
220 sp->qpair
181 qla2xxx_init_sp(srb_t *sp, scsi_qla_host_t *vha, struct qla_qpair *qpair, fc_port_t *fcport) argument
231 struct qla_qpair *qpair; local
330 qla_cpu_update(struct qla_qpair *qpair, uint16_t cpuid) argument
343 qla_qpair_to_hint(struct qla_tgt *tgt, struct qla_qpair *qpair) argument
358 qla_83xx_start_iocbs(struct qla_qpair *qpair) argument
578 qla_mapq_nvme_select_qpair(struct qla_hw_data *ha, struct qla_qpair *qpair) argument
590 qla_mapq_init_qp_cpu_map(struct qla_hw_data *ha, struct qla_msix_entry *msix, struct qla_qpair *qpair) argument
[all...]
H A Dqla_target.c113 static void qlt_send_notify_ack(struct qla_qpair *qpair,
126 static int qlt_check_reserve_free_req(struct qla_qpair *qpair, uint32_t);
1637 if (h->qpair) {
1638 spin_lock_irqsave(h->qpair->qp_lock_ptr, flags);
1640 spin_unlock_irqrestore(h->qpair->qp_lock_ptr, flags);
1641 h->qpair = NULL;
1703 static void qlt_send_notify_ack(struct qla_qpair *qpair, argument
1708 struct scsi_qla_host *vha = qpair->vha;
1718 pkt = (request_t *)__qla2x00_alloc_iocbs(qpair, NULL);
1765 qla2x00_start_iocbs(vha, qpair
1778 struct qla_qpair *qpair = mcmd->qpair; local
1856 qlt_24xx_send_abts_resp(struct qla_qpair *qpair, struct abts_recv_from_24xx *abts, uint32_t status, bool ids_reversed) argument
1929 qlt_24xx_retry_term_exchange(struct scsi_qla_host *vha, struct qla_qpair *qpair, response_t *pkt, struct qla_tgt_mgmt_cmd *mcmd) argument
2240 qlt_24xx_send_task_mgmt_ctio(struct qla_qpair *qpair, struct qla_tgt_mgmt_cmd *mcmd, uint32_t resp_code) argument
2297 qlt_send_resp_ctio(struct qla_qpair *qpair, struct qla_tgt_cmd *cmd, uint8_t scsi_status, uint8_t sense_key, uint8_t asc, uint8_t ascq) argument
2367 struct qla_qpair *qpair = mcmd->qpair; local
2493 struct qla_qpair *qpair; local
2517 qlt_check_reserve_free_req(struct qla_qpair *qpair, uint32_t req_cnt) argument
2558 qlt_make_handle(struct qla_qpair *qpair) argument
2594 qlt_24xx_build_ctio_pkt(struct qla_qpair *qpair, struct qla_tgt_prm *prm) argument
2782 struct qla_qpair *qpair = cmd->qpair; local
3044 qlt_build_ctio_crc2_pkt(struct qla_qpair *qpair, struct qla_tgt_prm *prm) argument
3259 struct qla_qpair *qpair = cmd->qpair; local
3419 struct qla_qpair *qpair = cmd->qpair; local
3497 qlt_handle_dif_error(struct qla_qpair *qpair, struct qla_tgt_cmd *cmd, struct ctio_crc_from_fw *sts) argument
3661 __qlt_send_term_exchange(struct qla_qpair *qpair, struct qla_tgt_cmd *cmd, struct atio_from_isp *atio) argument
3721 qlt_send_term_exchange(struct qla_qpair *qpair, struct qla_tgt_cmd *cmd, struct atio_from_isp *atio, int ha_locked, int ul_abort) argument
3873 qlt_term_ctio_exchange(struct qla_qpair *qpair, void *ctio, struct qla_tgt_cmd *cmd, uint32_t status) argument
3965 struct qla_qpair *qpair = rsp->qpair; local
4164 struct qla_qpair *qpair = cmd->qpair; local
4263 struct qla_qpair *qpair, *qp; local
5388 __qlt_send_busy(struct qla_qpair *qpair, struct atio_from_isp *atio, uint16_t status) argument
5543 qlt_free_qfull_cmds(struct qla_qpair *qpair) argument
5618 qlt_send_busy(struct qla_qpair *qpair, struct atio_from_isp *atio, uint16_t status) argument
5630 qlt_chk_qfull_thresh_hold(struct scsi_qla_host *vha, struct qla_qpair *qpair, struct atio_from_isp *atio, uint8_t ha_locked) argument
5768 qlt_chk_unresolv_exchg(struct scsi_qla_host *vha, struct qla_qpair *qpair, struct abts_resp_from_24xx_fw *entry) argument
6426 struct qla_qpair *qpair = ha->queue_pair_map[i]; local
[all...]
H A Dqla_nvme.c117 struct qla_qpair *qpair; local
137 /* Use base qpair if max_qpairs is 0 */
139 qpair = ha->base_qpair;
144 "Returning existing qpair of %p for idx=%x\n",
149 qpair = qla2xxx_create_qpair(vha, 5, vha->vp_idx, true);
150 if (!qpair) {
152 "Failed to allocate qpair\n");
157 *handle = qpair;
191 qla2xxx_rel_qpair_sp(sp->qpair, sp);
565 struct qla_qpair *qpair local
770 struct qla_qpair *qpair = hw_queue_handle; local
[all...]
H A Dqla_dfs.c300 struct qla_qpair *qpair = vha->hw->base_qpair; local
310 qla_core_sbt_cmd = qpair->tgt_counters.qla_core_sbt_cmd;
311 core_qla_que_buf = qpair->tgt_counters.core_qla_que_buf;
312 qla_core_ret_ctio = qpair->tgt_counters.qla_core_ret_ctio;
313 core_qla_snd_status = qpair->tgt_counters.core_qla_snd_status;
314 qla_core_ret_sta_ctio = qpair->tgt_counters.qla_core_ret_sta_ctio;
315 core_qla_free_cmd = qpair->tgt_counters.core_qla_free_cmd;
316 num_q_full_sent = qpair->tgt_counters.num_q_full_sent;
317 num_alloc_iocb_failed = qpair->tgt_counters.num_alloc_iocb_failed;
318 num_term_xchg_sent = qpair
[all...]
H A Dqla_iocb.c499 * @qpair: queue pair pointer
509 __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, argument
514 struct req_que *req = qpair->req;
518 mrk = (mrk_entry_t *)__qla2x00_alloc_iocbs(qpair, NULL);
553 qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, argument
559 spin_lock_irqsave(qpair->qp_lock_ptr, flags);
560 ret = __qla2x00_marker(vha, qpair, loop_id, lun, type);
561 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags);
601 struct qla_qpair *qpair = sp->qpair; local
709 struct qla_qpair *qpair = sp->qpair; local
1918 struct qla_qpair *qpair = sp->qpair; local
2081 struct qla_qpair *qpair = sp->qpair; local
2282 __qla2x00_alloc_iocbs(struct qla_qpair *qpair, srb_t *sp) argument
2366 qla2x00_alloc_iocbs_ready(struct qla_qpair *qpair, srb_t *sp) argument
3390 struct qla_qpair *qpair = sp->qpair; local
4251 struct qla_qpair *qpair = sp->qpair; local
[all...]
H A Dqla_init.c110 struct qla_qpair *qpair = sp->qpair; local
125 spin_lock_irqsave(qpair->qp_lock_ptr, flags);
126 for (handle = 1; handle < qpair->req->num_outstanding_cmds; handle++) {
127 if (sp->cmd_sp && (qpair->req->outstanding_cmds[handle] ==
129 qpair->req->outstanding_cmds[handle] = NULL;
131 qla_put_fw_resources(qpair, &sp->cmd_sp->iores);
135 if (qpair->req->outstanding_cmds[handle] == sp) {
136 qpair->req->outstanding_cmds[handle] = NULL;
138 qla_put_fw_resources(qpair,
2344 struct qla_qpair *qpair = sp->qpair; local
4197 __qla_adjust_iocb_limit(struct qla_qpair *qpair) argument
9621 struct qla_qpair *qpair = NULL; local
9772 qla2xxx_delete_qpair(struct scsi_qla_host *vha, struct qla_qpair *qpair) argument
[all...]
H A Dqla_mid.c658 struct qla_qpair *qpair, *tqpair; local
661 list_for_each_entry_safe(qpair, tqpair, &vha->qp_list,
663 qla2xxx_delete_qpair(vha, qpair);
815 struct qla_qpair *qpair = container_of(work, struct qla_qpair, q_work); local
816 struct scsi_qla_host *vha = qpair->vha;
818 spin_lock_irqsave(&qpair->qp_lock, flags);
819 qla24xx_process_response_queue(vha, qpair->rsp);
820 spin_unlock_irqrestore(&qpair->qp_lock, flags);
827 uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp)
863 rsp->msix = qpair
826 qla25xx_create_rsp_que(struct qla_hw_data *ha, uint16_t options, uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp) argument
[all...]
H A Dqla_attr.c2839 struct qla_qpair *qpair; local
2880 qpair = vha->hw->queue_pair_map[i];
2881 if (!qpair)
2883 ir += qpair->counters.input_requests;
2884 or += qpair->counters.output_requests;
2885 ib += qpair->counters.input_bytes;
2886 ob += qpair->counters.output_bytes;
2948 struct qla_qpair *qpair; local
2953 qpair = vha->hw->queue_pair_map[i];
2954 if (!qpair)
3060 struct qla_qpair *qpair; local
[all...]
H A Dqla_os.c191 "Set it to 0 to turn off mq qpair support.");
418 struct qla_qpair *qpair);
426 rsp->qpair = ha->base_qpair;
439 /* init qpair to this cpu. Will adjust at run time. */
440 qla_cpu_update(rsp->qpair, raw_smp_processor_id());
756 list_splice(&ctx1->dsd_list, &sp->qpair->dsd_list);
757 sp->qpair->dsd_inuse -= ctx1->dsd_use_cnt;
758 sp->qpair->dsd_avail += ctx1->dsd_use_cnt;
762 qla_put_buf(sp->qpair, &sp->u.scmd.buf_dsc);
842 list_splice(&ctx1->dsd_list, &sp->qpair
893 struct qla_qpair *qpair = NULL; local
997 qla2xxx_mqueuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd, struct qla_qpair *qpair) argument
1260 struct qla_qpair *qpair; local
1341 __qla2x00_eh_wait_for_pending_commands(struct qla_qpair *qpair, unsigned int t, uint64_t l, enum nexus_wait_type type) argument
1425 struct qla_qpair *qpair; local
6904 struct qla_qpair *qpair; local
7735 struct qla_qpair *qpair = NULL; local
7899 struct qla_qpair *qpair = NULL; local
8026 struct qla_qpair *qpair; local
8053 struct qla_qpair *qpair; local
[all...]
H A Dqla_isr.c2054 qla_put_fw_resources(sp->qpair, &sp->iores);
2738 sp->qpair->cmd_completion_cnt++;
3365 qla_put_fw_resources(sp->qpair, &sp->iores);
3395 sp->qpair->cmd_completion_cnt++;
3968 if (rsp->qpair->cpuid != raw_smp_processor_id() || !rsp->qpair->rcv_intr) {
3969 rsp->qpair->rcv_intr = 1;
3971 if (!rsp->qpair->cpu_mapped)
3972 qla_cpu_update(rsp->qpair, raw_smp_processor_id());
4461 struct qla_qpair *qpair; local
4480 struct qla_qpair *qpair; local
4800 qla25xx_request_irq(struct qla_hw_data *ha, struct qla_qpair *qpair, struct qla_msix_entry *msix, int vector_type) argument
[all...]
H A Dqla_edif.c2063 /* it is assume qpair lock is held */
2566 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2575 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2584 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2594 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2614 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2627 qla_els_reject_iocb(vha, (*rsp)->qpair, &a);
2639 qla_els_reject_iocb(host, (*rsp)->qpair, &a);
2652 qla_els_reject_iocb(host, (*rsp)->qpair, &a);
2988 struct req_que *req = sp->qpair
[all...]
H A Dqla_target.h68 #define QLA_QPID_HANDLE_MASK 0x00FF0000 /* qpair id mask */
784 struct qla_qpair *qpair; member in struct:qla_qpair_hint
872 struct qla_qpair *qpair; member in struct:qla_tgt_cmd
961 struct qla_qpair *qpair; member in struct:qla_tgt_mgmt_cmd
H A Dqla_dbg.c2722 ql_log_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, argument
2732 ql_ktrace(0, level, pbuf, NULL, qpair ? qpair->vha : NULL, id, fmt);
2736 qpair ? qpair->vha : NULL, id);
2775 ql_dbg_qp(uint32_t level, struct qla_qpair *qpair, int32_t id, argument
2782 ql_ktrace(1, level, pbuf, NULL, qpair ? qpair->vha : NULL, id, fmt);
2794 qpair ? qpair
[all...]
H A Dtcm_qla2xxx.c265 cmd->qpair->tgt_counters.qla_core_ret_sta_ctio++;
306 cmd->qpair->tgt_counters.core_qla_free_cmd++;
473 cmd->qpair->tgt_counters.qla_core_sbt_cmd++;
509 cmd->qpair->tgt_counters.qla_core_ret_ctio++;
H A Dqla_mbx.c1538 if (sp->qpair)
1539 req = sp->qpair->req;
2513 if (vha->vp_idx && vha->qpair)
2514 req = vha->qpair->req;
3256 struct qla_qpair *qpair = sp->qpair; local
3261 if (sp->qpair)
3262 req = sp->qpair->req;
3269 spin_lock_irqsave(qpair->qp_lock_ptr, flags);
3274 spin_unlock_irqrestore(qpair
3350 struct qla_qpair *qpair; local
[all...]
H A Dqla_def.h476 struct qla_qpair *qpair; member in struct:tmf_arg
743 struct qla_qpair *qpair; member in struct:srb
3725 struct qla_qpair *qpair; member in struct:rsp_que
3804 * For qpair 0, qp_lock_ptr will point at hardware_lock due to
5046 struct qla_qpair *qpair; /* base qpair */ member in struct:scsi_qla_host
/linux-master/drivers/misc/vmw_vmci/
H A Dvmci_queue_pair.c2429 static void qp_lock(const struct vmci_qp *qpair) argument
2431 qp_acquire_queue_mutex(qpair->produce_q);
2438 static void qp_unlock(const struct vmci_qp *qpair) argument
2440 qp_release_queue_mutex(qpair->produce_q);
2470 static int qp_get_queue_headers(const struct vmci_qp *qpair, argument
2476 result = qp_map_queue_headers(qpair->produce_q, qpair->consume_q);
2478 *produce_q_header = qpair->produce_q->q_header;
2479 *consume_q_header = qpair->consume_q->q_header;
2480 } else if (qpair
2497 struct vmci_qp *qpair = (struct vmci_qp *)client_data; local
2515 qp_wait_for_ready_queue(struct vmci_qp *qpair) argument
2679 vmci_qpair_alloc(struct vmci_qp **qpair, struct vmci_handle *handle, u64 produce_qsize, u64 consume_qsize, u32 peer, u32 flags, u32 priv_flags) argument
2782 vmci_qpair_detach(struct vmci_qp **qpair) argument
2822 vmci_qpair_get_produce_indexes(const struct vmci_qp *qpair, u64 *producer_tail, u64 *consumer_head) argument
2859 vmci_qpair_get_consume_indexes(const struct vmci_qp *qpair, u64 *consumer_tail, u64 *producer_head) argument
2896 vmci_qpair_produce_free_space(const struct vmci_qp *qpair) argument
2930 vmci_qpair_consume_free_space(const struct vmci_qp *qpair) argument
2965 vmci_qpair_produce_buf_ready(const struct vmci_qp *qpair) argument
3000 vmci_qpair_consume_buf_ready(const struct vmci_qp *qpair) argument
3035 vmci_qpair_enqueue(struct vmci_qp *qpair, const void *buf, size_t buf_size, int buf_type) argument
3079 vmci_qpair_dequeue(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) argument
3124 vmci_qpair_peek(struct vmci_qp *qpair, void *buf, size_t buf_size, int buf_type) argument
3169 vmci_qpair_enquev(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size, int buf_type) argument
3210 vmci_qpair_dequev(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size, int buf_type) argument
3252 vmci_qpair_peekv(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size, int buf_type) argument
[all...]
/linux-master/net/vmw_vsock/
H A Dvmci_transport_notify.c68 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) >
98 return vmci_qpair_produce_buf_ready(vmci_trans(vsk)->qpair) > 0;
201 vmci_qpair_get_consume_indexes(vmci_trans(vsk)->qpair, &tail, &head);
237 vmci_qpair_get_produce_indexes(vmci_trans(vsk)->qpair, &tail, &head);
464 vmci_qpair_get_consume_indexes(vmci_trans(vsk)->qpair,
538 vmci_qpair_get_produce_indexes(vmci_trans(vsk)->qpair,
H A Dvmci_transport.h108 struct vmci_qp *qpair; member in struct:vmci_transport
H A Dvmci_transport.c547 vmci_transport_queue_pair_alloc(struct vmci_qp **qpair, argument
560 err = vmci_qpair_alloc(qpair, handle, produce_size,
569 err = vmci_qpair_alloc(qpair, handle, produce_size, consume_size,
1136 struct vmci_qp *qpair; local
1198 &qpair,
1214 vmci_trans(vpending)->qpair = qpair;
1313 || vmci_trans(vsk)->qpair
1382 struct vmci_qp *qpair; local
1455 err = vmci_transport_queue_pair_alloc(&qpair,
[all...]
H A Dvmci_transport_notify_qstate.c59 retval = vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair) >
272 vmci_qpair_consume_free_space(vmci_trans(vsk)->qpair);
319 vmci_qpair_produce_buf_ready(vmci_trans(vsk)->qpair) == written;
/linux-master/include/linux/avf/
H A Dvirtchnl.h357 struct virtchnl_queue_pair_info qpair[]; member in struct:virtchnl_vsi_queue_config_info
1471 valid_len = virtchnl_struct_size(vqc, qpair,
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_virtchnl.c286 len = virtchnl_struct_size(vqci, qpair, pairs);
298 vqpi = vqci->qpair;
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl.c1683 if (!qci->qpair[i].rxq.crc_disable)
1692 qpi = &qci->qpair[i];

Completed in 371 milliseconds

12