Home
last modified time | relevance | path

Searched refs:mdiobb_ctrl (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/include/linux/
Dmdio-bitbang.h9 struct mdiobb_ctrl;
17 void (*set_mdc)(struct mdiobb_ctrl *ctrl, int level);
22 void (*set_mdio_dir)(struct mdiobb_ctrl *ctrl, int output);
28 void (*set_mdio_data)(struct mdiobb_ctrl *ctrl, int value);
31 int (*get_mdio_data)(struct mdiobb_ctrl *ctrl);
34 struct mdiobb_ctrl { struct
45 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl); argument
/linux-6.1.9/drivers/net/mdio/
Dmdio-bitbang.c44 static void mdiobb_send_bit(struct mdiobb_ctrl *ctrl, int val) in mdiobb_send_bit()
56 static int mdiobb_get_bit(struct mdiobb_ctrl *ctrl) in mdiobb_get_bit()
69 static void mdiobb_send_num(struct mdiobb_ctrl *ctrl, u16 val, int bits) in mdiobb_send_num()
78 static u16 mdiobb_get_num(struct mdiobb_ctrl *ctrl, int bits) in mdiobb_get_num()
94 static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg) in mdiobb_cmd()
134 static int mdiobb_cmd_addr(struct mdiobb_ctrl *ctrl, int phy, u32 addr) in mdiobb_cmd_addr()
154 struct mdiobb_ctrl *ctrl = bus->priv; in mdiobb_read()
187 struct mdiobb_ctrl *ctrl = bus->priv; in mdiobb_write()
207 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) in alloc_mdio_bitbang()
231 struct mdiobb_ctrl *ctrl = bus->priv; in free_mdio_bitbang()
Dmdio-gpio.c31 struct mdiobb_ctrl ctrl;
53 static void mdio_dir(struct mdiobb_ctrl *ctrl, int dir) in mdio_dir()
74 static int mdio_get(struct mdiobb_ctrl *ctrl) in mdio_get()
82 static void mdio_set(struct mdiobb_ctrl *ctrl, int what) in mdio_set()
93 static void mdc_set(struct mdiobb_ctrl *ctrl, int what) in mdc_set()
/linux-6.1.9/drivers/net/ethernet/freescale/fs_enet/
Dmii-bitbang.c31 struct mdiobb_ctrl ctrl;
58 static inline void mdio_dir(struct mdiobb_ctrl *ctrl, int dir) in mdio_dir()
71 static inline int mdio_read(struct mdiobb_ctrl *ctrl) in mdio_read()
77 static inline void mdio(struct mdiobb_ctrl *ctrl, int what) in mdio()
90 static inline void mdc(struct mdiobb_ctrl *ctrl, int what) in mdc()
/linux-6.1.9/arch/powerpc/platforms/82xx/
Dep8248e.c59 static void ep8248e_set_mdc(struct mdiobb_ctrl *ctrl, int level) in ep8248e_set_mdc()
70 static void ep8248e_set_mdio_dir(struct mdiobb_ctrl *ctrl, int output) in ep8248e_set_mdio_dir()
81 static void ep8248e_set_mdio_data(struct mdiobb_ctrl *ctrl, int data) in ep8248e_set_mdio_data()
92 static int ep8248e_get_mdio_data(struct mdiobb_ctrl *ctrl) in ep8248e_get_mdio_data()
105 static struct mdiobb_ctrl ep8248e_mdio_ctrl = {
/linux-6.1.9/drivers/net/ethernet/ti/
Ddavinci_mdio.c96 struct mdiobb_ctrl bb_ctrl;
170 static void davinci_set_mdc(struct mdiobb_ctrl *ctrl, int level) in davinci_set_mdc()
186 static void davinci_set_mdio_dir(struct mdiobb_ctrl *ctrl, int output) in davinci_set_mdio_dir()
202 static void davinci_set_mdio_data(struct mdiobb_ctrl *ctrl, int value) in davinci_set_mdio_data()
218 static int davinci_get_mdio_data(struct mdiobb_ctrl *ctrl) in davinci_get_mdio_data()
317 struct mdiobb_ctrl *ctrl = bus->priv; in davinci_mdiobb_reset()
/linux-6.1.9/drivers/net/ethernet/8390/
Dax88796.c81 struct mdiobb_ctrl bb_ctrl;
407 static void ax_bb_mdc(struct mdiobb_ctrl *ctrl, int level) in ax_bb_mdc()
419 static void ax_bb_dir(struct mdiobb_ctrl *ctrl, int output) in ax_bb_dir()
431 static void ax_bb_set_data(struct mdiobb_ctrl *ctrl, int value) in ax_bb_set_data()
443 static int ax_bb_get_data(struct mdiobb_ctrl *ctrl) in ax_bb_get_data()
/linux-6.1.9/drivers/net/ethernet/renesas/
Dsh_eth.c1174 struct mdiobb_ctrl ctrl;
1178 static void sh_mdio_ctrl(struct mdiobb_ctrl *ctrl, u32 mask, int set) in sh_mdio_ctrl()
1195 static void sh_mmd_ctrl(struct mdiobb_ctrl *ctrl, int bit) in sh_mmd_ctrl()
1201 static void sh_set_mdio(struct mdiobb_ctrl *ctrl, int bit) in sh_set_mdio()
1207 static int sh_get_mdio(struct mdiobb_ctrl *ctrl) in sh_get_mdio()
1218 static void sh_mdc_ctrl(struct mdiobb_ctrl *ctrl, int bit) in sh_mdc_ctrl()
Dravb_main.c150 static void ravb_mdio_ctrl(struct mdiobb_ctrl *ctrl, u32 mask, int set) in ravb_mdio_ctrl()
159 static void ravb_set_mdc(struct mdiobb_ctrl *ctrl, int level) in ravb_set_mdc()
165 static void ravb_set_mdio_dir(struct mdiobb_ctrl *ctrl, int output) in ravb_set_mdio_dir()
171 static void ravb_set_mdio_data(struct mdiobb_ctrl *ctrl, int value) in ravb_set_mdio_data()
177 static int ravb_get_mdio_data(struct mdiobb_ctrl *ctrl) in ravb_get_mdio_data()
Dravb.h1055 struct mdiobb_ctrl mdiobb;