Lines Matching refs:dev
168 hl_mem_mgr_init(hpriv->hdev->dev, &hpriv->mem_mgr); in hl_device_open()
175 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
177 dev_name(hdev->dev), hdev->status[status]); in hl_device_open()
189 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
191 dev_name(hdev->dev)); in hl_device_open()
197 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
199 dev_name(hdev->dev)); in hl_device_open()
205 dev_dbg_ratelimited(hdev->dev, in hl_device_open()
207 dev_name(hdev->dev)); in hl_device_open()
214 dev_err(hdev->dev, "Failed to create context %d\n", rc); in hl_device_open()
399 static int create_hdev(struct hl_device **dev, struct pci_dev *pdev) in create_hdev() argument
404 *dev = NULL; in create_hdev()
429 dev_err(&pdev->dev, "Unsupported ASIC\n"); in create_hdev()
470 *dev = hdev; in create_hdev()
496 static int hl_pmops_suspend(struct device *dev) in hl_pmops_suspend() argument
498 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_suspend()
510 static int hl_pmops_resume(struct device *dev) in hl_pmops_resume() argument
512 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_resume()
539 dev_info(&pdev->dev, HL_NAME in hl_pci_probe()
551 dev_err(&pdev->dev, "Fatal error during habanalabs device init\n"); in hl_pci_probe()
602 dev_warn(hdev->dev, "PCI normal state error detected\n"); in hl_pci_err_detected()
606 dev_warn(hdev->dev, "PCI frozen state error detected\n"); in hl_pci_err_detected()
611 dev_warn(hdev->dev, "PCI failure state error detected\n"); in hl_pci_err_detected()
634 dev_warn(hdev->dev, "Resuming device after PCI slot reset\n"); in hl_pci_err_resume()
649 dev_warn(hdev->dev, "PCI slot reset detected\n"); in hl_pci_err_slot_reset()
685 dev_t dev; in hl_init() local
689 rc = alloc_chrdev_region(&dev, 0, HL_MAX_MINORS, HL_NAME); in hl_init()
695 hl_major = MAJOR(dev); in hl_init()