Lines Matching defs:desc
229 struct ioat_desc_sw *desc = tx_to_ioat_desc(tx);
245 /* write address into NextDescriptor field of last desc in chain */
246 first = to_ioat_desc(desc->tx_list.next);
251 list_splice_tail_init(&desc->tx_list, &ioat->used_desc);
258 ioat->active += desc->hw->tx_cnt;
259 ioat->pending += desc->hw->tx_cnt;
275 struct ioat_dma_descriptor *desc;
281 desc = pci_pool_alloc(ioatdma_device->dma_pool, flags, &phys);
282 if (unlikely(!desc))
287 pci_pool_free(ioatdma_device->dma_pool, desc, phys);
291 memset(desc, 0, sizeof(*desc));
296 desc_sw->hw = desc;
315 struct ioat_desc_sw *desc;
335 desc = ioat_dma_alloc_descriptor(ioat, GFP_KERNEL);
336 if (!desc) {
340 set_desc_id(desc, i);
341 list_add_tail(&desc->node, &tmp_list);
374 struct ioat_desc_sw *desc, *_desc;
395 list_for_each_entry_safe(desc, _desc, &ioat->used_desc, node) {
397 __func__, desc_id(desc));
398 dump_desc_dbg(ioat, desc);
400 list_del(&desc->node);
401 pci_pool_free(ioatdma_device->dma_pool, desc->hw,
402 desc->txd.phys);
403 kfree(desc);
405 list_for_each_entry_safe(desc, _desc,
407 list_del(&desc->node);
408 pci_pool_free(ioatdma_device->dma_pool, desc->hw,
409 desc->txd.phys);
410 kfree(desc);
446 /* try to get another desc */
464 struct ioat_desc_sw *desc;
474 desc = ioat1_dma_get_next_descriptor(ioat);
476 if (!desc)
482 hw = desc->hw;
488 list_add_tail(&desc->node, &chain);
496 async_tx_ack(&desc->txd);
499 dump_desc_dbg(ioat, desc);
500 desc = next;
505 if (!desc) {
516 desc->txd.flags = flags;
517 desc->len = total_len;
518 list_splice(&chain, &desc->tx_list);
522 dump_desc_dbg(ioat, desc);
524 return &desc->txd;
593 struct ioat_desc_sw *desc;
596 desc = list_entry(_desc, typeof(*desc), node);
597 tx = &desc->txd;
603 dump_desc_dbg(ioat, desc);
607 ioat_dma_unmap(chan, tx->flags, desc->len, desc->hw);
608 ioat->active -= desc->hw->tx_cnt;
621 list_move_tail(&desc->node, &ioat->free_desc);
624 * last used desc. Do not remove, so we can
689 struct ioat_desc_sw *desc;
694 desc = to_ioat_desc(ioat->used_desc.prev);
695 ioat_set_chainaddr(ioat, desc->txd.phys);
747 struct ioat_desc_sw *desc;
752 desc = ioat1_dma_get_next_descriptor(ioat);
754 if (!desc) {
756 "Unable to start null desc - get next desc failed\n");
761 hw = desc->hw;
770 async_tx_ack(&desc->txd);
772 list_add_tail(&desc->node, &ioat->used_desc);
773 dump_desc_dbg(ioat, desc);
775 ioat_set_chainaddr(ioat, desc->txd.phys);