Home
last modified time | relevance | path

Searched refs:io_req (Results 1 – 17 of 17) sorted by relevance

/linux-2.6.39/drivers/scsi/bnx2fc/
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 void bnx2fc_build_bd_list_from_sg(struct bnx2fc_cmd *io_req);
22 struct bnx2fc_cmd *io_req);
23 static void bnx2fc_unmap_sg_list(struct bnx2fc_cmd *io_req);
24 static void bnx2fc_free_mp_resc(struct bnx2fc_cmd *io_req);
25 static void bnx2fc_parse_fcp_rsp(struct bnx2fc_cmd *io_req,
29 void bnx2fc_cmd_timer_set(struct bnx2fc_cmd *io_req, in bnx2fc_cmd_timer_set() argument
32 struct bnx2fc_hba *hba = io_req->port->priv; in bnx2fc_cmd_timer_set()
34 if (queue_delayed_work(hba->timer_work_queue, &io_req->timeout_work, in bnx2fc_cmd_timer_set()
[all …]
Dbnx2fc_debug.h30 #define BNX2FC_IO_DBG(io_req, fmt, arg...) \ argument
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)); \
Dbnx2fc_tgt.c150 struct bnx2fc_cmd *io_req; in bnx2fc_flush_active_ios() local
163 io_req = (struct bnx2fc_cmd *)list; in bnx2fc_flush_active_ios()
164 list_del_init(&io_req->link); in bnx2fc_flush_active_ios()
165 io_req->on_active_queue = 0; in bnx2fc_flush_active_ios()
166 BNX2FC_IO_DBG(io_req, "cmd_queue cleanup\n"); in bnx2fc_flush_active_ios()
168 if (cancel_delayed_work(&io_req->timeout_work)) { in bnx2fc_flush_active_ios()
170 &io_req->req_flags)) { in bnx2fc_flush_active_ios()
172 BNX2FC_IO_DBG(io_req, "eh_abort for IO " in bnx2fc_flush_active_ios()
174 complete(&io_req->tm_done); in bnx2fc_flush_active_ios()
176 kref_put(&io_req->refcount, in bnx2fc_flush_active_ios()
[all …]
Dbnx2fc.h358 struct bnx2fc_cmd *io_req; member
412 struct bnx2fc_cmd *io_req; member
460 int bnx2fc_initiate_cleanup(struct bnx2fc_cmd *io_req);
461 int bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req);
462 void bnx2fc_cmd_timer_set(struct bnx2fc_cmd *io_req,
464 int bnx2fc_init_mp_req(struct bnx2fc_cmd *io_req);
465 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req,
468 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req,
470 void bnx2fc_init_task(struct bnx2fc_cmd *io_req,
481 void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req,
[all …]
Dbnx2fc_hwi.c578 struct bnx2fc_cmd *io_req = NULL; in bnx2fc_process_unsol_compl() local
660 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
661 if (!io_req) { in bnx2fc_process_unsol_compl()
666 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
673 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
674 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl()
688 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
693 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
694 kref_put(&io_req->refcount, in bnx2fc_process_unsol_compl()
697 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
[all …]
Dbnx2fc_els.c33 rrq_req = cb_arg->io_req; in bnx2fc_rrq_compl()
129 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl()
302 cb_arg->io_req = els_req; in bnx2fc_initiate_els()
/linux-2.6.39/drivers/scsi/fnic/
Dfnic_scsi.c118 struct fnic_io_req *io_req, in fnic_release_ioreq_buf() argument
121 if (io_req->sgl_list_pa) in fnic_release_ioreq_buf()
122 pci_unmap_single(fnic->pdev, io_req->sgl_list_pa, in fnic_release_ioreq_buf()
123 sizeof(io_req->sgl_list[0]) * io_req->sgl_cnt, in fnic_release_ioreq_buf()
127 if (io_req->sgl_cnt) in fnic_release_ioreq_buf()
128 mempool_free(io_req->sgl_list_alloc, in fnic_release_ioreq_buf()
129 fnic->io_sgl_pool[io_req->sgl_type]); in fnic_release_ioreq_buf()
130 if (io_req->sense_buf_pa) in fnic_release_ioreq_buf()
131 pci_unmap_single(fnic->pdev, io_req->sense_buf_pa, in fnic_release_ioreq_buf()
261 struct fnic_io_req *io_req, in fnic_queue_wq_copy_desc() argument
[all …]
/linux-2.6.39/drivers/md/
Ddm-io.c439 static int dp_init(struct dm_io_request *io_req, struct dpages *dp) in dp_init() argument
442 switch (io_req->mem.type) { in dp_init()
444 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset); in dp_init()
448 bvec_dp_init(dp, io_req->mem.ptr.bvec); in dp_init()
452 vm_dp_init(dp, io_req->mem.ptr.vma); in dp_init()
456 km_dp_init(dp, io_req->mem.ptr.addr); in dp_init()
474 int dm_io(struct dm_io_request *io_req, unsigned num_regions, in dm_io() argument
480 r = dp_init(io_req, &dp); in dm_io()
484 if (!io_req->notify.fn) in dm_io()
485 return sync_io(io_req->client, num_regions, where, in dm_io()
[all …]
Ddm-log.c234 struct dm_io_request io_req; member
290 lc->io_req.bi_rw = rw; in rw_header()
292 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header()
303 lc->io_req.bi_rw = WRITE_FLUSH; in flush_header()
305 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header()
450 lc->io_req.mem.type = DM_IO_VMA; in create_log_context()
451 lc->io_req.notify.fn = NULL; in create_log_context()
452 lc->io_req.client = dm_io_client_create(dm_div_up(buf_size, in create_log_context()
454 if (IS_ERR(lc->io_req.client)) { in create_log_context()
455 r = PTR_ERR(lc->io_req.client); in create_log_context()
[all …]
Ddm-snap-persistent.c215 struct dm_io_request *io_req; member
224 req->result = dm_io(req->io_req, 1, req->where, NULL); in do_metadata()
238 struct dm_io_request io_req = { in chunk_io() local
248 return dm_io(&io_req, 1, &where, NULL); in chunk_io()
251 req.io_req = &io_req; in chunk_io()
Ddm-raid1.c261 struct dm_io_request io_req = { in mirror_flush() local
275 dm_io(&io_req, ms->nr_mirrors, io, &error_bits); in mirror_flush()
528 struct dm_io_request io_req = { in read_async_bio() local
539 BUG_ON(dm_io(&io_req, 1, &io, NULL)); in read_async_bio()
631 struct dm_io_request io_req = { in do_write() local
641 io_req.bi_rw |= REQ_DISCARD; in do_write()
642 io_req.mem.type = DM_IO_KMEM; in do_write()
643 io_req.mem.ptr.addr = NULL; in do_write()
655 BUG_ON(dm_io(&io_req, ms->nr_mirrors, io, NULL)); in do_write()
Ddm-kcopyd.c347 struct dm_io_request io_req = { in run_io_job() local
358 r = dm_io(&io_req, 1, &job->source, NULL); in run_io_job()
360 r = dm_io(&io_req, job->num_dests, job->dests, NULL); in run_io_job()
/linux-2.6.39/drivers/staging/rtl8712/
Drtl871x_io.c115 struct io_req *pio_req; in r8712_alloc_io_queue()
125 (sizeof(struct io_req)) + 4); in r8712_alloc_io_queue()
129 (NUM_IOREQ * (sizeof(struct io_req)) + 4)); in r8712_alloc_io_queue()
133 pio_req = (struct io_req *)(pio_queue->free_ioreqs_buf); in r8712_alloc_io_queue()
Drtl871x_io.h88 struct io_req { struct
97 struct io_req *pio_req, u8 *cnxt); argument
/linux-2.6.39/arch/um/drivers/
Dubd_kern.c1200 static void prepare_request(struct request *req, struct io_thread_req *io_req, in prepare_request() argument
1207 io_req->req = req; in prepare_request()
1208 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_request()
1210 io_req->fds[1] = ubd_dev->fd; in prepare_request()
1211 io_req->cow_offset = -1; in prepare_request()
1212 io_req->offset = offset; in prepare_request()
1213 io_req->length = len; in prepare_request()
1214 io_req->error = 0; in prepare_request()
1215 io_req->sector_mask = 0; in prepare_request()
1217 io_req->op = (rq_data_dir(req) == READ) ? UBD_READ : UBD_WRITE; in prepare_request()
[all …]
/linux-2.6.39/include/linux/
Ddm-io.h81 int dm_io(struct dm_io_request *io_req, unsigned num_regions,
/linux-2.6.39/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c1821 struct MPI2_RAID_SCSI_IO_REQUEST *io_req; in build_mpt_mfi_pass_thru() local
1845 io_req = cmd->io_request; in build_mpt_mfi_pass_thru()
1847 (struct MPI25_IEEE_SGE_CHAIN64 *)&io_req->SGL.IeeeChain; in build_mpt_mfi_pass_thru()
1849 io_req->Function = MEGASAS_MPI2_FUNCTION_PASSTHRU_IO_REQUEST; in build_mpt_mfi_pass_thru()
1850 io_req->SGLOffset0 = offsetof(struct MPI2_RAID_SCSI_IO_REQUEST, in build_mpt_mfi_pass_thru()
1852 io_req->ChainOffset = fusion->chain_offset_mfi_pthru; in build_mpt_mfi_pass_thru()