Home
last modified time | relevance | path

Searched refs:phyid (Results 1 – 25 of 49) sorted by relevance

12

/openbmc/linux/net/caif/
H A Dcfsrvl.c28 int phyid) in cfservl_ctrlcmd() argument
38 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
43 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
46 if (phyid != service->dev_info.id) in cfservl_ctrlcmd()
50 CAIF_CTRLCMD_FLOW_OFF_IND, phyid); in cfservl_ctrlcmd()
54 if (phyid != service->dev_info.id) in cfservl_ctrlcmd()
59 phyid); in cfservl_ctrlcmd()
66 CAIF_CTRLCMD_FLOW_OFF_IND, phyid); in cfservl_ctrlcmd()
73 CAIF_CTRLCMD_FLOW_ON_IND, phyid); in cfservl_ctrlcmd()
83 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfservl_ctrlcmd()
[all …]
H A Dcfcnfg.c134 u8 phyid) in cfcnfg_get_phyinfo_rcu() argument
139 if (phy->id == phyid) in cfcnfg_get_phyinfo_rcu()
234 l->phyid = res; in caif_connect_req_to_link_param()
343 param.phyid); in caif_connect_client()
345 param.phyid); in caif_connect_client()
463 u8 phyid; in cfcnfg_add_phy_layer() local
470 if (phyid == 0) in cfcnfg_add_phy_layer()
486 phy_layer->id = phyid; in cfcnfg_add_phy_layer()
488 phyinfo->id = phyid; in cfcnfg_add_phy_layer()
563 u16 phyid; in cfcnfg_del_phy_layer() local
[all …]
H A Dcfmuxl.c45 int phyid);
65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument
104 struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u8 phyid) in cfmuxl_remove_dnlayer() argument
108 int idx = phyid % DN_CACHE_SIZE; in cfmuxl_remove_dnlayer()
112 dn = get_from_id(&muxl->frml_list, phyid); in cfmuxl_remove_dnlayer()
247 int phyid) in cfmuxl_ctrlcmd() argument
255 if (cfsrvl_phyid_match(layer, phyid) && layer->ctrlcmd) { in cfmuxl_ctrlcmd()
263 layer->ctrlcmd(layer, ctrl, phyid); in cfmuxl_ctrlcmd()
H A Dcffrml.c31 int phyid);
35 struct cflayer *cffrml_create(u16 phyid, bool use_fcs) in cffrml_create() argument
51 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "frm%d", phyid); in cffrml_create()
53 this->layer.id = phyid; in cffrml_create()
170 int phyid) in cffrml_ctrlcmd() argument
H A Dcfctrl.c32 int phyid);
80 p1->phyid == p2->phyid && in param_eq()
230 cfpkt_addbdy(pkt, (param->priority << 3) | param->phyid); in cfctrl_linkup_request()
291 cfpkt_info(pkt)->dev_info->id = param->phyid; in cfctrl_linkup_request()
402 linkparam.phyid = physlinkid; in cfctrl_recv()
556 int phyid) in cfctrl_ctrlcmd() argument
573 if (p->param.phyid == phyid) { in cfctrl_ctrlcmd()
577 phyid); in cfctrl_ctrlcmd()
H A Dcaif_usb.c78 int phyid) in cfusbl_ctrlcmd() argument
84 static struct cflayer *cfusbl_create(int phyid, const u8 ethaddr[ETH_ALEN], in cfusbl_create() argument
98 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "usb%d", phyid); in cfusbl_create()
99 this->layer.id = phyid; in cfusbl_create()
H A Dcfserl.c32 int phyid);
189 int phyid) in cfserl_ctrlcmd() argument
191 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfserl_ctrlcmd()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-mux-bcm-iproc.c102 u16 phyid, u32 reg, u16 val, u32 op) in start_miim_ops() argument
113 param |= phyid << MDIO_PARAM_PHY_ID; in start_miim_ops()
134 static int iproc_mdiomux_read_c22(struct mii_bus *bus, int phyid, int reg) in iproc_mdiomux_read_c22() argument
139 ret = start_miim_ops(md->base, false, phyid, reg, 0, MDIO_CTRL_READ_OP); in iproc_mdiomux_read_c22()
146 static int iproc_mdiomux_read_c45(struct mii_bus *bus, int phyid, int devad, in iproc_mdiomux_read_c45() argument
152 ret = start_miim_ops(md->base, true, phyid, reg | devad << 16, 0, in iproc_mdiomux_read_c45()
161 int phyid, int reg, u16 val) in iproc_mdiomux_write_c22() argument
167 ret = start_miim_ops(md->base, false, phyid, reg, val, in iproc_mdiomux_write_c22()
176 int phyid, int devad, int reg, u16 val) in iproc_mdiomux_write_c45() argument
182 ret = start_miim_ops(md->base, true, phyid, reg | devad << 16, val, in iproc_mdiomux_write_c45()
/openbmc/u-boot/board/freescale/ls1012aqds/
H A Dls1012aqds.c181 &prop_val.phyid, PFE_PROP_LEN, 1); in pfe_set_properties()
208 prop_val.phyid = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
220 prop_val.phyid = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
235 prop_val.phyid = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
247 prop_val.phyid = cpu_to_fdt32( in fdt_fsl_fixup_of_pfe()
H A Dls1012aqds_pfe.h40 int phyid; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_mdio.c33 u8 phyid; member
42 static int hclge_mdio_write(struct mii_bus *bus, int phyid, int regnum, in hclge_mdio_write() argument
57 hnae3_set_field(mdio_cmd->phyid, HCLGE_MDIO_PHYID_M, in hclge_mdio_write()
58 HCLGE_MDIO_PHYID_S, (u32)phyid); in hclge_mdio_write()
81 static int hclge_mdio_read(struct mii_bus *bus, int phyid, int regnum) in hclge_mdio_read() argument
95 hnae3_set_field(mdio_cmd->phyid, HCLGE_MDIO_PHYID_M, in hclge_mdio_read()
96 HCLGE_MDIO_PHYID_S, (u32)phyid); in hclge_mdio_read()
/openbmc/u-boot/board/freescale/mpc8544ds/
H A Dmpc8544ds.c244 uint phyid; in board_phy_config() local
252 for (phyid = 0; phyid < 4; phyid++) in board_phy_config()
253 bus->write(bus, phyid, MDIO_DEVAD_NONE, MIIM_CIS8204_SLED_CON, in board_phy_config()
/openbmc/linux/include/net/caif/
H A Dcfmuxl.h16 struct cflayer *cfmuxl_remove_dnlayer(struct cflayer *layr, u8 phyid);
17 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *up, u8 phyid);
H A Dcfctrl.h44 enum cfctrl_srv serv, u8 phyid,
61 u8 phyid; /* (U2-U0) Physical interface to connect */ member
H A Dcffrml.h13 struct cflayer *cffrml_create(u16 phyid, bool use_fcs);
H A Dcaif_layer.h218 int phyid);
H A Dcfsrvl.h36 bool cfsrvl_phyid_match(struct cflayer *layer, int phyid);
/openbmc/u-boot/drivers/net/
H A Dmcfmii.c52 u32 phyid; member
173 && (phyinfo[i].phyid != 0); i++) { in mii_discover_phy()
174 if (phyinfo[i].phyid == phytype) { in mii_discover_phy()
177 phyinfo[i].phyid, in mii_discover_phy()
H A Dmvgbe.c731 int phyid) in __mvgbe_phy_init() argument
736 int phyid) in __mvgbe_phy_init()
743 phyid); in __mvgbe_phy_init()
745 phydev = phy_connect(bus, phyid, dev, phy_interface); in __mvgbe_phy_init()
759 int mvgbe_phylib_init(struct eth_device *dev, int phyid) in mvgbe_phylib_init() argument
781 phydev = __mvgbe_phy_init(dev, bus, PHY_INTERFACE_MODE_RGMII, phyid); in mvgbe_phylib_init()
H A Dsni_ave.c238 int phyid, int devad, int regnum) in ave_mdiobus_read() argument
245 writel((phyid << 8) | regnum, priv->iobase + AVE_MDIOAR); in ave_mdiobus_read()
256 priv->phydev->dev->name, phyid, regnum); in ave_mdiobus_read()
264 int phyid, int devad, int regnum, u16 val) in ave_mdiobus_write() argument
271 writel((phyid << 8) | regnum, priv->iobase + AVE_MDIOAR); in ave_mdiobus_write()
286 priv->phydev->dev->name, phyid, regnum); in ave_mdiobus_write()
H A Dlpc32xx_eth.c551 int lpc32xx_eth_phylib_init(struct eth_device *dev, int phyid) in lpc32xx_eth_phylib_init() argument
576 phydev = phy_connect(bus, phyid, dev, PHY_INTERFACE_MODE_RMII); in lpc32xx_eth_phylib_init()
578 phydev = phy_connect(bus, phyid, dev, PHY_INTERFACE_MODE_MII); in lpc32xx_eth_phylib_init()
/openbmc/linux/drivers/net/ethernet/8390/
H A Dpcnet_cs.c888 u_int tmp, phyid; in mii_phy_probe() local
895 phyid = tmp << 16; in mii_phy_probe()
896 phyid |= mdio_read(mii_addr, i, MII_PHYID_REG2); in mii_phy_probe()
897 phyid &= MII_PHYID_REV_MASK; in mii_phy_probe()
898 netdev_dbg(dev, "MII at %d is 0x%08x\n", i, phyid); in mii_phy_probe()
899 if (phyid == AM79C9XX_HOME_PHY) { in mii_phy_probe()
901 } else if (phyid != AM79C9XX_ETH_PHY) { in mii_phy_probe()
/openbmc/linux/drivers/net/usb/
H A Dsr9800.c735 u32 phyid; in sr9800_bind() local
802 phyid = sr_get_phyid(dev); in sr9800_bind()
803 netdev_dbg(dev->net, "PHYID=0x%08x\n", phyid); in sr9800_bind()
/openbmc/linux/drivers/net/ethernet/socionext/
H A Dsni_ave.c492 static int ave_mdiobus_read(struct mii_bus *bus, int phyid, int regnum) in ave_mdiobus_read() argument
502 writel((phyid << 8) | regnum, priv->base + AVE_MDIOAR); in ave_mdiobus_read()
513 phyid, regnum); in ave_mdiobus_read()
520 static int ave_mdiobus_write(struct mii_bus *bus, int phyid, int regnum, in ave_mdiobus_write() argument
531 writel((phyid << 8) | regnum, priv->base + AVE_MDIOAR); in ave_mdiobus_write()
545 phyid, regnum); in ave_mdiobus_write()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/
H A Dcommand_table2.c273 ps.param.phyid = cmd->phy_id_to_atom(cntl->transmitter); in transmitter_control_v1_6()
340 dig_v1_7.phyid = cmd->phy_id_to_atom(cntl->transmitter); in transmitter_control_v1_7()

12