Home
last modified time | relevance | path

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

/linux-6.1.9/mm/kasan/
Dreport_generic.c49 u8 *shadow_addr; in get_shadow_bug_type() local
51 shadow_addr = (u8 *)kasan_mem_to_shadow(info->first_bad_addr); in get_shadow_bug_type()
57 if (*shadow_addr > 0 && *shadow_addr <= KASAN_GRANULE_SIZE - 1) in get_shadow_bug_type()
58 shadow_addr++; in get_shadow_bug_type()
60 switch (*shadow_addr) { in get_shadow_bug_type()
Dgeneric.c58 u8 *shadow_addr = (u8 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_2_4_8() local
65 return *shadow_addr || memory_is_poisoned_1(addr + size - 1); in memory_is_poisoned_2_4_8()
72 u16 *shadow_addr = (u16 *)kasan_mem_to_shadow((void *)addr); in memory_is_poisoned_16() local
76 return *shadow_addr || memory_is_poisoned_1(addr + 15); in memory_is_poisoned_16()
78 return *shadow_addr; in memory_is_poisoned_16()
Dkasan.h274 static inline const void *kasan_shadow_to_mem(const void *shadow_addr) in kasan_shadow_to_mem() argument
276 return (void *)(((unsigned long)shadow_addr - KASAN_SHADOW_OFFSET) in kasan_shadow_to_mem()
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c699 static void copy_wqe_to_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_to_shadow() argument
710 memcpy(shadow_addr, wqebb_addr, wq->wqebb_size); in copy_wqe_to_shadow()
712 shadow_addr += wq->wqebb_size; in copy_wqe_to_shadow()
716 static void copy_wqe_from_shadow(struct hinic_wq *wq, void *shadow_addr, in copy_wqe_from_shadow() argument
727 memcpy(wqebb_addr, shadow_addr, wq->wqebb_size); in copy_wqe_from_shadow()
728 shadow_addr += wq->wqebb_size; in copy_wqe_from_shadow()
773 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_get_wqe() local
775 copy_wqe_to_shadow(wq, shadow_addr, num_wqebbs, *prod_idx); in hinic_get_wqe()
778 return shadow_addr; in hinic_get_wqe()
846 void *shadow_addr = &wq->shadow_wqe[curr_pg * wq->max_wqe_size]; in hinic_read_wqe() local
[all …]
/linux-6.1.9/drivers/misc/habanalabs/common/mmu/
Dmmu_v1.c15 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr);
23 if (hop_addr == pgt_info->shadow_addr) in get_pgt_info()
36 kfree((u64 *) (uintptr_t) pgt_info->shadow_addr); in _free_hop()
52 u64 phys_addr, shadow_addr; in alloc_hop() local
65 shadow_addr = (u64) (uintptr_t) kzalloc(prop->mmu_hop_table_size, in alloc_hop()
67 if (!shadow_addr) in alloc_hop()
71 pgt_info->shadow_addr = shadow_addr; in alloc_hop()
74 hash_add(ctx->mmu_shadow_hash, &pgt_info->node, shadow_addr); in alloc_hop()
76 return shadow_addr; in alloc_hop()
200 static inline u64 get_phys_addr(struct hl_ctx *ctx, u64 shadow_addr) in get_phys_addr() argument
[all …]
Dmmu.c1134 pgt_info->shadow_addr = (unsigned long) NULL; in hl_mmu_hr_alloc_hop()
/linux-6.1.9/arch/powerpc/platforms/ps3/
Dspu.c111 u64 shadow_addr; member
161 &spu_pdata(spu)->shadow_addr, in construct_spu()
195 spu_pdata(spu)->shadow = ioremap_prot(spu_pdata(spu)->shadow_addr, in setup_areas()
228 spu_pdata(spu)->shadow_addr); in setup_areas()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_cmd_parser.c1348 u64 shadow_addr, in check_bbstart() argument
1386 *(u64 *)(cmd + 1) = shadow_addr + target_cmd_offset; in check_bbstart()
1452 u64 batch_addr, shadow_addr; in intel_engine_cmd_parser() local
1474 shadow_addr = gen8_canonical_addr(shadow->node.start); in intel_engine_cmd_parser()
1517 batch_addr, shadow_addr, in intel_engine_cmd_parser()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c736 uint64_t shadow_addr, parent_addr; in amdgpu_bo_restore_shadow() local
738 shadow_addr = amdgpu_bo_gpu_offset(shadow); in amdgpu_bo_restore_shadow()
741 return amdgpu_copy_buffer(ring, shadow_addr, parent_addr, in amdgpu_bo_restore_shadow()
/linux-6.1.9/arch/x86/kvm/mmu/
Dmmu.c134 hpa_t shadow_addr; member
2250 iterator->shadow_addr = root; in shadow_walk_init_using_root()
2265 iterator->shadow_addr in shadow_walk_init_using_root()
2267 iterator->shadow_addr &= SPTE_BASE_ADDR_MASK; in shadow_walk_init_using_root()
2269 if (!iterator->shadow_addr) in shadow_walk_init_using_root()
2287 iterator->sptep = ((u64 *)__va(iterator->shadow_addr)) + iterator->index; in shadow_walk_okay()
2299 iterator->shadow_addr = spte & SPTE_BASE_ADDR_MASK; in __shadow_walk_next()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dhabanalabs.h298 u64 shadow_addr; member