Lines Matching full:entity
154 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local
157 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
158 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
164 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
171 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
174 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
175 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
176 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
278 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
298 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
299 if (!entity->suspend) in __t7xx_pci_pm_suspend()
302 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
304 entity_id = entity->id; in __t7xx_pci_pm_suspend()
323 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
324 if (entity->suspend_late) in __t7xx_pci_pm_suspend()
325 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
332 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
333 if (entity_id == entity->id) in __t7xx_pci_pm_suspend()
336 if (entity->resume) in __t7xx_pci_pm_suspend()
337 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
411 struct md_pm_entity *entity; in __t7xx_pci_pm_resume() local
488 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
489 if (entity->resume_early) in __t7xx_pci_pm_resume()
490 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
501 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
502 if (entity->resume) { in __t7xx_pci_pm_resume()
503 ret = entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
506 entity->id, ret); in __t7xx_pci_pm_resume()