Lines Matching refs:shim

272 static int shim_nrf_comp_psel_to_nrf(enum comp_nrf_comp_psel shim,  in shim_nrf_comp_psel_to_nrf()  argument
275 if (shim >= ARRAY_SIZE(shim_nrf_comp_ain_map)) { in shim_nrf_comp_psel_to_nrf()
279 *nrf = shim_nrf_comp_ain_map[(uint32_t)shim]; in shim_nrf_comp_psel_to_nrf()
283 static int shim_nrf_comp_psel_to_nrf(enum comp_nrf_comp_psel shim, in shim_nrf_comp_psel_to_nrf() argument
286 switch (shim) { in shim_nrf_comp_psel_to_nrf()
347 static int shim_nrf_comp_sp_mode_to_nrf(enum comp_nrf_comp_sp_mode shim, in shim_nrf_comp_sp_mode_to_nrf() argument
350 switch (shim) { in shim_nrf_comp_sp_mode_to_nrf()
373 static int shim_nrf_comp_isource_to_nrf(enum comp_nrf_comp_isource shim, in shim_nrf_comp_isource_to_nrf() argument
376 switch (shim) { in shim_nrf_comp_isource_to_nrf()
408 static int shim_nrf_comp_extrefsel_to_nrf(enum comp_nrf_comp_extrefsel shim, in shim_nrf_comp_extrefsel_to_nrf() argument
411 if (shim >= ARRAY_SIZE(shim_nrf_comp_ain_map)) { in shim_nrf_comp_extrefsel_to_nrf()
415 *nrf = shim_nrf_comp_ain_map[(uint32_t)shim]; in shim_nrf_comp_extrefsel_to_nrf()
419 static int shim_nrf_comp_extrefsel_to_nrf(enum comp_nrf_comp_extrefsel shim, in shim_nrf_comp_extrefsel_to_nrf() argument
422 switch (shim) { in shim_nrf_comp_extrefsel_to_nrf()
471 static int shim_nrf_comp_refsel_to_nrf(enum comp_nrf_comp_refsel shim, in shim_nrf_comp_refsel_to_nrf() argument
474 switch (shim) { in shim_nrf_comp_refsel_to_nrf()
514 static int shim_nrf_comp_se_config_to_nrf(const struct comp_nrf_comp_se_config *shim, in shim_nrf_comp_se_config_to_nrf() argument
517 if (shim_nrf_comp_refsel_to_nrf(shim->refsel, &nrf->reference)) { in shim_nrf_comp_se_config_to_nrf()
521 if (shim_nrf_comp_extrefsel_to_nrf(shim->extrefsel, &nrf->ext_ref)) { in shim_nrf_comp_se_config_to_nrf()
527 if (shim->th_down > 63 || shim->th_up > 63) { in shim_nrf_comp_se_config_to_nrf()
531 nrf->threshold.th_down = shim->th_down; in shim_nrf_comp_se_config_to_nrf()
532 nrf->threshold.th_up = shim->th_up; in shim_nrf_comp_se_config_to_nrf()
534 if (shim_nrf_comp_sp_mode_to_nrf(shim->sp_mode, &nrf->speed_mode)) { in shim_nrf_comp_se_config_to_nrf()
541 if (shim_nrf_comp_isource_to_nrf(shim->isource, &nrf->isource)) { in shim_nrf_comp_se_config_to_nrf()
545 if (shim->isource != COMP_NRF_COMP_ISOURCE_DISABLED) { in shim_nrf_comp_se_config_to_nrf()
550 if (shim_nrf_comp_psel_to_nrf(shim->psel, &nrf->input)) { in shim_nrf_comp_se_config_to_nrf()
558 static int shim_nrf_comp_diff_config_to_nrf(const struct comp_nrf_comp_diff_config *shim, in shim_nrf_comp_diff_config_to_nrf() argument
563 if (shim_nrf_comp_extrefsel_to_nrf(shim->extrefsel, &nrf->ext_ref)) { in shim_nrf_comp_diff_config_to_nrf()
571 if (shim_nrf_comp_sp_mode_to_nrf(shim->sp_mode, &nrf->speed_mode)) { in shim_nrf_comp_diff_config_to_nrf()
576 if (shim->enable_hyst) { in shim_nrf_comp_diff_config_to_nrf()
582 if (shim->enable_hyst) { in shim_nrf_comp_diff_config_to_nrf()
588 if (shim_nrf_comp_isource_to_nrf(shim->isource, &nrf->isource)) { in shim_nrf_comp_diff_config_to_nrf()
592 if (shim->isource != COMP_NRF_COMP_ISOURCE_DISABLED) { in shim_nrf_comp_diff_config_to_nrf()
597 if (shim_nrf_comp_psel_to_nrf(shim->psel, &nrf->input)) { in shim_nrf_comp_diff_config_to_nrf()