/Linux-v4.19/drivers/scsi/bnx2fc/ |
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 …]
|
D | bnx2fc_tgt.c | 168 struct bnx2fc_cmd *io_req; in bnx2fc_flush_active_ios() local 178 list_for_each_entry_safe(io_req, tmp, &tgt->active_cmd_queue, link) { in bnx2fc_flush_active_ios() 180 list_del_init(&io_req->link); in bnx2fc_flush_active_ios() 181 io_req->on_active_queue = 0; in bnx2fc_flush_active_ios() 182 BNX2FC_IO_DBG(io_req, "cmd_queue cleanup\n"); in bnx2fc_flush_active_ios() 184 if (cancel_delayed_work(&io_req->timeout_work)) { in bnx2fc_flush_active_ios() 186 &io_req->req_flags)) { in bnx2fc_flush_active_ios() 188 BNX2FC_IO_DBG(io_req, "eh_abort for IO " in bnx2fc_flush_active_ios() 190 complete(&io_req->tm_done); in bnx2fc_flush_active_ios() 192 kref_put(&io_req->refcount, in bnx2fc_flush_active_ios() [all …]
|
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()
|
D | bnx2fc_hwi.c | 635 struct bnx2fc_cmd *io_req = NULL; in bnx2fc_process_unsol_compl() local 718 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl() 719 if (!io_req) in bnx2fc_process_unsol_compl() 722 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl() 728 &io_req->req_flags)) { in bnx2fc_process_unsol_compl() 729 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl() 751 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl() 768 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl() 771 &io_req->req_flags)) { in bnx2fc_process_unsol_compl() 773 rc = bnx2fc_send_rec(io_req); in bnx2fc_process_unsol_compl() [all …]
|
D | bnx2fc.h | 408 struct bnx2fc_cmd *io_req; member 472 struct bnx2fc_cmd *io_req; member 523 int bnx2fc_initiate_cleanup(struct bnx2fc_cmd *io_req); 524 int bnx2fc_initiate_abts(struct bnx2fc_cmd *io_req); 525 void bnx2fc_cmd_timer_set(struct bnx2fc_cmd *io_req, 527 int bnx2fc_init_mp_req(struct bnx2fc_cmd *io_req); 528 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, 535 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, 537 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, 547 void bnx2fc_process_scsi_cmd_compl(struct bnx2fc_cmd *io_req, [all …]
|
D | bnx2fc_debug.h | 41 void BNX2FC_IO_DBG(const struct bnx2fc_cmd *io_req, const char *fmt, ...);
|
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-v4.19/drivers/scsi/qedf/ |
D | qedf_io.c | 14 void qedf_cmd_timer_set(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, in qedf_cmd_timer_set() argument 17 queue_delayed_work(qedf->timer_work_queue, &io_req->timeout_work, in qedf_cmd_timer_set() 24 struct qedf_ioreq *io_req = in qedf_cmd_timeout() local 30 if (io_req == NULL) { in qedf_cmd_timeout() 35 fcport = io_req->fcport; in qedf_cmd_timeout() 36 if (io_req->fcport == NULL) { in qedf_cmd_timeout() 43 switch (io_req->cmd_type) { in qedf_cmd_timeout() 47 io_req->xid); in qedf_cmd_timeout() 52 io_req->xid); in qedf_cmd_timeout() 54 qedf_initiate_cleanup(io_req, true); in qedf_cmd_timeout() [all …]
|
D | qedf.h | 80 struct qedf_ioreq *io_req; member 402 struct qedf_ioreq *io_req; member 457 struct qedf_ioreq *io_req); 459 struct fcoe_cqe *cqe, struct qedf_ioreq *io_req); 461 struct fcoe_cqe *cqe, struct qedf_ioreq *io_req); 464 extern int qedf_initiate_abts(struct qedf_ioreq *io_req, 467 struct qedf_ioreq *io_req); 472 extern void qedf_cmd_timer_set(struct qedf_ctx *qedf, struct qedf_ioreq *io_req, 474 extern int qedf_init_mp_req(struct qedf_ioreq *io_req); 475 extern void qedf_init_mp_task(struct qedf_ioreq *io_req, [all …]
|
D | qedf_els.c | 83 cb_arg->io_req = els_req; in qedf_initiate_els() 189 rrq_req = cb_arg->io_req; in qedf_rrq_compl() 380 els_req = cb_arg->io_req; in qedf_l2_els_compl() 499 srr_req = cb_arg->io_req; in qedf_srr_compl() 687 struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) in qedf_process_seq_cleanup_compl() argument 692 cb_arg = io_req->cb_arg; in qedf_process_seq_cleanup_compl() 695 if (io_req->event == QEDF_IOREQ_EV_ELS_TMO || !cqe) in qedf_process_seq_cleanup_compl() 699 cancel_delayed_work_sync(&io_req->timeout_work); in qedf_process_seq_cleanup_compl() 701 rc = qedf_send_srr(io_req, cb_arg->offset, cb_arg->r_ctl); in qedf_process_seq_cleanup_compl() 704 "abort, xid=0x%x.\n", io_req->xid); in qedf_process_seq_cleanup_compl() [all …]
|
D | qedf_main.c | 622 struct qedf_ioreq *io_req; in qedf_eh_abort() local 641 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; in qedf_eh_abort() 642 if (!io_req) { in qedf_eh_abort() 649 "fp_idx=%d.\n", sc_cmd, io_req->xid, io_req->fp_idx); in qedf_eh_abort() 657 init_completion(&io_req->abts_done); in qedf_eh_abort() 658 rval = qedf_initiate_abts(io_req, true); in qedf_eh_abort() 664 wait_for_completion(&io_req->abts_done); in qedf_eh_abort() 666 if (io_req->event == QEDF_IOREQ_EV_ABORT_SUCCESS || in qedf_eh_abort() 667 io_req->event == QEDF_IOREQ_EV_ABORT_FAILED || in qedf_eh_abort() 668 io_req->event == QEDF_IOREQ_EV_CLEANUP_SUCCESS) { in qedf_eh_abort() [all …]
|
/Linux-v4.19/drivers/scsi/fnic/ |
D | fnic_scsi.c | 125 struct fnic_io_req *io_req, in fnic_release_ioreq_buf() argument 128 if (io_req->sgl_list_pa) in fnic_release_ioreq_buf() 129 pci_unmap_single(fnic->pdev, io_req->sgl_list_pa, in fnic_release_ioreq_buf() 130 sizeof(io_req->sgl_list[0]) * io_req->sgl_cnt, in fnic_release_ioreq_buf() 134 if (io_req->sgl_cnt) in fnic_release_ioreq_buf() 135 mempool_free(io_req->sgl_list_alloc, in fnic_release_ioreq_buf() 136 fnic->io_sgl_pool[io_req->sgl_type]); in fnic_release_ioreq_buf() 137 if (io_req->sense_buf_pa) in fnic_release_ioreq_buf() 138 pci_unmap_single(fnic->pdev, io_req->sense_buf_pa, in fnic_release_ioreq_buf() 319 struct fnic_io_req *io_req, in fnic_queue_wq_copy_desc() argument [all …]
|
/Linux-v4.19/drivers/md/ |
D | dm-io.c | 492 static int dp_init(struct dm_io_request *io_req, struct dpages *dp, in dp_init() argument 500 switch (io_req->mem.type) { in dp_init() 502 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset); in dp_init() 506 bio_dp_init(dp, io_req->mem.ptr.bio); in dp_init() 510 flush_kernel_vmap_range(io_req->mem.ptr.vma, size); in dp_init() 511 if (io_req->bi_op == REQ_OP_READ) { in dp_init() 512 dp->vma_invalidate_address = io_req->mem.ptr.vma; in dp_init() 515 vm_dp_init(dp, io_req->mem.ptr.vma); in dp_init() 519 km_dp_init(dp, io_req->mem.ptr.addr); in dp_init() 537 int dm_io(struct dm_io_request *io_req, unsigned num_regions, in dm_io() argument [all …]
|
D | dm-log.c | 240 struct dm_io_request io_req; member 296 lc->io_req.bi_op = op; in rw_header() 297 lc->io_req.bi_op_flags = 0; in rw_header() 299 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header() 310 lc->io_req.bi_op = REQ_OP_WRITE; in flush_header() 311 lc->io_req.bi_op_flags = REQ_PREFLUSH; in flush_header() 313 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header() 459 lc->io_req.mem.type = DM_IO_VMA; in create_log_context() 460 lc->io_req.notify.fn = NULL; in create_log_context() 461 lc->io_req.client = dm_io_client_create(); in create_log_context() [all …]
|
D | dm-integrity.c | 438 struct dm_io_request io_req; in sync_rw_sb() local 441 io_req.bi_op = op; in sync_rw_sb() 442 io_req.bi_op_flags = op_flags; in sync_rw_sb() 443 io_req.mem.type = DM_IO_KMEM; in sync_rw_sb() 444 io_req.mem.ptr.addr = ic->sb; in sync_rw_sb() 445 io_req.notify.fn = NULL; in sync_rw_sb() 446 io_req.client = ic->io; in sync_rw_sb() 451 return dm_io(&io_req, 1, &io_loc, NULL); in sync_rw_sb() 762 struct dm_io_request io_req; in rw_journal() local 779 io_req.bi_op = op; in rw_journal() [all …]
|
D | dm-snap-persistent.c | 214 struct dm_io_request *io_req; member 223 req->result = dm_io(req->io_req, 1, req->where, NULL); in do_metadata() 237 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()
|
D | dm-raid1.c | 262 struct dm_io_request io_req = { in mirror_flush() local 277 dm_io(&io_req, ms->nr_mirrors, io, &error_bits); in mirror_flush() 537 struct dm_io_request io_req = { in read_async_bio() local 549 BUG_ON(dm_io(&io_req, 1, &io, NULL)); in read_async_bio() 651 struct dm_io_request io_req = { in do_write() local 662 io_req.bi_op = REQ_OP_DISCARD; in do_write() 663 io_req.mem.type = DM_IO_KMEM; in do_write() 664 io_req.mem.ptr.addr = NULL; in do_write() 676 BUG_ON(dm_io(&io_req, ms->nr_mirrors, io, NULL)); in do_write()
|
D | dm-bufio.c | 537 struct dm_io_request io_req = { in use_dmio() local 551 io_req.mem.type = DM_IO_KMEM; in use_dmio() 552 io_req.mem.ptr.addr = (char *)b->data + offset; in use_dmio() 554 io_req.mem.type = DM_IO_VMA; in use_dmio() 555 io_req.mem.ptr.vma = (char *)b->data + offset; in use_dmio() 558 r = dm_io(&io_req, 1, ®ion, NULL); in use_dmio() 1334 struct dm_io_request io_req = { in dm_bufio_issue_flush() local 1349 return dm_io(&io_req, 1, &io_reg, NULL); in dm_bufio_issue_flush()
|
/Linux-v4.19/arch/um/drivers/ |
D | ubd_kern.c | 1294 static void prepare_request(struct request *req, struct io_thread_req *io_req, in prepare_request() argument 1301 io_req->req = req; in prepare_request() 1302 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_request() 1304 io_req->fds[1] = ubd_dev->fd; in prepare_request() 1305 io_req->cow_offset = -1; in prepare_request() 1306 io_req->offset = offset; in prepare_request() 1307 io_req->length = len; in prepare_request() 1308 io_req->error = 0; in prepare_request() 1309 io_req->sector_mask = 0; in prepare_request() 1311 io_req->op = (rq_data_dir(req) == READ) ? UBD_READ : UBD_WRITE; in prepare_request() [all …]
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | rtw_io.h | 111 struct io_req { struct 120 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt); argument 272 extern void sync_ioreq_enqueue(struct io_req *preq, struct io_queue *ioqueue); 276 extern uint free_ioreq(struct io_req *preq, struct io_queue *pio_queue); 277 extern struct io_req *alloc_ioreq(struct io_queue *pio_q); 321 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt), u8 *cnxt); 323 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt), u8 *cnxt); 325 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt), u8 *cnxt); 331 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt), u8 *cnxt); 333 void (*_async_io_callback)(struct adapter *padater, struct io_req *pio_req, u8 *cnxt), u8 *cnxt); [all …]
|
/Linux-v4.19/drivers/scsi/csiostor/ |
D | csio_lnode.c | 1433 struct csio_ioreq *io_req = NULL; in csio_ln_mgmt_wr_handler() local 1446 io_req = (struct csio_ioreq *) ((uintptr_t) wr_cmd->cookie); in csio_ln_mgmt_wr_handler() 1447 io_req->wr_status = csio_wr_status(wr_cmd); in csio_ln_mgmt_wr_handler() 1451 if (csio_mgmt_req_lookup(mgmtm, io_req) != 0) { in csio_ln_mgmt_wr_handler() 1454 io_req); in csio_ln_mgmt_wr_handler() 1463 list_del_init(&io_req->sm.sm_list); in csio_ln_mgmt_wr_handler() 1468 if (io_req->io_cbfn) in csio_ln_mgmt_wr_handler() 1469 io_req->io_cbfn(hw, io_req); in csio_ln_mgmt_wr_handler() 1678 csio_ln_prep_ecwr(struct csio_ioreq *io_req, uint32_t wr_len, in csio_ln_prep_ecwr() argument 1695 wr->cookie = io_req->fw_handle; in csio_ln_prep_ecwr() [all …]
|
D | csio_hw.c | 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() 4128 io_req->wr_status = -ETIMEDOUT; in csio_mgmt_tmo_handler() 4129 io_req->io_cbfn(mgmtm->hw, io_req); in csio_mgmt_tmo_handler() [all …]
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl871x_io.c | 113 struct io_req *pio_req; in r8712_alloc_io_queue() 123 (sizeof(struct io_req)) + 4, in r8712_alloc_io_queue() 128 (NUM_IOREQ * (sizeof(struct io_req)) + 4)); in r8712_alloc_io_queue() 132 pio_req = (struct io_req *)(pio_queue->free_ioreqs_buf); in r8712_alloc_io_queue()
|
D | rtl871x_io.h | 113 struct io_req { struct 121 struct io_req *pio_req, u8 *cnxt); argument
|
/Linux-v4.19/include/linux/ |
D | dm-io.h | 81 int dm_io(struct dm_io_request *io_req, unsigned num_regions,
|