Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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
39 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl); argument
/kernel/linux/linux-5.10/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()
186 struct mdiobb_ctrl *ctrl = bus->priv; in mdiobb_write()
205 struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) in alloc_mdio_bitbang()
225 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/powerpc/platforms/82xx/
Dep8248e.c60 static void ep8248e_set_mdc(struct mdiobb_ctrl *ctrl, int level) in ep8248e_set_mdc()
71 static void ep8248e_set_mdio_dir(struct mdiobb_ctrl *ctrl, int output) in ep8248e_set_mdio_dir()
82 static void ep8248e_set_mdio_data(struct mdiobb_ctrl *ctrl, int data) in ep8248e_set_mdio_data()
93 static int ep8248e_get_mdio_data(struct mdiobb_ctrl *ctrl) in ep8248e_get_mdio_data()
106 static struct mdiobb_ctrl ep8248e_mdio_ctrl = {
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
Dax88796.c81 struct mdiobb_ctrl bb_ctrl;
400 static void ax_bb_mdc(struct mdiobb_ctrl *ctrl, int level) in ax_bb_mdc()
412 static void ax_bb_dir(struct mdiobb_ctrl *ctrl, int output) in ax_bb_dir()
424 static void ax_bb_set_data(struct mdiobb_ctrl *ctrl, int value) in ax_bb_set_data()
436 static int ax_bb_get_data(struct mdiobb_ctrl *ctrl) in ax_bb_get_data()
/kernel/linux/linux-5.10/drivers/net/ethernet/renesas/
Dravb_main.c129 static void ravb_mdio_ctrl(struct mdiobb_ctrl *ctrl, u32 mask, int set) in ravb_mdio_ctrl()
138 static void ravb_set_mdc(struct mdiobb_ctrl *ctrl, int level) in ravb_set_mdc()
144 static void ravb_set_mdio_dir(struct mdiobb_ctrl *ctrl, int output) in ravb_set_mdio_dir()
150 static void ravb_set_mdio_data(struct mdiobb_ctrl *ctrl, int value) in ravb_set_mdio_data()
156 static int ravb_get_mdio_data(struct mdiobb_ctrl *ctrl) in ravb_get_mdio_data()
Dsh_eth.c1172 struct mdiobb_ctrl ctrl;
1176 static void sh_mdio_ctrl(struct mdiobb_ctrl *ctrl, u32 mask, int set) in sh_mdio_ctrl()
1193 static void sh_mmd_ctrl(struct mdiobb_ctrl *ctrl, int bit) in sh_mmd_ctrl()
1199 static void sh_set_mdio(struct mdiobb_ctrl *ctrl, int bit) in sh_set_mdio()
1205 static int sh_get_mdio(struct mdiobb_ctrl *ctrl) in sh_get_mdio()
1216 static void sh_mdc_ctrl(struct mdiobb_ctrl *ctrl, int bit) in sh_mdc_ctrl()
Dravb.h997 struct mdiobb_ctrl mdiobb;