Lines Matching refs:ap_dev

557 	struct ap_device *ap_dev = to_ap_dev(dev);  in ap_uevent()  local
560 if (!ap_dev) in ap_uevent()
564 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
569 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
576 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_suspend() local
578 if (ap_dev->drv && ap_dev->drv->suspend) in ap_dev_suspend()
579 ap_dev->drv->suspend(ap_dev); in ap_dev_suspend()
585 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_resume() local
587 if (ap_dev->drv && ap_dev->drv->resume) in ap_dev_resume()
588 ap_dev->drv->resume(ap_dev); in ap_dev_resume()
760 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_probe() local
793 ap_dev->drv = ap_drv; in ap_device_probe()
794 rc = ap_drv->probe ? ap_drv->probe(ap_dev) : -ENODEV; in ap_device_probe()
803 ap_dev->drv = NULL; in ap_device_probe()
811 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_remove() local
812 struct ap_driver *ap_drv = ap_dev->drv; in ap_device_remove()
817 ap_drv->remove(ap_dev); in ap_device_remove()
1425 ac->ap_dev.device.bus = &ap_bus_type; in ap_scan_bus()
1426 ac->ap_dev.device.parent = ap_root_device; in ap_scan_bus()
1427 dev_set_name(&ac->ap_dev.device, in ap_scan_bus()
1430 rc = device_register(&ac->ap_dev.device); in ap_scan_bus()
1432 put_device(&ac->ap_dev.device); in ap_scan_bus()
1437 get_device(&ac->ap_dev.device); in ap_scan_bus()
1444 aq->ap_dev.device.bus = &ap_bus_type; in ap_scan_bus()
1445 aq->ap_dev.device.parent = &ac->ap_dev.device; in ap_scan_bus()
1446 dev_set_name(&aq->ap_dev.device, in ap_scan_bus()
1449 rc = device_register(&aq->ap_dev.device); in ap_scan_bus()
1451 put_device(&aq->ap_dev.device); in ap_scan_bus()
1461 device_unregister(&ac->ap_dev.device); in ap_scan_bus()
1462 put_device(&ac->ap_dev.device); in ap_scan_bus()