Home
last modified time | relevance | path

Searched refs:dpmac_id (Results 1 – 18 of 18) sorted by relevance

/openbmc/u-boot/drivers/net/ldpaa_eth/
H A Dldpaa_wriop.c27 dpmac_info[dpmac_id].enabled = 0; in wriop_init_dpmac()
28 dpmac_info[dpmac_id].id = 0; in wriop_init_dpmac()
33 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac()
34 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac()
47 dpmac_info[dpmac_id].enabled = 1; in wriop_init_dpmac_enet_if()
48 dpmac_info[dpmac_id].id = dpmac_id; in wriop_init_dpmac_enet_if()
63 if (dpmac_info[i].id == dpmac_id) in wriop_dpmac_to_index()
70 int wriop_disable_dpmac(int dpmac_id) in wriop_disable_dpmac() argument
78 wriop_dpmac_disable(dpmac_id); in wriop_disable_dpmac()
83 int wriop_enable_dpmac(int dpmac_id) in wriop_enable_dpmac() argument
[all …]
H A Dls1088a.c25 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument
30 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled()
33 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument
37 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable()
40 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument
44 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable()
47 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument
51 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
H A Dlx2160a.c33 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument
38 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled()
41 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument
45 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable()
48 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument
52 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable()
55 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument
59 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
H A Dls2080a.c38 static int is_device_disabled(int dpmac_id) in is_device_disabled() argument
43 return dpmac_to_devdisr[dpmac_id] & devdisr2; in is_device_disabled()
46 void wriop_dpmac_disable(int dpmac_id) in wriop_dpmac_disable() argument
50 setbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_disable()
53 void wriop_dpmac_enable(int dpmac_id) in wriop_dpmac_enable() argument
57 clrbits_le32(&gur->devdisr2, dpmac_to_devdisr[dpmac_id]); in wriop_dpmac_enable()
60 phy_interface_t wriop_dpmac_enet_if(int dpmac_id, int lane_prtcl) in wriop_dpmac_enet_if() argument
64 if (is_device_disabled(dpmac_id + 1)) in wriop_dpmac_enet_if()
H A Dldpaa_eth.c29 bus = wriop_get_mdio(priv->dpmac_id); in init_phy()
39 wriop_get_enet_if(priv->dpmac_id)); in init_phy()
413 enet_if = wriop_get_enet_if(priv->dpmac_id); in ldpaa_get_dpmac_state()
586 MC_CMD_NO_FLAGS, priv->dpmac_id); in ldpaa_eth_open()
621 priv->dpmac_id); in ldpaa_eth_stop()
815 dpmac_cfg.mac_id = priv->dpmac_id; in ldpaa_dpmac_setup()
820 &priv->dpmac_id); in ldpaa_dpmac_setup()
832 priv->dpmac_id, in ldpaa_dpmac_setup()
845 MC_CMD_NO_FLAGS, priv->dpmac_id); in ldpaa_dpmac_setup()
867 dpmac_endpoint.id = priv->dpmac_id; in ldpaa_dpmac_bind()
[all …]
H A Dldpaa_eth.h120 uint32_t dpmac_id; member
/openbmc/u-boot/include/fsl-mc/
H A Dldpaa_wriop.h55 void wriop_init_dpmac(int sd, int dpmac_id, int lane_prtcl);
57 int wriop_disable_dpmac(int dpmac_id);
58 int wriop_enable_dpmac(int dpmac_id);
59 int wriop_is_enabled_dpmac(int dpmac_id);
60 int wriop_set_mdio(int dpmac_id, struct mii_dev *bus);
61 struct mii_dev *wriop_get_mdio(int dpmac_id);
63 int wriop_get_phy_address(int dpmac_id, int phy_num);
65 struct phy_device *wriop_get_phy_dev(int dpmac_id, int phy_num);
66 phy_interface_t wriop_get_enet_if(int dpmac_id);
68 void wriop_dpmac_disable(int dpmac_id);
[all …]
H A Dfsl_dpmac.h38 #define DPMAC_CMD_OPEN(cmd, dpmac_id) \ argument
39 MC_CMD_OP(cmd, 0, 0, 32, int, dpmac_id)
118 int dpmac_id,
H A Dfsl_mc_private.h69 int ldpaa_eth_init(int dpmac_id, phy_interface_t enet_if);
/openbmc/u-boot/board/freescale/ls2080aqds/
H A Deth.c117 dpmac_id = dpmac + 1; in sgmii_configure_repeater()
121 dpmac_id = dpmac + 9; in sgmii_configure_repeater()
195 dpmac_id); in sgmii_configure_repeater()
202 dpmac_id); in sgmii_configure_repeater()
612 if (dpmac_id > WRIOP1_DPMAC9) in ls2080a_handle_phy_interface_sgmii()
630 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii()
638 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii()
660 wriop_set_mdio(dpmac_id, bus); in ls2080a_handle_phy_interface_sgmii()
684 (dpmac_id - 9)); in ls2080a_handle_phy_interface_sgmii()
746 switch (dpmac_id) { in ls2080a_handle_phy_interface_qsgmii()
[all …]
/openbmc/u-boot/board/freescale/ls1088a/
H A Deth_ls1088aqds.c488 switch (dpmac_id) { in ls1088a_handle_phy_interface_sgmii()
511 dpmac_info[dpmac_id].board_mux = EMI1_SLOT1; in ls1088a_handle_phy_interface_sgmii()
513 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_sgmii()
530 switch (dpmac_id) { in ls1088a_handle_phy_interface_qsgmii()
535 wriop_set_phy_address(dpmac_id, 0, dpmac_id + 9); in ls1088a_handle_phy_interface_qsgmii()
541 wriop_set_phy_address(dpmac_id, 0, dpmac_id + 1); in ls1088a_handle_phy_interface_qsgmii()
545 dpmac_info[dpmac_id].board_mux = EMI1_SLOT1; in ls1088a_handle_phy_interface_qsgmii()
547 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_qsgmii()
591 switch (dpmac_id) { in ls1088a_handle_phy_interface_rgmii()
596 wriop_set_mdio(dpmac_id, bus); in ls1088a_handle_phy_interface_rgmii()
[all …]
/openbmc/u-boot/board/freescale/lx2160a/
H A Deth_lx2160aqds.c589 int fdt_fixup_dpmac_phy_handle(void *fdt, int dpmac_id, int node_phandle) in fdt_fixup_dpmac_phy_handle() argument
606 sprintf(dpmac_str, "dpmac@%x", dpmac_id); in fdt_fixup_dpmac_phy_handle()
619 phy_string = phy_string_for_interface(wriop_get_enet_if(dpmac_id)); in fdt_fixup_dpmac_phy_handle()
753 int ret, dpmac_id, phandle, i; in fdt_fixup_board_phy() local
790 dpmac_id = WRIOP1_DPMAC1; in fdt_fixup_board_phy()
791 while (dpmac_id < NUM_WRIOP_PORTS) { in fdt_fixup_board_phy()
792 phy_iface = wriop_get_enet_if(dpmac_id); in fdt_fixup_board_phy()
794 dpmac_id, in fdt_fixup_board_phy()
798 dpmac_id++; in fdt_fixup_board_phy()
800 if (dpmac_id == NUM_WRIOP_PORTS) in fdt_fixup_board_phy()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpmac.c28 int dpmac_id, in dpmac_open() argument
40 cmd_params->dpmac_id = cpu_to_le32(dpmac_id); in dpmac_open()
H A Ddpmac-cmd.h42 __le32 dpmac_id; member
H A Ddpmac.h16 int dpmac_id,
H A Ddpaa2-mac.c93 u16 dpmac_id) in dpaa2_mac_get_node() argument
126 if (id == dpmac_id) { in dpaa2_mac_get_node()
/openbmc/u-boot/drivers/net/fsl-mc/
H A Ddpmac.c16 int dpmac_id, in dpmac_open() argument
26 DPMAC_CMD_OPEN(cmd, dpmac_id); in dpmac_open()
H A Dmc.c244 static int mc_fixup_dpl_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpl_mac_addr() argument
253 sprintf(mac_name, "dpmac@%d", dpmac_id); in mc_fixup_dpl_mac_addr()
318 static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, in mc_fixup_dpc_mac_addr() argument
326 sprintf(mac_name, "mac@%d", dpmac_id); in mc_fixup_dpc_mac_addr()