Lines Matching refs:dma
593 ($dma:expr, $idx: expr, $($field:tt)*) => {{
595 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
602 $crate::dma::CoherentAllocation::field_read(&$dma, ptr_field)
607 ($dma:ident [ $idx:expr ] $($field:tt)* ) => {
608 $crate::dma_read!($dma, $idx, $($field)*)
610 ($($dma:ident).* [ $idx:expr ] $($field:tt)* ) => {
611 $crate::dma_read!($($dma).*, $idx, $($field)*)
637 ($dma:ident [ $idx:expr ] $($field:tt)*) => {{
638 $crate::dma_write!($dma, $idx, $($field)*)
640 ($($dma:ident).* [ $idx:expr ] $($field:tt)* ) => {{
641 $crate::dma_write!($($dma).*, $idx, $($field)*)
643 ($dma:expr, $idx: expr, = $val:expr) => {
645 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
647 unsafe { $crate::dma::CoherentAllocation::field_write(&$dma, item, $val) }
651 ($dma:expr, $idx: expr, $(.$field:ident)* = $val:expr) => {
653 let item = $crate::dma::CoherentAllocation::item_from_index(&$dma, $idx)?;
659 $crate::dma::CoherentAllocation::field_write(&$dma, ptr_field, $val)