• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/qla2xxx/

Lines Matching defs:rsp

229 qla2x00_alert_all_vps(struct rsp_que *rsp, uint16_t *mb)
232 struct qla_hw_data *ha = rsp->hw;
254 qla2x00_async_event(vha, rsp, mb);
501 qla25xx_free_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp)
504 uint16_t que_id = rsp->id;
506 if (rsp->msix && rsp->msix->have_irq) {
507 free_irq(rsp->msix->vector, rsp);
508 rsp->msix->have_irq = 0;
509 rsp->msix->rsp = NULL;
511 dma_free_coherent(&ha->pdev->dev, (rsp->length + 1) *
512 sizeof(response_t), rsp->ring, rsp->dma);
513 rsp->ring = NULL;
514 rsp->dma = 0;
521 kfree(rsp);
522 rsp = NULL;
541 qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp)
545 if (rsp) {
546 rsp->options |= BIT_0;
547 ret = qla25xx_init_rsp_que(vha, rsp);
550 qla25xx_free_rsp_que(vha, rsp);
561 struct rsp_que *rsp = NULL;
580 rsp = ha->rsp_q_map[cnt];
581 if (rsp) {
582 ret = qla25xx_delete_rsp_que(vha, rsp);
585 "Couldn't delete rsp que %d\n",
586 rsp->id);
637 req->rsp = NULL;
639 req->rsp = ha->rsp_q_map[rsp_que];
680 struct rsp_que *rsp = container_of(work, struct rsp_que, q_work);
682 struct qla_hw_data *ha = rsp->hw;
684 spin_lock_irqsave(&rsp->hw->hardware_lock, flags);
686 qla24xx_process_response_queue(vha, rsp);
687 spin_unlock_irqrestore(&rsp->hw->hardware_lock, flags);
696 struct rsp_que *rsp = NULL;
701 rsp = kzalloc(sizeof(struct rsp_que), GFP_KERNEL);
702 if (rsp == NULL) {
708 rsp->length = RESPONSE_ENTRY_CNT_MQ;
709 rsp->ring = dma_alloc_coherent(&ha->pdev->dev,
710 (rsp->length + 1) * sizeof(response_t),
711 &rsp->dma, GFP_KERNEL);
712 if (rsp->ring == NULL) {
729 rsp->msix = &ha->msix_entries[que_id + 1];
733 ha->rsp_q_map[que_id] = rsp;
734 rsp->rid = rid;
735 rsp->vp_idx = vp_idx;
736 rsp->hw = ha;
738 if (MSB(rsp->rid))
741 if (LSB(rsp->rid))
747 rsp->options = options;
748 rsp->id = que_id;
750 rsp->rsp_q_in = &reg->isp25mq.rsp_q_in;
751 rsp->rsp_q_out = &reg->isp25mq.rsp_q_out;
754 ret = qla25xx_request_irq(rsp);
758 ret = qla25xx_init_rsp_que(base_vha, rsp);
767 rsp->req = ha->req_q_map[req];
769 rsp->req = NULL;
771 qla2x00_init_response_q_entries(rsp);
772 if (rsp->hw->wq)
773 INIT_WORK(&rsp->q_work, qla_do_work);
774 return rsp->id;
777 qla25xx_free_rsp_que(base_vha, rsp);