Lines Matching refs:cfg
57 const struct mod_psu_element_cfg **cfg, in mod_psu_get_cfg_ctx() argument
68 if (cfg != NULL) { in mod_psu_get_cfg_ctx()
69 *cfg = fwk_module_get_data(element_id); in mod_psu_get_cfg_ctx()
79 const struct mod_psu_element_cfg *cfg; in mod_psu_get_enabled() local
82 status = mod_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_psu_get_enabled()
93 status = ctx->driver->get_enabled(cfg->driver_id, enabled); in mod_psu_get_enabled()
122 const struct mod_psu_element_cfg *cfg; in mod_psu_set_enabled() local
125 status = mod_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_psu_set_enabled()
136 status = ctx->driver->set_enabled(cfg->driver_id, enabled); in mod_psu_set_enabled()
165 const struct mod_psu_element_cfg *cfg; in mod_psu_get_voltage() local
168 status = mod_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_psu_get_voltage()
179 status = ctx->driver->get_voltage(cfg->driver_id, voltage); in mod_psu_get_voltage()
208 const struct mod_psu_element_cfg *cfg; in mod_psu_set_voltage() local
211 status = mod_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_psu_set_voltage()
222 status = ctx->driver->set_voltage(cfg->driver_id, voltage); in mod_psu_set_voltage()
260 const struct mod_psu_element_cfg *cfg; in mod_psu_respond() local
265 status = mod_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_psu_respond()
273 .source_id = cfg->driver_id, in mod_psu_respond()
327 const struct mod_psu_element_cfg *cfg; in mod_psu_bind_element() local
334 cfg = fwk_module_get_data(element_id); in mod_psu_bind_element()
336 status = fwk_module_bind(cfg->driver_id, cfg->driver_api_id, &ctx->driver); in mod_psu_bind_element()
410 const struct mod_psu_element_cfg *cfg; in mod_psu_process_event() local
414 mod_psu_get_cfg_ctx(event->target_id, &cfg, &ctx); in mod_psu_process_event()