Lines Matching refs:entity
240 struct md_pm_entity *entity; in t7xx_pci_pm_entity_register() local
243 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
244 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
250 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
257 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
260 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
261 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
262 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
364 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
385 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
386 if (!entity->suspend) in __t7xx_pci_pm_suspend()
389 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
391 entity_id = entity->id; in __t7xx_pci_pm_suspend()
410 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
411 if (entity->suspend_late) in __t7xx_pci_pm_suspend()
412 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
419 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
420 if (entity_id == entity->id) in __t7xx_pci_pm_suspend()
423 if (entity->resume) in __t7xx_pci_pm_suspend()
424 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
525 struct md_pm_entity *entity; in __t7xx_pci_pm_resume() local
597 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
598 if (entity->resume_early) in __t7xx_pci_pm_resume()
599 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
610 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
611 if (entity->resume) { in __t7xx_pci_pm_resume()
612 ret = entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
615 entity->id, ret); in __t7xx_pci_pm_resume()