Lines Matching refs:qpair

496  * @qpair: queue pair pointer
506 __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair,
511 struct req_que *req = qpair->req;
515 mrk = (mrk_entry_t *)__qla2x00_alloc_iocbs(qpair, NULL);
546 qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair,
552 spin_lock_irqsave(qpair->qp_lock_ptr, flags);
553 ret = __qla2x00_marker(vha, qpair, loop_id, lun, type);
554 spin_unlock_irqrestore(qpair->qp_lock_ptr, flags);
596 struct qla_qpair *qpair = sp->qpair;
616 qpair->counters.output_bytes += scsi_bufflen(cmd);
617 qpair->counters.output_requests++;
620 qpair->counters.input_bytes += scsi_bufflen(cmd);
621 qpair->counters.input_requests++;
708 struct qla_qpair *qpair = sp->qpair;
726 qpair->counters.output_bytes += scsi_bufflen(cmd);
727 qpair->counters.output_requests++;
730 qpair->counters.input_bytes += scsi_bufflen(cmd);
731 qpair->counters.input_requests++;
1643 if (qla_get_iocbs(sp->qpair, &sp->iores))
1724 qla_put_iocbs(sp->qpair, &sp->iores);
1841 if (qla_get_iocbs(sp->qpair, &sp->iores))
1923 qla_put_iocbs(sp->qpair, &sp->iores);
1950 struct qla_qpair *qpair = sp->qpair;
1952 /* Acquire qpair specific lock */
1953 spin_lock_irqsave(&qpair->qp_lock, flags);
1955 /* Setup qpair pointers */
1956 req = qpair->req;
1963 if (__qla2x00_marker(vha, qpair, 0, 0, MK_SYNC_ALL) !=
1965 spin_unlock_irqrestore(&qpair->qp_lock, flags);
1989 if (qla_get_iocbs(sp->qpair, &sp->iores))
2063 spin_unlock_irqrestore(&qpair->qp_lock, flags);
2070 qla_put_iocbs(sp->qpair, &sp->iores);
2071 spin_unlock_irqrestore(&qpair->qp_lock, flags);
2102 struct qla_qpair *qpair = sp->qpair;
2107 if (!qpair->online) {
2112 if (!qpair->difdix_supported &&
2124 spin_lock_irqsave(&qpair->qp_lock, flags);
2126 /* Setup qpair pointers */
2127 rsp = qpair->rsp;
2128 req = qpair->req;
2135 if (__qla2x00_marker(vha, qpair, 0, 0, MK_SYNC_ALL) !=
2137 spin_unlock_irqrestore(&qpair->qp_lock, flags);
2202 if (qla_get_iocbs(sp->qpair, &sp->iores))
2277 spin_unlock_irqrestore(&qpair->qp_lock, flags);
2288 qla_put_iocbs(sp->qpair, &sp->iores);
2289 spin_unlock_irqrestore(&qpair->qp_lock, flags);
2299 __qla2x00_alloc_iocbs(struct qla_qpair *qpair, srb_t *sp)
2301 scsi_qla_host_t *vha = qpair->vha;
2303 struct req_que *req = qpair->req;
2320 if (qpair->use_shadow_reg)
2335 if (!qpair->use_shadow_reg && cnt == ISP_REG16_DISCONNECT) {
2378 qpair->tgt_counters.num_alloc_iocb_failed++;
2383 qla2x00_alloc_iocbs_ready(struct qla_qpair *qpair, srb_t *sp)
2385 scsi_qla_host_t *vha = qpair->vha;
2390 return __qla2x00_alloc_iocbs(qpair, sp);
2624 spin_lock_irqsave(sp->qpair->qp_lock_ptr, flags);
2625 for (h = 1; h < sp->qpair->req->num_outstanding_cmds; h++) {
2626 if (sp->qpair->req->outstanding_cmds[h] == sp) {
2627 sp->qpair->req->outstanding_cmds[h] = NULL;
2631 spin_unlock_irqrestore(sp->qpair->qp_lock_ptr, flags);
2823 spin_lock_irqsave(sp->qpair->qp_lock_ptr, flags);
2824 for (h = 1; h < sp->qpair->req->num_outstanding_cmds; h++) {
2825 if (sp->qpair->req->outstanding_cmds[h] == sp) {
2826 sp->qpair->req->outstanding_cmds[h] = NULL;
2830 spin_unlock_irqrestore(sp->qpair->qp_lock_ptr, flags);
3602 struct req_que *req = sp->qpair->req;
3740 struct qla_qpair *qp = sp->qpair;
3748 pkt = __qla2x00_alloc_iocbs(sp->qpair, sp);