Lines Matching refs:user_dma_pkt
4886 struct packet_lin_dma *user_dma_pkt, in gaudi_pin_memory_before_cs() argument
4892 if (hl_userptr_is_pinned(hdev, addr, le32_to_cpu(user_dma_pkt->tsize), in gaudi_pin_memory_before_cs()
4900 rc = hl_pin_host_memory(hdev, addr, le32_to_cpu(user_dma_pkt->tsize), in gaudi_pin_memory_before_cs()
4932 struct packet_lin_dma *user_dma_pkt, in gaudi_validate_dma_pkt_host() argument
4940 user_memset = (le32_to_cpu(user_dma_pkt->ctl) & in gaudi_validate_dma_pkt_host()
4950 addr = le64_to_cpu(user_dma_pkt->src_addr); in gaudi_validate_dma_pkt_host()
4954 addr = (le64_to_cpu(user_dma_pkt->dst_addr) & in gaudi_validate_dma_pkt_host()
4960 parser->patched_cb_size += sizeof(*user_dma_pkt); in gaudi_validate_dma_pkt_host()
4962 rc = gaudi_pin_memory_before_cs(hdev, parser, user_dma_pkt, in gaudi_validate_dma_pkt_host()
4970 struct packet_lin_dma *user_dma_pkt) in gaudi_validate_dma_pkt_no_mmu() argument
4973 u64 dst_addr = (le64_to_cpu(user_dma_pkt->dst_addr) & in gaudi_validate_dma_pkt_no_mmu()
4979 le64_to_cpu(user_dma_pkt->src_addr)); in gaudi_validate_dma_pkt_no_mmu()
4981 dev_dbg(hdev->dev, "size == %u\n", le32_to_cpu(user_dma_pkt->tsize)); in gaudi_validate_dma_pkt_no_mmu()
4988 if (!le32_to_cpu(user_dma_pkt->tsize)) { in gaudi_validate_dma_pkt_no_mmu()
4989 parser->patched_cb_size += sizeof(*user_dma_pkt); in gaudi_validate_dma_pkt_no_mmu()
4996 return gaudi_validate_dma_pkt_host(hdev, parser, user_dma_pkt, in gaudi_validate_dma_pkt_no_mmu()
5128 struct packet_lin_dma *user_dma_pkt, in gaudi_patch_dma_packet() argument
5144 ctl = le32_to_cpu(user_dma_pkt->ctl); in gaudi_patch_dma_packet()
5153 addr = le64_to_cpu(user_dma_pkt->src_addr); in gaudi_patch_dma_packet()
5154 device_memory_addr = le64_to_cpu(user_dma_pkt->dst_addr); in gaudi_patch_dma_packet()
5159 addr = le64_to_cpu(user_dma_pkt->dst_addr); in gaudi_patch_dma_packet()
5160 device_memory_addr = le64_to_cpu(user_dma_pkt->src_addr); in gaudi_patch_dma_packet()
5166 le32_to_cpu(user_dma_pkt->tsize), in gaudi_patch_dma_packet()
5169 addr, user_dma_pkt->tsize); in gaudi_patch_dma_packet()
5174 memcpy(new_dma_pkt, user_dma_pkt, sizeof(*user_dma_pkt)); in gaudi_patch_dma_packet()
5175 *new_dma_pkt_size = sizeof(*user_dma_pkt); in gaudi_patch_dma_packet()
5209 ctl = le32_to_cpu(user_dma_pkt->ctl); in gaudi_patch_dma_packet()