Home
last modified time | relevance | path

Searched refs:coma_addr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/renesas/
H A Drswitch.c58 static bool rswitch_agent_clock_is_enabled(void __iomem *coma_addr, int port) in rswitch_agent_clock_is_enabled() argument
60 u32 val = ioread32(coma_addr + RCEC); in rswitch_agent_clock_is_enabled()
68 static void rswitch_agent_clock_ctrl(void __iomem *coma_addr, int port, int enable) in rswitch_agent_clock_ctrl() argument
73 val = ioread32(coma_addr + RCEC); in rswitch_agent_clock_ctrl()
74 iowrite32(val | RCEC_RCE | BIT(port), coma_addr + RCEC); in rswitch_agent_clock_ctrl()
76 val = ioread32(coma_addr + RCDC); in rswitch_agent_clock_ctrl()
77 iowrite32(val | BIT(port), coma_addr + RCDC); in rswitch_agent_clock_ctrl()
986 if (!rswitch_agent_clock_is_enabled(etha->coma_addr, etha->index)) in rswitch_etha_change_mode()
987 rswitch_agent_clock_ctrl(etha->coma_addr, etha->index, 1); in rswitch_etha_change_mode()
994 rswitch_agent_clock_ctrl(etha->coma_addr, etha->index, 0); in rswitch_etha_change_mode()
[all …]
H A Drswitch.h914 void __iomem *coma_addr; member