phy_port
u8 phy_port;
u8 phy_port[HNS_ROCE_MAX_PORTS];
int (*set_mac)(struct hns_roce_dev *hr_dev, u8 phy_port,
static int hns_roce_v2_set_mac(struct hns_roce_dev *hr_dev, u8 phy_port,
hr_reg_write(smac_tb, CFG_SMAC_TB_IDX, phy_port);
hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port];
hr_dev->iboe.phy_port[0] = 0;
u8 phy_port;
phy_port = hr_dev->iboe.phy_port[port];
return hr_dev->hw->set_mac(hr_dev, phy_port, addr);
hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port];
u32 phy_port;
int phy_port;
phy_port = cfg->port % 4;
if (phy_port == 0)
phy_port = 1;
else if (phy_port == 1)
phy_port = 0;
ret = phy_port;
if (cfg->nlanes == 4 && !(phy_port == 0 || phy_port == 2))
!(phy_port >= 0 && phy_port <= 3))
int phy_port, phy_id;
phy_port = ipu6_isys_driver_port_to_phy_port(&cfg);
if (phy_port < 0) {
cfg.port = phy_port;
if (bp->phy_port == PORT_TP)
old_port = bp->phy_port;
bp->phy_port = PORT_FIBRE;
bp->phy_port = PORT_TP;
if (old_port != bp->phy_port)
rc = bnx2_setup_phy(bp, bp->phy_port);
if (bp->phy_port == PORT_TP) {
bnx2_setup_phy(bp, bp->phy_port);
if (bp->phy_port == PORT_TP) {
bp->phy_port = PORT_FIBRE;
bp->phy_port = PORT_TP;
old_port = bp->phy_port;
old_port != bp->phy_port)
} else if (bp->phy_port == PORT_FIBRE)
cmd->base.port = bp->phy_port;
if (cmd->base.port != bp->phy_port &&
if (!netif_running(dev) && cmd->base.port != bp->phy_port)
rc = bnx2_setup_remote_phy(bp, bp->phy_port);
bnx2_setup_phy(bp, bp->phy_port);
bp->phy_port = PORT_TP;
bp->phy_port = PORT_FIBRE;
return (bp->phy_port == PORT_FIBRE) ? "SerDes" :
u8 phy_port;
adapter->hba_port_num = attribs->hba_attribs.phy_port;
u8 phy_port;
int phy_port, quadtype;
phy_port = port % hw->ptp.ports_per_phy;
msg->msg_addr_low = P_Q0_L(P_0_BASE + offset, phy_port);
msg->msg_addr_high = P_Q0_H(P_0_BASE + offset, phy_port);
msg->msg_addr_low = P_Q1_L(P_4_BASE + offset, phy_port);
msg->msg_addr_high = P_Q1_H(P_4_BASE + offset, phy_port);
u8 phy_port;
u8 phy_port;
u8 phy_port;
npar->phy_port, npar->min_bw, npar->max_bw,
if (adapter->npars[i].phy_port != eswitch)
arg1 = (adapter->npars[index].phy_port & BIT_0);
u8 phy_port;
phy_port = adapter->npars[index].phy_port;
phy_port = adapter->ahw->physical_port;
arg1 = phy_port;
adapter->npars[j].phy_port = (u8)pci_info[i].default_port;
s_esw_id = adapter->npars[src_index].phy_port;
d_esw_id = adapter->npars[dest_index].phy_port;
id = adapter->npars[index].phy_port;
id = adapter->npars[index].phy_port;
int dev_id_1, int dev_id_2, u8 phy_port, int type)
phy_port);
p->phy_port[type][idx] = phy_port;
if (p->phy_port[PHY_TYPE_PMA_PMD][i] == port)
if (p->phy_port[PHY_TYPE_PCS][i] == port)
*lowest = p->phy_port[PHY_TYPE_MII][0];
u8 phy_port[PHY_TYPE_MAX][NIU_MAX_PORTS];
struct phy_port *port)
static int mv2222_configure_serdes(struct phy_port *port, bool enable,
static void mv2222_port_link_up(struct phy_port *port)
static void mv2222_port_link_down(struct phy_port *port)
static int mv2222_attach_mii_port(struct phy_device *phydev, struct phy_port *port)
static int m88e1510_port_configure_serdes(struct phy_port *port, bool enable,
struct phy_port *port)
struct phy_port *port)
struct phy_port *port)
struct phy_port *port;
struct phy_port *port;
struct phy_port *port = phy_get_sfp_port(phydev);
struct phy_port *port = phy_get_sfp_port(phydev);
struct phy_port *port = phy_get_sfp_port(phydev);
static int phy_add_port(struct phy_device *phydev, struct phy_port *port)
static void phy_del_port(struct phy_device *phydev, struct phy_port *port)
struct phy_port *port = phy_port_alloc();
struct phy_port *tmp, *port;
struct phy_port *port = phy_port_alloc();
struct phy_port *port;
struct phy_port *port;
struct phy_port *phy_get_sfp_port(struct phy_device *phydev)
struct phy_port *port;
void phy_port_update_supported(struct phy_port *port)
static void phy_port_filter_supported(struct phy_port *port)
struct phy_port *phy_port_alloc(void)
int phy_port_restrict_mediums(struct phy_port *port, unsigned long mediums)
struct phy_port *port;
int phy_port_get_type(struct phy_port *port)
void phy_port_destroy(struct phy_port *port)
struct phy_port *phy_of_parse_port(struct device_node *dn)
struct phy_port *port;
static int at803x_configure_mii(struct phy_port *port, bool enable,
struct phy_port *port)
static int qca807x_configure_serdes(struct phy_port *port, bool enable,
struct phy_port *port)
u8 phy_port;
phy_port = tb_phy_port_from_link(TBNET_L0_PORT_NUM(xd->route));
addr[0] = phy_port << 4 | 0x02;
u8 phy_port;
static int icm_reset_phy_port(struct tb *tb, int phy_port)
if (phy_port) {
u8 phy_port;
phy_port = tb_phy_port_from_link(xd->link);
if (phy_port == 0)
u8 phy_port, sw_phy_port;
phy_port = tb_phy_port_from_link(link);
if (sw->depth == depth && sw_phy_port == phy_port &&
u8 xd_phy_port, phy_port;
phy_port = phy_port_from_route(route, depth);
if (xd->depth == depth && xd_phy_port == phy_port) {
int phy_port = tb_phy_port_from_link(port->port);
index = !phy_port ? 6 : 7;
index = !phy_port ? 6 : 8;
index = !phy_port ? 8 : 9;
int (*attach_mii_port)(struct phy_device *dev, struct phy_port *port);
int (*attach_mdi_port)(struct phy_device *dev, struct phy_port *port);
struct phy_port *phy_get_sfp_port(struct phy_device *phydev);
struct phy_port;
struct phy_port;
void (*link_up)(struct phy_port *port);
void (*link_down)(struct phy_port *port);
int (*configure_mii)(struct phy_port *port, bool enable, phy_interface_t interface);
struct phy_port *phy_port_alloc(void);
void phy_port_destroy(struct phy_port *port);
static inline struct phy_device *port_phydev(struct phy_port *port)
struct phy_port *phy_of_parse_port(struct device_node *dn);
static inline bool phy_port_is_copper(struct phy_port *port)
static inline bool phy_port_is_fiber(struct phy_port *port)
void phy_port_update_supported(struct phy_port *port);
int phy_port_restrict_mediums(struct phy_port *port, unsigned long mediums);
int phy_port_get_type(struct phy_port *port);