ireq 355 drivers/block/rbd.c #define for_each_obj_request(ireq, oreq) \ ireq 356 drivers/block/rbd.c list_for_each_entry(oreq, &(ireq)->object_extents, ex.oe_item) ireq 357 drivers/block/rbd.c #define for_each_obj_request_safe(ireq, oreq, n) \ ireq 358 drivers/block/rbd.c list_for_each_entry_safe(oreq, n, &(ireq)->object_extents, ex.oe_item) ireq 260 drivers/scsi/isci/host.c struct isci_request *ireq = ihost->reqs[index]; ireq 263 drivers/scsi/isci/host.c if (test_bit(IREQ_ACTIVE, &ireq->flags) && ireq 264 drivers/scsi/isci/host.c ireq->io_tag != SCI_CONTROLLER_INVALID_IO_TAG && ireq 265 drivers/scsi/isci/host.c ISCI_TAG_SEQ(ireq->io_tag) == ihost->io_request_sequence[index]) ireq 269 drivers/scsi/isci/host.c sci_io_request_tc_completion(ireq, ent); ireq 275 drivers/scsi/isci/host.c struct isci_request *ireq; ireq 283 drivers/scsi/isci/host.c ireq = ihost->reqs[index]; ireq 285 drivers/scsi/isci/host.c __func__, ent, ireq); ireq 371 drivers/scsi/isci/host.c struct isci_request *ireq; ireq 403 drivers/scsi/isci/host.c ireq = ihost->reqs[index]; ireq 404 drivers/scsi/isci/host.c sci_io_request_event_handler(ireq, ent); ireq 411 drivers/scsi/isci/host.c ireq = ihost->reqs[index]; ireq 412 drivers/scsi/isci/host.c if (ireq != NULL) ireq 413 drivers/scsi/isci/host.c sci_io_request_event_handler(ireq, ent); ireq 1080 drivers/scsi/isci/host.c void ireq_done(struct isci_host *ihost, struct isci_request *ireq, struct sas_task *task) ireq 1082 drivers/scsi/isci/host.c if (!test_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags) && ireq 1084 drivers/scsi/isci/host.c if (test_bit(IREQ_COMPLETE_IN_TARGET, &ireq->flags)) { ireq 1088 drivers/scsi/isci/host.c __func__, ireq, task); ireq 1094 drivers/scsi/isci/host.c __func__, ireq, task); ireq 1102 drivers/scsi/isci/host.c if (test_and_clear_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags)) ireq 1105 drivers/scsi/isci/host.c if (!test_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags)) ireq 1106 drivers/scsi/isci/host.c isci_free_tag(ihost, ireq->io_tag); ireq 2281 drivers/scsi/isci/host.c struct isci_request *ireq; ireq 2284 drivers/scsi/isci/host.c ireq = dmam_alloc_coherent(dev, sizeof(*ireq), &dma, GFP_KERNEL); ireq 2285 drivers/scsi/isci/host.c if (!ireq) ireq 2288 drivers/scsi/isci/host.c ireq->tc = &ihost->task_context_table[i]; ireq 2289 drivers/scsi/isci/host.c ireq->owning_controller = ihost; ireq 2290 drivers/scsi/isci/host.c ireq->request_daddr = dma; ireq 2291 drivers/scsi/isci/host.c ireq->isci_host = ihost; ireq 2292 drivers/scsi/isci/host.c ihost->reqs[i] = ireq; ireq 2468 drivers/scsi/isci/host.c struct isci_request *ireq = ihost->reqs[task_index]; ireq 2470 drivers/scsi/isci/host.c if (test_bit(IREQ_ACTIVE, &ireq->flags)) { ireq 2474 drivers/scsi/isci/host.c return ireq; ireq 2606 drivers/scsi/isci/host.c struct isci_request *ireq) ireq 2616 drivers/scsi/isci/host.c status = sci_remote_device_start_io(ihost, idev, ireq); ireq 2620 drivers/scsi/isci/host.c set_bit(IREQ_ACTIVE, &ireq->flags); ireq 2621 drivers/scsi/isci/host.c sci_controller_post_request(ihost, ireq->post_context); ireq 2627 drivers/scsi/isci/host.c struct isci_request *ireq) ireq 2640 drivers/scsi/isci/host.c status = sci_io_request_terminate(ireq); ireq 2643 drivers/scsi/isci/host.c __func__, status, ireq, ireq->flags); ireq 2646 drivers/scsi/isci/host.c !test_bit(IREQ_PENDING_ABORT, &ireq->flags) && ireq 2647 drivers/scsi/isci/host.c !test_and_set_bit(IREQ_TC_ABORT_POSTED, &ireq->flags)) { ireq 2652 drivers/scsi/isci/host.c ihost, ireq->post_context | ireq 2671 drivers/scsi/isci/host.c struct isci_request *ireq) ireq 2681 drivers/scsi/isci/host.c status = sci_remote_device_complete_io(ihost, idev, ireq); ireq 2685 drivers/scsi/isci/host.c index = ISCI_TAG_TCI(ireq->io_tag); ireq 2686 drivers/scsi/isci/host.c clear_bit(IREQ_ACTIVE, &ireq->flags); ireq 2696 drivers/scsi/isci/host.c enum sci_status sci_controller_continue_io(struct isci_request *ireq) ireq 2698 drivers/scsi/isci/host.c struct isci_host *ihost = ireq->owning_controller; ireq 2706 drivers/scsi/isci/host.c set_bit(IREQ_ACTIVE, &ireq->flags); ireq 2707 drivers/scsi/isci/host.c sci_controller_post_request(ihost, ireq->post_context); ireq 2722 drivers/scsi/isci/host.c struct isci_request *ireq) ireq 2734 drivers/scsi/isci/host.c status = sci_remote_device_start_task(ihost, idev, ireq); ireq 2737 drivers/scsi/isci/host.c set_bit(IREQ_ACTIVE, &ireq->flags); ireq 2746 drivers/scsi/isci/host.c set_bit(IREQ_ACTIVE, &ireq->flags); ireq 2747 drivers/scsi/isci/host.c sci_controller_post_request(ihost, ireq->post_context); ireq 472 drivers/scsi/isci/host.h enum sci_status sci_controller_continue_io(struct isci_request *ireq); ireq 478 drivers/scsi/isci/host.h void ireq_done(struct isci_host *ihost, struct isci_request *ireq, struct sas_task *task); ireq 490 drivers/scsi/isci/host.h struct isci_request *ireq); ireq 495 drivers/scsi/isci/host.h struct isci_request *ireq); ireq 500 drivers/scsi/isci/host.h struct isci_request *ireq); ireq 505 drivers/scsi/isci/host.h struct isci_request *ireq); ireq 1383 drivers/scsi/isci/port.c struct isci_request *ireq) ireq 1403 drivers/scsi/isci/port.c struct isci_request *ireq) ireq 247 drivers/scsi/isci/port.h struct isci_request *ireq); ireq 252 drivers/scsi/isci/port.h struct isci_request *ireq); ireq 105 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 107 drivers/scsi/isci/remote_device.c if (!test_bit(IREQ_ACTIVE, &ireq->flags) || ireq 108 drivers/scsi/isci/remote_device.c (ireq->target_device != idev) || ireq 109 drivers/scsi/isci/remote_device.c (check_abort && !test_bit(IREQ_PENDING_ABORT, &ireq->flags))) ireq 114 drivers/scsi/isci/remote_device.c __func__, idev, idev->flags, ireq, ireq->target_device); ireq 116 drivers/scsi/isci/remote_device.c set_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags); ireq 118 drivers/scsi/isci/remote_device.c return sci_controller_terminate_request(ihost, idev, ireq); ireq 130 drivers/scsi/isci/remote_device.c struct isci_request *ireq = ihost->reqs[i]; ireq 133 drivers/scsi/isci/remote_device.c s = sci_remote_device_terminate_req(ihost, idev, chk, ireq); ireq 156 drivers/scsi/isci/remote_device.c struct isci_request *ireq, ireq 164 drivers/scsi/isci/remote_device.c && !test_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags); ireq 189 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 213 drivers/scsi/isci/remote_device.c __func__, idev, ireq, idev->started_request_count, ireq 217 drivers/scsi/isci/remote_device.c if (ireq) { ireq 219 drivers/scsi/isci/remote_device.c set_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags); ireq 220 drivers/scsi/isci/remote_device.c sci_remote_device_terminate_req(ihost, idev, 0, ireq); ireq 223 drivers/scsi/isci/remote_device.c isci_check_reqterm(ihost, idev, ireq, ireq 244 drivers/scsi/isci/remote_device.c ireq, ireq->flags); ireq 247 drivers/scsi/isci/remote_device.c clear_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags); ireq 248 drivers/scsi/isci/remote_device.c if (!test_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags)) ireq 249 drivers/scsi/isci/remote_device.c isci_free_tag(ihost, ireq->io_tag); ireq 466 drivers/scsi/isci/remote_device.c struct isci_request *ireq; ireq 480 drivers/scsi/isci/remote_device.c ireq = sci_request_by_tag(ihost, be16_to_cpu(hdr.tag)); ireq 481 drivers/scsi/isci/remote_device.c if (ireq && ireq->target_device == idev) { ireq 483 drivers/scsi/isci/remote_device.c status = sci_io_request_frame_handler(ireq, frame_index); ireq 562 drivers/scsi/isci/remote_device.c struct isci_request *ireq = idev->working_request; ireq 564 drivers/scsi/isci/remote_device.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 639 drivers/scsi/isci/remote_device.c struct isci_request *ireq, ireq 646 drivers/scsi/isci/remote_device.c sci_port_complete_io(iport, idev, ireq); ireq 655 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 681 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 685 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_io(&idev->rnc, ireq); ireq 689 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 701 drivers/scsi/isci/remote_device.c struct sas_task *task = isci_request_access_task(ireq); ireq 703 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 707 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_io(&idev->rnc, ireq); ireq 711 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 718 drivers/scsi/isci/remote_device.c idev->working_request = ireq; ireq 725 drivers/scsi/isci/remote_device.c struct sas_task *task = isci_request_access_task(ireq); ireq 728 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 732 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_io(&idev->rnc, ireq); ireq 736 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 744 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 748 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_io(&idev->rnc, ireq); ireq 752 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 756 drivers/scsi/isci/remote_device.c idev->working_request = ireq; ireq 767 drivers/scsi/isci/remote_device.c sci_remote_device_start_request(idev, ireq, status); ireq 773 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 777 drivers/scsi/isci/remote_device.c status = sci_request_complete(ireq); ireq 781 drivers/scsi/isci/remote_device.c status = sci_port_complete_io(iport, idev, ireq); ireq 791 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 813 drivers/scsi/isci/remote_device.c status = common_complete_io(iport, idev, ireq); ireq 819 drivers/scsi/isci/remote_device.c status = common_complete_io(iport, idev, ireq); ireq 823 drivers/scsi/isci/remote_device.c if (ireq->sci_status == SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED) { ireq 834 drivers/scsi/isci/remote_device.c status = common_complete_io(iport, idev, ireq); ireq 840 drivers/scsi/isci/remote_device.c status = common_complete_io(iport, idev, ireq); ireq 855 drivers/scsi/isci/remote_device.c idev, ireq, status); ireq 873 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 899 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 903 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 911 drivers/scsi/isci/remote_device.c idev->working_request = ireq; ireq 924 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_task(&idev->rnc, ireq, ireq 928 drivers/scsi/isci/remote_device.c sci_remote_device_start_request(idev, ireq, status); ireq 935 drivers/scsi/isci/remote_device.c status = sci_port_start_io(iport, idev, ireq); ireq 940 drivers/scsi/isci/remote_device.c status = sci_remote_node_context_start_task(&idev->rnc, ireq, ireq 945 drivers/scsi/isci/remote_device.c status = sci_request_start(ireq); ireq 948 drivers/scsi/isci/remote_device.c sci_remote_device_start_request(idev, ireq, status); ireq 1661 drivers/scsi/isci/remote_device.c struct isci_request *ireq) ireq 1673 drivers/scsi/isci/remote_device.c status = isci_remote_device_terminate_requests(ihost, idev, ireq); ireq 324 drivers/scsi/isci/remote_device.h struct isci_request *ireq); ireq 329 drivers/scsi/isci/remote_device.h struct isci_request *ireq); ireq 334 drivers/scsi/isci/remote_device.h struct isci_request *ireq); ireq 374 drivers/scsi/isci/remote_device.h struct isci_request *ireq); ireq 379 drivers/scsi/isci/remote_device.h struct isci_request *ireq); ireq 752 drivers/scsi/isci/remote_node_context.c struct isci_request *ireq) ireq 778 drivers/scsi/isci/remote_node_context.c struct isci_request *ireq, ireq 221 drivers/scsi/isci/remote_node_context.h struct isci_request *ireq, ireq 225 drivers/scsi/isci/remote_node_context.h struct isci_request *ireq); ireq 74 drivers/scsi/isci/request.c static struct scu_sgl_element_pair *to_sgl_element_pair(struct isci_request *ireq, ireq 78 drivers/scsi/isci/request.c return &ireq->tc->sgl_pair_ab; ireq 80 drivers/scsi/isci/request.c return &ireq->tc->sgl_pair_cd; ireq 84 drivers/scsi/isci/request.c return &ireq->sg_table[idx - 2]; ireq 88 drivers/scsi/isci/request.c struct isci_request *ireq, u32 idx) ireq 93 drivers/scsi/isci/request.c offset = (void *) &ireq->tc->sgl_pair_ab - ireq 97 drivers/scsi/isci/request.c offset = (void *) &ireq->tc->sgl_pair_cd - ireq 102 drivers/scsi/isci/request.c return sci_io_request_get_dma_addr(ireq, &ireq->sg_table[idx - 2]); ireq 113 drivers/scsi/isci/request.c static void sci_request_build_sgl(struct isci_request *ireq) ireq 115 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->isci_host; ireq 116 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 127 drivers/scsi/isci/request.c scu_sg = to_sgl_element_pair(ireq, sg_idx); ireq 138 drivers/scsi/isci/request.c ireq, ireq 151 drivers/scsi/isci/request.c scu_sg = to_sgl_element_pair(ireq, sg_idx); ireq 158 drivers/scsi/isci/request.c ireq->zero_scatter_daddr = dma_addr; ireq 171 drivers/scsi/isci/request.c static void sci_io_request_build_ssp_command_iu(struct isci_request *ireq) ireq 174 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 176 drivers/scsi/isci/request.c cmd_iu = &ireq->ssp.cmd; ireq 191 drivers/scsi/isci/request.c static void sci_task_request_build_ssp_task_iu(struct isci_request *ireq) ireq 194 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 195 drivers/scsi/isci/request.c struct isci_tmf *isci_tmf = isci_request_access_tmf(ireq); ireq 197 drivers/scsi/isci/request.c task_iu = &ireq->ssp.tmf; ireq 205 drivers/scsi/isci/request.c (test_bit(IREQ_TMF, &ireq->flags)) ? ireq 217 drivers/scsi/isci/request.c struct isci_request *ireq, ireq 224 drivers/scsi/isci/request.c idev = ireq->target_device; ireq 253 drivers/scsi/isci/request.c ireq->post_context = (SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC | ireq 257 drivers/scsi/isci/request.c ISCI_TAG_TCI(ireq->io_tag)); ireq 263 drivers/scsi/isci/request.c dma_addr = sci_io_request_get_dma_addr(ireq, &ireq->ssp.cmd); ireq 272 drivers/scsi/isci/request.c dma_addr = sci_io_request_get_dma_addr(ireq, &ireq->ssp.rsp); ireq 297 drivers/scsi/isci/request.c static void scu_ssp_ireq_dif_insert(struct isci_request *ireq, u8 type, u8 op) ireq 299 drivers/scsi/isci/request.c struct scu_task_context *tc = ireq->tc; ireq 300 drivers/scsi/isci/request.c struct scsi_cmnd *scmd = ireq->ttype_ptr.io_task_ptr->uldd_task; ireq 352 drivers/scsi/isci/request.c static void scu_ssp_ireq_dif_strip(struct isci_request *ireq, u8 type, u8 op) ireq 354 drivers/scsi/isci/request.c struct scu_task_context *tc = ireq->tc; ireq 355 drivers/scsi/isci/request.c struct scsi_cmnd *scmd = ireq->ttype_ptr.io_task_ptr->uldd_task; ireq 418 drivers/scsi/isci/request.c static void scu_ssp_io_request_construct_task_context(struct isci_request *ireq, ireq 422 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 423 drivers/scsi/isci/request.c struct sas_task *sas_task = ireq->ttype_ptr.io_task_ptr; ireq 428 drivers/scsi/isci/request.c scu_ssp_request_construct_task_context(ireq, task_context); ireq 448 drivers/scsi/isci/request.c sci_request_build_sgl(ireq); ireq 452 drivers/scsi/isci/request.c scu_ssp_ireq_dif_strip(ireq, prot_type, prot_op); ireq 454 drivers/scsi/isci/request.c scu_ssp_ireq_dif_insert(ireq, prot_type, prot_op); ireq 471 drivers/scsi/isci/request.c static void scu_ssp_task_request_construct_task_context(struct isci_request *ireq) ireq 473 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 475 drivers/scsi/isci/request.c scu_ssp_request_construct_task_context(ireq, task_context); ireq 499 drivers/scsi/isci/request.c struct isci_request *ireq, ireq 506 drivers/scsi/isci/request.c idev = ireq->target_device; ireq 537 drivers/scsi/isci/request.c task_context->type.words[0] = *(u32 *)&ireq->stp.cmd; ireq 539 drivers/scsi/isci/request.c ireq->post_context = (SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC | ireq 543 drivers/scsi/isci/request.c ISCI_TAG_TCI(ireq->io_tag)); ireq 549 drivers/scsi/isci/request.c dma_addr = sci_io_request_get_dma_addr(ireq, ireq 550 drivers/scsi/isci/request.c ((char *) &ireq->stp.cmd) + ireq 561 drivers/scsi/isci/request.c static void scu_stp_raw_request_construct_task_context(struct isci_request *ireq) ireq 563 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 565 drivers/scsi/isci/request.c scu_sata_request_construct_task_context(ireq, task_context); ireq 574 drivers/scsi/isci/request.c static enum sci_status sci_stp_pio_request_construct(struct isci_request *ireq, ireq 577 drivers/scsi/isci/request.c struct isci_stp_request *stp_req = &ireq->stp.req; ireq 579 drivers/scsi/isci/request.c scu_stp_raw_request_construct_task_context(ireq); ireq 586 drivers/scsi/isci/request.c sci_request_build_sgl(ireq); ireq 608 drivers/scsi/isci/request.c static void sci_stp_optimized_request_construct(struct isci_request *ireq, ireq 613 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 616 drivers/scsi/isci/request.c scu_sata_request_construct_task_context(ireq, task_context); ireq 619 drivers/scsi/isci/request.c sci_request_build_sgl(ireq); ireq 641 drivers/scsi/isci/request.c static void sci_atapi_construct(struct isci_request *ireq) ireq 643 drivers/scsi/isci/request.c struct host_to_dev_fis *h2d_fis = &ireq->stp.cmd; ireq 653 drivers/scsi/isci/request.c scu_stp_raw_request_construct_task_context(ireq); ireq 655 drivers/scsi/isci/request.c task = isci_request_access_task(ireq); ireq 662 drivers/scsi/isci/request.c ireq->stp.rsp.fis_type = 0; ireq 666 drivers/scsi/isci/request.c sci_io_request_construct_sata(struct isci_request *ireq, ireq 672 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 673 drivers/scsi/isci/request.c struct domain_device *dev = ireq->target_device->domain_dev; ireq 676 drivers/scsi/isci/request.c if (test_bit(IREQ_TMF, &ireq->flags)) { ireq 677 drivers/scsi/isci/request.c struct isci_tmf *tmf = isci_request_access_tmf(ireq); ireq 679 drivers/scsi/isci/request.c dev_err(&ireq->owning_controller->pdev->dev, ireq 682 drivers/scsi/isci/request.c __func__, ireq, tmf->tmf_code); ireq 688 drivers/scsi/isci/request.c dev_err(&ireq->owning_controller->pdev->dev, ireq 699 drivers/scsi/isci/request.c sci_atapi_construct(ireq); ireq 705 drivers/scsi/isci/request.c scu_stp_raw_request_construct_task_context(ireq); ireq 711 drivers/scsi/isci/request.c sci_stp_optimized_request_construct(ireq, ireq 719 drivers/scsi/isci/request.c sci_stp_optimized_request_construct(ireq, ireq 724 drivers/scsi/isci/request.c return sci_stp_pio_request_construct(ireq, copy); ireq 729 drivers/scsi/isci/request.c static enum sci_status sci_io_request_construct_basic_ssp(struct isci_request *ireq) ireq 731 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 733 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_SSP; ireq 735 drivers/scsi/isci/request.c scu_ssp_io_request_construct_task_context(ireq, ireq 739 drivers/scsi/isci/request.c sci_io_request_build_ssp_command_iu(ireq); ireq 741 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); ireq 747 drivers/scsi/isci/request.c struct isci_request *ireq) ireq 750 drivers/scsi/isci/request.c scu_ssp_task_request_construct_task_context(ireq); ireq 753 drivers/scsi/isci/request.c sci_task_request_build_ssp_task_iu(ireq); ireq 755 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); ireq 760 drivers/scsi/isci/request.c static enum sci_status sci_io_request_construct_basic_sata(struct isci_request *ireq) ireq 764 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 766 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_STP; ireq 770 drivers/scsi/isci/request.c status = sci_io_request_construct_sata(ireq, ireq 776 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); ireq 786 drivers/scsi/isci/request.c static u32 sci_req_tx_bytes(struct isci_request *ireq) ireq 788 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 802 drivers/scsi/isci/request.c ((sizeof(struct scu_task_context)) * ISCI_TAG_TCI(ireq->io_tag))); ireq 808 drivers/scsi/isci/request.c enum sci_status sci_request_start(struct isci_request *ireq) ireq 811 drivers/scsi/isci/request.c struct scu_task_context *tc = ireq->tc; ireq 812 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 814 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 822 drivers/scsi/isci/request.c tc->task_index = ISCI_TAG_TCI(ireq->io_tag); ireq 828 drivers/scsi/isci/request.c tc->type.ssp.tag = ireq->io_tag; ireq 849 drivers/scsi/isci/request.c ireq->post_context |= ISCI_TAG_TCI(ireq->io_tag); ireq 852 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STARTED); ireq 858 drivers/scsi/isci/request.c sci_io_request_terminate(struct isci_request *ireq) ireq 862 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 867 drivers/scsi/isci/request.c set_bit(IREQ_TC_ABORT_POSTED, &ireq->flags); ireq 868 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_TASK_ABORT; ireq 869 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_TERMINATED; ireq 870 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 896 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_ABORTING); ireq 899 drivers/scsi/isci/request.c if (!isci_remote_device_is_safe_to_abort(ireq->target_device)) ireq 900 drivers/scsi/isci/request.c set_bit(IREQ_PENDING_ABORT, &ireq->flags); ireq 902 drivers/scsi/isci/request.c clear_bit(IREQ_PENDING_ABORT, &ireq->flags); ireq 909 drivers/scsi/isci/request.c dev_warn(&ireq->owning_controller->pdev->dev, ireq 911 drivers/scsi/isci/request.c "state %d\n", __func__, ireq->sm.current_state_id); ireq 918 drivers/scsi/isci/request.c enum sci_status sci_request_complete(struct isci_request *ireq) ireq 921 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 923 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 929 drivers/scsi/isci/request.c if (ireq->saved_rx_frame_index != SCU_INVALID_FRAME_INDEX) ireq 931 drivers/scsi/isci/request.c ireq->saved_rx_frame_index); ireq 934 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_FINAL); ireq 938 drivers/scsi/isci/request.c enum sci_status sci_io_request_event_handler(struct isci_request *ireq, ireq 942 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 944 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 958 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_WAIT_FRAME); ireq 978 drivers/scsi/isci/request.c static void sci_io_request_copy_response(struct isci_request *ireq) ireq 983 drivers/scsi/isci/request.c struct isci_tmf *isci_tmf = isci_request_access_tmf(ireq); ireq 985 drivers/scsi/isci/request.c ssp_response = &ireq->ssp.rsp; ireq 997 drivers/scsi/isci/request.c request_started_state_tc_event(struct isci_request *ireq, ireq 1008 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1009 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1019 drivers/scsi/isci/request.c struct ssp_response_iu *resp = &ireq->ssp.rsp; ireq 1022 drivers/scsi/isci/request.c sci_swab32_cpy(&ireq->ssp.rsp, ireq 1023 drivers/scsi/isci/request.c &ireq->ssp.rsp, ireq 1027 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1028 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS_IO_DONE_EARLY; ireq 1030 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1031 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1038 drivers/scsi/isci/request.c sci_swab32_cpy(&ireq->ssp.rsp, ireq 1039 drivers/scsi/isci/request.c &ireq->ssp.rsp, ireq 1042 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1043 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1052 drivers/scsi/isci/request.c resp_iu = &ireq->ssp.rsp; ireq 1056 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1057 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1059 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1060 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1075 drivers/scsi/isci/request.c if (ireq->protocol == SAS_PROTOCOL_STP) { ireq 1076 drivers/scsi/isci/request.c ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> ireq 1078 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED; ireq 1080 drivers/scsi/isci/request.c ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> ireq 1082 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1097 drivers/scsi/isci/request.c ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> ireq 1099 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED; ireq 1119 drivers/scsi/isci/request.c ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> ireq 1121 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1130 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1135 drivers/scsi/isci/request.c request_aborting_state_tc_event(struct isci_request *ireq, ireq 1141 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_TASK_ABORT; ireq 1142 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_TERMINATED; ireq 1143 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1156 drivers/scsi/isci/request.c static enum sci_status ssp_task_request_await_tc_event(struct isci_request *ireq, ireq 1161 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1162 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1163 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_TASK_WAIT_TC_RESP); ireq 1171 drivers/scsi/isci/request.c dev_warn(&ireq->owning_controller->pdev->dev, ireq 1173 drivers/scsi/isci/request.c "ACK/NAK timeout\n", __func__, ireq, ireq 1176 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_TASK_WAIT_TC_RESP); ireq 1184 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1185 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1186 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1194 drivers/scsi/isci/request.c smp_request_await_response_tc_event(struct isci_request *ireq, ireq 1203 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1204 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1205 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1218 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_SMP_RESP_TO_ERR; ireq 1219 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_RETRY_REQUIRED; ireq 1220 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1226 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1227 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1228 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1236 drivers/scsi/isci/request.c smp_request_await_tc_event(struct isci_request *ireq, ireq 1241 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1242 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1243 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1250 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1251 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1252 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1263 drivers/scsi/isci/request.c struct isci_request *ireq = to_ireq(stp_req); ireq 1266 drivers/scsi/isci/request.c sgl_pair = to_sgl_element_pair(ireq, pio_sgl->index); ireq 1284 drivers/scsi/isci/request.c sgl_pair = to_sgl_element_pair(ireq, pio_sgl->index); ireq 1293 drivers/scsi/isci/request.c stp_request_non_data_await_h2d_tc_event(struct isci_request *ireq, ireq 1298 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1299 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1300 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_NON_DATA_WAIT_D2H); ireq 1308 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1309 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1310 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1323 drivers/scsi/isci/request.c struct isci_request *ireq, ireq 1326 drivers/scsi/isci/request.c struct isci_stp_request *stp_req = &ireq->stp.req; ireq 1327 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 1334 drivers/scsi/isci/request.c sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index); ireq 1347 drivers/scsi/isci/request.c return sci_controller_continue_io(ireq); ireq 1350 drivers/scsi/isci/request.c static enum sci_status sci_stp_request_pio_data_out_transmit_data(struct isci_request *ireq) ireq 1352 drivers/scsi/isci/request.c struct isci_stp_request *stp_req = &ireq->stp.req; ireq 1360 drivers/scsi/isci/request.c sgl_pair = to_sgl_element_pair(ireq, stp_req->sgl.index); ireq 1376 drivers/scsi/isci/request.c status = sci_stp_request_pio_data_out_trasmit_data_frame(ireq, len); ireq 1385 drivers/scsi/isci/request.c sci_stp_request_pio_data_out_trasmit_data_frame(ireq, stp_req->pio_len); ireq 1411 drivers/scsi/isci/request.c struct isci_request *ireq; ireq 1419 drivers/scsi/isci/request.c ireq = to_ireq(stp_req); ireq 1420 drivers/scsi/isci/request.c task = isci_request_access_task(ireq); ireq 1480 drivers/scsi/isci/request.c stp_request_pio_await_h2d_completion_tc_event(struct isci_request *ireq, ireq 1487 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1488 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1489 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_WAIT_FRAME); ireq 1497 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1498 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1499 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1507 drivers/scsi/isci/request.c pio_data_out_tx_done_tc_event(struct isci_request *ireq, ireq 1512 drivers/scsi/isci/request.c struct isci_stp_request *stp_req = &ireq->stp.req; ireq 1518 drivers/scsi/isci/request.c status = sci_stp_request_pio_data_out_transmit_data(ireq); ireq 1536 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_WAIT_FRAME); ireq 1546 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 1547 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1548 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1555 drivers/scsi/isci/request.c static enum sci_status sci_stp_request_udma_general_frame_handler(struct isci_request *ireq, ireq 1558 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 1573 drivers/scsi/isci/request.c sci_controller_copy_sata_response(&ireq->stp.rsp, ireq 1583 drivers/scsi/isci/request.c static enum sci_status process_unsolicited_fis(struct isci_request *ireq, ireq 1586 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 1599 drivers/scsi/isci/request.c dev_err(&ireq->isci_host->pdev->dev, ireq 1609 drivers/scsi/isci/request.c sci_controller_copy_sata_response(&ireq->stp.rsp, ireq 1619 drivers/scsi/isci/request.c static enum sci_status atapi_d2h_reg_frame_handler(struct isci_request *ireq, ireq 1622 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 1625 drivers/scsi/isci/request.c status = process_unsolicited_fis(ireq, frame_index); ireq 1628 drivers/scsi/isci/request.c if (ireq->stp.rsp.status & ATA_ERR) ireq 1635 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1636 drivers/scsi/isci/request.c ireq->sci_status = status; ireq 1638 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1639 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1644 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1649 drivers/scsi/isci/request.c static void scu_atapi_reconstruct_raw_frame_task_context(struct isci_request *ireq) ireq 1651 drivers/scsi/isci/request.c struct ata_device *dev = sas_to_ata_dev(ireq->target_device->domain_dev); ireq 1652 drivers/scsi/isci/request.c void *atapi_cdb = ireq->ttype_ptr.io_task_ptr->ata_task.atapi_packet; ireq 1653 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 1659 drivers/scsi/isci/request.c memset(&ireq->stp.cmd, 0, sizeof(struct host_to_dev_fis)); ireq 1660 drivers/scsi/isci/request.c memcpy(((u8 *)&ireq->stp.cmd + sizeof(u32)), atapi_cdb, ATAPI_CDB_LEN); ireq 1666 drivers/scsi/isci/request.c static void scu_atapi_construct_task_context(struct isci_request *ireq) ireq 1668 drivers/scsi/isci/request.c struct ata_device *dev = sas_to_ata_dev(ireq->target_device->domain_dev); ireq 1669 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 1670 drivers/scsi/isci/request.c struct scu_task_context *task_context = ireq->tc; ireq 1688 drivers/scsi/isci/request.c memset(&ireq->stp.cmd, 0, sizeof(ireq->stp.cmd)); ireq 1689 drivers/scsi/isci/request.c memcpy(&ireq->stp.cmd.lbal, task->ata_task.atapi_packet, cdb_len); ireq 1702 drivers/scsi/isci/request.c sci_request_build_sgl(ireq); ireq 1706 drivers/scsi/isci/request.c sci_io_request_frame_handler(struct isci_request *ireq, ireq 1709 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 1710 drivers/scsi/isci/request.c struct isci_stp_request *stp_req = &ireq->stp.req; ireq 1715 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 1736 drivers/scsi/isci/request.c sci_swab32_cpy(&ireq->ssp.rsp, resp_iu, word_cnt); ireq 1738 drivers/scsi/isci/request.c resp_iu = &ireq->ssp.rsp; ireq 1742 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1743 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1745 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1746 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1752 drivers/scsi/isci/request.c "frame %d type 0x%02x\n", __func__, ireq, ireq 1766 drivers/scsi/isci/request.c sci_io_request_copy_response(ireq); ireq 1767 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1772 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 1797 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 1798 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 1799 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_SMP_WAIT_TC_COMP); ireq 1809 drivers/scsi/isci/request.c ireq, ireq 1813 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_SMP_FRM_TYPE_ERR; ireq 1814 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 1815 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1825 drivers/scsi/isci/request.c return sci_stp_request_udma_general_frame_handler(ireq, ireq 1830 drivers/scsi/isci/request.c status = sci_stp_request_udma_general_frame_handler(ireq, frame_index); ireq 1835 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1836 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1837 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1866 drivers/scsi/isci/request.c sci_controller_copy_sata_response(&ireq->stp.rsp, ireq 1871 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1872 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1881 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_UNEXP_FIS; ireq 1882 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_PROTOCOL_VIOLATION; ireq 1886 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 1895 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 1930 drivers/scsi/isci/request.c sci_controller_copy_sata_response(&ireq->stp.rsp, ireq 1934 drivers/scsi/isci/request.c ireq->stp.rsp.status = stp_req->status; ireq 1940 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_DATA_IN); ireq 1943 drivers/scsi/isci/request.c status = sci_stp_request_pio_data_out_transmit_data(ireq); ireq 1946 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_DATA_OUT); ireq 1951 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_WAIT_FRAME); ireq 1975 drivers/scsi/isci/request.c sci_controller_copy_sata_response(&ireq->stp.rsp, ireq 1979 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 1980 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 1981 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2024 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 2025 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_REQUIRES_SCSI_ABORT; ireq 2026 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2034 drivers/scsi/isci/request.c ireq->saved_rx_frame_index = frame_index; ireq 2055 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 2056 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 2057 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2059 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_PIO_WAIT_FRAME); ireq 2065 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 2068 drivers/scsi/isci/request.c ireq->target_device->working_request = ireq; ireq 2070 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_ATAPI_WAIT_TC_COMP); ireq 2071 drivers/scsi/isci/request.c scu_atapi_reconstruct_raw_frame_task_context(ireq); ireq 2073 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_ATAPI_WAIT_D2H); ireq 2074 drivers/scsi/isci/request.c scu_atapi_construct_task_context(ireq); ireq 2077 drivers/scsi/isci/request.c sci_controller_continue_io(ireq); ireq 2081 drivers/scsi/isci/request.c return atapi_d2h_reg_frame_handler(ireq, frame_index); ireq 2103 drivers/scsi/isci/request.c static enum sci_status stp_request_udma_await_tc_event(struct isci_request *ireq, ireq 2110 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 2111 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 2112 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2120 drivers/scsi/isci/request.c if (ireq->stp.rsp.fis_type == FIS_REGD2H) { ireq 2121 drivers/scsi/isci/request.c sci_remote_device_suspend(ireq->target_device, ireq 2124 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 2125 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 2126 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2133 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_STP_UDMA_WAIT_D2H); ireq 2145 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 2146 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 2147 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2154 drivers/scsi/isci/request.c static enum sci_status atapi_raw_completion(struct isci_request *ireq, u32 completion_code, ireq 2161 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 2162 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 2163 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, next); ireq 2170 drivers/scsi/isci/request.c ireq->scu_status = SCU_NORMALIZE_COMPLETION_STATUS(completion_code); ireq 2171 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_CONTROLLER_SPECIFIC_IO_ERR; ireq 2173 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2180 drivers/scsi/isci/request.c static enum sci_status atapi_data_tc_completion_handler(struct isci_request *ireq, ireq 2183 drivers/scsi/isci/request.c struct isci_remote_device *idev = ireq->target_device; ireq 2184 drivers/scsi/isci/request.c struct dev_to_host_fis *d2h = &ireq->stp.rsp; ireq 2189 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2193 drivers/scsi/isci/request.c u16 len = sci_req_tx_bytes(ireq); ireq 2218 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 2219 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS_IO_DONE_EARLY; ireq 2220 drivers/scsi/isci/request.c status = ireq->sci_status; ireq 2232 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_GOOD; ireq 2233 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 2234 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_COMPLETED); ireq 2240 drivers/scsi/isci/request.c status = ireq->sci_status; ireq 2249 drivers/scsi/isci/request.c ireq->scu_status = SCU_TASK_DONE_CHECK_RESPONSE; ireq 2250 drivers/scsi/isci/request.c ireq->sci_status = SCI_FAILURE_IO_RESPONSE_VALID; ireq 2252 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_ATAPI_WAIT_D2H); ireq 2349 drivers/scsi/isci/request.c struct isci_request *ireq, ireq 2355 drivers/scsi/isci/request.c switch (ireq->protocol) { ireq 2376 drivers/scsi/isci/request.c dev_warn(&ireq->isci_host->pdev->dev, ireq 2378 drivers/scsi/isci/request.c __func__, ireq); ireq 2385 drivers/scsi/isci/request.c &ireq->target_device->rnc, ireq 2393 drivers/scsi/isci/request.c sci_io_request_tc_completion(struct isci_request *ireq, ireq 2397 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 2399 drivers/scsi/isci/request.c state = ireq->sm.current_state_id; ireq 2403 drivers/scsi/isci/request.c ireq, SCU_GET_COMPLETION_TL_STATUS(completion_code)); ireq 2407 drivers/scsi/isci/request.c return request_started_state_tc_event(ireq, completion_code); ireq 2410 drivers/scsi/isci/request.c return ssp_task_request_await_tc_event(ireq, ireq 2414 drivers/scsi/isci/request.c return smp_request_await_response_tc_event(ireq, ireq 2418 drivers/scsi/isci/request.c return smp_request_await_tc_event(ireq, completion_code); ireq 2421 drivers/scsi/isci/request.c return stp_request_udma_await_tc_event(ireq, ireq 2425 drivers/scsi/isci/request.c return stp_request_non_data_await_h2d_tc_event(ireq, ireq 2429 drivers/scsi/isci/request.c return stp_request_pio_await_h2d_completion_tc_event(ireq, ireq 2433 drivers/scsi/isci/request.c return pio_data_out_tx_done_tc_event(ireq, completion_code); ireq 2436 drivers/scsi/isci/request.c return request_aborting_state_tc_event(ireq, ireq 2440 drivers/scsi/isci/request.c return atapi_raw_completion(ireq, completion_code, ireq 2444 drivers/scsi/isci/request.c return atapi_raw_completion(ireq, completion_code, ireq 2448 drivers/scsi/isci/request.c return atapi_data_tc_completion_handler(ireq, completion_code); ireq 2964 drivers/scsi/isci/request.c struct isci_request *ireq = container_of(sm, typeof(*ireq), sm); ireq 2965 drivers/scsi/isci/request.c struct domain_device *dev = ireq->target_device->domain_dev; ireq 2972 drivers/scsi/isci/request.c task = (test_bit(IREQ_TMF, &ireq->flags)) ? NULL : isci_request_access_task(ireq); ireq 3002 drivers/scsi/isci/request.c struct isci_request *ireq = container_of(sm, typeof(*ireq), sm); ireq 3003 drivers/scsi/isci/request.c struct isci_host *ihost = ireq->owning_controller; ireq 3006 drivers/scsi/isci/request.c if (!test_bit(IREQ_TMF, &ireq->flags)) ireq 3007 drivers/scsi/isci/request.c isci_request_io_request_complete(ihost, ireq, ireq 3008 drivers/scsi/isci/request.c ireq->sci_status); ireq 3010 drivers/scsi/isci/request.c isci_task_request_complete(ihost, ireq, ireq->sci_status); ireq 3015 drivers/scsi/isci/request.c struct isci_request *ireq = container_of(sm, typeof(*ireq), sm); ireq 3018 drivers/scsi/isci/request.c ireq->tc->abort = 1; ireq 3023 drivers/scsi/isci/request.c struct isci_request *ireq = container_of(sm, typeof(*ireq), sm); ireq 3025 drivers/scsi/isci/request.c ireq->target_device->working_request = ireq; ireq 3030 drivers/scsi/isci/request.c struct isci_request *ireq = container_of(sm, typeof(*ireq), sm); ireq 3032 drivers/scsi/isci/request.c ireq->target_device->working_request = ireq; ireq 3073 drivers/scsi/isci/request.c struct isci_request *ireq) ireq 3075 drivers/scsi/isci/request.c sci_init_sm(&ireq->sm, sci_request_state_table, SCI_REQ_INIT); ireq 3077 drivers/scsi/isci/request.c ireq->target_device = idev; ireq 3078 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_NONE; ireq 3079 drivers/scsi/isci/request.c ireq->saved_rx_frame_index = SCU_INVALID_FRAME_INDEX; ireq 3081 drivers/scsi/isci/request.c ireq->sci_status = SCI_SUCCESS; ireq 3082 drivers/scsi/isci/request.c ireq->scu_status = 0; ireq 3083 drivers/scsi/isci/request.c ireq->post_context = 0xFFFFFFFF; ireq 3089 drivers/scsi/isci/request.c struct isci_request *ireq) ireq 3095 drivers/scsi/isci/request.c sci_general_request_construct(ihost, idev, ireq); ireq 3103 drivers/scsi/isci/request.c memset(&ireq->stp.cmd, 0, sizeof(ireq->stp.cmd)); ireq 3109 drivers/scsi/isci/request.c memset(ireq->tc, 0, offsetof(struct scu_task_context, sgl_pair_ab)); ireq 3116 drivers/scsi/isci/request.c u16 io_tag, struct isci_request *ireq) ireq 3122 drivers/scsi/isci/request.c sci_general_request_construct(ihost, idev, ireq); ireq 3125 drivers/scsi/isci/request.c set_bit(IREQ_TMF, &ireq->flags); ireq 3126 drivers/scsi/isci/request.c memset(ireq->tc, 0, sizeof(struct scu_task_context)); ireq 3130 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_STP; ireq 3132 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_SSP; ireq 3152 drivers/scsi/isci/request.c static enum sci_status isci_request_stp_request_construct(struct isci_request *ireq) ireq 3154 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 3155 drivers/scsi/isci/request.c struct host_to_dev_fis *fis = &ireq->stp.cmd; ireq 3159 drivers/scsi/isci/request.c dev_dbg(&ireq->isci_host->pdev->dev, ireq 3162 drivers/scsi/isci/request.c ireq); ireq 3169 drivers/scsi/isci/request.c status = sci_io_request_construct_basic_sata(ireq); ireq 3177 drivers/scsi/isci/request.c ireq->tc->type.stp.ncq_tag = qc->tag; ireq 3185 drivers/scsi/isci/request.c struct isci_request *ireq, ireq 3228 drivers/scsi/isci/request.c ireq->protocol = SAS_PROTOCOL_SMP; ireq 3232 drivers/scsi/isci/request.c task_context = ireq->tc; ireq 3234 drivers/scsi/isci/request.c idev = ireq->target_device; ireq 3286 drivers/scsi/isci/request.c ireq->post_context = (SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC | ireq 3290 drivers/scsi/isci/request.c ISCI_TAG_TCI(ireq->io_tag)); ireq 3302 drivers/scsi/isci/request.c sci_change_state(&ireq->sm, SCI_REQ_CONSTRUCTED); ireq 3314 drivers/scsi/isci/request.c static enum sci_status isci_smp_request_build(struct isci_request *ireq) ireq 3316 drivers/scsi/isci/request.c struct sas_task *task = isci_request_access_task(ireq); ireq 3317 drivers/scsi/isci/request.c struct device *dev = &ireq->isci_host->pdev->dev; ireq 3320 drivers/scsi/isci/request.c status = sci_io_request_construct_smp(dev, ireq, task); ireq 3322 drivers/scsi/isci/request.c dev_dbg(&ireq->isci_host->pdev->dev, ireq 3406 drivers/scsi/isci/request.c struct isci_request *ireq; ireq 3408 drivers/scsi/isci/request.c ireq = ihost->reqs[ISCI_TAG_TCI(tag)]; ireq 3409 drivers/scsi/isci/request.c ireq->io_tag = tag; ireq 3410 drivers/scsi/isci/request.c ireq->io_request_completion = NULL; ireq 3411 drivers/scsi/isci/request.c ireq->flags = 0; ireq 3412 drivers/scsi/isci/request.c ireq->num_sg_entries = 0; ireq 3414 drivers/scsi/isci/request.c return ireq; ireq 3421 drivers/scsi/isci/request.c struct isci_request *ireq; ireq 3423 drivers/scsi/isci/request.c ireq = isci_request_from_tag(ihost, tag); ireq 3424 drivers/scsi/isci/request.c ireq->ttype_ptr.io_task_ptr = task; ireq 3425 drivers/scsi/isci/request.c clear_bit(IREQ_TMF, &ireq->flags); ireq 3426 drivers/scsi/isci/request.c task->lldd_task = ireq; ireq 3428 drivers/scsi/isci/request.c return ireq; ireq 3435 drivers/scsi/isci/request.c struct isci_request *ireq; ireq 3437 drivers/scsi/isci/request.c ireq = isci_request_from_tag(ihost, tag); ireq 3438 drivers/scsi/isci/request.c ireq->ttype_ptr.tmf_task_ptr = isci_tmf; ireq 3439 drivers/scsi/isci/request.c set_bit(IREQ_TMF, &ireq->flags); ireq 3441 drivers/scsi/isci/request.c return ireq; ireq 3448 drivers/scsi/isci/request.c struct isci_request *ireq; ireq 3453 drivers/scsi/isci/request.c ireq = isci_io_request_from_tag(ihost, task, tag); ireq 3455 drivers/scsi/isci/request.c status = isci_io_request_build(ihost, ireq, idev); ireq 3478 drivers/scsi/isci/request.c ireq); ireq 3485 drivers/scsi/isci/request.c ireq); ireq 3504 drivers/scsi/isci/request.c set_bit(IREQ_TERMINATED, &ireq->flags); ireq 152 drivers/scsi/isci/request.h struct isci_request *ireq; ireq 154 drivers/scsi/isci/request.h ireq = container_of(stp_req, typeof(*ireq), stp.req); ireq 155 drivers/scsi/isci/request.h return ireq; ireq 257 drivers/scsi/isci/request.h enum sci_status sci_request_start(struct isci_request *ireq); ireq 258 drivers/scsi/isci/request.h enum sci_status sci_io_request_terminate(struct isci_request *ireq); ireq 260 drivers/scsi/isci/request.h sci_io_request_event_handler(struct isci_request *ireq, ireq 263 drivers/scsi/isci/request.h sci_io_request_frame_handler(struct isci_request *ireq, ireq 266 drivers/scsi/isci/request.h sci_task_request_terminate(struct isci_request *ireq); ireq 268 drivers/scsi/isci/request.h sci_request_complete(struct isci_request *ireq); ireq 270 drivers/scsi/isci/request.h sci_io_request_tc_completion(struct isci_request *ireq, u32 code); ireq 274 drivers/scsi/isci/request.h sci_io_request_get_dma_addr(struct isci_request *ireq, void *virt_addr) ireq 278 drivers/scsi/isci/request.h char *base_addr = (char *)ireq; ireq 281 drivers/scsi/isci/request.h BUG_ON((requested_addr - base_addr) >= sizeof(*ireq)); ireq 283 drivers/scsi/isci/request.h return ireq->request_daddr + (requested_addr - base_addr); ireq 299 drivers/scsi/isci/request.h struct isci_request *ireq); ireq 300 drivers/scsi/isci/request.h enum sci_status sci_task_request_construct_ssp(struct isci_request *ireq); ireq 301 drivers/scsi/isci/request.h void sci_smp_request_copy_response(struct isci_request *ireq); ireq 219 drivers/scsi/isci/task.c struct isci_request *ireq = NULL; ireq 228 drivers/scsi/isci/task.c ireq = isci_tmf_request_from_tag(ihost, isci_tmf, tag); ireq 229 drivers/scsi/isci/task.c if (!ireq) ireq 234 drivers/scsi/isci/task.c ireq); ireq 248 drivers/scsi/isci/task.c status = sci_task_request_construct_ssp(ireq); ireq 253 drivers/scsi/isci/task.c return ireq; ireq 262 drivers/scsi/isci/task.c struct isci_request *ireq; ireq 295 drivers/scsi/isci/task.c ireq = isci_task_request_build(ihost, idev, tag, tmf); ireq 296 drivers/scsi/isci/task.c if (!ireq) ireq 302 drivers/scsi/isci/task.c status = sci_controller_start_task(ihost, idev, ireq); ireq 309 drivers/scsi/isci/task.c ireq); ireq 326 drivers/scsi/isci/task.c isci_remote_device_suspend_terminate(ihost, idev, ireq); ireq 345 drivers/scsi/isci/task.c ireq); ireq 697 drivers/scsi/isci/task.c struct isci_request *ireq, ireq 700 drivers/scsi/isci/task.c struct isci_tmf *tmf = isci_request_access_tmf(ireq); ireq 705 drivers/scsi/isci/task.c __func__, ireq, completion_status); ireq 707 drivers/scsi/isci/task.c set_bit(IREQ_COMPLETE_IN_TARGET, &ireq->flags); ireq 714 drivers/scsi/isci/task.c &ireq->ssp.rsp, ireq 718 drivers/scsi/isci/task.c &ireq->stp.rsp, ireq 724 drivers/scsi/isci/task.c sci_controller_complete_io(ihost, ireq->target_device, ireq); ireq 728 drivers/scsi/isci/task.c set_bit(IREQ_TERMINATED, &ireq->flags); ireq 730 drivers/scsi/isci/task.c if (test_and_clear_bit(IREQ_ABORT_PATH_ACTIVE, &ireq->flags)) ireq 733 drivers/scsi/isci/task.c if (!test_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags)) ireq 734 drivers/scsi/isci/task.c isci_free_tag(ihost, ireq->io_tag); ireq 202 include/trace/events/tcp.h struct inet_request_sock *ireq = inet_rsk(req); ireq 208 include/trace/events/tcp.h __entry->sport = ireq->ir_num; ireq 209 include/trace/events/tcp.h __entry->dport = ntohs(ireq->ir_rmt_port); ireq 212 include/trace/events/tcp.h *p32 = ireq->ir_loc_addr; ireq 215 include/trace/events/tcp.h *p32 = ireq->ir_rmt_addr; ireq 217 include/trace/events/tcp.h TP_STORE_ADDRS(__entry, ireq->ir_loc_addr, ireq->ir_rmt_addr, ireq 218 include/trace/events/tcp.h ireq->ir_v6_loc_addr, ireq->ir_v6_rmt_addr); ireq 400 net/dccp/ipv4.c struct inet_request_sock *ireq; ireq 412 net/dccp/ipv4.c ireq = inet_rsk(req); ireq 413 net/dccp/ipv4.c sk_daddr_set(newsk, ireq->ir_rmt_addr); ireq 414 net/dccp/ipv4.c sk_rcv_saddr_set(newsk, ireq->ir_loc_addr); ireq 415 net/dccp/ipv4.c newinet->inet_saddr = ireq->ir_loc_addr; ireq 416 net/dccp/ipv4.c RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); ireq 432 net/dccp/ipv4.c ireq->ireq_opt = NULL; ireq 490 net/dccp/ipv4.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 493 net/dccp/ipv4.c dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, ireq 494 net/dccp/ipv4.c ireq->ir_rmt_addr); ireq 496 net/dccp/ipv4.c err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr, ireq 497 net/dccp/ipv4.c ireq->ir_rmt_addr, ireq 498 net/dccp/ipv4.c rcu_dereference(ireq->ireq_opt)); ireq 575 net/dccp/ipv4.c struct inet_request_sock *ireq; ireq 615 net/dccp/ipv4.c ireq = inet_rsk(req); ireq 618 net/dccp/ipv4.c ireq->ir_mark = inet_request_mark(sk, skb); ireq 619 net/dccp/ipv4.c ireq->ireq_family = AF_INET; ireq 620 net/dccp/ipv4.c ireq->ir_iif = sk->sk_bound_dev_if; ireq 190 net/dccp/ipv6.c struct inet_request_sock *ireq = inet_rsk(req); ireq 200 net/dccp/ipv6.c fl6.daddr = ireq->ir_v6_rmt_addr; ireq 201 net/dccp/ipv6.c fl6.saddr = ireq->ir_v6_loc_addr; ireq 203 net/dccp/ipv6.c fl6.flowi6_oif = ireq->ir_iif; ireq 204 net/dccp/ipv6.c fl6.fl6_dport = ireq->ir_rmt_port; ireq 205 net/dccp/ipv6.c fl6.fl6_sport = htons(ireq->ir_num); ireq 226 net/dccp/ipv6.c &ireq->ir_v6_loc_addr, ireq 227 net/dccp/ipv6.c &ireq->ir_v6_rmt_addr); ireq 228 net/dccp/ipv6.c fl6.daddr = ireq->ir_v6_rmt_addr; ireq 230 net/dccp/ipv6.c opt = ireq->ipv6_opt; ireq 311 net/dccp/ipv6.c struct inet_request_sock *ireq; ireq 350 net/dccp/ipv6.c ireq = inet_rsk(req); ireq 351 net/dccp/ipv6.c ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; ireq 352 net/dccp/ipv6.c ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; ireq 353 net/dccp/ipv6.c ireq->ireq_family = AF_INET6; ireq 354 net/dccp/ipv6.c ireq->ir_mark = inet_request_mark(sk, skb); ireq 360 net/dccp/ipv6.c ireq->pktopts = skb; ireq 362 net/dccp/ipv6.c ireq->ir_iif = sk->sk_bound_dev_if; ireq 366 net/dccp/ipv6.c ipv6_addr_type(&ireq->ir_v6_rmt_addr) & IPV6_ADDR_LINKLOCAL) ireq 367 net/dccp/ipv6.c ireq->ir_iif = inet6_iif(skb); ireq 403 net/dccp/ipv6.c struct inet_request_sock *ireq = inet_rsk(req); ireq 486 net/dccp/ipv6.c newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; ireq 487 net/dccp/ipv6.c newnp->saddr = ireq->ir_v6_loc_addr; ireq 488 net/dccp/ipv6.c newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; ireq 489 net/dccp/ipv6.c newsk->sk_bound_dev_if = ireq->ir_iif; ireq 514 net/dccp/ipv6.c opt = ireq->ipv6_opt; ireq 538 net/dccp/ipv6.c if (*own_req && ireq->pktopts) { ireq 539 net/dccp/ipv6.c newnp->pktoptions = skb_clone(ireq->pktopts, GFP_ATOMIC); ireq 540 net/dccp/ipv6.c consume_skb(ireq->pktopts); ireq 541 net/dccp/ipv6.c ireq->pktopts = NULL; ireq 570 net/ipv4/inet_connection_sock.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 571 net/ipv4/inet_connection_sock.c struct net *net = read_pnet(&ireq->ireq_net); ireq 576 net/ipv4/inet_connection_sock.c opt = rcu_dereference(ireq->ireq_opt); ireq 578 net/ipv4/inet_connection_sock.c flowi4_init_output(fl4, ireq->ir_iif, ireq->ir_mark, ireq 581 net/ipv4/inet_connection_sock.c (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, ireq 582 net/ipv4/inet_connection_sock.c ireq->ir_loc_addr, ireq->ir_rmt_port, ireq 583 net/ipv4/inet_connection_sock.c htons(ireq->ir_num), sk->sk_uid); ireq 606 net/ipv4/inet_connection_sock.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 607 net/ipv4/inet_connection_sock.c struct net *net = read_pnet(&ireq->ireq_net); ireq 613 net/ipv4/inet_connection_sock.c opt = rcu_dereference(ireq->ireq_opt); ireq 616 net/ipv4/inet_connection_sock.c flowi4_init_output(fl4, ireq->ir_iif, ireq->ir_mark, ireq 619 net/ipv4/inet_connection_sock.c (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, ireq 620 net/ipv4/inet_connection_sock.c ireq->ir_loc_addr, ireq->ir_rmt_port, ireq 621 net/ipv4/inet_connection_sock.c htons(ireq->ir_num), sk->sk_uid); ireq 67 net/ipv4/syncookies.c struct inet_request_sock *ireq; ireq 71 net/ipv4/syncookies.c ireq = inet_rsk(req); ireq 73 net/ipv4/syncookies.c options = ireq->wscale_ok ? ireq->snd_wscale : TS_OPT_WSCALE_MASK; ireq 74 net/ipv4/syncookies.c if (ireq->sack_ok) ireq 76 net/ipv4/syncookies.c if (ireq->ecn_ok) ireq 287 net/ipv4/syncookies.c struct inet_request_sock *ireq; ireq 333 net/ipv4/syncookies.c ireq = inet_rsk(req); ireq 340 net/ipv4/syncookies.c ireq->ir_num = ntohs(th->dest); ireq 341 net/ipv4/syncookies.c ireq->ir_rmt_port = th->source; ireq 344 net/ipv4/syncookies.c ireq->ir_mark = inet_request_mark(sk, skb); ireq 345 net/ipv4/syncookies.c ireq->snd_wscale = tcp_opt.snd_wscale; ireq 346 net/ipv4/syncookies.c ireq->sack_ok = tcp_opt.sack_ok; ireq 347 net/ipv4/syncookies.c ireq->wscale_ok = tcp_opt.wscale_ok; ireq 348 net/ipv4/syncookies.c ireq->tstamp_ok = tcp_opt.saw_tstamp; ireq 353 net/ipv4/syncookies.c ireq->smc_ok = 0; ireq 355 net/ipv4/syncookies.c ireq->ir_iif = inet_request_bound_dev_if(sk, skb); ireq 360 net/ipv4/syncookies.c RCU_INIT_POINTER(ireq->ireq_opt, tcp_v4_save_options(sock_net(sk), skb)); ireq 375 net/ipv4/syncookies.c flowi4_init_output(&fl4, ireq->ir_iif, ireq->ir_mark, ireq 378 net/ipv4/syncookies.c opt->srr ? opt->faddr : ireq->ir_rmt_addr, ireq 379 net/ipv4/syncookies.c ireq->ir_loc_addr, th->source, th->dest, sk->sk_uid); ireq 392 net/ipv4/syncookies.c ireq->wscale_ok, &rcv_wscale, ireq 395 net/ipv4/syncookies.c ireq->rcv_wscale = rcv_wscale; ireq 396 net/ipv4/syncookies.c ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), &rt->dst); ireq 6378 net/ipv4/tcp_input.c struct inet_request_sock *ireq = inet_rsk(req); ireq 6382 net/ipv4/tcp_input.c &ireq->ir_rmt_addr, port); ireq 6386 net/ipv4/tcp_input.c &ireq->ir_v6_rmt_addr, port); ireq 6435 net/ipv4/tcp_input.c struct inet_request_sock *ireq = inet_rsk(req); ireq 6445 net/ipv4/tcp_input.c ireq->tstamp_ok = rx_opt->tstamp_ok; ireq 6446 net/ipv4/tcp_input.c ireq->sack_ok = rx_opt->sack_ok; ireq 6447 net/ipv4/tcp_input.c ireq->snd_wscale = rx_opt->snd_wscale; ireq 6448 net/ipv4/tcp_input.c ireq->wscale_ok = rx_opt->wscale_ok; ireq 6449 net/ipv4/tcp_input.c ireq->acked = 0; ireq 6450 net/ipv4/tcp_input.c ireq->ecn_ok = 0; ireq 6451 net/ipv4/tcp_input.c ireq->ir_rmt_port = tcp_hdr(skb)->source; ireq 6452 net/ipv4/tcp_input.c ireq->ir_num = ntohs(tcp_hdr(skb)->dest); ireq 6453 net/ipv4/tcp_input.c ireq->ir_mark = inet_request_mark(sk, skb); ireq 6455 net/ipv4/tcp_input.c ireq->smc_ok = rx_opt->smc_ok; ireq 6467 net/ipv4/tcp_input.c struct inet_request_sock *ireq = inet_rsk(req); ireq 6469 net/ipv4/tcp_input.c ireq->ireq_opt = NULL; ireq 6471 net/ipv4/tcp_input.c ireq->pktopts = NULL; ireq 6473 net/ipv4/tcp_input.c atomic64_set(&ireq->ir_cookie, 0); ireq 6474 net/ipv4/tcp_input.c ireq->ireq_state = TCP_NEW_SYN_RECV; ireq 6475 net/ipv4/tcp_input.c write_pnet(&ireq->ireq_net, sock_net(sk_listener)); ireq 6476 net/ipv4/tcp_input.c ireq->ireq_family = sk_listener->sk_family; ireq 944 net/ipv4/tcp_ipv4.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 956 net/ipv4/tcp_ipv4.c __tcp_v4_send_check(skb, ireq->ir_loc_addr, ireq->ir_rmt_addr); ireq 959 net/ipv4/tcp_ipv4.c err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr, ireq 960 net/ipv4/tcp_ipv4.c ireq->ir_rmt_addr, ireq 961 net/ipv4/tcp_ipv4.c rcu_dereference(ireq->ireq_opt)); ireq 1352 net/ipv4/tcp_ipv4.c struct inet_request_sock *ireq = inet_rsk(req); ireq 1357 net/ipv4/tcp_ipv4.c RCU_INIT_POINTER(ireq->ireq_opt, tcp_v4_save_options(net, skb)); ireq 1419 net/ipv4/tcp_ipv4.c struct inet_request_sock *ireq; ireq 1440 net/ipv4/tcp_ipv4.c ireq = inet_rsk(req); ireq 1441 net/ipv4/tcp_ipv4.c sk_daddr_set(newsk, ireq->ir_rmt_addr); ireq 1442 net/ipv4/tcp_ipv4.c sk_rcv_saddr_set(newsk, ireq->ir_loc_addr); ireq 1443 net/ipv4/tcp_ipv4.c newsk->sk_bound_dev_if = ireq->ir_iif; ireq 1444 net/ipv4/tcp_ipv4.c newinet->inet_saddr = ireq->ir_loc_addr; ireq 1445 net/ipv4/tcp_ipv4.c inet_opt = rcu_dereference(ireq->ireq_opt); ireq 1493 net/ipv4/tcp_ipv4.c ireq->ireq_opt = NULL; ireq 2401 net/ipv4/tcp_ipv4.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 2407 net/ipv4/tcp_ipv4.c ireq->ir_loc_addr, ireq 2408 net/ipv4/tcp_ipv4.c ireq->ir_num, ireq 2409 net/ipv4/tcp_ipv4.c ireq->ir_rmt_addr, ireq 2410 net/ipv4/tcp_ipv4.c ntohs(ireq->ir_rmt_port), ireq 364 net/ipv4/tcp_minisocks.c struct inet_request_sock *ireq = inet_rsk(req); ireq 390 net/ipv4/tcp_minisocks.c mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), ireq 393 net/ipv4/tcp_minisocks.c ireq->wscale_ok, ireq 396 net/ipv4/tcp_minisocks.c ireq->rcv_wscale = rcv_wscale; ireq 440 net/ipv4/tcp_minisocks.c struct inet_request_sock *ireq; ireq 443 net/ipv4/tcp_minisocks.c ireq = inet_rsk(req); ireq 444 net/ipv4/tcp_minisocks.c if (oldtp->syn_smc && !ireq->smc_ok) ireq 461 net/ipv4/tcp_minisocks.c const struct inet_request_sock *ireq = inet_rsk(req); ireq 509 net/ipv4/tcp_minisocks.c newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; ireq 510 net/ipv4/tcp_minisocks.c newtp->rx_opt.sack_ok = ireq->sack_ok; ireq 514 net/ipv4/tcp_minisocks.c newtp->rx_opt.wscale_ok = ireq->wscale_ok; ireq 516 net/ipv4/tcp_minisocks.c newtp->rx_opt.snd_wscale = ireq->snd_wscale; ireq 517 net/ipv4/tcp_minisocks.c newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; ireq 571 net/ipv4/tcp_output.c const struct inet_request_sock *ireq, ireq 577 net/ipv4/tcp_output.c if (tp->syn_smc && ireq->smc_ok) { ireq 667 net/ipv4/tcp_output.c struct inet_request_sock *ireq = inet_rsk(req); ireq 680 net/ipv4/tcp_output.c ireq->tstamp_ok &= !ireq->sack_ok; ireq 688 net/ipv4/tcp_output.c if (likely(ireq->wscale_ok)) { ireq 689 net/ipv4/tcp_output.c opts->ws = ireq->rcv_wscale; ireq 693 net/ipv4/tcp_output.c if (likely(ireq->tstamp_ok)) { ireq 699 net/ipv4/tcp_output.c if (likely(ireq->sack_ok)) { ireq 701 net/ipv4/tcp_output.c if (unlikely(!ireq->tstamp_ok)) ireq 717 net/ipv4/tcp_output.c smc_set_option_cond(tcp_sk(sk), ireq, opts, &remaining); ireq 3271 net/ipv4/tcp_output.c struct inet_request_sock *ireq = inet_rsk(req); ireq 3339 net/ipv4/tcp_output.c th->source = htons(ireq->ir_num); ireq 3340 net/ipv4/tcp_output.c th->dest = ireq->ir_rmt_port; ireq 3341 net/ipv4/tcp_output.c skb->mark = ireq->ir_mark; ireq 2817 net/ipv6/addrconf.c struct in6_ifreq ireq; ireq 2824 net/ipv6/addrconf.c if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) ireq 2827 net/ipv6/addrconf.c dev = __dev_get_by_index(net, ireq.ifr6_ifindex); ireq 2840 net/ipv6/addrconf.c if (!(ipv6_addr_type(&ireq.ifr6_addr) & IPV6_ADDR_COMPATv4)) ireq 2844 net/ipv6/addrconf.c p.iph.daddr = ireq.ifr6_addr.s6_addr32[3]; ireq 3038 net/ipv6/addrconf.c struct in6_ifreq ireq; ireq 3044 net/ipv6/addrconf.c if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) ireq 3047 net/ipv6/addrconf.c cfg.pfx = &ireq.ifr6_addr; ireq 3048 net/ipv6/addrconf.c cfg.plen = ireq.ifr6_prefixlen; ireq 3051 net/ipv6/addrconf.c err = inet6_addr_add(net, ireq.ifr6_ifindex, &cfg, NULL); ireq 3058 net/ipv6/addrconf.c struct in6_ifreq ireq; ireq 3064 net/ipv6/addrconf.c if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) ireq 3068 net/ipv6/addrconf.c err = inet6_addr_del(net, ireq.ifr6_ifindex, 0, &ireq.ifr6_addr, ireq 3069 net/ipv6/addrconf.c ireq.ifr6_prefixlen); ireq 32 net/ipv6/inet6_connection_sock.c struct inet_request_sock *ireq = inet_rsk(req); ireq 39 net/ipv6/inet6_connection_sock.c fl6->daddr = ireq->ir_v6_rmt_addr; ireq 43 net/ipv6/inet6_connection_sock.c fl6->saddr = ireq->ir_v6_loc_addr; ireq 44 net/ipv6/inet6_connection_sock.c fl6->flowi6_oif = ireq->ir_iif; ireq 45 net/ipv6/inet6_connection_sock.c fl6->flowi6_mark = ireq->ir_mark; ireq 46 net/ipv6/inet6_connection_sock.c fl6->fl6_dport = ireq->ir_rmt_port; ireq 47 net/ipv6/inet6_connection_sock.c fl6->fl6_sport = htons(ireq->ir_num); ireq 131 net/ipv6/syncookies.c struct inet_request_sock *ireq; ireq 177 net/ipv6/syncookies.c ireq = inet_rsk(req); ireq 185 net/ipv6/syncookies.c ireq->ir_rmt_port = th->source; ireq 186 net/ipv6/syncookies.c ireq->ir_num = ntohs(th->dest); ireq 187 net/ipv6/syncookies.c ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; ireq 188 net/ipv6/syncookies.c ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; ireq 193 net/ipv6/syncookies.c ireq->pktopts = skb; ireq 196 net/ipv6/syncookies.c ireq->ir_iif = inet_request_bound_dev_if(sk, skb); ireq 199 net/ipv6/syncookies.c ipv6_addr_type(&ireq->ir_v6_rmt_addr) & IPV6_ADDR_LINKLOCAL) ireq 200 net/ipv6/syncookies.c ireq->ir_iif = tcp_v6_iif(skb); ireq 202 net/ipv6/syncookies.c ireq->ir_mark = inet_request_mark(sk, skb); ireq 205 net/ipv6/syncookies.c ireq->snd_wscale = tcp_opt.snd_wscale; ireq 206 net/ipv6/syncookies.c ireq->sack_ok = tcp_opt.sack_ok; ireq 207 net/ipv6/syncookies.c ireq->wscale_ok = tcp_opt.wscale_ok; ireq 208 net/ipv6/syncookies.c ireq->tstamp_ok = tcp_opt.saw_tstamp; ireq 216 net/ipv6/syncookies.c ireq->smc_ok = 0; ireq 228 net/ipv6/syncookies.c fl6.daddr = ireq->ir_v6_rmt_addr; ireq 230 net/ipv6/syncookies.c fl6.saddr = ireq->ir_v6_loc_addr; ireq 231 net/ipv6/syncookies.c fl6.flowi6_oif = ireq->ir_iif; ireq 232 net/ipv6/syncookies.c fl6.flowi6_mark = ireq->ir_mark; ireq 233 net/ipv6/syncookies.c fl6.fl6_dport = ireq->ir_rmt_port; ireq 246 net/ipv6/syncookies.c ireq->wscale_ok, &rcv_wscale, ireq 249 net/ipv6/syncookies.c ireq->rcv_wscale = rcv_wscale; ireq 250 net/ipv6/syncookies.c ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), dst); ireq 490 net/ipv6/tcp_ipv6.c struct inet_request_sock *ireq = inet_rsk(req); ireq 505 net/ipv6/tcp_ipv6.c __tcp_v6_send_check(skb, &ireq->ir_v6_loc_addr, ireq 506 net/ipv6/tcp_ipv6.c &ireq->ir_v6_rmt_addr); ireq 508 net/ipv6/tcp_ipv6.c fl6->daddr = ireq->ir_v6_rmt_addr; ireq 509 net/ipv6/tcp_ipv6.c if (np->repflow && ireq->pktopts) ireq 510 net/ipv6/tcp_ipv6.c fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); ireq 513 net/ipv6/tcp_ipv6.c opt = ireq->ipv6_opt; ireq 750 net/ipv6/tcp_ipv6.c struct inet_request_sock *ireq = inet_rsk(req); ireq 753 net/ipv6/tcp_ipv6.c ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; ireq 754 net/ipv6/tcp_ipv6.c ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; ireq 758 net/ipv6/tcp_ipv6.c ipv6_addr_type(&ireq->ir_v6_rmt_addr) & IPV6_ADDR_LINKLOCAL) ireq 759 net/ipv6/tcp_ipv6.c ireq->ir_iif = tcp_v6_iif(skb); ireq 767 net/ipv6/tcp_ipv6.c ireq->pktopts = skb; ireq 1120 net/ipv6/tcp_ipv6.c struct inet_request_sock *ireq; ireq 1185 net/ipv6/tcp_ipv6.c ireq = inet_rsk(req); ireq 1218 net/ipv6/tcp_ipv6.c newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; ireq 1219 net/ipv6/tcp_ipv6.c newnp->saddr = ireq->ir_v6_loc_addr; ireq 1220 net/ipv6/tcp_ipv6.c newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; ireq 1221 net/ipv6/tcp_ipv6.c newsk->sk_bound_dev_if = ireq->ir_iif; ireq 1249 net/ipv6/tcp_ipv6.c opt = ireq->ipv6_opt; ireq 1296 net/ipv6/tcp_ipv6.c if (ireq->pktopts) { ireq 1297 net/ipv6/tcp_ipv6.c newnp->pktoptions = skb_clone(ireq->pktopts, ireq 1299 net/ipv6/tcp_ipv6.c consume_skb(ireq->pktopts); ireq 1300 net/ipv6/tcp_ipv6.c ireq->pktopts = NULL; ireq 1187 net/netlabel/netlabel_kapi.c struct inet_request_sock *ireq = inet_rsk(req); ireq 1193 net/netlabel/netlabel_kapi.c ireq->ir_rmt_addr); ireq 1214 net/netlabel/netlabel_kapi.c &ireq->ir_v6_rmt_addr);