Lines Matching refs:internal_id

703 	enum periphc_internal_id internal_id;  in get_periph_source_reg()  local
710 internal_id = INTERNAL_ID(periph_id_to_internal_id[periph_id]); in get_periph_source_reg()
711 assert(internal_id != -1); in get_periph_source_reg()
713 if (internal_id < PERIPHC_VW_FIRST) in get_periph_source_reg()
715 return &clkrst->crc_clk_src[internal_id]; in get_periph_source_reg()
717 if (internal_id < PERIPHC_X_FIRST) { in get_periph_source_reg()
719 internal_id -= PERIPHC_VW_FIRST; in get_periph_source_reg()
720 return &clkrst->crc_clk_src_vw[internal_id]; in get_periph_source_reg()
723 if (internal_id < PERIPHC_Y_FIRST) { in get_periph_source_reg()
725 internal_id -= PERIPHC_X_FIRST; in get_periph_source_reg()
726 return &clkrst->crc_clk_src_x[internal_id]; in get_periph_source_reg()
730 internal_id -= PERIPHC_Y_FIRST; in get_periph_source_reg()
731 return &clkrst->crc_clk_src_y[internal_id]; in get_periph_source_reg()
737 enum periphc_internal_id internal_id; in get_periph_clock_info() local
742 internal_id = periph_id_to_internal_id[periph_id]; in get_periph_clock_info()
743 if (!periphc_internal_id_isvalid(internal_id)) in get_periph_clock_info()
746 *type = clock_periph_type[internal_id]; in get_periph_clock_info()
762 enum periphc_internal_id internal_id; in get_periph_clock_id() local
768 internal_id = periph_id_to_internal_id[periph_id]; in get_periph_clock_id()
769 if (!periphc_internal_id_isvalid(internal_id)) in get_periph_clock_id()
772 type = clock_periph_type[internal_id]; in get_periph_clock_id()