Lines Matching refs:doneq_index

712 		acb->doneq_index = 0;  in arcmsr_alloc_io_queue()
733 acb->doneq_index = 0; in arcmsr_alloc_io_queue()
830 acb->doneq_index = 0; in arcmsr_alloc_ccb_pool()
1177 reg->doneq_index = 0; in arcmsr_resume()
1185 acb->doneq_index = 0; in arcmsr_resume()
1192 acb->doneq_index = 0; in arcmsr_resume()
1518 reg->doneq_index = 0; in arcmsr_done4abort_postqueue()
1540 uint32_t doneq_index, index_stripped, addressLow, residual, toggle; in arcmsr_done4abort_postqueue() local
1548 doneq_index = pmu->doneq_index; in arcmsr_done4abort_postqueue()
1549 if ((doneq_index & 0xFFF) != in arcmsr_done4abort_postqueue()
1551 toggle = doneq_index & 0x4000; in arcmsr_done4abort_postqueue()
1552 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_done4abort_postqueue()
1554 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_done4abort_postqueue()
1556 doneq_index = pmu->doneq_index; in arcmsr_done4abort_postqueue()
1558 addressLow = pmu->done_qbuffer[doneq_index & in arcmsr_done4abort_postqueue()
1571 writel(doneq_index, in arcmsr_done4abort_postqueue()
1579 pmu->doneq_index = 0x40FF; in arcmsr_done4abort_postqueue()
2477 index = reg->doneq_index; in arcmsr_hbaB_postqueue_isr()
2489 reg->doneq_index = index; in arcmsr_hbaB_postqueue_isr()
2530 u32 outbound_write_pointer, doneq_index, index_stripped, toggle; in arcmsr_hbaD_postqueue_isr() local
2541 doneq_index = pmu->doneq_index; in arcmsr_hbaD_postqueue_isr()
2542 if ((doneq_index & 0xFFF) != (outbound_write_pointer & 0xFFF)) { in arcmsr_hbaD_postqueue_isr()
2544 toggle = doneq_index & 0x4000; in arcmsr_hbaD_postqueue_isr()
2545 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_hbaD_postqueue_isr()
2547 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_hbaD_postqueue_isr()
2549 doneq_index = pmu->doneq_index; in arcmsr_hbaD_postqueue_isr()
2550 addressLow = pmu->done_qbuffer[doneq_index & in arcmsr_hbaD_postqueue_isr()
2562 writel(doneq_index, pmu->outboundlist_read_pointer); in arcmsr_hbaD_postqueue_isr()
2563 } while ((doneq_index & 0xFFF) != in arcmsr_hbaD_postqueue_isr()
2574 uint32_t doneq_index; in arcmsr_hbaE_postqueue_isr() local
2582 doneq_index = acb->doneq_index; in arcmsr_hbaE_postqueue_isr()
2584 while ((readl(&pmu->reply_post_producer_index) & 0xFFFF) != doneq_index) { in arcmsr_hbaE_postqueue_isr()
2585 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaE_postqueue_isr()
2587 error = (acb->pCompletionQ[doneq_index].cmdFlag in arcmsr_hbaE_postqueue_isr()
2590 doneq_index++; in arcmsr_hbaE_postqueue_isr()
2591 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaE_postqueue_isr()
2592 doneq_index = 0; in arcmsr_hbaE_postqueue_isr()
2594 acb->doneq_index = doneq_index; in arcmsr_hbaE_postqueue_isr()
2595 writel(doneq_index, &pmu->reply_post_consumer_index); in arcmsr_hbaE_postqueue_isr()
2601 uint32_t doneq_index; in arcmsr_hbaF_postqueue_isr() local
2609 doneq_index = acb->doneq_index; in arcmsr_hbaF_postqueue_isr()
2612 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaF_postqueue_isr()
2616 error = (acb->pCompletionQ[doneq_index].cmdFlag & in arcmsr_hbaF_postqueue_isr()
2619 acb->pCompletionQ[doneq_index].cmdSMID = 0xffff; in arcmsr_hbaF_postqueue_isr()
2620 doneq_index++; in arcmsr_hbaF_postqueue_isr()
2621 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaF_postqueue_isr()
2622 doneq_index = 0; in arcmsr_hbaF_postqueue_isr()
2624 acb->doneq_index = doneq_index; in arcmsr_hbaF_postqueue_isr()
2625 writel(doneq_index, &phbcmu->reply_post_consumer_index); in arcmsr_hbaF_postqueue_isr()
3546 index = reg->doneq_index; in arcmsr_hbaB_polling_ccbdone()
3565 reg->doneq_index = index; in arcmsr_hbaB_polling_ccbdone()
3666 int rtn, doneq_index, index_stripped, outbound_write_pointer, toggle; in arcmsr_hbaD_polling_ccbdone() local
3677 doneq_index = pmu->doneq_index; in arcmsr_hbaD_polling_ccbdone()
3678 if ((outbound_write_pointer & 0xFFF) == (doneq_index & 0xFFF)) { in arcmsr_hbaD_polling_ccbdone()
3692 toggle = doneq_index & 0x4000; in arcmsr_hbaD_polling_ccbdone()
3693 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_hbaD_polling_ccbdone()
3695 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_hbaD_polling_ccbdone()
3697 doneq_index = pmu->doneq_index; in arcmsr_hbaD_polling_ccbdone()
3699 flag_ccb = pmu->done_qbuffer[doneq_index & 0xFFF].addressLow; in arcmsr_hbaD_polling_ccbdone()
3741 uint32_t poll_ccb_done = 0, poll_count = 0, doneq_index; in arcmsr_hbaE_polling_ccbdone() local
3752 doneq_index = acb->doneq_index; in arcmsr_hbaE_polling_ccbdone()
3754 doneq_index) { in arcmsr_hbaE_polling_ccbdone()
3768 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaE_polling_ccbdone()
3769 doneq_index++; in arcmsr_hbaE_polling_ccbdone()
3770 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaE_polling_ccbdone()
3771 doneq_index = 0; in arcmsr_hbaE_polling_ccbdone()
3772 acb->doneq_index = doneq_index; in arcmsr_hbaE_polling_ccbdone()
3798 error = (acb->pCompletionQ[doneq_index].cmdFlag & in arcmsr_hbaE_polling_ccbdone()
3802 writel(doneq_index, &reg->reply_post_consumer_index); in arcmsr_hbaE_polling_ccbdone()
3983 reg->doneq_index = 0; in arcmsr_iop_confirm()
4036 reg->doneq_index = 0; in arcmsr_iop_confirm()