Lines Matching refs:psc_dev

33 	struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx);  in ti_soc_device_get_state_internal()  local
36 if (psc_dev == NULL) { in ti_soc_device_get_state_internal()
40 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_get_state_internal()
45 return ti_lpsc_module_get_state(psc_dev, module); in ti_soc_device_get_state_internal()
88 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_set_reset_iso_internal() local
91 if (psc_dev == NULL) { in ti_soc_device_set_reset_iso_internal()
95 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_set_reset_iso_internal()
100 ti_lpsc_module_set_reset_iso(psc_dev, module, enable); in ti_soc_device_set_reset_iso_internal()
126 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_get_context_loss_count_internal() local
129 if (psc_dev == NULL) { in ti_soc_device_get_context_loss_count_internal()
133 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_get_context_loss_count_internal()
170 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_enable_internal() local
173 if (psc_dev == NULL) { in ti_soc_device_enable_internal()
177 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_enable_internal()
182 ti_lpsc_module_get(psc_dev, module); in ti_soc_device_enable_internal()
213 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_disable_internal() local
216 if (psc_dev == NULL) { in ti_soc_device_disable_internal()
220 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_disable_internal()
225 ti_lpsc_module_put(psc_dev, module); in ti_soc_device_disable_internal()
239 static void ti_soc_device_disable_internal_flags_iterate(struct ti_device *psc_dev, in ti_soc_device_disable_internal_flags_iterate() argument
242 const struct ti_psc_drv_data *psc = ti_to_psc_drv_data(ti_get_drv_data(psc_dev)); in ti_soc_device_disable_internal_flags_iterate()
284 idx = ti_lpsc_module_idx(psc_dev, module_p); in ti_soc_device_disable_internal_flags_iterate()
307 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_disable_internal_flags() local
310 if (psc_dev == NULL) { in ti_soc_device_disable_internal_flags()
314 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_disable_internal_flags()
315 ti_soc_device_disable_internal_flags_iterate(psc_dev, module); in ti_soc_device_disable_internal_flags()
366 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_ret_enable_internal() local
370 if (psc_dev == NULL) { in ti_soc_device_ret_enable_internal()
374 pd = ti_psc_lookup_pd(psc_dev, (ti_pd_idx_t) dev->pd); in ti_soc_device_ret_enable_internal()
376 ti_psc_pd_get(psc_dev, pd); in ti_soc_device_ret_enable_internal()
379 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_ret_enable_internal()
381 ti_lpsc_module_ret_get(psc_dev, module); in ti_soc_device_ret_enable_internal()
407 struct ti_device *psc_dev = ti_psc_lookup((ti_psc_idx_t) dev->psc_idx); in ti_soc_device_ret_disable_internal() local
411 if (psc_dev == NULL) { in ti_soc_device_ret_disable_internal()
415 module = ti_psc_lookup_lpsc(psc_dev, dev->mod); in ti_soc_device_ret_disable_internal()
417 ti_lpsc_module_ret_put(psc_dev, module); in ti_soc_device_ret_disable_internal()
420 pd = ti_psc_lookup_pd(psc_dev, (ti_pd_idx_t) dev->pd); in ti_soc_device_ret_disable_internal()
422 ti_psc_pd_put(psc_dev, pd); in ti_soc_device_ret_disable_internal()
491 struct ti_device *psc_dev = NULL; in ti_soc_device_init_internal() local
506 psc_dev = dev; in ti_soc_device_init_internal()
513 if (psc_dev != NULL) { in ti_soc_device_init_internal()
522 psc_dev = ti_psc_lookup((ti_psc_idx_t) domains[i].psc_idx); in ti_soc_device_init_internal()
523 if (psc_dev == NULL) { in ti_soc_device_init_internal()
527 psc = ti_to_psc_drv_data(ti_get_drv_data(psc_dev)); in ti_soc_device_init_internal()
538 psc_dev = ti_psc_lookup((ti_psc_idx_t) devdata->soc.psc_idx); in ti_soc_device_init_internal()
539 if (psc_dev == NULL) { in ti_soc_device_init_internal()
547 psc = ti_to_psc_drv_data(ti_get_drv_data(psc_dev)); in ti_soc_device_init_internal()