pending_req 208 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req); pending_req 470 drivers/block/xen-blkback/blkback.c static struct pending_req *alloc_req(struct xen_blkif_ring *ring) pending_req 472 drivers/block/xen-blkback/blkback.c struct pending_req *req = NULL; pending_req 477 drivers/block/xen-blkback/blkback.c req = list_entry(ring->pending_free.next, struct pending_req, pending_req 489 drivers/block/xen-blkback/blkback.c static void free_req(struct xen_blkif_ring *ring, struct pending_req *req) pending_req 722 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req = (struct pending_req *)(data->data); pending_req 723 drivers/block/xen-blkback/blkback.c struct xen_blkif_ring *ring = pending_req->ring; pending_req 731 drivers/block/xen-blkback/blkback.c make_response(ring, pending_req->id, pending_req 732 drivers/block/xen-blkback/blkback.c pending_req->operation, pending_req->status); pending_req 733 drivers/block/xen-blkback/blkback.c free_req(ring, pending_req); pending_req 752 drivers/block/xen-blkback/blkback.c static void xen_blkbk_unmap_and_respond(struct pending_req *req) pending_req 944 drivers/block/xen-blkback/blkback.c static int xen_blkbk_map_seg(struct pending_req *pending_req) pending_req 948 drivers/block/xen-blkback/blkback.c rc = xen_blkbk_map(pending_req->ring, pending_req->segments, pending_req 949 drivers/block/xen-blkback/blkback.c pending_req->nr_segs, pending_req 950 drivers/block/xen-blkback/blkback.c (pending_req->operation != BLKIF_OP_READ)); pending_req 956 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req, pending_req 960 drivers/block/xen-blkback/blkback.c struct grant_page **pages = pending_req->indirect_pages; pending_req 961 drivers/block/xen-blkback/blkback.c struct xen_blkif_ring *ring = pending_req->ring; pending_req 965 drivers/block/xen-blkback/blkback.c nseg = pending_req->nr_segs; pending_req 987 drivers/block/xen-blkback/blkback.c pending_req->segments[n]->gref = segments[i].gref; pending_req 1053 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req) pending_req 1055 drivers/block/xen-blkback/blkback.c free_req(ring, pending_req); pending_req 1078 drivers/block/xen-blkback/blkback.c static void __end_block_io_op(struct pending_req *pending_req, pending_req 1082 drivers/block/xen-blkback/blkback.c if (pending_req->operation == BLKIF_OP_FLUSH_DISKCACHE && pending_req 1085 drivers/block/xen-blkback/blkback.c xen_blkbk_flush_diskcache(XBT_NIL, pending_req->ring->blkif->be, 0); pending_req 1086 drivers/block/xen-blkback/blkback.c pending_req->status = BLKIF_RSP_EOPNOTSUPP; pending_req 1087 drivers/block/xen-blkback/blkback.c } else if (pending_req->operation == BLKIF_OP_WRITE_BARRIER && pending_req 1090 drivers/block/xen-blkback/blkback.c xen_blkbk_barrier(XBT_NIL, pending_req->ring->blkif->be, 0); pending_req 1091 drivers/block/xen-blkback/blkback.c pending_req->status = BLKIF_RSP_EOPNOTSUPP; pending_req 1095 drivers/block/xen-blkback/blkback.c pending_req->status = BLKIF_RSP_ERROR; pending_req 1103 drivers/block/xen-blkback/blkback.c if (atomic_dec_and_test(&pending_req->pendcnt)) pending_req 1104 drivers/block/xen-blkback/blkback.c xen_blkbk_unmap_and_respond(pending_req); pending_req 1128 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req; pending_req 1152 drivers/block/xen-blkback/blkback.c pending_req = alloc_req(ring); pending_req 1153 drivers/block/xen-blkback/blkback.c if (NULL == pending_req) { pending_req 1183 drivers/block/xen-blkback/blkback.c if (dispatch_rw_block_io(ring, &req, pending_req)) pending_req 1187 drivers/block/xen-blkback/blkback.c free_req(ring, pending_req); pending_req 1192 drivers/block/xen-blkback/blkback.c if (dispatch_other_io(ring, &req, pending_req)) pending_req 1226 drivers/block/xen-blkback/blkback.c struct pending_req *pending_req) pending_req 1229 drivers/block/xen-blkback/blkback.c struct seg_buf *seg = pending_req->seg; pending_req 1232 drivers/block/xen-blkback/blkback.c struct bio **biolist = pending_req->biolist; pending_req 1238 drivers/block/xen-blkback/blkback.c struct grant_page **pages = pending_req->segments; pending_req 1291 drivers/block/xen-blkback/blkback.c pending_req->ring = ring; pending_req 1292 drivers/block/xen-blkback/blkback.c pending_req->id = req->u.rw.id; pending_req 1293 drivers/block/xen-blkback/blkback.c pending_req->operation = req_operation; pending_req 1294 drivers/block/xen-blkback/blkback.c pending_req->status = BLKIF_RSP_OKAY; pending_req 1295 drivers/block/xen-blkback/blkback.c pending_req->nr_segs = nseg; pending_req 1314 drivers/block/xen-blkback/blkback.c if (xen_blkbk_parse_indirect(req, pending_req, seg, &preq)) pending_req 1344 drivers/block/xen-blkback/blkback.c xen_blk_drain_io(pending_req->ring); pending_req 1352 drivers/block/xen-blkback/blkback.c if (xen_blkbk_map_seg(pending_req)) pending_req 1376 drivers/block/xen-blkback/blkback.c bio->bi_private = pending_req; pending_req 1395 drivers/block/xen-blkback/blkback.c bio->bi_private = pending_req; pending_req 1400 drivers/block/xen-blkback/blkback.c atomic_set(&pending_req->pendcnt, nbio); pending_req 1417 drivers/block/xen-blkback/blkback.c xen_blkbk_unmap(ring, pending_req->segments, pending_req 1418 drivers/block/xen-blkback/blkback.c pending_req->nr_segs); pending_req 1422 drivers/block/xen-blkback/blkback.c free_req(ring, pending_req); pending_req 1429 drivers/block/xen-blkback/blkback.c atomic_set(&pending_req->pendcnt, 1); pending_req 1430 drivers/block/xen-blkback/blkback.c __end_block_io_op(pending_req, BLK_STS_RESOURCE); pending_req 247 drivers/block/xen-blkback/xenbus.c struct pending_req *req, *n; pending_req 927 drivers/block/xen-blkback/xenbus.c struct pending_req *req, *n; pending_req 4029 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_vf->vf_mbx.pending_req = (((u64)vf_msg->hi) << 32) | vf_msg->lo; pending_req 4111 drivers/net/ethernet/qlogic/qed/qed_sriov.c vf_info->vf_mbx.pending_req, pending_req 141 drivers/net/ethernet/qlogic/qed/qed_sriov.h dma_addr_t pending_req; pending_req 259 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req) pending_req 261 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = pending_req->v2p->tpg; pending_req 264 drivers/xen/xen-scsiback.c tpg->tport->tport_name, pending_req->v2p->lun, pending_req 265 drivers/xen/xen-scsiback.c pending_req->cmnd[0], status_byte(errors), msg_byte(errors), pending_req 361 drivers/xen/xen-scsiback.c uint32_t resid, struct vscsibk_pend *pending_req) pending_req 363 drivers/xen/xen-scsiback.c scsiback_send_response(pending_req->info, sense_buffer, result, pending_req 364 drivers/xen/xen-scsiback.c resid, pending_req->rqid); pending_req 366 drivers/xen/xen-scsiback.c if (pending_req->v2p) pending_req 367 drivers/xen/xen-scsiback.c kref_put(&pending_req->v2p->kref, pending_req 371 drivers/xen/xen-scsiback.c static void scsiback_cmd_done(struct vscsibk_pend *pending_req) pending_req 373 drivers/xen/xen-scsiback.c struct vscsibk_info *info = pending_req->info; pending_req 378 drivers/xen/xen-scsiback.c sense_buffer = pending_req->sense_buffer; pending_req 379 drivers/xen/xen-scsiback.c resid = pending_req->se_cmd.residual_count; pending_req 380 drivers/xen/xen-scsiback.c errors = pending_req->result; pending_req 383 drivers/xen/xen-scsiback.c scsiback_print_status(sense_buffer, errors, pending_req); pending_req 385 drivers/xen/xen-scsiback.c scsiback_fast_flush_area(pending_req); pending_req 386 drivers/xen/xen-scsiback.c scsiback_do_resp_with_sense(sense_buffer, errors, resid, pending_req); pending_req 393 drivers/xen/xen-scsiback.c target_put_sess_cmd(&pending_req->se_cmd); pending_req 396 drivers/xen/xen-scsiback.c static void scsiback_cmd_exec(struct vscsibk_pend *pending_req) pending_req 398 drivers/xen/xen-scsiback.c struct se_cmd *se_cmd = &pending_req->se_cmd; pending_req 399 drivers/xen/xen-scsiback.c struct se_session *sess = pending_req->v2p->tpg->tpg_nexus->tvn_se_sess; pending_req 402 drivers/xen/xen-scsiback.c scsiback_get(pending_req->info); pending_req 403 drivers/xen/xen-scsiback.c se_cmd->tag = pending_req->rqid; pending_req 404 drivers/xen/xen-scsiback.c rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, pending_req 405 drivers/xen/xen-scsiback.c pending_req->sense_buffer, pending_req->v2p->lun, pending_req 406 drivers/xen/xen-scsiback.c pending_req->data_len, 0, pending_req 407 drivers/xen/xen-scsiback.c pending_req->sc_data_direction, TARGET_SCF_ACK_KREF, pending_req 408 drivers/xen/xen-scsiback.c pending_req->sgl, pending_req->n_sg, pending_req 440 drivers/xen/xen-scsiback.c static int scsiback_gnttab_data_map_list(struct vscsibk_pend *pending_req, pending_req 446 drivers/xen/xen-scsiback.c struct vscsibk_info *info = pending_req->info; pending_req 462 drivers/xen/xen-scsiback.c pending_req->n_grants += mapcount; pending_req 468 drivers/xen/xen-scsiback.c pending_req->n_grants += mapcount; pending_req 473 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req) pending_req 485 drivers/xen/xen-scsiback.c pending_req->n_sg = 0; pending_req 486 drivers/xen/xen-scsiback.c pending_req->n_grants = 0; pending_req 487 drivers/xen/xen-scsiback.c pending_req->data_len = 0; pending_req 500 drivers/xen/xen-scsiback.c err = scsiback_gnttab_data_map_list(pending_req, ring_req->seg, pending_req 501 drivers/xen/xen-scsiback.c pending_req->pages, pending_req->grant_handles, pending_req 524 drivers/xen/xen-scsiback.c pending_req->sgl = kmalloc_array(nr_segments, pending_req 526 drivers/xen/xen-scsiback.c if (!pending_req->sgl) pending_req 529 drivers/xen/xen-scsiback.c sg_init_table(pending_req->sgl, nr_segments); pending_req 530 drivers/xen/xen-scsiback.c pending_req->n_sg = nr_segments; pending_req 533 drivers/xen/xen-scsiback.c if (pending_req->sc_data_direction == DMA_TO_DEVICE) pending_req 536 drivers/xen/xen-scsiback.c pg = pending_req->pages + nr_sgl; pending_req 537 drivers/xen/xen-scsiback.c grant = pending_req->grant_handles + nr_sgl; pending_req 540 drivers/xen/xen-scsiback.c err = scsiback_gnttab_data_map_list(pending_req, seg, pending_req 547 drivers/xen/xen-scsiback.c vaddr(pending_req, i) + ring_req->seg[i].offset); pending_req 550 drivers/xen/xen-scsiback.c err = scsiback_gnttab_data_map_list(pending_req, seg, pending_req 557 drivers/xen/xen-scsiback.c end_seg = vaddr(pending_req, 0) + ring_req->seg[0].offset; pending_req 560 drivers/xen/xen-scsiback.c pg = pending_req->pages + nr_sgl; pending_req 563 drivers/xen/xen-scsiback.c for_each_sg(pending_req->sgl, sg, nr_segments, i) { pending_req 565 drivers/xen/xen-scsiback.c pending_req->data_len += seg->length; pending_req 569 drivers/xen/xen-scsiback.c end_seg = vaddr(pending_req, i_seg) + pending_req 593 drivers/xen/xen-scsiback.c static void scsiback_device_action(struct vscsibk_pend *pending_req, pending_req 596 drivers/xen/xen-scsiback.c struct scsiback_tpg *tpg = pending_req->v2p->tpg; pending_req 598 drivers/xen/xen-scsiback.c struct se_cmd *se_cmd = &pending_req->se_cmd; pending_req 599 drivers/xen/xen-scsiback.c u64 unpacked_lun = pending_req->v2p->lun; pending_req 602 drivers/xen/xen-scsiback.c init_completion(&pending_req->tmr_done); pending_req 604 drivers/xen/xen-scsiback.c rc = target_submit_tmr(&pending_req->se_cmd, nexus->tvn_se_sess, pending_req 605 drivers/xen/xen-scsiback.c &pending_req->sense_buffer[0], pending_req 611 drivers/xen/xen-scsiback.c wait_for_completion(&pending_req->tmr_done); pending_req 616 drivers/xen/xen-scsiback.c scsiback_do_resp_with_sense(NULL, err, 0, pending_req); pending_req 617 drivers/xen/xen-scsiback.c transport_generic_free_cmd(&pending_req->se_cmd, 0); pending_req 621 drivers/xen/xen-scsiback.c scsiback_do_resp_with_sense(NULL, err, 0, pending_req); pending_req 680 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req; pending_req 710 drivers/xen/xen-scsiback.c pending_req = scsiback_get_pend_req(ring, v2p); pending_req 711 drivers/xen/xen-scsiback.c if (IS_ERR(pending_req)) { pending_req 715 drivers/xen/xen-scsiback.c pending_req->rqid = ring_req->rqid; pending_req 716 drivers/xen/xen-scsiback.c pending_req->info = info; pending_req 717 drivers/xen/xen-scsiback.c pending_req->v2p = v2p; pending_req 718 drivers/xen/xen-scsiback.c pending_req->sc_data_direction = ring_req->sc_data_direction; pending_req 719 drivers/xen/xen-scsiback.c pending_req->cmd_len = ring_req->cmd_len; pending_req 720 drivers/xen/xen-scsiback.c memcpy(pending_req->cmnd, ring_req->cmnd, pending_req->cmd_len); pending_req 722 drivers/xen/xen-scsiback.c return pending_req; pending_req 729 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req; pending_req 753 drivers/xen/xen-scsiback.c pending_req = prepare_pending_reqs(info, ring, &ring_req); pending_req 754 drivers/xen/xen-scsiback.c if (IS_ERR(pending_req)) { pending_req 755 drivers/xen/xen-scsiback.c switch (PTR_ERR(pending_req)) { pending_req 770 drivers/xen/xen-scsiback.c if (scsiback_gnttab_data_map(&ring_req, pending_req)) { pending_req 771 drivers/xen/xen-scsiback.c scsiback_fast_flush_area(pending_req); pending_req 773 drivers/xen/xen-scsiback.c DRIVER_ERROR << 24, 0, pending_req); pending_req 774 drivers/xen/xen-scsiback.c transport_generic_free_cmd(&pending_req->se_cmd, 0); pending_req 776 drivers/xen/xen-scsiback.c scsiback_cmd_exec(pending_req); pending_req 780 drivers/xen/xen-scsiback.c scsiback_device_action(pending_req, TMR_ABORT_TASK, pending_req 784 drivers/xen/xen-scsiback.c scsiback_device_action(pending_req, TMR_LUN_RESET, 0); pending_req 789 drivers/xen/xen-scsiback.c pending_req); pending_req 790 drivers/xen/xen-scsiback.c transport_generic_free_cmd(&pending_req->se_cmd, 0); pending_req 1418 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req = container_of(se_cmd, pending_req 1421 drivers/xen/xen-scsiback.c pending_req->result = SAM_STAT_GOOD; pending_req 1422 drivers/xen/xen-scsiback.c scsiback_cmd_done(pending_req); pending_req 1428 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req = container_of(se_cmd, pending_req 1434 drivers/xen/xen-scsiback.c pending_req->result = (DRIVER_SENSE << 24) | pending_req 1437 drivers/xen/xen-scsiback.c pending_req->result = se_cmd->scsi_status; pending_req 1439 drivers/xen/xen-scsiback.c scsiback_cmd_done(pending_req); pending_req 1445 drivers/xen/xen-scsiback.c struct vscsibk_pend *pending_req = container_of(se_cmd, pending_req 1448 drivers/xen/xen-scsiback.c complete(&pending_req->tmr_done);