Lines Matching refs:req

532 	vha->req = base_vha->req;
534 host->can_queue = base_vha->req->length + 128;
564 qla25xx_free_req_que(struct scsi_qla_host *vha, struct req_que *req)
567 uint16_t que_id = req->id;
569 dma_free_coherent(&ha->pdev->dev, (req->length + 1) *
570 sizeof(request_t), req->ring, req->dma);
571 req->ring = NULL;
572 req->dma = 0;
579 kfree(req->outstanding_cmds);
580 kfree(req);
581 req = NULL;
611 qla25xx_delete_req_que(struct scsi_qla_host *vha, struct req_que *req)
615 if (req && vha->flags.qpairs_req_created) {
616 req->options |= BIT_0;
617 ret = qla25xx_init_req_que(vha, req);
621 qla25xx_free_req_que(vha, req);
649 struct req_que *req = NULL;
661 req = ha->req_q_map[cnt];
662 if (req && test_bit(cnt, ha->req_qid_map)) {
663 ret = qla25xx_delete_req_que(vha, req);
666 "Couldn't delete req que %d.\n",
667 req->id);
696 struct req_que *req = NULL;
703 req = kzalloc(sizeof(struct req_que), GFP_KERNEL);
704 if (req == NULL) {
710 req->length = REQUEST_ENTRY_CNT_24XX;
711 req->ring = dma_alloc_coherent(&ha->pdev->dev,
712 (req->length + 1) * sizeof(request_t),
713 &req->dma, GFP_KERNEL);
714 if (req->ring == NULL) {
720 ret = qla2x00_alloc_outstanding_cmds(ha, req);
733 ha->req_q_map[que_id] = req;
734 req->rid = rid;
735 req->vp_idx = vp_idx;
736 req->qos = qos;
740 que_id, req->rid, req->vp_idx, req->qos);
743 que_id, req->rid, req->vp_idx, req->qos);
745 req->rsp = NULL;
747 req->rsp = ha->rsp_q_map[rsp_que];
749 if (MSB(req->rid))
752 if (LSB(req->rid))
754 req->options = options;
757 "options=0x%x.\n", req->options);
759 "options=0x%x.\n", req->options);
760 for (cnt = 1; cnt < req->num_outstanding_cmds; cnt++)
761 req->outstanding_cmds[cnt] = NULL;
762 req->current_outstanding_cmd = 1;
764 req->ring_ptr = req->ring;
765 req->ring_index = 0;
766 req->cnt = req->length;
767 req->id = que_id;
769 req->req_q_in = &reg->isp25mq.req_q_in;
770 req->req_q_out = &reg->isp25mq.req_q_out;
771 req->max_q_depth = ha->req_q_map[0]->max_q_depth;
772 req->out_ptr = (uint16_t *)(req->ring + req->length);
777 req->ring_ptr, req->ring_index,
778 req->cnt, req->id, req->max_q_depth);
782 req->ring_ptr, req->ring_index, req->cnt,
783 req->id, req->max_q_depth);
786 ret = qla25xx_init_req_que(base_vha, req);
798 return req->id;
801 qla25xx_free_req_que(base_vha, req);
913 rsp->req = NULL;