Lines Matching refs:cfg
68 const struct mod_mock_psu_element_cfg **cfg, in mod_mock_psu_get_cfg_ctx() argument
79 if (cfg != NULL) { in mod_mock_psu_get_cfg_ctx()
80 *cfg = fwk_module_get_data(element_id); in mod_mock_psu_get_cfg_ctx()
93 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_alarm_callback() local
97 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_alarm_callback()
133 ctx->apis.hal->respond(cfg->async_response_id, response); in mod_mock_psu_alarm_callback()
144 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_trigger() local
147 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_trigger()
153 cfg->async_alarm_id, in mod_mock_psu_trigger()
177 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_get_enabled() local
180 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_get_enabled()
211 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_set_enabled() local
214 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_set_enabled()
244 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_get_voltage() local
247 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_get_voltage()
276 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_set_voltage() local
279 status = mod_mock_psu_get_cfg_ctx(element_id, &cfg, &ctx); in mod_mock_psu_set_voltage()
331 const struct mod_mock_psu_element_cfg *cfg = data; in mod_mock_psu_element_init() local
339 .enabled = cfg->default_enabled, in mod_mock_psu_element_init()
340 .voltage = cfg->default_voltage, in mod_mock_psu_element_init()
356 const struct mod_mock_psu_element_cfg *cfg = fwk_module_get_data(id); in mod_mock_psu_bind() local
358 if (!fwk_id_is_equal(cfg->async_alarm_id, FWK_ID_NONE)) { in mod_mock_psu_bind()
363 cfg->async_alarm_id, in mod_mock_psu_bind()
364 cfg->async_alarm_api_id, in mod_mock_psu_bind()
371 cfg->async_response_id, in mod_mock_psu_bind()
372 cfg->async_response_api_id, in mod_mock_psu_bind()
387 const struct mod_mock_psu_element_cfg *cfg; in mod_mock_psu_process_bind_request() local
397 cfg = fwk_module_get_data(target_id); in mod_mock_psu_process_bind_request()
399 if (!fwk_id_is_equal(cfg->async_alarm_id, FWK_ID_NONE)) { in mod_mock_psu_process_bind_request()
405 if (!fwk_id_is_equal(source_id, cfg->async_response_id)) { in mod_mock_psu_process_bind_request()