Lines Matching defs:chunk
1588 struct fw_bulkxfer *first, *chunk, *prev;
1612 while ((chunk = STAILQ_FIRST(&it->stvalid)) != NULL) {
1615 // fwdma_sync_multiseg(it->buf, chunk->poffset, it->bnpacket,
1617 fwohci_txbufdb(sc, dmach, chunk);
1627 (chunk->start))->bus_addr | dbch->ndesc;
1634 STAILQ_INSERT_TAIL(&it->stdma, chunk, link);
1635 prev = chunk;
1709 struct fw_bulkxfer *first, *prev, *chunk;
1733 device_printf(fc->dev, "IR DMA no free chunk\n");
1742 while ((chunk = STAILQ_FIRST(&ir->stfree)) != NULL) {
1746 if (chunk->mbuf != NULL) {
1747 db_tr = (struct fwohcidb_tr *)(chunk->start);
1750 chunk->mbuf, fwohci_execute_db2, db_tr,
1757 db = ((struct fwohcidb_tr *)(chunk->end))->db;
1765 STAILQ_INSERT_TAIL(&ir->stdma, chunk, link);
1766 prev = chunk;
2175 struct fw_bulkxfer *chunk;
2187 while ((chunk = STAILQ_FIRST(&it->stdma)) != NULL) {
2188 db = ((struct fwohcidb_tr *)(chunk->end))->db;
2191 db = ((struct fwohcidb_tr *)(chunk->start))->db;
2208 STAILQ_INSERT_TAIL(&it->stfree, chunk, link);
2222 struct fw_bulkxfer *chunk;
2237 while ((chunk = STAILQ_FIRST(&ir->stdma)) != NULL) {
2238 db_tr = (struct fwohcidb_tr *)chunk->end;
2244 if (chunk->mbuf != NULL) {
2249 fwdma_sync_multiseg(ir->buf, chunk->poffset,
2257 STAILQ_INSERT_TAIL(&ir->stvalid, chunk, link);
2260 chunk->resp = 0;
2263 chunk->resp = EINVAL;