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