Skip to content

Commit

Permalink
DMA: Deduplicate descriptor operations (#2219)
Browse files Browse the repository at this point in the history
* Deduplicate descriptor operations

* Reuse constructor

* Reuse linked list construction logic

* Extract count calculations into DescriptorSet

* Reuse more code in DescriptorChain

* Refactor DescriptorChain

* Move DescriptorSet next to DescriptorChain

* Restore comment

* Merge fns

* Implement error conversion

* Further cleanup

* Rearrange some code

* Add some docs

* Clippy

* Restore macro behaviour when requesting 0 descriptors

* Restore the buffer directly, instead of tracking where we read from

* Move validation back into the buffers

* Revert use in dma_tx_buffer

* Rename iterator methods

* Outline eof logic

* Don't set up descriptor flags before time, rename methods

* Hide DescriptorSet

* Remove block size from DescriptorSet

* Move comment

* Fix renamed references

* Address review comments

* Simplify received_data fns
  • Loading branch information
bugadani committed Sep 27, 2024
1 parent f50c6fc commit 4422ed3
Showing 1 changed file with 370 additions and 460 deletions.
Loading

0 comments on commit 4422ed3

Please sign in to comment.