Home
last modified time | relevance | path

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

/drivers/net/mdio/
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()
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()
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()
Dmdio-mux-bcm-iproc.c160 static int mdio_mux_iproc_switch_fn(int current_child, int desired_child, in mdio_mux_iproc_switch_fn() argument
168 bus_dir = (desired_child < EXT_BUS_START_ADDR); in mdio_mux_iproc_switch_fn()
169 bus_id = bus_dir ? desired_child : (desired_child - EXT_BUS_START_ADDR); in mdio_mux_iproc_switch_fn()
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()
Dmdio-mux-meson-g12a.c204 static int g12a_mdio_switch_fn(int current_child, int desired_child, in g12a_mdio_switch_fn() argument
209 if (current_child == desired_child) in g12a_mdio_switch_fn()
212 switch (desired_child) { in g12a_mdio_switch_fn()
Dmdio-mux.c22 int (*switch_fn)(int current_child, int desired_child, void *data);
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-sun8i.c856 static int mdio_mux_syscon_switch_fn(int current_child, int desired_child, in mdio_mux_syscon_switch_fn() argument
864 if (current_child ^ desired_child) { in mdio_mux_syscon_switch_fn()
866 switch (desired_child) { in mdio_mux_syscon_switch_fn()
879 desired_child); in mdio_mux_syscon_switch_fn()