Lines Matching refs:cmdQ

174 	cmn_err(CE_NOTE, "&sge->cmdQ[0]: %p\n", &sge->cmdQ[0]);
235 atomic_read(&sge->cmdQ[0].cq_asleep)) {
306 struct cmdQ *Q = &sge->cmdQ[qid];
307 ddi_dma_handle_t dh = (ddi_dma_handle_t)sge->cmdQ[qid].cq_dh;
444 /* sync from offset to end of cmdQ */
648 spin_lock(&sge->cmdQ[0].cq_qlock);
649 sge->cmdQ[0].cq_complete += e->Cmdq0CreditReturn;
650 spin_unlock(&sge->cmdQ[0].cq_qlock);
651 spin_lock(&sge->cmdQ[1].cq_qlock);
652 sge->cmdQ[1].cq_complete += e->Cmdq1CreditReturn;
654 (sge->cmdQ[0].cq_complete +
655 sge->cmdQ[1].cq_complete) > 16) {
659 spin_unlock(&sge->cmdQ[1].cq_qlock);
665 free_cmdQ_buffers(sge, &sge->cmdQ[0], credits_pend[0]);
669 free_cmdQ_buffers(sge, &sge->cmdQ[1], credits_pend[1]);
693 free_cmdQ_buffers(sge, &sge->cmdQ[0], credits_pend[0]);
695 free_cmdQ_buffers(sge, &sge->cmdQ[1], credits_pend[1]);
698 struct cmdQ *cmdQ = &sge->cmdQ[0];
699 atomic_set(&cmdQ->cq_asleep, 1);
700 if (atomic_read(cmdQ->cq_pio_pidx) != cmdQ->cq_pidx) {
702 atomic_set(&cmdQ->cq_pio_pidx, cmdQ->cq_pidx);
714 (sge->cmdQ[0].cq_credits > (sge->cmdQ[0].cq_entries_n>>2)) &&
715 (sge->cmdQ[1].cq_credits > (sge->cmdQ[1].cq_entries_n>>2))) {
726 (sge->cmdQ[0].cq_credits > (sge->cmdQ[0].cq_entries_n>>1)) &&
727 (sge->cmdQ[1].cq_credits > (sge->cmdQ[1].cq_entries_n>>1))) {
1165 free_cmdQ_buffers(pesge *sge, struct cmdQ *Q, unsigned int credits_pend)
1376 struct cmdQ *Q = &sge->cmdQ[i];
1441 setup_ring_params(ap, sge->cmdQ[0].cq_pa, sge->cmdQ[0].cq_entries_n,
1443 setup_ring_params(ap, sge->cmdQ[1].cq_pa, sge->cmdQ[1].cq_entries_n,
1608 struct cmdQ *Q = &sge->cmdQ[i];