Lines Matching refs:ap_dev
556 struct ap_device *ap_dev = to_ap_dev(dev); in ap_uevent() local
559 if (!ap_dev) in ap_uevent()
563 retval = add_uevent_var(env, "DEV_TYPE=%04X", ap_dev->device_type); in ap_uevent()
568 retval = add_uevent_var(env, "MODALIAS=ap:t%02X", ap_dev->device_type); in ap_uevent()
575 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_suspend() local
577 if (ap_dev->drv && ap_dev->drv->suspend) in ap_dev_suspend()
578 ap_dev->drv->suspend(ap_dev); in ap_dev_suspend()
584 struct ap_device *ap_dev = to_ap_dev(dev); in ap_dev_resume() local
586 if (ap_dev->drv && ap_dev->drv->resume) in ap_dev_resume()
587 ap_dev->drv->resume(ap_dev); in ap_dev_resume()
759 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_probe() local
790 ap_dev->drv = ap_drv; in ap_device_probe()
791 rc = ap_drv->probe ? ap_drv->probe(ap_dev) : -ENODEV; in ap_device_probe()
800 ap_dev->drv = NULL; in ap_device_probe()
808 struct ap_device *ap_dev = to_ap_dev(dev); in ap_device_remove() local
809 struct ap_driver *ap_drv = ap_dev->drv; in ap_device_remove()
812 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()
1453 rc = device_register(&aq->ap_dev.device); in ap_scan_bus()
1455 put_device(&aq->ap_dev.device); in ap_scan_bus()
1465 device_unregister(&ac->ap_dev.device); in ap_scan_bus()
1466 put_device(&ac->ap_dev.device); in ap_scan_bus()