Lines Matching refs:entity

151 	struct md_pm_entity *entity;  in t7xx_pci_pm_entity_register()  local
154 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_register()
155 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_register()
161 list_add_tail(&pm_entity->entity, &t7xx_dev->md_pm_entities); in t7xx_pci_pm_entity_register()
168 struct md_pm_entity *entity, *tmp_entity; in t7xx_pci_pm_entity_unregister() local
171 list_for_each_entry_safe(entity, tmp_entity, &t7xx_dev->md_pm_entities, entity) { in t7xx_pci_pm_entity_unregister()
172 if (entity->id == pm_entity->id) { in t7xx_pci_pm_entity_unregister()
173 list_del(&pm_entity->entity); in t7xx_pci_pm_entity_unregister()
275 struct md_pm_entity *entity; in __t7xx_pci_pm_suspend() local
295 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
296 if (!entity->suspend) in __t7xx_pci_pm_suspend()
299 ret = entity->suspend(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
301 entity_id = entity->id; in __t7xx_pci_pm_suspend()
320 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
321 if (entity->suspend_late) in __t7xx_pci_pm_suspend()
322 entity->suspend_late(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
329 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_suspend()
330 if (entity_id == entity->id) in __t7xx_pci_pm_suspend()
333 if (entity->resume) in __t7xx_pci_pm_suspend()
334 entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_suspend()
408 struct md_pm_entity *entity; in __t7xx_pci_pm_resume() local
485 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
486 if (entity->resume_early) in __t7xx_pci_pm_resume()
487 entity->resume_early(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
498 list_for_each_entry(entity, &t7xx_dev->md_pm_entities, entity) { in __t7xx_pci_pm_resume()
499 if (entity->resume) { in __t7xx_pci_pm_resume()
500 ret = entity->resume(t7xx_dev, entity->entity_param); in __t7xx_pci_pm_resume()
503 entity->id, ret); in __t7xx_pci_pm_resume()