Home
last modified time | relevance | path

Searched refs:desired_child (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/net/mdio/
H A Dmdio-mux-mmioreg.c42 static int mdio_mux_mmioreg_switch_fn(int current_child, int desired_child, in mdio_mux_mmioreg_switch_fn() argument
47 if (current_child ^ desired_child) { in mdio_mux_mmioreg_switch_fn()
57 y = (x & ~s->mask) | desired_child; in mdio_mux_mmioreg_switch_fn()
59 iowrite8((x & ~s->mask) | desired_child, p); in mdio_mux_mmioreg_switch_fn()
69 y = (x & ~s->mask) | desired_child; in mdio_mux_mmioreg_switch_fn()
71 iowrite16((x & ~s->mask) | desired_child, p); in mdio_mux_mmioreg_switch_fn()
81 y = (x & ~s->mask) | desired_child; in mdio_mux_mmioreg_switch_fn()
83 iowrite32((x & ~s->mask) | desired_child, p); in mdio_mux_mmioreg_switch_fn()
H A Dmdio-mux-gpio.c22 static int mdio_mux_gpio_switch_fn(int current_child, int desired_child, in mdio_mux_gpio_switch_fn() argument
26 DECLARE_BITMAP(values, BITS_PER_TYPE(desired_child)); in mdio_mux_gpio_switch_fn()
28 if (current_child == desired_child) in mdio_mux_gpio_switch_fn()
31 values[0] = desired_child; in mdio_mux_gpio_switch_fn()
H A Dmdio-mux-multiplexer.c31 static int mdio_mux_multiplexer_switch_fn(int current_child, int desired_child, in mdio_mux_multiplexer_switch_fn() argument
41 if (!(current_child ^ desired_child)) in mdio_mux_multiplexer_switch_fn()
52 ret = mux_control_select(s->muxc, desired_child); in mdio_mux_multiplexer_switch_fn()
55 desired_child); in mdio_mux_multiplexer_switch_fn()
H A Dmdio-mux-meson-gxl.c86 static int gxl_mdio_switch_fn(int current_child, int desired_child, in gxl_mdio_switch_fn() argument
91 if (current_child == desired_child) in gxl_mdio_switch_fn()
94 switch (desired_child) { in gxl_mdio_switch_fn()
H A Dmdio-mux-bcm-iproc.c190 static int mdio_mux_iproc_switch_fn(int current_child, int desired_child, in mdio_mux_iproc_switch_fn() argument
198 bus_dir = (desired_child < EXT_BUS_START_ADDR); in mdio_mux_iproc_switch_fn()
199 bus_id = bus_dir ? desired_child : (desired_child - EXT_BUS_START_ADDR); in mdio_mux_iproc_switch_fn()
H A Dmdio-mux-bcm6368.c79 static int bcm6368_mdiomux_switch_fn(int current_child, int desired_child, in bcm6368_mdiomux_switch_fn() argument
84 md->ext_phy = desired_child; in bcm6368_mdiomux_switch_fn()
H A Dmdio-mux-meson-g12a.c198 static int g12a_mdio_switch_fn(int current_child, int desired_child, in g12a_mdio_switch_fn() argument
203 if (current_child == desired_child) in g12a_mdio_switch_fn()
206 switch (desired_child) { in g12a_mdio_switch_fn()
H A Dmdio-mux.c22 int (*switch_fn)(int current_child, int desired_child, void *data);
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c874 static int mdio_mux_syscon_switch_fn(int current_child, int desired_child, in mdio_mux_syscon_switch_fn() argument
882 if (current_child ^ desired_child) { in mdio_mux_syscon_switch_fn()
884 switch (desired_child) { in mdio_mux_syscon_switch_fn()
897 desired_child); in mdio_mux_syscon_switch_fn()