Home
last modified time | relevance | path

Searched refs:hr_priv (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c779 static void hl_mmu_hr_pool_destroy(struct hl_device *hdev, struct hl_mmu_hr_priv *hr_priv, in hl_mmu_hr_pool_destroy() argument
783 struct gen_pool **pool = &hr_priv->mmu_pgt_pool; in hl_mmu_hr_pool_destroy()
791 if (hr_priv->mmu_asid_hop0) { in hl_mmu_hr_pool_destroy()
793 hop0_pgt = &hr_priv->mmu_asid_hop0[asid]; in hl_mmu_hr_pool_destroy()
824 int hl_mmu_hr_init(struct hl_device *hdev, struct hl_mmu_hr_priv *hr_priv, u32 hop_table_size, in hl_mmu_hr_init() argument
840 hr_priv->mmu_pgt_pool = gen_pool_create(PAGE_SHIFT, -1); in hl_mmu_hr_init()
841 if (ZERO_OR_NULL_PTR(hr_priv->mmu_pgt_pool)) { in hl_mmu_hr_init()
846 hr_priv->mmu_asid_hop0 = kvcalloc(prop->max_asid, sizeof(struct pgt_info), GFP_KERNEL); in hl_mmu_hr_init()
847 if (ZERO_OR_NULL_PTR(hr_priv->mmu_asid_hop0)) { in hl_mmu_hr_init()
864 rc = gen_pool_add_virt(hr_priv->mmu_pgt_pool, virt_addr, (phys_addr_t) dma_addr, in hl_mmu_hr_init()
[all …]
/linux/net/handshake/
H A Drequest.c122 req = kzalloc(struct_size(req, hr_priv, proto->hp_privsize), flags); in handshake_req_alloc()
139 return (void *)&req->hr_priv; in handshake_req_private()
H A Dhandshake.h39 char hr_priv[]; member