Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 25 of 554) sorted by relevance

12345678910>>...23

/linux-3.4.99/drivers/net/
Dsungem_phy.c50 static inline int __phy_read(struct mii_phy* phy, int id, int reg) in __phy_read() argument
52 return phy->mdio_read(phy->dev, id, reg); in __phy_read()
55 static inline void __phy_write(struct mii_phy* phy, int id, int reg, int val) in __phy_write() argument
57 phy->mdio_write(phy->dev, id, reg, val); in __phy_write()
60 static inline int phy_read(struct mii_phy* phy, int reg) in phy_read() argument
62 return phy->mdio_read(phy->dev, phy->mii_id, reg); in phy_read()
65 static inline void phy_write(struct mii_phy* phy, int reg, int val) in phy_write() argument
67 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in phy_write()
70 static int reset_one_mii_phy(struct mii_phy* phy, int phy_id) in reset_one_mii_phy() argument
75 val = __phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
[all …]
/linux-3.4.99/drivers/scsi/libsas/
Dsas_phy.c36 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local
38 clear_bit(PHYE_LOSS_OF_SIGNAL, &phy->phy_events_pending); in sas_phye_loss_of_signal()
39 phy->error = 0; in sas_phye_loss_of_signal()
40 sas_deform_port(phy, 1); in sas_phye_loss_of_signal()
46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local
48 clear_bit(PHYE_OOB_DONE, &phy->phy_events_pending); in sas_phye_oob_done()
49 phy->error = 0; in sas_phye_oob_done()
55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local
56 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error()
57 struct asd_sas_port *port = phy->port; in sas_phye_oob_error()
[all …]
Dsas_port.c31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
33 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member()
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
49 static void sas_form_port(struct asd_sas_phy *phy) in sas_form_port() argument
52 struct sas_ha_struct *sas_ha = phy->ha; in sas_form_port()
53 struct asd_sas_port *port = phy->port; in sas_form_port()
59 if (!phy_is_wideport_member(port, phy)) in sas_form_port()
60 sas_deform_port(phy, 0); in sas_form_port()
63 __func__, phy->id, phy->port->id, in sas_form_port()
[all …]
Dsas_init.c187 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors() argument
189 if (scsi_is_sas_phy_local(phy)) { in sas_get_linkerrors()
190 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_get_linkerrors()
192 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors()
199 return sas_smp_get_phy_events(phy); in sas_get_linkerrors()
229 static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset) in transport_sas_phy_reset() argument
238 if (scsi_is_sas_phy_local(phy)) { in transport_sas_phy_reset()
239 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in transport_sas_phy_reset()
241 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset()
249 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset()
[all …]
Dsas_expander.c169 static char sas_route_char(struct domain_device *dev, struct ex_phy *phy) in sas_route_char() argument
171 switch (phy->routing_attr) { in sas_route_char()
207 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy() local
209 bool new_phy = !phy->phy; in sas_set_ex_phy()
215 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
218 BUG_ON(!phy->phy); in sas_set_ex_phy()
223 phy->phy_state = PHY_VACANT; in sas_set_ex_phy()
226 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy()
229 phy->phy_state = PHY_EMPTY; /* do not know yet */ in sas_set_ex_phy()
234 dev_type = phy->attached_dev_type; in sas_set_ex_phy()
[all …]
/linux-3.4.99/drivers/net/ethernet/ibm/emac/
Dphy.c34 static inline int _phy_read(struct mii_phy *phy, int reg) in _phy_read() argument
36 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read()
39 static inline void _phy_write(struct mii_phy *phy, int reg, int val) in _phy_write() argument
41 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write()
44 static inline int gpcs_phy_read(struct mii_phy *phy, int reg) in gpcs_phy_read() argument
46 return phy->mdio_read(phy->dev, phy->gpcs_address, reg); in gpcs_phy_read()
49 static inline void gpcs_phy_write(struct mii_phy *phy, int reg, int val) in gpcs_phy_write() argument
51 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write()
54 int emac_mii_reset_phy(struct mii_phy *phy) in emac_mii_reset_phy() argument
59 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy()
[all …]
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() argument
90 err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs()
93 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs()
100 static void ael100x_txon(struct cphy *phy) in ael100x_txon() argument
103 phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL; in ael100x_txon()
106 t3_set_reg_field(phy->adapter, A_T3DBG_GPIO_EN, 0, tx_on_gpio); in ael100x_txon()
113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() argument
118 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL_I2C_CTRL, in ael_i2c_rd()
125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); in ael_i2c_rd()
129 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_DATA, in ael_i2c_rd()
[all …]
Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() argument
71 int err = t3_phy_reset(phy, MDIO_MMD_VEND1, 3000); in aq100x_reset()
74 CH_WARN(phy->adapter, "PHY%d: reset failed (0x%x).\n", in aq100x_reset()
75 phy->mdio.prtad, err); in aq100x_reset()
80 static int aq100x_intr_enable(struct cphy *phy) in aq100x_intr_enable() argument
82 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AQ_IMASK_PMA, IMASK_PMA); in aq100x_intr_enable()
86 err = t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, IMASK_GLOBAL); in aq100x_intr_enable()
90 static int aq100x_intr_disable(struct cphy *phy) in aq100x_intr_disable() argument
92 return t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, 0); in aq100x_intr_disable()
95 static int aq100x_intr_clear(struct cphy *phy) in aq100x_intr_clear() argument
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/igb/
De1000_phy.c86 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() local
90 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
94 phy->id = (u32)(phy_id << 16); in igb_get_phy_id()
96 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
100 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igb_get_phy_id()
101 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igb_get_phy_id()
117 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp()
120 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
124 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
141 struct e1000_phy_info *phy = &hw->phy; in igb_read_phy_reg_mdic() local
[all …]
/linux-3.4.99/drivers/media/video/omap3isp/
Dispcsiphy.c41 static void csiphy_lanes_config(struct isp_csiphy *phy) in csiphy_lanes_config() argument
46 reg = isp_reg_readl(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG); in csiphy_lanes_config()
48 for (i = 0; i < phy->num_data_lanes; i++) { in csiphy_lanes_config()
51 reg |= (phy->lanes.data[i].pol << in csiphy_lanes_config()
53 reg |= (phy->lanes.data[i].pos << in csiphy_lanes_config()
59 reg |= phy->lanes.clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in csiphy_lanes_config()
60 reg |= phy->lanes.clk.pos << ISPCSI2_PHY_CFG_CLOCK_POSITION_SHIFT; in csiphy_lanes_config()
62 isp_reg_writel(phy->isp, reg, phy->cfg_regs, ISPCSI2_PHY_CFG); in csiphy_lanes_config()
69 static void csiphy_power_autoswitch_enable(struct isp_csiphy *phy, bool enable) in csiphy_power_autoswitch_enable() argument
71 isp_reg_clr_set(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG, in csiphy_power_autoswitch_enable()
[all …]
/linux-3.4.99/drivers/usb/otg/
Dulpi.c52 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags() argument
57 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
64 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
67 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
70 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
73 return usb_phy_io_write(phy, flags, ULPI_OTG_CTRL); in ulpi_set_otg_flags()
76 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags() argument
84 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags()
86 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags()
88 else if (phy->flags & ULPI_FC_FS4LS) in ulpi_set_fc_flags()
[all …]
Dmsm_otg.c72 hsusb_vddcx = regulator_get(motg->phy.dev, "HSUSB_VDDCX"); in msm_hsusb_init_vddcx()
74 dev_err(motg->phy.dev, "unable to get hsusb vddcx\n"); in msm_hsusb_init_vddcx()
82 dev_err(motg->phy.dev, "unable to set the voltage " in msm_hsusb_init_vddcx()
90 dev_err(motg->phy.dev, "unable to enable hsusb vddcx\n"); in msm_hsusb_init_vddcx()
97 dev_err(motg->phy.dev, "unable to set the voltage " in msm_hsusb_init_vddcx()
101 dev_err(motg->phy.dev, "unable to disable hsusb vddcx\n"); in msm_hsusb_init_vddcx()
114 hsusb_3p3 = regulator_get(motg->phy.dev, "HSUSB_3p3"); in msm_hsusb_ldo_init()
116 dev_err(motg->phy.dev, "unable to get hsusb 3p3\n"); in msm_hsusb_ldo_init()
123 dev_err(motg->phy.dev, "unable to set voltage level " in msm_hsusb_ldo_init()
129 dev_err(motg->phy.dev, "unable to enable the hsusb 3p3\n"); in msm_hsusb_ldo_init()
[all …]
Dgpio_vbus.c35 struct usb_phy phy; member
101 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
112 gpio_vbus->phy.state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work()
113 gpio_vbus->phy.last_event = status; in gpio_vbus_work()
114 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
123 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
124 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
132 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
134 gpio_vbus->phy.state = OTG_STATE_B_IDLE; in gpio_vbus_work()
135 gpio_vbus->phy.last_event = status; in gpio_vbus_work()
[all …]
/linux-3.4.99/arch/arm/mach-tegra/
Dusb_phy.c211 static inline bool phy_is_ulpi(struct tegra_usb_phy *phy) in phy_is_ulpi() argument
213 return (phy->instance == 1); in phy_is_ulpi()
216 static int utmip_pad_open(struct tegra_usb_phy *phy) in utmip_pad_open() argument
218 phy->pad_clk = clk_get_sys("utmip-pad", NULL); in utmip_pad_open()
219 if (IS_ERR(phy->pad_clk)) { in utmip_pad_open()
221 return PTR_ERR(phy->pad_clk); in utmip_pad_open()
224 if (phy->instance == 0) { in utmip_pad_open()
225 phy->pad_regs = phy->regs; in utmip_pad_open()
227 phy->pad_regs = ioremap(TEGRA_USB_BASE, TEGRA_USB_SIZE); in utmip_pad_open()
228 if (!phy->pad_regs) { in utmip_pad_open()
[all …]
/linux-3.4.99/drivers/net/fddi/skfp/
Dpcmplc.c202 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd);
203 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy);
204 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy);
205 static void reset_lem_struct(struct s_phy *phy);
209 static void sm_ph_linestate(struct s_smc *smc, int phy, int ls);
217 struct s_phy *phy) in start_pcm_timer0() argument
219 phy->timer0_exp = FALSE ; /* clear timer event flag */ in start_pcm_timer0()
220 smt_timer_start(smc,&phy->pcm_timer0,value, in start_pcm_timer0()
221 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0()
227 static void stop_pcm_timer0(struct s_smc *smc, struct s_phy *phy) in stop_pcm_timer0() argument
[all …]
/linux-3.4.99/net/ieee802154/
Dwpan-class.c32 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); \
35 mutex_lock(&phy->pib_lock); \
37 mutex_unlock(&phy->pib_lock); \
42 MASTER_SHOW_COMPLEX(field, format_string, phy->field)
47 ((signed char) (phy->transmit_power << 2)) >> 2,
48 (phy->transmit_power >> 6) ? (phy->transmit_power >> 6) * 3 : 1 );
54 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); in channels_supported_show() local
58 mutex_lock(&phy->pib_lock); in channels_supported_show()
61 "%#09x\n", phy->channels_supported[i]); in channels_supported_show()
66 mutex_unlock(&phy->pib_lock); in channels_supported_show()
[all …]
Dnl-phy.c39 u32 seq, int flags, struct wpan_phy *phy) in ieee802154_nl_fill_phy() argument
55 mutex_lock(&phy->pib_lock); in ieee802154_nl_fill_phy()
56 NLA_PUT_STRING(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)); in ieee802154_nl_fill_phy()
58 NLA_PUT_U8(msg, IEEE802154_ATTR_PAGE, phy->current_page); in ieee802154_nl_fill_phy()
59 NLA_PUT_U8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel); in ieee802154_nl_fill_phy()
61 if (phy->channels_supported[i]) in ieee802154_nl_fill_phy()
62 buf[pages++] = phy->channels_supported[i] | (i << 27); in ieee802154_nl_fill_phy()
68 mutex_unlock(&phy->pib_lock); in ieee802154_nl_fill_phy()
73 mutex_unlock(&phy->pib_lock); in ieee802154_nl_fill_phy()
86 struct wpan_phy *phy; in ieee802154_list_phy() local
[all …]
/linux-3.4.99/drivers/net/wireless/b43legacy/
Dphy.c101 B43legacy_WARN_ON(dev->phy.phy_locked); in b43legacy_phy_lock()
102 dev->phy.phy_locked = 1; in b43legacy_phy_lock()
116 B43legacy_WARN_ON(!dev->phy.phy_locked); in b43legacy_phy_unlock()
117 dev->phy.phy_locked = 0; in b43legacy_phy_unlock()
143 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_calibrate() local
146 if (phy->calibrated) in b43legacy_phy_calibrate()
148 if (phy->type == B43legacy_PHYTYPE_G && phy->rev == 1) { in b43legacy_phy_calibrate()
153 phy->calibrated = 1; in b43legacy_phy_calibrate()
161 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_init_pctl() local
167 B43legacy_BUG_ON(!(phy->type == B43legacy_PHYTYPE_B || in b43legacy_phy_init_pctl()
[all …]
Dradio.c116 struct b43legacy_phy *phy = &dev->phy; in b43legacy_radio_read16() local
118 switch (phy->type) { in b43legacy_radio_read16()
120 if (phy->radio_ver == 0x2053) { in b43legacy_radio_read16()
125 } else if (phy->radio_ver == 0x2050) in b43legacy_radio_read16()
151 struct b43legacy_phy *phy = &dev->phy; in b43legacy_set_all_gains() local
158 if (phy->rev <= 1) { in b43legacy_set_all_gains()
187 struct b43legacy_phy *phy = &dev->phy; in b43legacy_set_original_gains() local
194 if (phy->rev <= 1) { in b43legacy_set_original_gains()
227 struct b43legacy_phy *phy = &dev->phy; in b43legacy_synth_pu_workaround() local
231 if (phy->radio_ver != 0x2050 || phy->radio_rev >= 6) in b43legacy_synth_pu_workaround()
[all …]
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c2155 if (params->phy[INT_PHY].flags & in bnx2x_pfc_brb_get_config_params()
2210 if (params->phy[INT_PHY].flags & in bnx2x_pfc_brb_get_e3b0_config_params()
2996 struct bnx2x_phy *phy, in bnx2x_cl22_write() argument
3003 mode = REG_RD(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE); in bnx2x_cl22_write()
3004 REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE, in bnx2x_cl22_write()
3008 tmp = ((phy->addr << 21) | (reg << 16) | val | in bnx2x_cl22_write()
3011 REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_COMM, tmp); in bnx2x_cl22_write()
3016 tmp = REG_RD(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_COMM); in bnx2x_cl22_write()
3026 REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE, mode); in bnx2x_cl22_write()
3031 struct bnx2x_phy *phy, in bnx2x_cl22_read() argument
[all …]
/linux-3.4.99/drivers/net/wireless/b43/
Dphy_common.c42 struct b43_phy *phy = &(dev->phy); in b43_phy_allocate() local
45 phy->ops = NULL; in b43_phy_allocate()
47 switch (phy->type) { in b43_phy_allocate()
49 phy->ops = &b43_phyops_a; in b43_phy_allocate()
52 phy->ops = &b43_phyops_g; in b43_phy_allocate()
56 phy->ops = &b43_phyops_n; in b43_phy_allocate()
61 phy->ops = &b43_phyops_lp; in b43_phy_allocate()
66 phy->ops = &b43_phyops_ht; in b43_phy_allocate()
71 phy->ops = &b43_phyops_lcn; in b43_phy_allocate()
75 if (B43_WARN_ON(!phy->ops)) in b43_phy_allocate()
[all …]
Dphy_g.c83 struct b43_phy *phy = &dev->phy; in generate_rfatt_list() local
131 if (phy->radio_ver == 0x2050 && phy->radio_rev == 8) { in generate_rfatt_list()
178 struct b43_phy *phy = &dev->phy; in b43_synth_pu_workaround() local
182 if (phy->radio_ver != 0x2050 || phy->radio_rev >= 6) { in b43_synth_pu_workaround()
201 struct b43_phy *phy = &dev->phy; in b43_gphy_set_baseband_attenuation() local
203 if (phy->analog == 0) { in b43_gphy_set_baseband_attenuation()
207 } else if (phy->analog > 1) { in b43_gphy_set_baseband_attenuation()
219 struct b43_phy *phy = &dev->phy; in b43_set_txpower_g() local
220 struct b43_phy_g *gphy = phy->g; in b43_set_txpower_g()
248 if (phy->radio_ver == 0x2050 && phy->radio_rev == 8) { in b43_set_txpower_g()
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/e1000e/
Dphy.c128 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id() local
133 if (!phy->ops.read_reg) in e1000e_get_phy_id()
141 phy->id = (u32)(phy_id << 16); in e1000e_get_phy_id()
147 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000e_get_phy_id()
148 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000e_get_phy_id()
150 if (phy->id != 0 && phy->id != PHY_REVISION_MASK) in e1000e_get_phy_id()
187 struct e1000_phy_info *phy = &hw->phy; in e1000e_read_phy_reg_mdic() local
201 (phy->addr << E1000_MDIC_PHY_SHIFT) | in e1000e_read_phy_reg_mdic()
247 struct e1000_phy_info *phy = &hw->phy; in e1000e_write_phy_reg_mdic() local
262 (phy->addr << E1000_MDIC_PHY_SHIFT) | in e1000e_write_phy_reg_mdic()
[all …]
/linux-3.4.99/drivers/net/ethernet/intel/ixgbe/
Dixgbe_phy.c62 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_identify_phy_generic()
64 hw->phy.mdio.prtad = phy_addr; in ixgbe_identify_phy_generic()
65 if (mdio45_probe(&hw->phy.mdio, phy_addr) == 0) { in ixgbe_identify_phy_generic()
67 hw->phy.type = in ixgbe_identify_phy_generic()
68 ixgbe_get_phy_type_from_id(hw->phy.id); in ixgbe_identify_phy_generic()
70 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_identify_phy_generic()
71 hw->phy.ops.read_reg(hw, in ixgbe_identify_phy_generic()
78 hw->phy.type = in ixgbe_identify_phy_generic()
81 hw->phy.type = in ixgbe_identify_phy_generic()
91 hw->phy.mdio.prtad = 0; in ixgbe_identify_phy_generic()
[all …]
/linux-3.4.99/include/net/
Dwpan-phy.h45 struct net_device *(*add_iface)(struct wpan_phy *phy,
47 void (*del_iface)(struct wpan_phy *phy, struct net_device *dev);
55 static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) in wpan_phy_set_dev() argument
57 phy->dev.parent = dev; in wpan_phy_set_dev()
59 int wpan_phy_register(struct wpan_phy *phy);
60 void wpan_phy_unregister(struct wpan_phy *phy);
61 void wpan_phy_free(struct wpan_phy *phy);
63 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), void *data);
65 static inline void *wpan_phy_priv(struct wpan_phy *phy) in wpan_phy_priv() argument
67 BUG_ON(!phy); in wpan_phy_priv()
[all …]

12345678910>>...23