ql4_iocb.c (5c34202b8bf942da411b6599668a76b07449bbfd) ql4_iocb.c (e08c182cba87180d7c1e7530dd690a5f6894c412)
1/*
2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2006 QLogic Corporation
4 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8#include "ql4_def.h"
1/*
2 * QLogic iSCSI HBA Driver
3 * Copyright (c) 2003-2006 QLogic Corporation
4 *
5 * See LICENSE.qla4xxx for copyright and licensing details.
6 */
7
8#include "ql4_def.h"
9#include "ql4_glbl.h"
10#include "ql4_dbg.h"
11#include "ql4_inline.h"
9
12
13
10#include <scsi/scsi_tcq.h>
11
12/**
13 * qla4xxx_get_req_pkt - returns a valid entry in request queue.
14 * @ha: Pointer to host adapter structure.
15 * @queue_entry: Pointer to pointer to queue entry structure
16 *
17 * This routine performs the following tasks:

--- 220 unchanged lines hidden (view full) ---

238 tot_dsds = pci_map_sg(ha->pdev, sg, cmd->use_sg,
239 cmd->sc_data_direction);
240 if (tot_dsds == 0)
241 goto queuing_error;
242 } else if (cmd->request_bufflen) {
243 dma_addr_t req_dma;
244
245 req_dma = pci_map_single(ha->pdev, cmd->request_buffer,
14#include <scsi/scsi_tcq.h>
15
16/**
17 * qla4xxx_get_req_pkt - returns a valid entry in request queue.
18 * @ha: Pointer to host adapter structure.
19 * @queue_entry: Pointer to pointer to queue entry structure
20 *
21 * This routine performs the following tasks:

--- 220 unchanged lines hidden (view full) ---

242 tot_dsds = pci_map_sg(ha->pdev, sg, cmd->use_sg,
243 cmd->sc_data_direction);
244 if (tot_dsds == 0)
245 goto queuing_error;
246 } else if (cmd->request_bufflen) {
247 dma_addr_t req_dma;
248
249 req_dma = pci_map_single(ha->pdev, cmd->request_buffer,
246 cmd->request_bufflen,
247 cmd->sc_data_direction);
250 cmd->request_bufflen,
251 cmd->sc_data_direction);
248 if (dma_mapping_error(req_dma))
249 goto queuing_error;
250
251 srb->dma_handle = req_dma;
252 tot_dsds = 1;
253 }
254 req_cnt = qla4xxx_calc_request_entries(tot_dsds);
255

--- 119 unchanged lines hidden ---
252 if (dma_mapping_error(req_dma))
253 goto queuing_error;
254
255 srb->dma_handle = req_dma;
256 tot_dsds = 1;
257 }
258 req_cnt = qla4xxx_calc_request_entries(tot_dsds);
259

--- 119 unchanged lines hidden ---