/freebsd-11-stable/sys/dev/isci/scil/ |
H A D | scic_sds_phy_registers.h | 60 * @brief This file contains the macros used by the phy object to read/write 75 * Macro to read the transport layer register associated with this phy 78 #define scu_transport_layer_read(phy, reg) \ 80 scic_sds_phy_get_controller(phy), \ 81 (phy)->transport_layer_registers->reg \ 85 * Macro to write the transport layer register associated with this phy 88 #define scu_transport_layer_write(phy, reg, value) \ 90 scic_sds_phy_get_controller(phy), \ 91 (phy)->transport_layer_registers->reg, \ 96 //* Transport Layer registers controlled by the phy objec [all...] |
H A D | scic_phy.h | 61 * by an SCIC user on a phy (SAS or SATA) object. 84 * supplied phy. This field may be set to SCI_INVALID_HANDLE 85 * if the phy is not currently contained in a port. 90 * This field specifies the maximum link rate for which this phy 96 * This field specifies the link rate at which the phy is 103 * transmitted to the connected phy. 108 * This field specifies the index of the phy in relation to other 118 * SAS phy, that can be retrieved. 139 * SATA phy, that can be retrieved. 151 * on the specified phy [all...] |
H A D | scic_sds_phy.h | 75 * This is the timeout value for the SATA phy to wait for a SIGNATURE FIS 160 * Debug code to record the state transitions for the phy object 177 * @brief This enumeration provides a named phy type for the state machine 182 * This is an unknown phy type since there is either nothing on the other 183 * end or we have not detected the phy type as yet. 204 * represent the core phy object and SCU hardware protocol engine. 211 * This field specifies the port object that owns/contains this phy. 216 * This field indicates whether the phy supports 1.5 Gb/s, 3.0 Gb/s, 222 * This member specifies the protocol being utilized on this phy. This 224 * a remote phy [all...] |
/freebsd-11-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_phy.h | 31 extern int arswitch_readphy_external(device_t dev, int phy, int reg); 32 extern int arswitch_writephy_external(device_t dev, int phy, int reg, int data); 34 extern int arswitch_readphy_internal(device_t dev, int phy, int reg); 35 extern int arswitch_writephy_internal(device_t dev, int phy, int reg, int data);
|
H A D | arswitch_reg.c | 65 arswitch_split_setpage(device_t dev, uint32_t addr, uint16_t *phy, argument 72 *phy = (addr >> 6) & 0x7; 90 uint16_t phy, reg; local 92 arswitch_split_setpage(dev, addr, &phy, ®); 93 return (MDIO_READREG(device_get_parent(dev), 0x10 | phy, reg)); 102 uint16_t phy, reg; local 104 arswitch_split_setpage(dev, addr, &phy, ®); 105 return (MDIO_WRITEREG(device_get_parent(dev), 0x10 | phy, reg, data)); 118 arswitch_writedbg(device_t dev, int phy, uint16_t dbg_addr, argument 121 (void) MDIO_WRITEREG(device_get_parent(dev), phy, local 123 (void) MDIO_WRITEREG(device_get_parent(dev), phy, local 128 arswitch_writemmd(device_t dev, int phy, uint16_t dbg_addr, uint16_t dbg_data) argument 131 (void) MDIO_WRITEREG(device_get_parent(dev), phy, local 133 (void) MDIO_WRITEREG(device_get_parent(dev), phy, local 138 arswitch_reg_read32(device_t dev, int phy, int reg) argument 148 arswitch_reg_write32(device_t dev, int phy, int reg, uint32_t value) argument 176 uint16_t phy, reg; local 186 uint16_t phy, reg; local 233 uint16_t phy, reg; local 247 uint16_t phy, reg; local [all...] |
H A D | arswitch_phy.c | 75 arswitch_readphy_external(device_t dev, int phy, int reg) argument 83 ret = (MDIO_READREG(device_get_parent(dev), phy, reg)); 90 arswitch_writephy_external(device_t dev, int phy, int reg, int data) argument 97 (void) MDIO_WRITEREG(device_get_parent(dev), phy, local 109 arswitch_readphy_internal(device_t dev, int phy, int reg) argument 119 if (phy < 0 || phy >= 32) 133 (phy << AR8X16_MDIO_CTRL_PHY_ADDR_SHIFT) | 135 DEVERR(dev, err, "arswitch_readphy()=%d: phy=%d.%02x\n", phy, re 158 arswitch_writephy_internal(device_t dev, int phy, int reg, int data) argument [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_phy.c | 79 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 },/* 1 Mb */ 80 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 },/* 2 Mb */ 81 [2] = { .phy = CCK, 5500, 0x04, B(11), 1 },/* 5.5 Mb */ 82 [3] = { .phy = CCK, 11000, 0x04, B(22), 1 },/* 11 Mb */ 83 [4] = { .phy = PBCC, 22000, 0x04, 44, 3 } /* 22 Mb */ 92 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 }, 93 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 }, 94 [2] = { .phy = CCK, 5500, 0x04, B(11), 2 }, 95 [3] = { .phy = CCK, 11000, 0x04, B(22), 3 }, 96 [4] = { .phy [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | atm1 | 108 for phy in ${atmdev}; do 109 echo -n "Configuring ATM device ${phy}:" 112 eval netif_args=\$atm_netif_${phy} 114 atm set netif ${phy} ${netif_args} || continue 121 eval macaddr_args=\$atm_macaddr_${phy} 127 atm set mac ${phy} ${macaddr_args} || continue 133 eval sigmgr_args=\$atm_sigmgr_${phy} 135 atm attach ${phy} ${sigmgr_args} || continue 142 eval prefix_args=\$atm_prefix_${phy} 154 atm set prefix ${phy} [all...] |
/freebsd-11-stable/sys/dev/e1000/ |
H A D | e1000_phy.c | 72 struct e1000_phy_info *phy = &hw->phy; local 76 phy->ops.init_params = e1000_null_ops_generic; 77 phy->ops.acquire = e1000_null_ops_generic; 78 phy->ops.check_polarity = e1000_null_ops_generic; 79 phy->ops.check_reset_block = e1000_null_ops_generic; 80 phy->ops.commit = e1000_null_ops_generic; 81 phy->ops.force_speed_duplex = e1000_null_ops_generic; 82 phy->ops.get_cfg_done = e1000_null_ops_generic; 83 phy 220 struct e1000_phy_info *phy = &hw->phy; local 286 struct e1000_phy_info *phy = &hw->phy; local 351 struct e1000_phy_info *phy = &hw->phy; local 417 struct e1000_phy_info *phy = &hw->phy; local 464 struct e1000_phy_info *phy = &hw->phy; local 1114 struct e1000_phy_info *phy = &hw->phy; local 1266 struct e1000_phy_info *phy = &hw->phy; local 1363 struct e1000_phy_info *phy = &hw->phy; local 1473 struct e1000_phy_info *phy = &hw->phy; local 1626 struct e1000_phy_info *phy = &hw->phy; local 1743 struct e1000_phy_info *phy = &hw->phy; local 1809 struct e1000_phy_info *phy = &hw->phy; local 1948 struct e1000_phy_info *phy = &hw->phy; local 2079 struct e1000_phy_info *phy = &hw->phy; local 2163 struct e1000_phy_info *phy = &hw->phy; local 2208 struct e1000_phy_info *phy = &hw->phy; local 2235 struct e1000_phy_info *phy = &hw->phy; local 2278 struct e1000_phy_info *phy = &hw->phy; local 2409 struct e1000_phy_info *phy = &hw->phy; local 2435 struct e1000_phy_info *phy = &hw->phy; local 2558 struct e1000_phy_info *phy = &hw->phy; local 2628 struct e1000_phy_info *phy = &hw->phy; local 2703 struct e1000_phy_info *phy = &hw->phy; local 2765 struct e1000_phy_info *phy = &hw->phy; local 2853 struct e1000_phy_info *phy = &hw->phy; local 3879 struct e1000_phy_info *phy = &hw->phy; local 3903 struct e1000_phy_info *phy = &hw->phy; local 3952 struct e1000_phy_info *phy = &hw->phy; local 4015 struct e1000_phy_info *phy = &hw->phy; local [all...] |
H A D | e1000_82541.c | 87 struct e1000_phy_info *phy = &hw->phy; local 92 phy->addr = 1; 93 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 94 phy->reset_delay_us = 10000; 95 phy->type = e1000_phy_igp; 98 phy->ops.check_polarity = e1000_check_polarity_igp; 99 phy->ops.force_speed_duplex = e1000_phy_force_speed_duplex_igp; 100 phy->ops.get_cable_length = e1000_get_cable_length_igp_82541; 101 phy 447 struct e1000_phy_info *phy = &hw->phy; local 535 struct e1000_phy_info *phy = &hw->phy; local 671 struct e1000_phy_info *phy = &hw->phy; local 874 struct e1000_phy_info *phy = &hw->phy; local 947 struct e1000_phy_info *phy = &hw->phy; local [all...] |
H A D | e1000_82575.c | 165 struct e1000_phy_info *phy = &hw->phy; local 171 phy->ops.read_i2c_byte = e1000_read_i2c_byte_generic; 172 phy->ops.write_i2c_byte = e1000_write_i2c_byte_generic; 174 if (hw->phy.media_type != e1000_media_type_copper) { 175 phy->type = e1000_phy_none; 179 phy->ops.power_up = e1000_power_up_phy_copper; 180 phy->ops.power_down = e1000_power_down_phy_copper_82575; 182 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; 183 phy 662 struct e1000_phy_info *phy = &hw->phy; local 765 struct e1000_phy_info *phy = &hw->phy; local 812 struct e1000_phy_info *phy = &hw->phy; local 898 struct e1000_phy_info *phy = &hw->phy; local 945 struct e1000_phy_info *phy = &hw->phy; local 1235 struct e1000_phy_info *phy = &hw->phy; local 2060 struct e1000_phy_info *phy = &hw->phy; local 2830 struct e1000_phy_info *phy = &hw->phy; local 2919 struct e1000_phy_info *phy = &hw->phy; local 3076 struct e1000_phy_info *phy = &hw->phy; local 3158 struct e1000_phy_info *phy = &hw->phy; local [all...] |
/freebsd-11-stable/sys/dev/cxgb/common/ |
H A D | cxgb_aq100x.c | 67 #define AQ_WRITE_REGS(phy, regs) do { \ 70 (void) mdio_write(phy, regs[i].mmd, regs[i].reg, regs[i].val); \ 73 #define AQ_READ_REGS(phy, regs) do { \ 76 (void) mdio_read(phy, regs[i].mmd, regs[i].reg, &v); \ 84 aq100x_temperature(struct cphy *phy) argument 88 if (mdio_read(phy, MDIO_DEV_VEND1, AQ_THERMAL2, &v) || 92 if (mdio_read(phy, MDIO_DEV_VEND1, AQ_THERMAL1, &v)) 99 aq100x_set_defaults(struct cphy *phy) argument 101 return mdio_write(phy, MDIO_DEV_VEND1, AQ_THERMAL_THR, 0x6c00); 105 aq100x_reset(struct cphy *phy, in argument 115 aq100x_intr_enable(struct cphy *phy) argument 133 aq100x_intr_disable(struct cphy *phy) argument 151 aq100x_intr_clear(struct cphy *phy) argument 167 aq100x_vendor_intr(struct cphy *phy, int *rc) argument 203 aq100x_intr_handler(struct cphy *phy) argument 227 aq100x_power_down(struct cphy *phy, int off) argument 256 aq100x_autoneg_enable(struct cphy *phy) argument 269 aq100x_autoneg_restart(struct cphy *phy) argument 275 aq100x_advertise(struct cphy *phy, unsigned int advertise_map) argument 316 aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument 323 aq100x_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument 353 aq100x_get_link_status(struct cphy *phy, int *link_state, int *speed, int *duplex, int *fc) argument 467 struct cphy *phy = &pinfo->phy; local [all...] |
H A D | cxgb_tn1010.c | 76 static int tn1010_reset(struct cphy *phy, int wait) argument 78 int err = t3_phy_reset(phy, MDIO_DEV_PMA_PMD, wait); 83 static int tn1010_power_down(struct cphy *phy, int enable) argument 85 return t3_mdio_change_bits(phy, MDIO_DEV_PMA_PMD, MII_BMCR, 89 static int tn1010_autoneg_enable(struct cphy *phy) argument 93 err = tn1010_power_down(phy, 0); 95 err = t3_mdio_change_bits(phy, MDIO_DEV_ANEG, MII_BMCR, 0, 100 static int tn1010_autoneg_restart(struct cphy *phy) argument 104 err = tn1010_power_down(phy, 0); 106 err = t3_mdio_change_bits(phy, MDIO_DEV_ANE 111 tn1010_advertise(struct cphy *phy, unsigned int advert) argument 132 tn1010_get_link_status(struct cphy *phy, int *link_state, int *speed, int *duplex, int *fc) argument 177 tn1010_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument [all...] |
H A D | cxgb_vsc8211.c | 275 static int vsc8211_set_automdi(struct cphy *phy, int enable) argument 279 if ((err = mdio_write(phy, 0, VSC8211_EXT_PAGE_AXS, 0x52b5)) != 0 || 280 (err = mdio_write(phy, 0, 18, 0x12)) != 0 || 281 (err = mdio_write(phy, 0, 17, enable ? 0x2803 : 0x3003)) != 0 || 282 (err = mdio_write(phy, 0, 16, 0x87fa)) != 0 || 283 (err = mdio_write(phy, 0, VSC8211_EXT_PAGE_AXS, 0)) != 0) 288 static int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument 292 err = t3_set_phy_speed_duplex(phy, speed, duplex); 294 err = vsc8211_set_automdi(phy, 1); 404 /* What phy i 405 struct cphy *phy = &portinfo->phy; local 432 struct cphy *phy = &pinfo->phy; local [all...] |
/freebsd-11-stable/sys/dev/extres/phy/ |
H A D | phy.h | 25 * $FreeBSD: stable/11/sys/dev/extres/phy/phy.h 332025 2018-04-04 13:23:06Z mmel $ 40 typedef struct phy *phy_t; 46 phandle_t ofw_node; /* OFW node of phy */ 79 phy_t *phy); 80 void phy_release(phy_t phy); 81 int phy_enable(phy_t phy); 82 int phy_disable(phy_t phy); 83 int phy_status(phy_t phy, int *value); 87 phy_t *phy); [all...] |
H A D | phy.c | 28 __FBSDID("$FreeBSD: stable/11/sys/dev/extres/phy/phy.c 332025 2018-04-04 13:23:06Z mmel $"); 45 #include <dev/extres/phy/phy.h> 49 MALLOC_DEFINE(M_PHY, "phy", "Phy framework"); 52 struct phy; 56 typedef TAILQ_HEAD(phy_list, phy) phy_list_t; 58 /* Default phy methods. */ 93 phandle_t ofw_node; /* OFW node of phy */ 95 struct sx lock; /* Lock for this phy */ 100 struct phy { struct 348 struct phy *phy; local 366 phy_enable(phy_t phy) argument 384 phy_disable(phy_t phy) argument 404 phy_status(phy_t phy, int *status) argument 420 phy_get_by_id(device_t consumer_dev, device_t provider_dev, intptr_t id, phy_t *phy) argument 439 phy_release(phy_t phy) argument 496 phy_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, phy_t *phy) argument 532 phy_get_by_ofw_name(device_t consumer_dev, phandle_t cnode, char *name, phy_t *phy) argument 551 phy_get_by_ofw_property(device_t consumer_dev, phandle_t cnode, char *name, phy_t *phy) argument [all...] |
/freebsd-11-stable/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 53 uint8_t phy; /* CCK/OFDM/TURBO */ member in struct:ieee80211_rate_table::__anon13718 104 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 },/* 1 Mb */ 105 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 },/* 2 Mb */ 106 [2] = { .phy = CCK, 5500, 0x04, B(11), 1 },/* 5.5 Mb */ 107 [3] = { .phy = CCK, 11000, 0x04, B(22), 1 },/* 11 Mb */ 108 [4] = { .phy = PBCC, 22000, 0x04, 44, 3 } /* 22 Mb */ 117 [0] = { .phy = CCK, 1000, 0x00, B(2), 0 }, 118 [1] = { .phy = CCK, 2000, 0x04, B(4), 1 }, 119 [2] = { .phy = CCK, 5500, 0x04, B(11), 2 }, 120 [3] = { .phy [all...] |
/freebsd-11-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x_phy.c | 54 ip17x_readphy(device_t dev, int phy, int reg) argument 62 if (phy < 0 || phy >= 32) 68 data = MDIO_READREG(device_get_parent(dev), phy, reg); 75 ip17x_writephy(device_t dev, int phy, int reg, int data) argument 83 if (phy < 0 || phy >= 32) 89 err = MDIO_WRITEREG(device_get_parent(dev), phy, reg, data); 96 ip17x_updatephy(device_t dev, int phy, int reg, int mask, int value) argument 100 val = ip17x_readphy(dev, phy, re [all...] |
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | ixgbe_phy.c | 116 u32 swfw_mask = hw->phy.phy_semaphore_mask; 194 u32 swfw_mask = hw->phy.phy_semaphore_mask; 254 struct ixgbe_phy_info *phy = &hw->phy; local 259 phy->ops.identify = ixgbe_identify_phy_generic; 260 phy->ops.reset = ixgbe_reset_phy_generic; 261 phy->ops.read_reg = ixgbe_read_phy_reg_generic; 262 phy->ops.write_reg = ixgbe_write_phy_reg_generic; 263 phy->ops.read_reg_mdi = ixgbe_read_phy_reg_mdi; 264 phy [all...] |
/freebsd-11-stable/sys/dev/mii/ |
H A D | ukphy_subr.c | 59 ukphy_status(struct mii_softc *phy) argument 61 struct mii_data *mii = phy->mii_pdata; 68 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); 72 bmcr = PHY_READ(phy, MII_BMCR); 94 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); 95 if ((phy->mii_flags & MIIF_HAVE_GTCR) != 0 && 96 (phy->mii_extcapabilities & 98 gtcr = PHY_READ(phy, MII_100T2C [all...] |
H A D | mii_bitbang.h | 51 int phy, int reg); 54 int phy, int reg, int val);
|
H A D | rlphy.c | 163 rlphy_status(struct mii_softc *phy) argument 165 struct mii_data *mii = phy->mii_pdata; 172 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); 176 bmcr = PHY_READ(phy, MII_BMCR); 198 if ((anlpar = PHY_READ(phy, MII_ANAR) & 199 PHY_READ(phy, MII_ANLPAR))) { 214 mii_phy_flowstatus(phy); 244 if (!(phy->mii_mpd_model == 0 && phy [all...] |
/freebsd-11-stable/sys/dev/mdio/ |
H A D | mdio.c | 73 mdio_readreg(device_t dev, int phy, int reg) argument 76 return (MDIO_READREG(device_get_parent(dev), phy, reg)); 80 mdio_writereg(device_t dev, int phy, int reg, int val) argument 83 return (MDIO_WRITEREG(device_get_parent(dev), phy, reg, val)); 87 mdio_readextreg(device_t dev, int phy, int devad, int reg) argument 90 return (MDIO_READEXTREG(device_get_parent(dev), phy, devad, reg)); 94 mdio_writeextreg(device_t dev, int phy, int devad, int reg, argument 98 return (MDIO_WRITEEXTREG(device_get_parent(dev), phy, devad, reg, val));
|
/freebsd-11-stable/sys/dev/bxe/ |
H A D | bxe_elink.c | 757 typedef elink_status_t (*read_sfp_module_eeprom_func_p)(struct elink_phy *phy, 948 static elink_status_t elink_sfp_module_detection(struct elink_phy *phy, 2246 /* Set mdio clock per phy */ 2250 params->phy[phy_index].mdio_ctrl); 2543 if (!(params->phy[ELINK_INT_PHY].flags & ELINK_FLAGS_TX_ERROR_CHECK)) { 2574 (params->phy[ELINK_INT_PHY].supported & 3173 /* XGXS control: Reset phy HW, MDIO registers, PHY PLL and BMAC */ 3371 * phy has a default access mode, which could also be overridden 3373 * default phy configuration, or the nvram overrun 3413 struct elink_phy *phy, 3412 elink_cl22_write(struct bxe_softc *sc, struct elink_phy *phy, uint16_t reg, uint16_t val) argument 3447 elink_cl22_read(struct bxe_softc *sc, struct elink_phy *phy, uint16_t reg, uint16_t *ret_val) argument 3489 elink_cl45_read(struct bxe_softc *sc, struct elink_phy *phy, uint8_t devad, uint16_t reg, uint16_t *ret_val) argument 3566 elink_cl45_write(struct bxe_softc *sc, struct elink_phy *phy, uint8_t devad, uint16_t reg, uint16_t val) argument 3779 elink_eee_disable(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 3795 elink_eee_advertise(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint8_t modes) argument 3832 elink_eee_an_resolve(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 3992 elink_cl45_read_or_write(struct bxe_softc *sc, struct elink_phy *phy, uint8_t devad, uint16_t reg, uint16_t or_val) argument 4000 elink_cl45_read_and_write(struct bxe_softc *sc, struct elink_phy *phy, uint8_t devad, uint16_t reg, uint16_t and_val) argument 4043 elink_get_warpcore_lane(struct elink_phy *phy, struct elink_params *params) argument 4098 elink_set_aer_mmd(struct elink_params *params, struct elink_phy *phy) argument 4168 elink_xgxs_specific_func(struct elink_phy *phy, struct elink_params *params, uint32_t action) argument 4201 elink_calc_ieee_aneg_adv(struct elink_phy *phy, struct elink_params *params, uint16_t *ieee_fc) argument 4283 elink_ext_phy_set_pause(struct elink_params *params, struct elink_phy *phy, struct elink_vars *vars) argument 4310 elink_pause_resolve(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint32_t pause_result) argument 4357 elink_ext_phy_update_adv_fc(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 4412 elink_ext_phy_resolve_fc(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 4461 elink_warpcore_enable_AN_KR2(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 4500 elink_disable_kr2(struct elink_params *params, struct elink_vars *vars, struct elink_phy *phy) argument 4535 elink_warpcore_set_lpi_passthrough(struct elink_phy *phy, struct elink_params *params) argument 4547 elink_warpcore_restart_AN_KR(struct elink_phy *phy, struct elink_params *params) argument 4562 elink_warpcore_enable_AN_KR(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 4714 elink_warpcore_set_10G_KR(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 4782 elink_warpcore_set_10G_XFI(struct elink_phy *phy, struct elink_params *params, uint8_t is_xfi) argument 4917 elink_warpcore_set_20G_force_KR2(struct elink_phy *phy, struct elink_params *params) argument 4970 elink_warpcore_set_20G_DXGXS(struct bxe_softc *sc, struct elink_phy *phy, uint16_t lane) argument 5024 elink_warpcore_set_sgmii_speed(struct elink_phy *phy, struct elink_params *params, uint8_t fiber_mode, uint8_t always_autoneg) argument 5107 elink_warpcore_reset_lane(struct bxe_softc *sc, struct elink_phy *phy, uint8_t reset) argument 5126 elink_warpcore_clear_regs(struct elink_phy *phy, struct elink_params *params, uint16_t lane) argument 5201 elink_is_sfp_module_plugged(struct elink_phy *phy, struct elink_params *params) argument 5219 elink_warpcore_get_sigdet(struct elink_phy *phy, struct elink_params *params) argument 5233 elink_warpcore_config_runtime(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 5286 elink_warpcore_config_sfi(struct elink_phy *phy, struct elink_params *params) argument 5303 elink_sfp_e3_set_transmitter(struct elink_params *params, struct elink_phy *phy, uint8_t tx_en) argument 5324 elink_warpcore_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 5432 elink_warpcore_link_reset(struct elink_phy *phy, struct elink_params *params) argument 5487 elink_set_warpcore_loopback(struct elink_phy *phy, struct elink_params *params) argument 5706 elink_set_master_ln(struct elink_params *params, struct elink_phy *phy) argument 5727 elink_reset_unicore(struct elink_params *params, struct elink_phy *phy, uint8_t set_serdes) argument 5771 elink_set_swap_lanes(struct elink_params *params, struct elink_phy *phy) argument 5813 elink_set_parallel_detection(struct elink_phy *phy, struct elink_params *params) argument 5866 elink_set_autoneg(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint8_t enable_cl73) argument 5970 elink_program_serdes(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6019 elink_set_brcm_cl37_advertisement(struct elink_phy *phy, struct elink_params *params) argument 6039 elink_set_ieee_aneg_advertisement(struct elink_phy *phy, struct elink_params *params, uint16_t ieee_fc) argument 6060 elink_restart_autoneg(struct elink_phy *phy, struct elink_params *params, uint8_t enable_cl73) argument 6100 elink_initialize_sgmii_process(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6172 elink_direct_parallel_detect_used(struct elink_phy *phy, struct elink_params *params) argument 6206 elink_update_adv_fc(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint32_t gp_status) argument 6253 elink_flow_ctrl_resolve(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint32_t gp_status) argument 6281 elink_check_fallback_to_cl37(struct elink_phy *phy, struct elink_params *params) argument 6349 elink_xgxs_an_resolve(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint32_t gp_status) argument 6362 elink_get_link_speed_duplex(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars, uint16_t is_link_up, uint16_t speed_mask, uint16_t is_duplex) argument 6455 elink_link_settings_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6537 elink_warpcore_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6678 struct elink_phy *phy = ¶ms->phy[ELINK_INT_PHY]; local 6761 elink_set_preemphasis(struct elink_phy *phy, struct elink_params *params) argument 6785 elink_xgxs_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6834 elink_prepare_xgxs(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 6873 elink_wait_reset_complete(struct bxe_softc *sc, struct elink_phy *phy, struct elink_params *params) argument 7108 elink_set_xgxs_loopback(struct elink_phy *phy, struct elink_params *params) argument 7430 struct elink_phy *phy = ¶ms->phy[ELINK_INT_PHY]; local 7483 elink_int_link_reset(struct elink_phy *phy, struct elink_params *params) argument 7491 elink_common_ext_link_reset(struct elink_phy *phy, struct elink_params *params) argument 7733 struct elink_phy *phy = ¶ms->phy[phy_index]; local 7973 elink_save_bcm_spirom_ver(struct bxe_softc *sc, struct elink_phy *phy, uint8_t port) argument 7987 elink_ext_phy_10G_an_resolve(struct bxe_softc *sc, struct elink_phy *phy, struct elink_vars *vars) argument 8007 elink_8073_resolve_fc(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 8040 elink_8073_8727_external_rom_boot(struct bxe_softc *sc, struct elink_phy *phy, uint8_t port) argument 8121 elink_8073_is_snr_needed(struct bxe_softc *sc, struct elink_phy *phy) argument 8147 elink_8073_xaui_wa(struct bxe_softc *sc, struct elink_phy *phy) argument 8203 elink_807x_force_10G(struct bxe_softc *sc, struct elink_phy *phy) argument 8216 elink_8073_set_pause_cl37(struct elink_params *params, struct elink_phy *phy, struct elink_vars *vars) argument 8251 elink_8073_specific_func(struct elink_phy *phy, struct elink_params *params, uint32_t action) argument 8267 elink_8073_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 8415 elink_8073_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 8560 elink_8073_link_reset(struct elink_phy *phy, struct elink_params *params) argument 8579 elink_8705_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 8606 elink_8705_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 8642 elink_set_disable_pmd_transmit(struct elink_params *params, struct elink_phy *phy, uint8_t pmd_dis) argument 8679 elink_sfp_e1e2_set_transmitter(struct elink_params *params, struct elink_phy *phy, uint8_t tx_en) argument 8736 elink_sfp_set_transmitter(struct elink_params *params, struct elink_phy *phy, uint8_t tx_en) argument 8748 elink_8726_read_sfp_module_eeprom(struct elink_phy *phy, struct elink_params *params, uint8_t dev_addr, uint16_t addr, uint8_t byte_cnt, uint8_t *o_buf, uint8_t is_init) argument 8836 elink_warpcore_read_sfp_module_eeprom(struct elink_phy *phy, struct elink_params *params, uint8_t dev_addr, uint16_t addr, uint8_t byte_cnt, uint8_t *o_buf, uint8_t is_init) argument 8879 elink_8727_read_sfp_module_eeprom(struct elink_phy *phy, struct elink_params *params, uint8_t dev_addr, uint16_t addr, uint8_t byte_cnt, uint8_t *o_buf, uint8_t is_init) argument 8974 elink_read_sfp_module_eeprom(struct elink_phy *phy, struct elink_params *params, uint8_t dev_addr, uint16_t addr, uint16_t byte_cnt, uint8_t *o_buf) argument 9015 elink_get_edc_mode(struct elink_phy *phy, struct elink_params *params, uint16_t *edc_mode) argument 9164 elink_verify_sfp_module(struct elink_phy *phy, struct elink_params *params) argument 9238 elink_wait_for_sfp_module_initialized(struct elink_phy *phy, struct elink_params *params) argument 9272 elink_8727_power_module(struct bxe_softc *sc, struct elink_phy *phy, uint8_t is_power_up) argument 9304 elink_8726_set_limiting_mode(struct bxe_softc *sc, struct elink_phy *phy, uint16_t edc_mode) argument 9353 elink_8727_set_limiting_mode(struct bxe_softc *sc, struct elink_phy *phy, uint16_t edc_mode) argument 9387 elink_8727_specific_func(struct elink_phy *phy, struct elink_params *params, uint32_t action) argument 9495 elink_warpcore_hw_reset(struct elink_phy *phy, struct elink_params *params) argument 9509 elink_power_sfp_module(struct elink_params *params, struct elink_phy *phy, uint8_t power) argument 9528 elink_warpcore_set_limiting_mode(struct elink_params *params, struct elink_phy *phy, uint16_t edc_mode) argument 9568 elink_set_limiting_mode(struct elink_params *params, struct elink_phy *phy, uint16_t edc_mode) argument 9586 elink_sfp_module_detection(struct elink_phy *phy, struct elink_params *params) argument 9644 struct elink_phy *phy; local 9713 elink_sfp_mask_fault(struct bxe_softc *sc, struct elink_phy *phy, uint16_t alarm_status_offset, uint16_t alarm_ctrl_offset) argument 9736 elink_8706_8726_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 9798 elink_8706_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 9904 elink_8706_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 9914 elink_8726_config_loopback(struct elink_phy *phy, struct elink_params *params) argument 9922 elink_8726_external_rom_boot(struct elink_phy *phy, struct elink_params *params) argument 9960 elink_8726_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 9981 elink_8726_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 10066 elink_8726_link_reset(struct elink_phy *phy, struct elink_params *params) argument 10081 elink_8727_set_link_led(struct elink_phy *phy, struct elink_params *params, uint8_t mode) argument 10127 elink_8727_hw_reset(struct elink_phy *phy, struct elink_params *params) argument 10142 elink_8727_config_speed(struct elink_phy *phy, struct elink_params *params) argument 10199 elink_8727_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 10285 elink_8727_handle_mod_abs(struct elink_phy *phy, struct elink_params *params) argument 10370 elink_8727_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 10529 elink_8727_link_reset(struct elink_phy *phy, struct elink_params *params) argument 10547 elink_is_8483x_8485x(struct elink_phy *phy) argument 10554 elink_save_848xx_spirom_version(struct elink_phy *phy, struct bxe_softc *sc, uint8_t port) argument 10622 elink_848xx_set_led(struct bxe_softc *sc, struct elink_phy *phy) argument 10661 elink_848xx_specific_func(struct elink_phy *phy, struct elink_params *params, uint32_t action) argument 10684 elink_848xx_cmn_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 10830 elink_8481_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 10850 elink_84858_cmd_hdlr(struct elink_phy *phy, struct elink_params *params, uint16_t fw_cmd, uint16_t cmd_args[], int argc) argument 10927 elink_84833_cmd_hdlr(struct elink_phy *phy, struct elink_params *params, uint16_t fw_cmd, uint16_t cmd_args[], int argc, int process) argument 11006 elink_848xx_cmd_hdlr(struct elink_phy *phy, struct elink_params *params, uint16_t fw_cmd, uint16_t cmd_args[], int argc, int process) argument 11026 elink_848xx_pair_swap_cfg(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 11094 elink_84833_hw_reset_phy(struct elink_phy *phy, struct elink_params *params) argument 11127 elink_8483x_disable_eee(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 11148 elink_8483x_enable_eee(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 11167 elink_848x3_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 11342 elink_848xx_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 11492 elink_8481_hw_reset(struct elink_phy *phy, struct elink_params *params) argument 11501 elink_8481_link_reset(struct elink_phy *phy, struct elink_params *params) argument 11510 elink_848x3_link_reset(struct elink_phy *phy, struct elink_params *params) argument 11537 elink_848xx_set_link_led(struct elink_phy *phy, struct elink_params *params, uint8_t mode) argument 11812 elink_54618se_specific_func(struct elink_phy *phy, struct elink_params *params, uint32_t action) argument 11841 elink_54618se_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 12048 elink_5461x_set_link_led(struct elink_phy *phy, struct elink_params *params, uint8_t mode) argument 12084 elink_54618se_link_reset(struct elink_phy *phy, struct elink_params *params) argument 12109 elink_54618se_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 12216 elink_54618se_config_loopback(struct elink_phy *phy, struct elink_params *params) argument 12259 elink_7101_config_loopback(struct elink_phy *phy, struct elink_params *params) argument 12268 elink_7101_config_init(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 12308 elink_7101_read_status(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 12361 elink_sfx7101_sp_sw_reset(struct bxe_softc *sc, struct elink_phy *phy) argument 12386 elink_7101_hw_reset(struct elink_phy *phy, struct elink_params *params) argument 12396 elink_7101_set_link_led(struct elink_phy *phy, struct elink_params *params, uint8_t mode) argument 12956 elink_populate_preemphasis(struct bxe_softc *sc, uint32_t shmem_base, struct elink_phy *phy, uint8_t port, uint8_t phy_index) argument 13017 elink_populate_int_phy(struct bxe_softc *sc, uint32_t shmem_base, uint8_t port, struct elink_phy *phy) argument 13157 elink_populate_ext_phy(struct bxe_softc *sc, uint8_t phy_index, uint32_t shmem_base, uint32_t shmem2_base, uint8_t port, struct elink_phy *phy) argument 13285 elink_populate_phy(struct bxe_softc *sc, uint8_t phy_index, uint32_t shmem_base, uint32_t shmem2_base, uint8_t port, struct elink_phy *phy) argument 13297 elink_phy_def_cfg(struct elink_params *params, struct elink_phy *phy, uint8_t phy_index) argument 13412 struct elink_phy *phy; local 13836 struct elink_phy *phy = ¶ms->phy[phy_idx]; local 14235 struct elink_phy phy[PORT_MAX]; local 14363 struct elink_phy phy; local 14458 struct elink_phy phy[PORT_MAX]; local 14836 elink_sfp_tx_fault_detection(struct elink_phy *phy, struct elink_params *params, struct elink_vars *vars) argument 14879 elink_kr2_recovery(struct elink_params *params, struct elink_vars *vars, struct elink_phy *phy) argument 14889 elink_check_kr2_wa(struct elink_params *params, struct elink_vars *vars, struct elink_phy *phy) argument 14977 struct elink_phy *phy = ¶ms->phy[ELINK_INT_PHY]; local 15013 struct elink_phy phy; local 15065 struct elink_phy phy; local [all...] |
/freebsd-11-stable/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitch.c | 70 static inline int mtkswitch_portforphy(int phy); 112 int phy, err = 0; local 117 for (phy = 0; phy < sc->numphys; phy++) { 118 if ((sc->phymap & (1u << phy)) == 0) { 119 sc->ifp[phy] = NULL; 120 sc->ifname[phy] = NULL; 121 sc->miibus[phy] = NULL; 124 sc->ifp[phy] 255 int phy; local 275 mtkswitch_portforphy(int phy) argument 291 int phy = mtkswitch_phyforport(port); local 302 int phy = mtkswitch_phyforport(port); local 590 mtkswitch_readphy(device_t dev, int phy, int reg) argument 598 mtkswitch_writephy(device_t dev, int phy, int reg, int val) argument [all...] |