| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_io.c | 19 static int bnx2fc_split_bd(struct bnx2fc_cmd *io_req, u64 addr, int sg_len, 21 static int bnx2fc_map_sg(struct bnx2fc_cmd *io_req); 22 static int bnx2fc_build_bd_list_from_sg(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_interface *interface = io_req->port->priv; in bnx2fc_cmd_timer_set() 35 &io_req->timeout_work, in bnx2fc_cmd_timer_set() 37 kref_get(&io_req->refcount); in bnx2fc_cmd_timer_set() [all …]
|
| H A D | bnx2fc_tgt.c | 166 struct bnx2fc_cmd *io_req; in bnx2fc_flush_active_ios() local 176 list_for_each_entry_safe(io_req, tmp, &tgt->active_cmd_queue, link) { in bnx2fc_flush_active_ios() 178 list_del_init(&io_req->link); in bnx2fc_flush_active_ios() 179 io_req->on_active_queue = 0; in bnx2fc_flush_active_ios() 180 BNX2FC_IO_DBG(io_req, "cmd_queue cleanup\n"); in bnx2fc_flush_active_ios() 182 if (cancel_delayed_work(&io_req->timeout_work)) { in bnx2fc_flush_active_ios() 184 &io_req->req_flags)) { in bnx2fc_flush_active_ios() 186 BNX2FC_IO_DBG(io_req, "eh_abort for IO " in bnx2fc_flush_active_ios() 188 complete(&io_req->abts_done); in bnx2fc_flush_active_ios() 190 kref_put(&io_req->refcount, in bnx2fc_flush_active_ios() [all …]
|
| H A D | bnx2fc_debug.c | 17 void BNX2FC_IO_DBG(const struct bnx2fc_cmd *io_req, const char *fmt, ...) in BNX2FC_IO_DBG() argument 30 if (io_req && io_req->port && io_req->port->lport && in BNX2FC_IO_DBG() 31 io_req->port->lport->host) in BNX2FC_IO_DBG() 32 shost_printk(KERN_INFO, io_req->port->lport->host, in BNX2FC_IO_DBG() 34 io_req->xid, &vaf); in BNX2FC_IO_DBG()
|
| H A D | bnx2fc_hwi.c | 635 struct bnx2fc_cmd *io_req = NULL; in bnx2fc_process_unsol_compl() local 710 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl() 711 if (!io_req) in bnx2fc_process_unsol_compl() 714 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl() 720 &io_req->req_flags)) { in bnx2fc_process_unsol_compl() 721 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl() 743 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl() 744 printk(KERN_ERR PFX "err_warn: io_req (0x%x) already " in bnx2fc_process_unsol_compl() 760 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl() 763 &io_req->req_flags)) { in bnx2fc_process_unsol_compl() [all …]
|
| H A D | bnx2fc_debug.h | 41 void BNX2FC_IO_DBG(const struct bnx2fc_cmd *io_req, const char *fmt, ...);
|
| H A D | bnx2fc_els.c | 35 rrq_req = cb_arg->io_req; in bnx2fc_rrq_compl() 138 els_req = cb_arg->io_req; in bnx2fc_l2_els_compl() 279 srr_req = cb_arg->io_req; in bnx2fc_srr_compl() 399 rec_req = cb_arg->io_req; in bnx2fc_rec_compl() 715 cb_arg->io_req = els_req; in bnx2fc_initiate_els()
|
| /linux/drivers/scsi/qedf/ |
| H A D | qedf_io.c | 11 void qedf_cmd_timer_set(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, in qedf_cmd_timer_set() argument 14 queue_delayed_work(qedf->timer_work_queue, &io_req->timeout_work, in qedf_cmd_timer_set() 21 struct qedf_ioreq *io_req = in qedf_cmd_timeout() local 26 fcport = io_req->fcport; in qedf_cmd_timeout() 27 if (io_req->fcport == NULL) { in qedf_cmd_timeout() 34 switch (io_req->cmd_type) { in qedf_cmd_timeout() 39 io_req->xid); in qedf_cmd_timeout() 44 io_req->xid); in qedf_cmd_timeout() 46 qedf_initiate_cleanup(io_req, true); in qedf_cmd_timeout() 47 complete(&io_req->abts_done); in qedf_cmd_timeout() [all …]
|
| H A D | qedf_els.c | 72 cb_arg->io_req = els_req; in qedf_initiate_els() 198 rrq_req = cb_arg->io_req; in qedf_rrq_compl() 207 "Original io_req is NULL, rrq_req = %p.\n", rrq_req); in qedf_rrq_compl() 217 * This should return the aborted io_req to the command pool. Note that in qedf_rrq_compl() 286 "refcount for xid=%x io_req=%p refcount=%d is not 1.\n", in qedf_send_rrq() 430 els_req = cb_arg->io_req; in qedf_l2_els_compl() 552 srr_req = cb_arg->io_req; in qedf_srr_compl() 744 struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) in qedf_process_seq_cleanup_compl() argument 749 cb_arg = io_req->cb_arg; in qedf_process_seq_cleanup_compl() 752 if (io_req->event == QEDF_IOREQ_EV_ELS_TMO || !cqe) { in qedf_process_seq_cleanup_compl() [all …]
|
| H A D | qedf_main.c | 728 struct qedf_ioreq *io_req; in qedf_eh_abort() local 751 io_req = qedf_priv(sc_cmd)->io_req; in qedf_eh_abort() 752 if (!io_req) { in qedf_eh_abort() 761 rval = kref_get_unless_zero(&io_req->refcount); /* ID: 005 */ in qedf_eh_abort() 765 /* If we got a valid io_req, confirm it belongs to this sc_cmd. */ in qedf_eh_abort() 766 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort() 768 "Freed/Incorrect io_req, io_req->sc_cmd=%p, sc_cmd=%p, port_id=%06x, bailing out.\n", in qedf_eh_abort() 769 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort() 775 refcount = kref_read(&io_req->refcount); in qedf_eh_abort() 777 "rport not ready, io_req=%p, xid=0x%x sc_cmd=%p op=0x%02x, refcount=%d, port_id=%06x\n", in qedf_eh_abort() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 448 static void ubd_end_request(struct io_thread_req *io_req) in ubd_end_request() argument 450 if (io_req->error == BLK_STS_NOTSUPP) { in ubd_end_request() 451 if (req_op(io_req->req) == REQ_OP_DISCARD) in ubd_end_request() 452 blk_queue_disable_discard(io_req->req->q); in ubd_end_request() 453 else if (req_op(io_req->req) == REQ_OP_WRITE_ZEROES) in ubd_end_request() 454 blk_queue_disable_write_zeroes(io_req->req->q); in ubd_end_request() 456 blk_mq_end_request(io_req->req, io_req->error); in ubd_end_request() 457 kfree(io_req); in ubd_end_request() 1191 static void ubd_map_req(struct ubd *dev, struct io_thread_req *io_req, in ubd_map_req() argument 1197 unsigned long byte_offset = io_req->offset; in ubd_map_req() [all …]
|
| /linux/samples/acrn/ |
| H A D | vm-sample.c | 50 struct acrn_io_request *io_req; in main() local 109 io_req = &io_req_buf[vcpu_id]; in main() 110 if ((__sync_add_and_fetch(&io_req->processed, 0) == ACRN_IOREQ_STATE_PROCESSING) in main() 111 && (!io_req->kernel_handled)) in main() 112 if (io_req->type == ACRN_IOREQ_TYPE_PORTIO) { in main() 115 port = io_req->reqs.pio_request.address; in main() 116 bytes = io_req->reqs.pio_request.size; in main() 117 in = (io_req->reqs.pio_request.direction == ACRN_IOREQ_DIR_READ); in main()
|
| /linux/drivers/md/ |
| H A D | dm-io.c | 464 static int dp_init(struct dm_io_request *io_req, struct dpages *dp, in dp_init() argument 472 switch (io_req->mem.type) { in dp_init() 474 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset); in dp_init() 478 bio_dp_init(dp, io_req->mem.ptr.bio); in dp_init() 482 flush_kernel_vmap_range(io_req->mem.ptr.vma, size); in dp_init() 483 if ((io_req->bi_opf & REQ_OP_MASK) == REQ_OP_READ) { in dp_init() 484 dp->vma_invalidate_address = io_req->mem.ptr.vma; in dp_init() 487 vm_dp_init(dp, io_req->mem.ptr.vma); in dp_init() 491 km_dp_init(dp, io_req->mem.ptr.addr); in dp_init() 501 int dm_io(struct dm_io_request *io_req, unsigned int num_regions, in dm_io() argument [all …]
|
| H A D | dm-snap-persistent.c | 217 struct dm_io_request *io_req; member 226 req->result = dm_io(req->io_req, 1, req->where, NULL, IOPRIO_DEFAULT); in do_metadata() 240 struct dm_io_request io_req = { in chunk_io() local 250 return dm_io(&io_req, 1, &where, NULL, IOPRIO_DEFAULT); in chunk_io() 253 req.io_req = &io_req; in chunk_io()
|
| H A D | dm-kcopyd.c | 558 struct dm_io_request io_req = { in run_io_job() local 581 r = dm_io(&io_req, 1, &job->source, NULL, IOPRIO_DEFAULT); in run_io_job() 583 r = dm_io(&io_req, job->num_dests, job->dests, NULL, IOPRIO_DEFAULT); in run_io_job()
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_lnode.c | 1435 struct csio_ioreq *io_req = NULL; in csio_ln_mgmt_wr_handler() local 1448 io_req = (struct csio_ioreq *) ((uintptr_t) wr_cmd->cookie); in csio_ln_mgmt_wr_handler() 1449 io_req->wr_status = csio_wr_status(wr_cmd); in csio_ln_mgmt_wr_handler() 1453 if (csio_mgmt_req_lookup(mgmtm, io_req) != 0) { in csio_ln_mgmt_wr_handler() 1456 io_req); in csio_ln_mgmt_wr_handler() 1465 list_del_init(&io_req->sm.sm_list); in csio_ln_mgmt_wr_handler() 1469 /* io_req will be freed by completion handler */ in csio_ln_mgmt_wr_handler() 1470 if (io_req->io_cbfn) in csio_ln_mgmt_wr_handler() 1471 io_req->io_cbfn(hw, io_req); in csio_ln_mgmt_wr_handler() 1669 * @io_req - IO request. [all …]
|
| H A D | csio_hw.c | 4081 * @io_req - io request 4087 csio_mgmt_req_lookup(struct csio_mgmtm *mgmtm, struct csio_ioreq *io_req) in csio_mgmt_req_lookup() argument 4093 if (io_req == (struct csio_ioreq *)tmp) in csio_mgmt_req_lookup() 4112 struct csio_ioreq *io_req; in csio_mgmt_tmo_handler() local 4119 io_req = (struct csio_ioreq *) tmp; in csio_mgmt_tmo_handler() 4120 io_req->tmo -= min_t(uint32_t, io_req->tmo, ECM_MIN_TMO); in csio_mgmt_tmo_handler() 4122 if (!io_req->tmo) { in csio_mgmt_tmo_handler() 4125 list_del_init(&io_req->sm.sm_list); in csio_mgmt_tmo_handler() 4126 if (io_req->io_cbfn) { in csio_mgmt_tmo_handler() 4127 /* io_req will be freed by completion handler */ in csio_mgmt_tmo_handler() [all …]
|
| /linux/include/linux/ |
| H A D | dm-io.h | 82 int dm_io(struct dm_io_request *io_req, unsigned int num_regions,
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_fusion.c | 3902 struct MPI2_RAID_SCSI_IO_REQUEST *io_req; in build_mpt_mfi_pass_thru() local 3924 io_req = cmd->io_request; in build_mpt_mfi_pass_thru() 3928 (struct MPI25_IEEE_SGE_CHAIN64 *)&io_req->SGL; in build_mpt_mfi_pass_thru() 3934 (struct MPI25_IEEE_SGE_CHAIN64 *)&io_req->SGL.IeeeChain; in build_mpt_mfi_pass_thru() 3936 io_req->Function = MEGASAS_MPI2_FUNCTION_PASSTHRU_IO_REQUEST; in build_mpt_mfi_pass_thru() 3937 io_req->SGLOffset0 = offsetof(struct MPI2_RAID_SCSI_IO_REQUEST, in build_mpt_mfi_pass_thru() 3939 io_req->ChainOffset = fusion->chain_offset_mfi_pthru; in build_mpt_mfi_pass_thru()
|