Searched refs:coma_addr (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/renesas/ |
H A D | rswitch.c | 58 static bool rswitch_agent_clock_is_enabled(void __iomem *coma_addr, in rswitch_agent_clock_is_enabled() argument 61 u32 val = ioread32(coma_addr + RCEC); in rswitch_agent_clock_is_enabled() 69 static void rswitch_agent_clock_ctrl(void __iomem *coma_addr, unsigned int port, in rswitch_agent_clock_ctrl() argument 75 val = ioread32(coma_addr + RCEC); in rswitch_agent_clock_ctrl() 76 iowrite32(val | RCEC_RCE | BIT(port), coma_addr + RCEC); in rswitch_agent_clock_ctrl() 78 val = ioread32(coma_addr + RCDC); in rswitch_agent_clock_ctrl() 79 iowrite32(val | BIT(port), coma_addr + RCDC); in rswitch_agent_clock_ctrl() 1012 if (!rswitch_agent_clock_is_enabled(etha->coma_addr, etha->index)) in rswitch_etha_change_mode() 1013 rswitch_agent_clock_ctrl(etha->coma_addr, etha->index, 1); in rswitch_etha_change_mode() 1020 rswitch_agent_clock_ctrl(etha->coma_addr, etha->index, 0); in rswitch_etha_change_mode() [all …]
|
H A D | rswitch.h | 919 void __iomem *coma_addr; member
|