Lines Matching refs:ch
63 static int mmux_change_sel(struct udevice *ch, bool sel) in mmux_change_sel() argument
65 struct udevice *mux = ch->parent; in mmux_change_sel()
68 struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); in mmux_change_sel()
88 static int mmux_read(struct udevice *ch, int addr, int devad, in mmux_read() argument
91 struct udevice *mux = ch->parent; in mmux_read()
96 err = mmux_change_sel(ch, true); in mmux_read()
101 mmux_change_sel(ch, false); in mmux_read()
107 static int mmux_write(struct udevice *ch, int addr, int devad, in mmux_write() argument
110 struct udevice *mux = ch->parent; in mmux_write()
115 err = mmux_change_sel(ch, true); in mmux_write()
120 mmux_change_sel(ch, false); in mmux_write()
126 static int mmux_reset(struct udevice *ch) in mmux_reset() argument
128 struct udevice *mux = ch->parent; in mmux_reset()
137 err = mmux_change_sel(ch, true); in mmux_reset()
142 mmux_change_sel(ch, false); in mmux_reset()
148 static int dm_mdio_mux_child_post_bind(struct udevice *ch) in dm_mdio_mux_child_post_bind() argument
150 struct mdio_mux_ch_data *ch_data = dev_get_parent_plat(ch); in dm_mdio_mux_child_post_bind()
152 ch_data->sel = dev_read_u32_default(ch, "reg", MDIO_MUX_SELECT_NONE); in dm_mdio_mux_child_post_bind()