Searched refs:io_req (Results 1 - 16 of 16) sorted by relevance

/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c17 static int bnx2fc_split_bd(struct bnx2fc_cmd *io_req, u64 addr, int sg_len,
19 static int bnx2fc_map_sg(struct bnx2fc_cmd *io_req);
20 static int bnx2fc_build_bd_list_from_sg(struct bnx2fc_cmd *io_req);
21 static void bnx2fc_unmap_sg_list(struct bnx2fc_cmd *io_req);
22 static void bnx2fc_free_mp_resc(struct bnx2fc_cmd *io_req);
23 static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req,
27 void bnx2fc_cmd_timer_set(struct bnx2fc_cmd *io_req, argument
30 struct bnx2fc_interface *interface = io_req->port->priv;
33 &io_req->timeout_work,
35 kref_get(&io_req
40 struct bnx2fc_cmd *io_req = container_of(work, struct bnx2fc_cmd, local
205 bnx2fc_scsi_done(struct bnx2fc_cmd *io_req, int err_code) argument
247 struct bnx2fc_cmd *io_req; local
412 struct bnx2fc_cmd *io_req = (struct bnx2fc_cmd *)list; local
428 struct bnx2fc_cmd *io_req; local
498 struct bnx2fc_cmd *io_req; local
550 struct bnx2fc_cmd *io_req = container_of(ref, local
575 bnx2fc_free_mp_resc(struct bnx2fc_cmd *io_req) argument
610 bnx2fc_init_mp_req(struct bnx2fc_cmd *io_req) argument
694 struct bnx2fc_cmd *io_req; local
829 bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req) argument
1008 bnx2fc_initiate_cleanup(struct bnx2fc_cmd *io_req) argument
1104 struct bnx2fc_cmd *io_req; local
1304 bnx2fc_process_cleanup_compl(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq) argument
1317 bnx2fc_process_abts_compl(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq) argument
1407 bnx2fc_lun_reset_cmpl(struct bnx2fc_cmd *io_req) argument
1448 bnx2fc_tgt_reset_cmpl(struct bnx2fc_cmd *io_req) argument
1482 bnx2fc_process_tm_compl(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq) argument
1581 bnx2fc_split_bd(struct bnx2fc_cmd *io_req, u64 addr, int sg_len, int bd_index) argument
1606 bnx2fc_map_sg(struct bnx2fc_cmd *io_req) argument
1647 bnx2fc_build_bd_list_from_sg(struct bnx2fc_cmd *io_req) argument
1667 bnx2fc_unmap_sg_list(struct bnx2fc_cmd *io_req) argument
1677 bnx2fc_build_fcp_cmnd(struct bnx2fc_cmd *io_req, struct fcp_cmnd *fcp_cmnd) argument
1712 bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req, struct fcoe_fcp_rsp_payload *fcp_rsp, u8 num_rq) argument
1814 struct bnx2fc_cmd *io_req; local
1858 bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u8 num_rq) argument
1945 bnx2fc_post_io_req(struct bnx2fc_rport *tgt, struct bnx2fc_cmd *io_req) argument
[all...]
H A Dbnx2fc_debug.h30 #define BNX2FC_IO_DBG(io_req, fmt, arg...) \
32 if (!io_req || !io_req->port || !io_req->port->lport || \
33 !io_req->port->lport->host) \
39 (io_req)->port->lport->host, \
41 (io_req)->xid, ##arg)); \
H A Dbnx2fc_tgt.c152 struct bnx2fc_cmd *io_req; local
165 io_req = (struct bnx2fc_cmd *)list;
166 list_del_init(&io_req->link);
167 io_req->on_active_queue = 0;
168 BNX2FC_IO_DBG(io_req, "cmd_queue cleanup\n");
170 if (cancel_delayed_work(&io_req->timeout_work)) {
172 &io_req->req_flags)) {
174 BNX2FC_IO_DBG(io_req, "eh_abort for IO "
176 complete(&io_req->tm_done);
178 kref_put(&io_req
[all...]
H A Dbnx2fc_hwi.c626 struct bnx2fc_cmd *io_req = NULL; local
709 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
710 if (!io_req)
713 if (io_req->cmd_type != BNX2FC_SCSI_CMD) {
719 &io_req->req_flags)) {
720 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in "
742 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) {
743 printk(KERN_ERR PFX "err_warn: io_req (0x%x) already "
759 memset(&io_req->err_entry, 0,
761 memcpy(&io_req
875 struct bnx2fc_cmd *io_req; local
1557 bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task, u16 orig_xid) argument
1595 bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task) argument
1691 bnx2fc_init_task(struct bnx2fc_cmd *io_req, struct fcoe_task_ctx_entry *task) argument
[all...]
H A Dbnx2fc.h370 struct bnx2fc_cmd *io_req; member in struct:bnx2fc_els_cb_arg
434 struct bnx2fc_cmd *io_req; member in struct:io_bdt
484 int bnx2fc_initiate_cleanup(struct bnx2fc_cmd *io_req);
485 int bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req);
486 void bnx2fc_cmd_timer_set(struct bnx2fc_cmd *io_req,
488 int bnx2fc_init_mp_req(struct bnx2fc_cmd *io_req);
489 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req,
496 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req,
498 void bnx2fc_init_task(struct bnx2fc_cmd *io_req,
509 void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req,
[all...]
H A Dbnx2fc_els.c33 rrq_req = cb_arg->io_req;
129 els_req = cb_arg->io_req;
270 srr_req = cb_arg->io_req;
390 rec_req = cb_arg->io_req;
709 cb_arg->io_req = els_req;
/drivers/scsi/fnic/
H A Dfnic_scsi.c114 * Unmap the data buffer and sense buffer for an io_req,
118 struct fnic_io_req *io_req,
121 if (io_req->sgl_list_pa)
122 pci_unmap_single(fnic->pdev, io_req->sgl_list_pa,
123 sizeof(io_req->sgl_list[0]) * io_req->sgl_cnt,
127 if (io_req->sgl_cnt)
128 mempool_free(io_req->sgl_list_alloc,
129 fnic->io_sgl_pool[io_req->sgl_type]);
130 if (io_req
117 fnic_release_ioreq_buf(struct fnic *fnic, struct fnic_io_req *io_req, struct scsi_cmnd *sc) argument
259 fnic_queue_wq_copy_desc(struct fnic *fnic, struct vnic_wq_copy *wq, struct fnic_io_req *io_req, struct scsi_cmnd *sc, int sg_count) argument
356 struct fnic_io_req *io_req; local
650 struct fnic_io_req *io_req; local
801 struct fnic_io_req *io_req; local
949 struct fnic_io_req *io_req; local
997 struct fnic_io_req *io_req; local
1042 fnic_queue_abort_io_req(struct fnic *fnic, int tag, u32 task_req, u8 *fc_lun, struct fnic_io_req *io_req) argument
1069 struct fnic_io_req *io_req; local
1144 struct fnic_io_req *io_req; local
1235 struct fnic_io_req *io_req; local
1373 fnic_queue_dr_io_req(struct fnic *fnic, struct scsi_cmnd *sc, struct fnic_io_req *io_req) argument
1416 struct fnic_io_req *io_req; local
1514 struct fnic_io_req *io_req; local
[all...]
/drivers/md/
H A Ddm-io.c446 static int dp_init(struct dm_io_request *io_req, struct dpages *dp, argument
454 switch (io_req->mem.type) {
456 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset);
460 bvec_dp_init(dp, io_req->mem.ptr.bvec);
464 flush_kernel_vmap_range(io_req->mem.ptr.vma, size);
465 if ((io_req->bi_rw & RW_MASK) == READ) {
466 dp->vma_invalidate_address = io_req->mem.ptr.vma;
469 vm_dp_init(dp, io_req->mem.ptr.vma);
473 km_dp_init(dp, io_req
491 dm_io(struct dm_io_request *io_req, unsigned num_regions, struct dm_io_region *where, unsigned long *sync_error_bits) argument
[all...]
H A Ddm-log.c240 struct dm_io_request io_req; member in struct:log_c
296 lc->io_req.bi_rw = rw;
298 return dm_io(&lc->io_req, 1, &lc->header_location, NULL);
309 lc->io_req.bi_rw = WRITE_FLUSH;
311 return dm_io(&lc->io_req, 1, &null_location, NULL);
457 lc->io_req.mem.type = DM_IO_VMA;
458 lc->io_req.notify.fn = NULL;
459 lc->io_req.client = dm_io_client_create();
460 if (IS_ERR(lc->io_req.client)) {
461 r = PTR_ERR(lc->io_req
[all...]
H A Ddm-snap-persistent.c215 struct dm_io_request *io_req; member in struct:mdata_req
224 req->result = dm_io(req->io_req, 1, req->where, NULL);
238 struct dm_io_request io_req = { local
248 return dm_io(&io_req, 1, &where, NULL);
251 req.io_req = &io_req;
H A Ddm-raid1.c259 struct dm_io_request io_req = { local
273 dm_io(&io_req, ms->nr_mirrors, io, &error_bits);
526 struct dm_io_request io_req = { local
537 BUG_ON(dm_io(&io_req, 1, &io, NULL));
629 struct dm_io_request io_req = { local
639 io_req.bi_rw |= REQ_DISCARD;
640 io_req.mem.type = DM_IO_KMEM;
641 io_req.mem.ptr.addr = NULL;
653 BUG_ON(dm_io(&io_req, ms->nr_mirrors, io, NULL));
H A Ddm-bufio.c485 struct dm_io_request io_req = { local
498 io_req.mem.type = DM_IO_KMEM;
499 io_req.mem.ptr.addr = b->data;
501 io_req.mem.type = DM_IO_VMA;
502 io_req.mem.ptr.vma = b->data;
507 r = dm_io(&io_req, 1, &region, NULL);
1198 struct dm_io_request io_req = { local
1212 return dm_io(&io_req, 1, &io_reg, NULL);
H A Ddm-kcopyd.c382 struct dm_io_request io_req = { local
393 r = dm_io(&io_req, 1, &job->source, NULL);
395 r = dm_io(&io_req, job->num_dests, job->dests, NULL);
/drivers/staging/rtl8712/
H A Drtl871x_io.c113 struct io_req *pio_req;
123 (sizeof(struct io_req)) + 4);
127 (NUM_IOREQ * (sizeof(struct io_req)) + 4));
131 pio_req = (struct io_req *)(pio_queue->free_ioreqs_buf);
H A Drtl871x_io.h52 For prompt mode accessing, caller shall free io_req
53 Otherwise, io_handler will free io_req
113 struct io_req { struct
121 struct io_req *pio_req, u8 *cnxt);
227 /*The io_req list that will be served in the single protocol r/w.*/
/drivers/scsi/megaraid/
H A Dmegaraid_sas_fusion.c1912 struct MPI2_RAID_SCSI_IO_REQUEST *io_req; local
1936 io_req = cmd->io_request;
1940 (struct MPI25_IEEE_SGE_CHAIN64 *)&io_req->SGL;
1946 (struct MPI25_IEEE_SGE_CHAIN64 *)&io_req->SGL.IeeeChain;
1948 io_req->Function = MEGASAS_MPI2_FUNCTION_PASSTHRU_IO_REQUEST;
1949 io_req->SGLOffset0 = offsetof(struct MPI2_RAID_SCSI_IO_REQUEST,
1951 io_req->ChainOffset = fusion->chain_offset_mfi_pthru;

Completed in 691 milliseconds