Searched refs:desired_child (Results 1 – 8 of 8) sorted by relevance
/drivers/net/mdio/ |
D | mdio-mux-mmioreg.c | 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, p); in mdio_mux_mmioreg_switch_fn()
|
D | mdio-mux-gpio.c | 22 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()
|
D | mdio-mux-multiplexer.c | 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()
|
D | mdio-mux-bcm-iproc.c | 160 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()
|
D | mdio-mux-bcm6368.c | 79 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()
|
D | mdio-mux-meson-g12a.c | 204 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()
|
D | mdio-mux.c | 22 int (*switch_fn)(int current_child, int desired_child, void *data);
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-sun8i.c | 856 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()
|