Lines Matching refs:hdev
20 static void dec_print_abnrm_intr_source(struct hl_device *hdev, u32 irq_status)
42 dev_err(hdev->dev, format, intr_source[0], intr_source[1],
49 struct hl_device *hdev = dec->hdev;
55 dev_err(hdev->dev, "Decoder abnormal interrupt %#x, core %d\n", irq_status, dec->core_id);
57 dec_print_abnrm_intr_source(hdev, irq_status);
80 hl_device_cond_reset(hdev, 0, event_mask);
82 hl_notifier_event_send_all(hdev, event_mask);
86 void hl_dec_fini(struct hl_device *hdev)
88 kfree(hdev->dec);
91 int hl_dec_init(struct hl_device *hdev)
93 struct asic_fixed_properties *prop = &hdev->asic_prop;
101 hdev->dec = kcalloc(prop->max_dec, sizeof(struct hl_dec), GFP_KERNEL);
102 if (!hdev->dec)
106 dec = hdev->dec + j;
108 dec->hdev = hdev;
111 dec->base_addr = hdev->asic_funcs->get_dec_base_addr(hdev, j);
113 dev_err(hdev->dev, "Invalid base address of decoder %d\n", j);
122 hl_dec_fini(hdev);
129 struct hl_device *hdev = ctx->hdev;
130 struct asic_fixed_properties *prop = &hdev->asic_prop;
136 dec = hdev->dec + j;