Lines Matching refs:enum_id
78 static int sh_pfc_enum_in_range(u16 enum_id, const struct pinmux_range *r) in sh_pfc_enum_in_range() argument
80 if (enum_id < r->begin) in sh_pfc_enum_in_range()
83 if (enum_id > r->end) in sh_pfc_enum_in_range()
188 static int sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, in sh_pfc_get_config_reg() argument
218 if (config_reg->enum_ids[pos + n] == enum_id) { in sh_pfc_get_config_reg()
284 u16 enum_id; in sh_pfc_config_mux() local
289 pos = sh_pfc_mark_to_enum(pfc, mark, pos, &enum_id); in sh_pfc_config_mux()
293 if (!enum_id) in sh_pfc_config_mux()
300 in_range = sh_pfc_enum_in_range(enum_id, &pfc->info->function); in sh_pfc_config_mux()
311 in_range = sh_pfc_enum_in_range(enum_id, range); in sh_pfc_config_mux()
318 if (in_range && enum_id == range->force) in sh_pfc_config_mux()
327 ret = sh_pfc_get_config_reg(pfc, enum_id, &cr, &field, &value); in sh_pfc_config_mux()
487 return sh_pfc_config_mux(pfc, pin->enum_id, PINMUX_TYPE_GPIO); in sh_pfc_config_mux_for_gpio()
503 return sh_pfc_config_mux(pfc, pin->enum_id, PINMUX_TYPE_FUNCTION); in sh_pfc_pinctrl_pin_set()