Lines Matching refs:dir
3341 u64 addr, enum dma_data_direction dir) in goya_pin_memory_before_cs() argument
3361 rc = hdev->asic_funcs->asic_dma_map_sgtable(hdev, userptr->sgt, dir); in goya_pin_memory_before_cs()
3368 userptr->dir = dir; in goya_pin_memory_before_cs()
3389 enum dma_data_direction dir; in goya_validate_dma_pkt_host() local
3408 dir = DMA_TO_DEVICE; in goya_validate_dma_pkt_host()
3418 dir = DMA_FROM_DEVICE; in goya_validate_dma_pkt_host()
3426 dir = DMA_TO_DEVICE; in goya_validate_dma_pkt_host()
3435 dir = DMA_FROM_DEVICE; in goya_validate_dma_pkt_host()
3473 if ((dir == DMA_TO_DEVICE) && in goya_validate_dma_pkt_host()
3481 addr, dir); in goya_validate_dma_pkt_host()
3770 enum dma_data_direction dir; in goya_patch_dma_packet() local
3794 dir = DMA_TO_DEVICE; in goya_patch_dma_packet()
3800 dir = DMA_FROM_DEVICE; in goya_patch_dma_packet()
3812 if ((user_memset) && (dir == DMA_TO_DEVICE)) { in goya_patch_dma_packet()
3858 if (dir == DMA_TO_DEVICE) { in goya_patch_dma_packet()