• Home
  • Raw
  • Download

Lines Matching refs:dev_info

246 static void amd8111_lpc_bridge_init(struct amd8111_dev_info *dev_info)  in amd8111_lpc_bridge_init()  argument
249 struct pci_dev *dev = dev_info->dev; in amd8111_lpc_bridge_init()
283 static void amd8111_lpc_bridge_exit(struct amd8111_dev_info *dev_info) in amd8111_lpc_bridge_exit() argument
291 struct amd8111_dev_info *dev_info = edac_dev->pvt_info; in amd8111_lpc_bridge_check() local
292 struct pci_dev *dev = dev_info->dev; in amd8111_lpc_bridge_check()
299 dev_info->ctl_name); in amd8111_lpc_bridge_check()
352 struct amd8111_dev_info *dev_info = &amd8111_devices[id->driver_data]; in amd8111_dev_probe() local
355 dev_info->dev = pci_get_device(PCI_VENDOR_ID_AMD, in amd8111_dev_probe()
356 dev_info->err_dev, NULL); in amd8111_dev_probe()
358 if (!dev_info->dev) { in amd8111_dev_probe()
361 PCI_VENDOR_ID_AMD, dev_info->err_dev, in amd8111_dev_probe()
362 dev_info->ctl_name); in amd8111_dev_probe()
366 if (pci_enable_device(dev_info->dev)) { in amd8111_dev_probe()
369 PCI_VENDOR_ID_AMD, dev_info->err_dev, in amd8111_dev_probe()
370 dev_info->ctl_name); in amd8111_dev_probe()
379 dev_info->edac_idx = edac_device_alloc_index(); in amd8111_dev_probe()
380 dev_info->edac_dev = in amd8111_dev_probe()
381 edac_device_alloc_ctl_info(0, dev_info->ctl_name, 1, in amd8111_dev_probe()
383 NULL, 0, dev_info->edac_idx); in amd8111_dev_probe()
384 if (!dev_info->edac_dev) { in amd8111_dev_probe()
389 dev_info->edac_dev->pvt_info = dev_info; in amd8111_dev_probe()
390 dev_info->edac_dev->dev = &dev_info->dev->dev; in amd8111_dev_probe()
391 dev_info->edac_dev->mod_name = AMD8111_EDAC_MOD_STR; in amd8111_dev_probe()
392 dev_info->edac_dev->ctl_name = dev_info->ctl_name; in amd8111_dev_probe()
393 dev_info->edac_dev->dev_name = dev_name(&dev_info->dev->dev); in amd8111_dev_probe()
396 dev_info->edac_dev->edac_check = dev_info->check; in amd8111_dev_probe()
398 if (dev_info->init) in amd8111_dev_probe()
399 dev_info->init(dev_info); in amd8111_dev_probe()
401 if (edac_device_add_device(dev_info->edac_dev) > 0) { in amd8111_dev_probe()
403 dev_info->ctl_name); in amd8111_dev_probe()
409 PCI_VENDOR_ID_AMD, dev_info->err_dev, in amd8111_dev_probe()
410 dev_info->ctl_name); in amd8111_dev_probe()
415 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_probe()
417 pci_dev_put(dev_info->dev); in amd8111_dev_probe()
424 struct amd8111_dev_info *dev_info; in amd8111_dev_remove() local
426 for (dev_info = amd8111_devices; dev_info->err_dev; dev_info++) in amd8111_dev_remove()
427 if (dev_info->dev->device == dev->device) in amd8111_dev_remove()
430 if (!dev_info->err_dev) /* should never happen */ in amd8111_dev_remove()
433 if (dev_info->edac_dev) { in amd8111_dev_remove()
434 edac_device_del_device(dev_info->edac_dev->dev); in amd8111_dev_remove()
435 edac_device_free_ctl_info(dev_info->edac_dev); in amd8111_dev_remove()
438 if (dev_info->exit) in amd8111_dev_remove()
439 dev_info->exit(dev_info); in amd8111_dev_remove()
441 pci_dev_put(dev_info->dev); in amd8111_dev_remove()