Home
last modified time | relevance | path

Searched refs:current_child (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-mux.c19 int current_child; member
22 int (*switch_fn)(int current_child, int desired_child, void *data);
45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read()
49 pb->current_child = cb->bus_number; in mdio_mux_read()
66 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read_c45()
70 pb->current_child = cb->bus_number; in mdio_mux_read_c45()
91 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write()
95 pb->current_child = cb->bus_number; in mdio_mux_write()
113 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write_c45()
117 pb->current_child in mdio_mux_write_c45()
[all...]
H A Dmdio-mux-multiplexer.c22 * @current_child: current value of the mux register.
27 * The first time this function is called, current_child == -1.
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()
54 dev_dbg(&pdev->dev, "%s %d -> %d\n", __func__, current_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
28 if (current_child == 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()
H A Dmdio-mux-mmioreg.c31 * 'current_child' is the current value of the mux register (masked via
37 * The first time this function is called, current_child == -1.
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()
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()
H A Dmdio-mux-bcm6368.c79 static int bcm6368_mdiomux_switch_fn(int current_child, int desired_child, in bcm6368_mdiomux_switch_fn() argument
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
/kernel/linux/linux-5.10/drivers/net/mdio/
H A Dmdio-mux.c19 int current_child; member
22 int (*switch_fn)(int current_child, int desired_child, void *data);
45 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_read()
49 pb->current_child = cb->bus_number; in mdio_mux_read()
70 r = pb->switch_fn(pb->current_child, cb->bus_number, pb->switch_data); in mdio_mux_write()
74 pb->current_child = cb->bus_number; in mdio_mux_write()
139 pb->current_child = -1; in mdio_mux_init()
H A Dmdio-mux-multiplexer.c22 * @current_child: current value of the mux register.
27 * The first time this function is called, current_child == -1.
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()
54 dev_dbg(&pdev->dev, "%s %d -> %d\n", __func__, current_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
28 if (current_child == desired_child) in mdio_mux_gpio_switch_fn()
H A Dmdio-mux-mmioreg.c31 * 'current_child' is the current value of the mux register (masked via
37 * The first time this function is called, current_child == -1.
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()
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()
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
/kernel/linux/linux-5.10/drivers/md/persistent-data/
H A Ddm-btree.c169 unsigned current_child; member
244 f->current_child = 0; in push_frame()
302 if (f->current_child >= f->nr_children) { in dm_btree_del()
309 b = value64(f->n, f->current_child); in dm_btree_del()
310 f->current_child++; in dm_btree_del()
316 b = value64(f->n, f->current_child); in dm_btree_del()
317 f->current_child++; in dm_btree_del()
/kernel/linux/linux-6.6/drivers/md/persistent-data/
H A Ddm-btree.c170 unsigned int current_child; member
245 f->current_child = 0; in push_frame()
303 if (f->current_child >= f->nr_children) { in dm_btree_del()
310 b = value64(f->n, f->current_child); in dm_btree_del()
311 f->current_child++; in dm_btree_del()
317 b = value64(f->n, f->current_child); in dm_btree_del()
318 f->current_child++; in dm_btree_del()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c837 * 'current_child' is the current value of the mux register
840 * The first time this function is called, current_child == -1.
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()
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-sun8i.c867 * 'current_child' is the current value of the mux register
870 * The first time this function is called, current_child == -1.
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()

Completed in 14 milliseconds