• Home
  • Raw
  • Download

Lines Matching refs:rq

49 			      struct esas2r_request *rq);
51 struct esas2r_request *rq);
55 struct esas2r_request *rq);
59 struct esas2r_request *rq);
61 struct esas2r_request *rq);
63 struct esas2r_request *rq);
65 struct esas2r_request *rq);
67 struct esas2r_request *rq);
69 struct esas2r_request *rq);
71 struct esas2r_request *rq);
73 struct esas2r_request *rq);
75 struct esas2r_request *rq);
77 struct esas2r_request *rq);
79 struct esas2r_request *rq);
81 struct esas2r_request *rq);
160 struct esas2r_request *rq = &a->general_req; in esas2r_disc_check_for_work() local
174 if (rq->interrupt_cx == NULL) in esas2r_disc_check_for_work()
177 if (rq->req_stat == RS_STARTED in esas2r_disc_check_for_work()
178 && rq->timeout <= RQ_MAX_TIMEOUT) { in esas2r_disc_check_for_work()
180 esas2r_wait_request(a, rq); in esas2r_disc_check_for_work()
182 if (rq->req_stat == RS_TIMEOUT) { in esas2r_disc_check_for_work()
183 esas2r_disc_abort(a, rq); in esas2r_disc_check_for_work()
189 if (rq->req_stat == RS_PENDING in esas2r_disc_check_for_work()
190 || rq->req_stat == RS_STARTED) in esas2r_disc_check_for_work()
193 esas2r_disc_continue(a, rq); in esas2r_disc_check_for_work()
313 struct esas2r_request *rq = &a->general_req; in esas2r_disc_start_port() local
359 rq->interrupt_cx = dc; in esas2r_disc_start_port()
360 rq->req_stat = RS_SUCCESS; in esas2r_disc_start_port()
377 ret = esas2r_disc_continue(a, rq); in esas2r_disc_start_port()
387 struct esas2r_request *rq) in esas2r_disc_continue() argument
390 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_continue()
400 rslt = esas2r_disc_dev_remove(a, rq); in esas2r_disc_continue()
405 rslt = esas2r_disc_dev_add(a, rq); in esas2r_disc_continue()
410 rslt = esas2r_disc_block_dev_scan(a, rq); in esas2r_disc_continue()
415 rslt = esas2r_disc_raid_grp_info(a, rq); in esas2r_disc_continue()
420 rslt = esas2r_disc_part_info(a, rq); in esas2r_disc_continue()
425 rslt = esas2r_disc_passthru_dev_info(a, rq); in esas2r_disc_continue()
429 rslt = esas2r_disc_passthru_dev_addr(a, rq); in esas2r_disc_continue()
448 rq->interrupt_cx = NULL; in esas2r_disc_continue()
460 struct esas2r_request *rq) in esas2r_disc_start_request() argument
465 if (rq->timeout < ESAS2R_DEFAULT_TMO) in esas2r_disc_start_request()
466 rq->timeout = ESAS2R_DEFAULT_TMO; in esas2r_disc_start_request()
473 rq->req_type = RT_DISC_REQ; in esas2r_disc_start_request()
479 esas2r_disc_local_start_request(a, rq); in esas2r_disc_start_request()
481 list_add_tail(&rq->req_list, &a->defer_list); in esas2r_disc_start_request()
489 struct esas2r_request *rq) in esas2r_disc_local_start_request() argument
493 list_add_tail(&rq->req_list, &a->active_list); in esas2r_disc_local_start_request()
495 esas2r_start_vda_request(a, rq); in esas2r_disc_local_start_request()
503 struct esas2r_request *rq) in esas2r_disc_abort() argument
506 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_abort()
518 struct esas2r_request *rq) in esas2r_disc_block_dev_scan() argument
521 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_block_dev_scan()
526 esas2r_rq_init_request(rq, a); in esas2r_disc_block_dev_scan()
529 rq, in esas2r_disc_block_dev_scan()
536 rq->comp_cb = esas2r_disc_block_dev_scan_cb; in esas2r_disc_block_dev_scan()
538 rq->timeout = 30000; in esas2r_disc_block_dev_scan()
539 rq->interrupt_cx = dc; in esas2r_disc_block_dev_scan()
541 rslt = esas2r_disc_start_request(a, rq); in esas2r_disc_block_dev_scan()
549 struct esas2r_request *rq) in esas2r_disc_block_dev_scan_cb() argument
552 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_block_dev_scan_cb()
559 if (rq->req_stat == RS_SUCCESS) in esas2r_disc_block_dev_scan_cb()
560 dc->scan_gen = rq->func_rsp.mgt_rsp.scan_generation; in esas2r_disc_block_dev_scan_cb()
565 esas2r_rq_destroy_request(rq, a); in esas2r_disc_block_dev_scan_cb()
570 esas2r_disc_continue(a, rq); in esas2r_disc_block_dev_scan_cb()
578 struct esas2r_request *rq) in esas2r_disc_raid_grp_info() argument
581 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_raid_grp_info()
597 esas2r_rq_init_request(rq, a); in esas2r_disc_raid_grp_info()
599 grpinfo = &rq->vda_rsp_data->mgt_data.data.grp_info; in esas2r_disc_raid_grp_info()
604 rq, in esas2r_disc_raid_grp_info()
613 rq->comp_cb = esas2r_disc_raid_grp_info_cb; in esas2r_disc_raid_grp_info()
615 rq->interrupt_cx = dc; in esas2r_disc_raid_grp_info()
617 rslt = esas2r_disc_start_request(a, rq); in esas2r_disc_raid_grp_info()
625 struct esas2r_request *rq) in esas2r_disc_raid_grp_info_cb() argument
628 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_raid_grp_info_cb()
636 if (rq->req_stat == RS_SCAN_GEN) { in esas2r_disc_raid_grp_info_cb()
637 dc->scan_gen = rq->func_rsp.mgt_rsp.scan_generation; in esas2r_disc_raid_grp_info_cb()
642 if (rq->req_stat == RS_SUCCESS) { in esas2r_disc_raid_grp_info_cb()
643 grpinfo = &rq->vda_rsp_data->mgt_data.data.grp_info; in esas2r_disc_raid_grp_info_cb()
662 if (!(rq->req_stat == RS_GRP_INVALID)) { in esas2r_disc_raid_grp_info_cb()
666 rq->req_stat); in esas2r_disc_raid_grp_info_cb()
675 esas2r_rq_destroy_request(rq, a); in esas2r_disc_raid_grp_info_cb()
680 esas2r_disc_continue(a, rq); in esas2r_disc_raid_grp_info_cb()
688 struct esas2r_request *rq) in esas2r_disc_part_info() argument
691 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_part_info()
708 esas2r_rq_init_request(rq, a); in esas2r_disc_part_info()
710 partinfo = &rq->vda_rsp_data->mgt_data.data.part_info; in esas2r_disc_part_info()
715 rq, in esas2r_disc_part_info()
728 rq->comp_cb = esas2r_disc_part_info_cb; in esas2r_disc_part_info()
730 rq->interrupt_cx = dc; in esas2r_disc_part_info()
732 rslt = esas2r_disc_start_request(a, rq); in esas2r_disc_part_info()
740 struct esas2r_request *rq) in esas2r_disc_part_info_cb() argument
743 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_part_info_cb()
751 if (rq->req_stat == RS_SCAN_GEN) { in esas2r_disc_part_info_cb()
752 dc->scan_gen = rq->func_rsp.mgt_rsp.scan_generation; in esas2r_disc_part_info_cb()
755 } else if (rq->req_stat == RS_SUCCESS) { in esas2r_disc_part_info_cb()
756 partinfo = &rq->vda_rsp_data->mgt_data.data.part_info; in esas2r_disc_part_info_cb()
766 if (!(rq->req_stat == RS_PART_LAST)) { in esas2r_disc_part_info_cb()
769 "failed - status:%d", rq->req_stat); in esas2r_disc_part_info_cb()
776 esas2r_rq_destroy_request(rq, a); in esas2r_disc_part_info_cb()
781 esas2r_disc_continue(a, rq); in esas2r_disc_part_info_cb()
789 struct esas2r_request *rq) in esas2r_disc_passthru_dev_info() argument
792 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_passthru_dev_info()
800 esas2r_rq_init_request(rq, a); in esas2r_disc_passthru_dev_info()
802 devinfo = &rq->vda_rsp_data->mgt_data.data.dev_info; in esas2r_disc_passthru_dev_info()
807 rq, in esas2r_disc_passthru_dev_info()
814 rq->comp_cb = esas2r_disc_passthru_dev_info_cb; in esas2r_disc_passthru_dev_info()
816 rq->interrupt_cx = dc; in esas2r_disc_passthru_dev_info()
818 rslt = esas2r_disc_start_request(a, rq); in esas2r_disc_passthru_dev_info()
826 struct esas2r_request *rq) in esas2r_disc_passthru_dev_info_cb() argument
829 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_passthru_dev_info_cb()
837 if (rq->req_stat == RS_SCAN_GEN) { in esas2r_disc_passthru_dev_info_cb()
838 dc->scan_gen = rq->func_rsp.mgt_rsp.scan_generation; in esas2r_disc_passthru_dev_info_cb()
841 } else if (rq->req_stat == RS_SUCCESS) { in esas2r_disc_passthru_dev_info_cb()
842 devinfo = &rq->vda_rsp_data->mgt_data.data.dev_info; in esas2r_disc_passthru_dev_info_cb()
844 dc->dev_ix = le16_to_cpu(rq->func_rsp.mgt_rsp.dev_index); in esas2r_disc_passthru_dev_info_cb()
860 if (!(rq->req_stat == RS_DEV_INVALID)) { in esas2r_disc_passthru_dev_info_cb()
863 "status:%d", rq->req_stat); in esas2r_disc_passthru_dev_info_cb()
869 esas2r_rq_destroy_request(rq, a); in esas2r_disc_passthru_dev_info_cb()
874 esas2r_disc_continue(a, rq); in esas2r_disc_passthru_dev_info_cb()
882 struct esas2r_request *rq) in esas2r_disc_passthru_dev_addr() argument
885 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_passthru_dev_addr()
892 esas2r_rq_init_request(rq, a); in esas2r_disc_passthru_dev_addr()
901 esas2r_sgc_init(&sgc, a, rq, rq->vrq->ioctl.sge); in esas2r_disc_passthru_dev_addr()
903 esas2r_build_ioctl_req(a, rq, sgc.length, VDA_IOCTL_HBA); in esas2r_disc_passthru_dev_addr()
905 if (!esas2r_build_sg_list(a, rq, &sgc)) { in esas2r_disc_passthru_dev_addr()
906 esas2r_rq_destroy_request(rq, a); in esas2r_disc_passthru_dev_addr()
913 rq->comp_cb = esas2r_disc_passthru_dev_addr_cb; in esas2r_disc_passthru_dev_addr()
915 rq->interrupt_cx = dc; in esas2r_disc_passthru_dev_addr()
932 rslt = esas2r_disc_start_request(a, rq); in esas2r_disc_passthru_dev_addr()
940 struct esas2r_request *rq) in esas2r_disc_passthru_dev_addr_cb() argument
943 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_passthru_dev_addr_cb()
955 if (rq->req_stat == RS_SUCCESS in esas2r_disc_passthru_dev_addr_cb()
1002 rq->req_stat, hi->status); in esas2r_disc_passthru_dev_addr_cb()
1018 esas2r_rq_destroy_request(rq, a); in esas2r_disc_passthru_dev_addr_cb()
1023 esas2r_disc_continue(a, rq); in esas2r_disc_passthru_dev_addr_cb()
1044 struct esas2r_request *rq) in esas2r_disc_dev_remove() argument
1047 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_dev_remove()
1083 struct esas2r_request *rq) in esas2r_disc_dev_add() argument
1086 (struct esas2r_disc_context *)rq->interrupt_cx; in esas2r_disc_dev_add()
1162 struct esas2r_request *rq; in esas2r_disc_fix_curr_requests() local
1170 rq = list_entry(element, struct esas2r_request, req_list); in esas2r_disc_fix_curr_requests()
1171 if (rq->vrq->scsi.function == VDA_FUNC_SCSI) { in esas2r_disc_fix_curr_requests()
1172 t = a->targetdb + rq->target_id; in esas2r_disc_fix_curr_requests()
1175 rq->vrq->scsi.target_id = le16_to_cpu( in esas2r_disc_fix_curr_requests()
1178 rq->req_stat = RS_SEL; in esas2r_disc_fix_curr_requests()