Lines Matching refs:err
69 int err = 0; in mmux_change_sel() local
72 err = ops->select(mux, priv->selected, ch_data->sel); in mmux_change_sel()
73 if (err) in mmux_change_sel()
74 return err; in mmux_change_sel()
94 int err; in mmux_read() local
96 err = mmux_change_sel(ch, true); in mmux_read()
97 if (err) in mmux_read()
98 return err; in mmux_read()
100 err = parent_ops->read(parent_mdio, addr, devad, reg); in mmux_read()
103 return err; in mmux_read()
113 int err; in mmux_write() local
115 err = mmux_change_sel(ch, true); in mmux_write()
116 if (err) in mmux_write()
117 return err; in mmux_write()
119 err = parent_ops->write(parent_mdio, addr, devad, reg, val); in mmux_write()
122 return err; in mmux_write()
131 int err; in mmux_reset() local
137 err = mmux_change_sel(ch, true); in mmux_reset()
138 if (err) in mmux_reset()
139 return err; in mmux_reset()
141 err = parent_ops->reset(parent_mdio); in mmux_reset()
144 return err; in mmux_reset()
164 int err, first_err = 0; in dm_mdio_mux_post_bind() local
183 err = device_bind_driver_to_node(mux, MDIO_MUX_CHILD_DRV_NAME, in dm_mdio_mux_post_bind()
186 if (err && !first_err) in dm_mdio_mux_post_bind()
187 first_err = err; in dm_mdio_mux_post_bind()
197 int err; in dm_mdio_mux_post_probe() local
202 err = uclass_get_device_by_phandle(UCLASS_MDIO, mux, "mdio-parent-bus", in dm_mdio_mux_post_probe()
204 if (err) { in dm_mdio_mux_post_probe()
206 return err; in dm_mdio_mux_post_probe()