Lines Matching full:entity
287 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local
290 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
291 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
297 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
304 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
307 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
308 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
309 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
411 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
432 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
433 if (!entity->suspend) in __t7xx_pci_pm_suspend()
436 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
438 entity_id = entity->id; in __t7xx_pci_pm_suspend()
457 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
458 if (entity->suspend_late) in __t7xx_pci_pm_suspend()
459 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
466 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
467 if (entity_id == entity->id) in __t7xx_pci_pm_suspend()
470 if (entity->resume) in __t7xx_pci_pm_suspend()
471 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
572 struct md_pm_entity *entity; in __t7xx_pci_pm_resume() local
644 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
645 if (entity->resume_early) in __t7xx_pci_pm_resume()
646 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
657 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
658 if (entity->resume) { in __t7xx_pci_pm_resume()
659 ret = entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
662 entity->id, ret); in __t7xx_pci_pm_resume()