Lines Matching +full:0 +full:x23c
15 #define MDIO_RATE_ADJ_EXT_OFFSET 0x000
16 #define MDIO_RATE_ADJ_INT_OFFSET 0x004
19 #define MDIO_SCAN_CTRL_OFFSET 0x008
22 #define MDIO_PARAM_OFFSET 0x23c
28 #define MDIO_PARAM_PHY_DATA 0
30 #define MDIO_READ_OFFSET 0x240
31 #define MDIO_READ_DATA_MASK 0xffff
32 #define MDIO_ADDR_OFFSET 0x244
34 #define MDIO_CTRL_OFFSET 0x248
35 #define MDIO_CTRL_WRITE_OP 0x1
36 #define MDIO_CTRL_READ_OP 0x2
38 #define MDIO_STAT_OFFSET 0x24c
44 #define MDIO_REG_ADDR_SPACE_SIZE 0x250
93 * @val :0 if read op else value to be written in @reg;
99 * operation returns 0. Failure operation returns negative error code.
107 writel(0, base + MDIO_CTRL_OFFSET); in start_miim_ops()
108 ret = iproc_mdio_wait_for_idle(base, 0); in start_miim_ops()
139 ret = start_miim_ops(md->base, phyid, reg, 0, MDIO_CTRL_READ_OP); in iproc_mdiomux_read()
140 if (ret < 0) in iproc_mdiomux_read()
154 if (ret < 0) in iproc_mdiomux_write()
171 param = (bus_dir ? 1 : 0) << MDIO_PARAM_INTERNAL_SEL; in mdio_mux_iproc_switch_fn()
175 return 0; in mdio_mux_iproc_switch_fn()
190 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in mdio_mux_iproc_probe()
191 if (res->start & 0xfff) { in mdio_mux_iproc_probe()
196 res->start &= ~0xfff; in mdio_mux_iproc_probe()
232 bus->phy_mask = ~0; in mdio_mux_iproc_probe()
252 return 0; in mdio_mux_iproc_probe()
269 return 0; in mdio_mux_iproc_remove()
279 return 0; in mdio_mux_iproc_suspend()
294 return 0; in mdio_mux_iproc_resume()