Lines Matching refs:reply_queue
916 struct reply_queue_buffer *rq = &h->reply_queue[q]; in next_command()
972 int reply_queue) in set_performant_mode() argument
978 if (likely(reply_queue == DEFAULT_REPLY_QUEUE)) in set_performant_mode()
982 c->Header.ReplyQueue = reply_queue % h->nreply_queues; in set_performant_mode()
988 int reply_queue) in set_ioaccel1_performant_mode() argument
996 if (likely(reply_queue == DEFAULT_REPLY_QUEUE)) in set_ioaccel1_performant_mode()
999 cp->ReplyQueue = reply_queue % h->nreply_queues; in set_ioaccel1_performant_mode()
1012 int reply_queue) in set_ioaccel2_tmf_performant_mode() argument
1020 if (likely(reply_queue == DEFAULT_REPLY_QUEUE)) in set_ioaccel2_tmf_performant_mode()
1021 cp->reply_queue = smp_processor_id() % h->nreply_queues; in set_ioaccel2_tmf_performant_mode()
1023 cp->reply_queue = reply_queue % h->nreply_queues; in set_ioaccel2_tmf_performant_mode()
1034 int reply_queue) in set_ioaccel2_performant_mode() argument
1042 if (likely(reply_queue == DEFAULT_REPLY_QUEUE)) in set_ioaccel2_performant_mode()
1043 cp->reply_queue = smp_processor_id() % h->nreply_queues; in set_ioaccel2_performant_mode()
1045 cp->reply_queue = reply_queue % h->nreply_queues; in set_ioaccel2_performant_mode()
1085 struct CommandList *c, int reply_queue) in __enqueue_cmd_and_start_io() argument
1091 set_ioaccel1_performant_mode(h, c, reply_queue); in __enqueue_cmd_and_start_io()
1095 set_ioaccel2_performant_mode(h, c, reply_queue); in __enqueue_cmd_and_start_io()
1099 set_ioaccel2_tmf_performant_mode(h, c, reply_queue); in __enqueue_cmd_and_start_io()
1103 set_performant_mode(h, c, reply_queue); in __enqueue_cmd_and_start_io()
2630 struct CommandList *c, int reply_queue, unsigned long timeout_msecs) in hpsa_scsi_do_simple_cmd_core() argument
2635 __enqueue_cmd_and_start_io(h, c, reply_queue); in hpsa_scsi_do_simple_cmd_core()
2650 int reply_queue, unsigned long timeout_msecs) in hpsa_scsi_do_simple_cmd() argument
2656 return hpsa_scsi_do_simple_cmd_core(h, c, reply_queue, timeout_msecs); in hpsa_scsi_do_simple_cmd()
2820 u8 reset_type, int reply_queue) in hpsa_send_reset() argument
2832 rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); in hpsa_send_reset()
2909 unsigned char *scsi3addr, u8 reset_type, int reply_queue) in hpsa_do_reset() argument
2947 rc = hpsa_send_reset(h, scsi3addr, reset_type, reply_queue); in hpsa_do_reset()
5325 int reply_queue) in hpsa_send_test_unit_ready() argument
5332 rc = hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); in hpsa_send_test_unit_ready()
5361 unsigned char lunaddr[], int reply_queue) in hpsa_wait_for_test_unit_ready() argument
5376 rc = hpsa_send_test_unit_ready(h, c, lunaddr, reply_queue); in hpsa_wait_for_test_unit_ready()
5394 int reply_queue) in wait_for_device_to_become_ready() argument
5409 if (reply_queue == DEFAULT_REPLY_QUEUE) { in wait_for_device_to_become_ready()
5413 first_queue = reply_queue; in wait_for_device_to_become_ready()
5414 last_queue = reply_queue; in wait_for_device_to_become_ready()
5542 struct CommandList *abort, int reply_queue) in hpsa_send_abort() argument
5556 (void) hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); in hpsa_send_abort()
5586 struct CommandList *command_to_abort, int reply_queue) in setup_ioaccel2_abort_cmd() argument
5616 ac->reply_queue = reply_queue; in setup_ioaccel2_abort_cmd()
5635 unsigned char *scsi3addr, struct CommandList *abort, int reply_queue) in hpsa_send_reset_as_abort_ioaccel2() argument
5678 rc = hpsa_do_reset(h, dev, psa, HPSA_RESET_TYPE_TARGET, reply_queue); in hpsa_send_reset_as_abort_ioaccel2()
5688 if (wait_for_device_to_become_ready(h, psa, reply_queue) != 0) { in hpsa_send_reset_as_abort_ioaccel2()
5706 struct CommandList *abort, int reply_queue) in hpsa_send_abort_ioaccel2() argument
5719 setup_ioaccel2_abort_cmd(c, h, abort, reply_queue); in hpsa_send_abort_ioaccel2()
5721 (void) hpsa_scsi_do_simple_cmd(h, c, reply_queue, NO_TIMEOUT); in hpsa_send_abort_ioaccel2()
5755 unsigned char *scsi3addr, struct CommandList *abort, int reply_queue) in hpsa_send_abort_both_ways() argument
5766 reply_queue); in hpsa_send_abort_both_ways()
5769 abort, reply_queue); in hpsa_send_abort_both_ways()
5771 return hpsa_send_abort(h, scsi3addr, abort, reply_queue); in hpsa_send_abort_both_ways()
5779 return h->ioaccel2_cmd_pool[c->cmdindex].reply_queue; in hpsa_extract_reply_queue()
5810 int refcount, reply_queue; in hpsa_eh_abort_handler() local
5886 reply_queue = hpsa_extract_reply_queue(h, abort); in hpsa_eh_abort_handler()
5909 rc = hpsa_send_abort_both_ways(h, dev->scsi3addr, abort, reply_queue); in hpsa_eh_abort_handler()
8012 if (!h->reply_queue[i].head) in hpsa_free_reply_queues()
8016 h->reply_queue[i].head, in hpsa_free_reply_queues()
8017 h->reply_queue[i].busaddr); in hpsa_free_reply_queues()
8018 h->reply_queue[i].head = NULL; in hpsa_free_reply_queues()
8019 h->reply_queue[i].busaddr = 0; in hpsa_free_reply_queues()
8883 memset(h->reply_queue[i].head, 0, h->reply_queue_size); in hpsa_enter_performant_mode()
8899 writel(h->reply_queue[i].busaddr, in hpsa_enter_performant_mode()
8943 h->reply_queue[i].current_entry = in hpsa_enter_performant_mode()
8952 memset(h->reply_queue[i].head, in hpsa_enter_performant_mode()
9167 h->reply_queue[i].head = pci_alloc_consistent(h->pdev, in hpsa_put_ctlr_into_performant_mode()
9169 &(h->reply_queue[i].busaddr)); in hpsa_put_ctlr_into_performant_mode()
9170 if (!h->reply_queue[i].head) { in hpsa_put_ctlr_into_performant_mode()
9174 h->reply_queue[i].size = h->max_commands; in hpsa_put_ctlr_into_performant_mode()
9175 h->reply_queue[i].wraparound = 1; /* spec: init to 1 */ in hpsa_put_ctlr_into_performant_mode()
9176 h->reply_queue[i].current_entry = 0; in hpsa_put_ctlr_into_performant_mode()
9622 VERIFY_OFFSET(reply_queue, 2); in verify_offsets()