Lines Matching refs:xferq
329 sc->fc.arq = &sc->arrq.xferq;
330 sc->fc.ars = &sc->arrs.xferq;
331 sc->fc.atq = &sc->atrq.xferq;
332 sc->fc.ats = &sc->atrs.xferq;
334 sc->arrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
335 sc->arrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
336 sc->atrq.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
337 sc->atrs.xferq.psize = roundup2(FWPMAX_S400, PAGE_SIZE);
339 sc->arrq.xferq.start = NULL;
340 sc->arrs.xferq.start = NULL;
341 sc->atrq.xferq.start = fwohci_start_atq;
342 sc->atrs.xferq.start = fwohci_start_ats;
344 sc->arrq.xferq.buf = NULL;
345 sc->arrs.xferq.buf = NULL;
346 sc->atrq.xferq.buf = NULL;
347 sc->atrs.xferq.buf = NULL;
349 sc->arrq.xferq.dmach = -1;
350 sc->arrs.xferq.dmach = -1;
351 sc->atrq.xferq.dmach = -1;
352 sc->atrs.xferq.dmach = -1;
432 sc->fc.it[i] = &sc->it[i].xferq;
433 sc->fc.ir[i] = &sc->ir[i].xferq;
434 sc->it[i].xferq.dmach = i;
435 sc->ir[i].xferq.dmach = i;
596 ir = &sc->ir[i].xferq;
810 ir = &dbch->xferq;
906 sc->ir[dmach].xferq.flag &= ~FWXFERQ_RUNNING;
922 it = &dbch->xferq;
1037 sc->it[dmach].xferq.flag &= ~FWXFERQ_RUNNING;
1288 sc->arrq.xferq.flag &= ~FWXFERQ_RUNNING;
1289 sc->arrs.xferq.flag &= ~FWXFERQ_RUNNING;
1360 KASSERT(mutex_owned(&dbch->xferq.q_mtx));
1379 xfer = STAILQ_FIRST(&dbch->xferq.q);
1383 if (dbch->xferq.queued == 0)
1386 STAILQ_REMOVE_HEAD(&dbch->xferq.q, link);
1498 dbch->xferq.queued++;
1512 if (dbch->xferq.flag & FWXFERQ_RUNNING)
1521 dbch->xferq.flag |= FWXFERQ_RUNNING;
1534 mutex_enter(&dbch->xferq.q_mtx);
1536 mutex_exit(&dbch->xferq.q_mtx);
1546 mutex_enter(&dbch->xferq.q_mtx);
1548 mutex_exit(&dbch->xferq.q_mtx);
1572 mutex_enter(&dbch->xferq.q_mtx);
1574 while (dbch->xferq.queued > 0) {
1642 dbch->xferq.queued--;
1647 mutex_exit(&dbch->xferq.q_mtx);
1670 mutex_enter(&dbch->xferq.q_mtx);
1680 if (firewire_debug && dbch->xferq.queued > 0)
1687 if (dbch->xferq.queued > 0 || packets > 0)
1695 mutex_exit(&dbch->xferq.q_mtx);
1709 if ((dbch->xferq.flag & FWXFERQ_EXTBUF) == 0 &&
1721 seldestroy(&dbch->xferq.rsel);
1766 if (bus_dmamap_create(fc->dmat, dbch->xferq.psize,
1777 &db_tr->dma_map, dbch->xferq
1788 if (dbch->xferq.flag & FWXFERQ_EXTBUF) {
1790 &dbch->xferq.bulkxfer[idb / dbch->xferq.bnpacket];
1792 if (idb % dbch->xferq.bnpacket == 0)
1794 if ((idb + 1) % dbch->xferq.bnpacket == 0)
1804 dbch->xferq.queued = 0;
1809 selinit(&dbch->xferq.rsel);
1820 if (!(dbch->xferq.flag & FWXFERQ_EXTBUF)) {
1832 if (dbch->xferq.flag & FWXFERQ_RUNNING)
1834 dbch->xferq.flag |= FWXFERQ_RUNNING;
1847 if (dbch->xferq.flag & FWXFERQ_EXTBUF) {
1848 if (((idb + 1) % dbch->xferq.bnpacket) == 0) {
1871 if (dbch->xferq.flag & FWXFERQ_STREAM) {
1872 if (dbch->xferq.flag & FWXFERQ_RUNNING)
1875 if (dbch->xferq.flag & FWXFERQ_RUNNING) {
1879 dbch->xferq.flag |= FWXFERQ_RUNNING;
1898 if (dbch->xferq.flag & FWXFERQ_EXTBUF) {
1899 if (((idb + 1) % dbch->xferq.bnpacket) == 0) {
1913 if (!(dbch->xferq.flag & FWXFERQ_STREAM)) {
2003 sc->atrq.xferq.flag &= ~FWXFERQ_RUNNING;
2005 sc->atrs.xferq.flag &= ~FWXFERQ_RUNNING;
2078 if ((dbch->xferq.flag & FWXFERQ_OPEN) == 0) {
2515 chtag = sc->it[dmach].xferq.flag & 0xff;
2522 for (idb = 0; idb < dbch->xferq.bnpacket; idb++) {
2575 it = &dbch->xferq;
2609 rq = &dbch->xferq;
2610 if (rq->buf == NULL && (dbch->xferq.flag & FWXFERQ_EXTBUF) == 0) {
2718 if (r > dbch->xferq.psize) {
2735 FWOHCI_DMA_WRITE(db->db.desc.res, dbch->xferq.psize);
2761 const int psize = dbch->xferq.psize;
2769 mutex_enter(&dbch->xferq.q_mtx);
3004 mutex_exit(&dbch->xferq.q_mtx);
3039 mutex_exit(&dbch->xferq.q_mtx);