Lines Matching refs:drv

54 						    struct cpuidle_driver *drv, int idx,  in __psci_enter_domain_idle_state()  argument
92 struct cpuidle_driver *drv, int idx) in psci_enter_domain_idle_state() argument
94 return __psci_enter_domain_idle_state(dev, drv, idx, false); in psci_enter_domain_idle_state()
98 struct cpuidle_driver *drv, in psci_enter_s2idle_domain_idle_state() argument
101 return __psci_enter_domain_idle_state(dev, drv, idx, true); in psci_enter_s2idle_domain_idle_state()
192 struct cpuidle_driver *drv, int idx) in psci_enter_idle_state() argument
222 static int psci_dt_cpu_init_topology(struct cpuidle_driver *drv, in psci_dt_cpu_init_topology() argument
242 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology()
244 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology()
251 static int psci_dt_cpu_init_idle(struct device *dev, struct cpuidle_driver *drv, in psci_dt_cpu_init_idle() argument
284 ret = psci_dt_cpu_init_topology(drv, data, state_count, cpu); in psci_dt_cpu_init_idle()
293 static int psci_cpu_init_idle(struct device *dev, struct cpuidle_driver *drv, in psci_cpu_init_idle() argument
310 ret = psci_dt_cpu_init_idle(dev, drv, cpu_node, state_count, cpu); in psci_cpu_init_idle()
328 struct cpuidle_driver *drv; in psci_idle_init_cpu() local
349 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in psci_idle_init_cpu()
350 if (!drv) in psci_idle_init_cpu()
353 drv->name = "psci_idle"; in psci_idle_init_cpu()
354 drv->owner = THIS_MODULE; in psci_idle_init_cpu()
355 drv->cpumask = (struct cpumask *)cpumask_of(cpu); in psci_idle_init_cpu()
361 drv->states[0].enter = psci_enter_idle_state; in psci_idle_init_cpu()
362 drv->states[0].exit_latency = 1; in psci_idle_init_cpu()
363 drv->states[0].target_residency = 1; in psci_idle_init_cpu()
364 drv->states[0].power_usage = UINT_MAX; in psci_idle_init_cpu()
365 strcpy(drv->states[0].name, "WFI"); in psci_idle_init_cpu()
366 strcpy(drv->states[0].desc, "ARM WFI"); in psci_idle_init_cpu()
375 ret = dt_init_idle_driver(drv, psci_idle_state_match, 1); in psci_idle_init_cpu()
382 ret = psci_cpu_init_idle(dev, drv, cpu, ret); in psci_idle_init_cpu()
388 ret = cpuidle_register(drv, NULL); in psci_idle_init_cpu()
392 cpuidle_cooling_register(drv); in psci_idle_init_cpu()
410 struct cpuidle_driver *drv; in psci_cpuidle_probe() local
426 drv = cpuidle_get_cpu_driver(dev); in psci_cpuidle_probe()
427 cpuidle_unregister(drv); in psci_cpuidle_probe()