Lines Matching refs:shim
152 static int shim_nrf_lpcomp_psel_to_nrf(enum comp_nrf_lpcomp_psel shim, in shim_nrf_lpcomp_psel_to_nrf() argument
155 if (shim >= ARRAY_SIZE(shim_nrf_lpcomp_ain_map)) { in shim_nrf_lpcomp_psel_to_nrf()
159 *nrf = shim_nrf_lpcomp_ain_map[(uint32_t)shim]; in shim_nrf_lpcomp_psel_to_nrf()
163 static int shim_nrf_lpcomp_psel_to_nrf(enum comp_nrf_lpcomp_psel shim, in shim_nrf_lpcomp_psel_to_nrf() argument
166 switch (shim) { in shim_nrf_lpcomp_psel_to_nrf()
208 static int shim_nrf_lpcomp_extrefsel_to_nrf(enum comp_nrf_lpcomp_extrefsel shim, in shim_nrf_lpcomp_extrefsel_to_nrf() argument
211 if (shim >= ARRAY_SIZE(shim_nrf_lpcomp_ain_map)) { in shim_nrf_lpcomp_extrefsel_to_nrf()
215 *nrf = shim_nrf_lpcomp_ain_map[shim]; in shim_nrf_lpcomp_extrefsel_to_nrf()
219 static int shim_nrf_lpcomp_extrefsel_to_nrf(enum comp_nrf_lpcomp_extrefsel shim, in shim_nrf_lpcomp_extrefsel_to_nrf() argument
222 switch (shim) { in shim_nrf_lpcomp_extrefsel_to_nrf()
239 static int shim_nrf_lpcomp_refsel_to_nrf(enum comp_nrf_lpcomp_refsel shim, in shim_nrf_lpcomp_refsel_to_nrf() argument
242 switch (shim) { in shim_nrf_lpcomp_refsel_to_nrf()
316 static int shim_nrf_lpcomp_config_to_nrf(const struct comp_nrf_lpcomp_config *shim, in shim_nrf_lpcomp_config_to_nrf() argument
319 if (shim_nrf_lpcomp_refsel_to_nrf(shim->refsel, &nrf->reference)) { in shim_nrf_lpcomp_config_to_nrf()
323 if (shim_nrf_lpcomp_extrefsel_to_nrf(shim->extrefsel, &nrf->ext_ref)) { in shim_nrf_lpcomp_config_to_nrf()
328 if (shim->enable_hyst) { in shim_nrf_lpcomp_config_to_nrf()
334 if (shim->enable_hyst) { in shim_nrf_lpcomp_config_to_nrf()
339 if (shim_nrf_lpcomp_psel_to_nrf(shim->psel, &nrf->input)) { in shim_nrf_lpcomp_config_to_nrf()