Lines Matching refs:doneq_index

719 		acb->doneq_index = 0;  in arcmsr_alloc_io_queue()
740 acb->doneq_index = 0; in arcmsr_alloc_io_queue()
837 acb->doneq_index = 0; in arcmsr_alloc_ccb_pool()
1176 reg->doneq_index = 0; in arcmsr_resume()
1184 acb->doneq_index = 0; in arcmsr_resume()
1191 acb->doneq_index = 0; in arcmsr_resume()
1510 reg->doneq_index = 0; in arcmsr_done4abort_postqueue()
1532 uint32_t doneq_index, index_stripped, addressLow, residual, toggle; in arcmsr_done4abort_postqueue() local
1540 doneq_index = pmu->doneq_index; in arcmsr_done4abort_postqueue()
1541 if ((doneq_index & 0xFFF) != in arcmsr_done4abort_postqueue()
1543 toggle = doneq_index & 0x4000; in arcmsr_done4abort_postqueue()
1544 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_done4abort_postqueue()
1546 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_done4abort_postqueue()
1548 doneq_index = pmu->doneq_index; in arcmsr_done4abort_postqueue()
1550 addressLow = pmu->done_qbuffer[doneq_index & in arcmsr_done4abort_postqueue()
1563 writel(doneq_index, in arcmsr_done4abort_postqueue()
1571 pmu->doneq_index = 0x40FF; in arcmsr_done4abort_postqueue()
2483 index = reg->doneq_index; in arcmsr_hbaB_postqueue_isr()
2495 reg->doneq_index = index; in arcmsr_hbaB_postqueue_isr()
2536 u32 outbound_write_pointer, doneq_index, index_stripped, toggle; in arcmsr_hbaD_postqueue_isr() local
2547 doneq_index = pmu->doneq_index; in arcmsr_hbaD_postqueue_isr()
2548 if ((doneq_index & 0xFFF) != (outbound_write_pointer & 0xFFF)) { in arcmsr_hbaD_postqueue_isr()
2550 toggle = doneq_index & 0x4000; in arcmsr_hbaD_postqueue_isr()
2551 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_hbaD_postqueue_isr()
2553 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_hbaD_postqueue_isr()
2555 doneq_index = pmu->doneq_index; in arcmsr_hbaD_postqueue_isr()
2556 addressLow = pmu->done_qbuffer[doneq_index & in arcmsr_hbaD_postqueue_isr()
2568 writel(doneq_index, pmu->outboundlist_read_pointer); in arcmsr_hbaD_postqueue_isr()
2569 } while ((doneq_index & 0xFFF) != in arcmsr_hbaD_postqueue_isr()
2580 uint32_t doneq_index; in arcmsr_hbaE_postqueue_isr() local
2588 doneq_index = acb->doneq_index; in arcmsr_hbaE_postqueue_isr()
2590 while ((readl(&pmu->reply_post_producer_index) & 0xFFFF) != doneq_index) { in arcmsr_hbaE_postqueue_isr()
2591 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaE_postqueue_isr()
2593 error = (acb->pCompletionQ[doneq_index].cmdFlag in arcmsr_hbaE_postqueue_isr()
2596 doneq_index++; in arcmsr_hbaE_postqueue_isr()
2597 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaE_postqueue_isr()
2598 doneq_index = 0; in arcmsr_hbaE_postqueue_isr()
2600 acb->doneq_index = doneq_index; in arcmsr_hbaE_postqueue_isr()
2601 writel(doneq_index, &pmu->reply_post_consumer_index); in arcmsr_hbaE_postqueue_isr()
2607 uint32_t doneq_index; in arcmsr_hbaF_postqueue_isr() local
2615 doneq_index = acb->doneq_index; in arcmsr_hbaF_postqueue_isr()
2618 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaF_postqueue_isr()
2622 error = (acb->pCompletionQ[doneq_index].cmdFlag & in arcmsr_hbaF_postqueue_isr()
2625 acb->pCompletionQ[doneq_index].cmdSMID = 0xffff; in arcmsr_hbaF_postqueue_isr()
2626 doneq_index++; in arcmsr_hbaF_postqueue_isr()
2627 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaF_postqueue_isr()
2628 doneq_index = 0; in arcmsr_hbaF_postqueue_isr()
2630 acb->doneq_index = doneq_index; in arcmsr_hbaF_postqueue_isr()
2631 writel(doneq_index, &phbcmu->reply_post_consumer_index); in arcmsr_hbaF_postqueue_isr()
3562 index = reg->doneq_index; in arcmsr_hbaB_polling_ccbdone()
3581 reg->doneq_index = index; in arcmsr_hbaB_polling_ccbdone()
3682 int rtn, doneq_index, index_stripped, outbound_write_pointer, toggle; in arcmsr_hbaD_polling_ccbdone() local
3693 doneq_index = pmu->doneq_index; in arcmsr_hbaD_polling_ccbdone()
3694 if ((outbound_write_pointer & 0xFFF) == (doneq_index & 0xFFF)) { in arcmsr_hbaD_polling_ccbdone()
3708 toggle = doneq_index & 0x4000; in arcmsr_hbaD_polling_ccbdone()
3709 index_stripped = (doneq_index & 0xFFF) + 1; in arcmsr_hbaD_polling_ccbdone()
3711 pmu->doneq_index = index_stripped ? (index_stripped | toggle) : in arcmsr_hbaD_polling_ccbdone()
3713 doneq_index = pmu->doneq_index; in arcmsr_hbaD_polling_ccbdone()
3715 flag_ccb = pmu->done_qbuffer[doneq_index & 0xFFF].addressLow; in arcmsr_hbaD_polling_ccbdone()
3757 uint32_t poll_ccb_done = 0, poll_count = 0, doneq_index; in arcmsr_hbaE_polling_ccbdone() local
3768 doneq_index = acb->doneq_index; in arcmsr_hbaE_polling_ccbdone()
3770 doneq_index) { in arcmsr_hbaE_polling_ccbdone()
3784 cmdSMID = acb->pCompletionQ[doneq_index].cmdSMID; in arcmsr_hbaE_polling_ccbdone()
3785 doneq_index++; in arcmsr_hbaE_polling_ccbdone()
3786 if (doneq_index >= acb->completionQ_entry) in arcmsr_hbaE_polling_ccbdone()
3787 doneq_index = 0; in arcmsr_hbaE_polling_ccbdone()
3788 acb->doneq_index = doneq_index; in arcmsr_hbaE_polling_ccbdone()
3814 error = (acb->pCompletionQ[doneq_index].cmdFlag & in arcmsr_hbaE_polling_ccbdone()
3818 writel(doneq_index, &reg->reply_post_consumer_index); in arcmsr_hbaE_polling_ccbdone()
3999 reg->doneq_index = 0; in arcmsr_iop_confirm()
4052 reg->doneq_index = 0; in arcmsr_iop_confirm()