Lines Matching defs:hdev

23 			ctx->hdev->asic_prop.mmu_pte_size * ((virt_addr & mask) >> shift);
28 struct hl_device *hdev = ctx->hdev;
29 struct asic_fixed_properties *prop = &hdev->asic_prop;
35 (!hdev->dram_default_page_mapping) ||
54 dev_err(hdev->dev, "failed to alloc hop 1\n");
63 dev_err(hdev->dev, "failed to alloc hop 2\n");
73 dev_err(hdev->dev, "failed to alloc hop 3, i: %d\n", i);
128 struct hl_device *hdev = ctx->hdev;
129 struct asic_fixed_properties *prop = &hdev->asic_prop;
135 (!hdev->dram_default_page_mapping) ||
200 struct hl_device *hdev = ctx->hdev;
208 dev_err(hdev->dev, "ctx %d is freed while it has pgts in use\n",
212 dev_err_ratelimited(hdev->dev,
223 struct hl_device *hdev = ctx->hdev;
224 struct asic_fixed_properties *prop = &hdev->asic_prop;
250 dev_err(hdev->dev, "DRAM unmapping should use huge pages only\n");
266 if (hdev->dram_default_page_mapping && is_dram_addr) {
271 dev_err(hdev->dev,
278 dev_err(hdev->dev,
317 dev_err(hdev->dev, "virt addr 0x%llx is not mapped to phys addr\n",
327 struct hl_device *hdev = ctx->hdev;
328 struct asic_fixed_properties *prop = &hdev->asic_prop;
368 if (hdev->dram_default_page_mapping && is_dram_addr) {
374 dev_err(hdev->dev,
383 dev_err(hdev->dev, "DRAM mapping should not allocate more hops\n");
389 dev_err(hdev->dev,
394 dev_dbg(hdev->dev, "hop%d pte: 0x%llx (0x%llx)\n", hop_idx,
456 struct hl_device *hdev = ctx->hdev;
457 struct asic_fixed_properties *prop = &hdev->asic_prop;
496 hdev->asic_funcs->read_pte(hdev,
511 hdev->asic_funcs->read_pte(hdev,
536 * @hdev: pointer to the device structure
538 void hl_mmu_v1_set_funcs(struct hl_device *hdev, struct hl_mmu_funcs *mmu)