Lines Matching refs:bitbang

60 	struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl);  in mdio_dir()  local
63 bb_set(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
65 bb_clr(bitbang->dir, bitbang->mdio_msk); in mdio_dir()
68 in_be32(bitbang->dir); in mdio_dir()
73 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio_read() local
74 return bb_read(bitbang->dat, bitbang->mdio_msk); in mdio_read()
79 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdio() local
82 bb_set(bitbang->dat, bitbang->mdio_msk); in mdio()
84 bb_clr(bitbang->dat, bitbang->mdio_msk); in mdio()
87 in_be32(bitbang->dat); in mdio()
92 struct bb_info *bitbang = container_of(ctrl, struct bb_info, ctrl); in mdc() local
95 bb_set(bitbang->dat, bitbang->mdc_msk); in mdc()
97 bb_clr(bitbang->dat, bitbang->mdc_msk); in mdc()
100 in_be32(bitbang->dat); in mdc()
116 struct bb_info *bitbang = bus->priv; in fs_mii_bitbang_init() local
141 bitbang->dir = ioremap(res.start, resource_size(&res)); in fs_mii_bitbang_init()
142 if (!bitbang->dir) in fs_mii_bitbang_init()
145 bitbang->dat = bitbang->dir + 4; in fs_mii_bitbang_init()
146 bitbang->mdio_msk = 1 << (31 - mdio_pin); in fs_mii_bitbang_init()
147 bitbang->mdc_msk = 1 << (31 - mdc_pin); in fs_mii_bitbang_init()
155 struct bb_info *bitbang; in fs_enet_mdio_probe() local
158 bitbang = kzalloc(sizeof(struct bb_info), GFP_KERNEL); in fs_enet_mdio_probe()
159 if (!bitbang) in fs_enet_mdio_probe()
162 bitbang->ctrl.ops = &bb_ops; in fs_enet_mdio_probe()
164 new_bus = alloc_mdio_bitbang(&bitbang->ctrl); in fs_enet_mdio_probe()
186 iounmap(bitbang->dir); in fs_enet_mdio_probe()
190 kfree(bitbang); in fs_enet_mdio_probe()
198 struct bb_info *bitbang = bus->priv; in fs_enet_mdio_remove() local
202 iounmap(bitbang->dir); in fs_enet_mdio_remove()
203 kfree(bitbang); in fs_enet_mdio_remove()