Home
last modified time | relevance | path

Searched refs:desired_child (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/mdio/
H A Dmdio-mux-mmioreg.c34 * 'desired_child' is the value of the 'reg' property of the target child MDIO
39 * If current_child == desired_child, then the mux is already set to the
42 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, in mdio_mux_mmioreg_switch_fn()
[all...]
H A Dmdio-mux-multiplexer.c23 * @desired_child: value of the 'reg' property of the target child MDIO node.
28 * If current_child == desired_child, then the mux is already set to the
31 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-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-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()
H A 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()
H A Dmdio-mux.c22 int (*switch_fn)(int current_child, int desired_child, void *data);
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-mux-mmioreg.c34 * 'desired_child' is the value of the 'reg' property of the target child MDIO
39 * If current_child == desired_child, then the mux is already set to the
42 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, in mdio_mux_mmioreg_switch_fn()
[all...]
H A Dmdio-mux-multiplexer.c23 * @desired_child: value of the 'reg' property of the target child MDIO node.
28 * If current_child == desired_child, then the mux is already set to the
31 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-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-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);
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c838 * 'desired_child' is the value of the 'reg' property of the target child MDIO
841 * If current_child == desired_child, then the mux is already set to the
844 static int mdio_mux_syscon_switch_fn(int current_child, int desired_child, in mdio_mux_syscon_switch_fn() argument
852 if (current_child ^ desired_child) { in mdio_mux_syscon_switch_fn()
854 switch (desired_child) { in mdio_mux_syscon_switch_fn()
867 desired_child); in mdio_mux_syscon_switch_fn()
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c868 * 'desired_child' is the value of the 'reg' property of the target child MDIO
871 * If current_child == desired_child, then the mux is already set to the
874 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()

Completed in 10 milliseconds