ql4_iocb.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | ql4_iocb.c (f8086f4fd462195a5a824c851997bd12ffceae00) |
---|---|
1/* 2 * QLogic iSCSI HBA Driver 3 * Copyright (c) 2003-2010 QLogic Corporation 4 * 5 * See LICENSE.qla4xxx for copyright and licensing details. 6 */ 7 8#include "ql4_def.h" --- 179 unchanged lines hidden (view full) --- 188 cur_dsd->count = cpu_to_le32(sg_dma_len(sg)); 189 avail_dsds--; 190 191 cur_dsd++; 192 } 193} 194 195/** | 1/* 2 * QLogic iSCSI HBA Driver 3 * Copyright (c) 2003-2010 QLogic Corporation 4 * 5 * See LICENSE.qla4xxx for copyright and licensing details. 6 */ 7 8#include "ql4_def.h" --- 179 unchanged lines hidden (view full) --- 188 cur_dsd->count = cpu_to_le32(sg_dma_len(sg)); 189 avail_dsds--; 190 191 cur_dsd++; 192 } 193} 194 195/** |
196 * qla4_8xxx_queue_iocb - Tell ISP it's got new request(s) | 196 * qla4_82xx_queue_iocb - Tell ISP it's got new request(s) |
197 * @ha: pointer to host adapter structure. 198 * 199 * This routine notifies the ISP that one or more new request 200 * queue entries have been placed on the request queue. 201 **/ | 197 * @ha: pointer to host adapter structure. 198 * 199 * This routine notifies the ISP that one or more new request 200 * queue entries have been placed on the request queue. 201 **/ |
202void qla4_8xxx_queue_iocb(struct scsi_qla_host *ha) | 202void qla4_82xx_queue_iocb(struct scsi_qla_host *ha) |
203{ 204 uint32_t dbval = 0; 205 206 dbval = 0x14 | (ha->func_num << 5); 207 dbval = dbval | (0 << 8) | (ha->request_in << 16); 208 | 203{ 204 uint32_t dbval = 0; 205 206 dbval = 0x14 | (ha->func_num << 5); 207 dbval = dbval | (0 << 8) | (ha->request_in << 16); 208 |
209 qla4_8xxx_wr_32(ha, ha->nx_db_wr_ptr, ha->request_in); | 209 qla4_82xx_wr_32(ha, ha->nx_db_wr_ptr, ha->request_in); |
210} 211 212/** | 210} 211 212/** |
213 * qla4_8xxx_complete_iocb - Tell ISP we're done with response(s) | 213 * qla4_82xx_complete_iocb - Tell ISP we're done with response(s) |
214 * @ha: pointer to host adapter structure. 215 * 216 * This routine notifies the ISP that one or more response/completion 217 * queue entries have been processed by the driver. 218 * This also clears the interrupt. 219 **/ | 214 * @ha: pointer to host adapter structure. 215 * 216 * This routine notifies the ISP that one or more response/completion 217 * queue entries have been processed by the driver. 218 * This also clears the interrupt. 219 **/ |
220void qla4_8xxx_complete_iocb(struct scsi_qla_host *ha) | 220void qla4_82xx_complete_iocb(struct scsi_qla_host *ha) |
221{ 222 writel(ha->response_out, &ha->qla4_8xxx_reg->rsp_q_out); 223 readl(&ha->qla4_8xxx_reg->rsp_q_out); 224} 225 226/** 227 * qla4xxx_queue_iocb - Tell ISP it's got new request(s) 228 * @ha: pointer to host adapter structure. --- 311 unchanged lines hidden --- | 221{ 222 writel(ha->response_out, &ha->qla4_8xxx_reg->rsp_q_out); 223 readl(&ha->qla4_8xxx_reg->rsp_q_out); 224} 225 226/** 227 * qla4xxx_queue_iocb - Tell ISP it's got new request(s) 228 * @ha: pointer to host adapter structure. --- 311 unchanged lines hidden --- |