Home
last modified time | relevance | path

Searched refs:shadow_addr (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c700 static void copy_wqe_to_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_to_shadow() argument
711 memcpy(shadow_addr, wqebb_addr, wq->wqebb_size); in copy_wqe_to_shadow()
713 shadow_addr += wq->wqebb_size; in copy_wqe_to_shadow()
717 static void copy_wqe_from_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_from_shadow() argument
728 memcpy(wqebb_addr, shadow_addr, wq->wqebb_size); in copy_wqe_from_shadow()
729 shadow_addr += wq->wqebb_size; in copy_wqe_from_shadow()
774 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_get_wqe() local
776 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *prod_idx); in hinic_get_wqe()
779 return shadow_addr; in hinic_get_wqe()
847 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_read_wqe() local
[all …]
/drivers/misc/habanalabs/common/
Dmmu_v1.c14 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr);
22 if (hop_addr == pgt_info->shadow_addr) in get_pgt_info()
35 kfree((u64 *) (uintptr_t) pgt_info->shadow_addr); in _free_hop()
51 u64 phys_addr, shadow_addr; in alloc_hop() local
64 shadow_addr = (u64) (uintptr_t) kzalloc(prop->mmu_hop_table_size, in alloc_hop()
66 if (!shadow_addr) in alloc_hop()
70 pgt_info->shadow_addr = shadow_addr; in alloc_hop()
73 hash_add(ctx->mmu_shadow_hash, &pgt_info->node, shadow_addr); in alloc_hop()
75 return shadow_addr; in alloc_hop()
243 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in get_phys_addr() argument
[all …]
Dhabanalabs.h99 u64 shadow_addr; member
/drivers/gpu/drm/i915/
Di915_cmd_parser.c1331 u64 shadow_addr, in check_bbstart() argument
1369 *(u64 *)(cmd + 1) = shadow_addr + target_cmd_offset; in check_bbstart()
1434 u64 batch_addr, shadow_addr; in intel_engine_cmd_parser() local
1455 shadow_addr = gen8_canonical_addr(shadow->node.start); in intel_engine_cmd_parser()
1498 batch_addr, shadow_addr, in intel_engine_cmd_parser()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c758 uint64_t shadow_addr, parent_addr; in amdgpu_bo_restore_shadow() local
760 shadow_addr = amdgpu_bo_gpu_offset(shadow); in amdgpu_bo_restore_shadow()
763 return amdgpu_copy_buffer(ring, shadow_addr, parent_addr, in amdgpu_bo_restore_shadow()