Lines Matching refs:parent
55 u8 parent = 0; in socfpga_gate_get_parent() local
60 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in socfpga_gate_get_parent()
71 if (parent == 0) /* only applicable if parent is maca */ in socfpga_gate_get_parent()
72 parent = BOOTCLK_BYPASS; in socfpga_gate_get_parent()
75 if (parent == 1) /* only applicable if parent is macb */ in socfpga_gate_get_parent()
76 parent = BOOTCLK_BYPASS; in socfpga_gate_get_parent()
78 return parent; in socfpga_gate_get_parent()
85 u8 parent = 0; in socfpga_agilex_gate_get_parent() local
90 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in socfpga_agilex_gate_get_parent()
101 if (parent == 0) /* only applicable if parent is maca */ in socfpga_agilex_gate_get_parent()
102 parent = BOOTCLK_BYPASS; in socfpga_agilex_gate_get_parent()
105 if (parent == 1) /* only applicable if parent is macb */ in socfpga_agilex_gate_get_parent()
106 parent = BOOTCLK_BYPASS; in socfpga_agilex_gate_get_parent()
109 return parent; in socfpga_agilex_gate_get_parent()