Lines Matching refs:cg

294 	struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw);  in en7523_pci_is_enabled()  local
296 return !!(readl(cg->base + REG_PCI_CONTROL) & REG_PCI_CONTROL_REFCLK_EN1); in en7523_pci_is_enabled()
301 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_prepare() local
302 void __iomem *np_base = cg->base; in en7523_pci_prepare()
340 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7523_pci_unprepare() local
341 void __iomem *np_base = cg->base; in en7523_pci_unprepare()
357 struct en_clk_gate *cg; in en7523_register_pcie_clk() local
359 cg = devm_kzalloc(dev, sizeof(*cg), GFP_KERNEL); in en7523_register_pcie_clk()
360 if (!cg) in en7523_register_pcie_clk()
363 cg->base = np_base; in en7523_register_pcie_clk()
364 cg->hw.init = &init; in en7523_register_pcie_clk()
367 init.ops->unprepare(&cg->hw); in en7523_register_pcie_clk()
369 if (clk_hw_register(dev, &cg->hw)) in en7523_register_pcie_clk()
372 return &cg->hw; in en7523_register_pcie_clk()
377 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7581_pci_is_enabled() local
381 val = readl(cg->base + REG_PCI_CONTROL); in en7581_pci_is_enabled()
387 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7581_pci_enable() local
388 void __iomem *np_base = cg->base; in en7581_pci_enable()
403 struct en_clk_gate *cg = container_of(hw, struct en_clk_gate, hw); in en7581_pci_disable() local
404 void __iomem *np_base = cg->base; in en7581_pci_disable()