Searched defs:phy (Results 1 - 25 of 168) sorted by relevance

1234567

/drivers/scsi/aic94xx/
H A Daic94xx_dump.h33 void asd_dump_frame_rcvd(struct asd_phy *phy,
39 static inline void asd_dump_frame_rcvd(struct asd_phy *phy, argument
H A Daic94xx_dump.c903 void asd_dump_frame_rcvd(struct asd_phy *phy, argument
918 spin_lock_irqsave(&phy->sas_phy.frame_rcvd_lock, flags);
919 for (i = 0; i < phy->sas_phy.frame_rcvd_size; i+=4)
922 phy->frame_rcvd[i],
923 phy->frame_rcvd[i+1],
924 phy->frame_rcvd[i+2],
925 phy->frame_rcvd[i+3]);
926 spin_unlock_irqrestore(&phy->sas_phy.frame_rcvd_lock, flags);
/drivers/scsi/libsas/
H A Dsas_event.c37 static void notify_port_event(struct asd_sas_phy *phy, enum port_event event) argument
39 struct sas_ha_struct *ha = phy->ha;
43 sas_queue_event(event, &ha->event_lock, &phy->port_events_pending,
44 &phy->port_events[event].work, ha);
47 static void notify_phy_event(struct asd_sas_phy *phy, enum phy_event event) argument
49 struct sas_ha_struct *ha = phy->ha;
53 sas_queue_event(event, &ha->event_lock, &phy->phy_events_pending,
54 &phy->phy_events[event].work, ha);
H A Dsas_phy.c37 struct asd_sas_phy *phy = ev->phy; local
39 sas_begin_event(PHYE_LOSS_OF_SIGNAL, &phy->ha->event_lock,
40 &phy->phy_events_pending);
41 phy->error = 0;
42 sas_deform_port(phy, 1);
49 struct asd_sas_phy *phy = ev->phy; local
51 sas_begin_event(PHYE_OOB_DONE, &phy->ha->event_lock,
52 &phy
60 struct asd_sas_phy *phy = ev->phy; local
93 struct asd_sas_phy *phy = ev->phy; local
129 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; local
[all...]
H A Dsas_port.c31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) argument
33 struct sas_ha_struct *sas_ha = phy->ha;
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr,
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0))
43 * sas_form_port -- add this phy to a port
44 * @phy: the phy of interest
46 * This function adds this phy to an existing port, thus creating a wide
47 * port, or it creates a port and adds the phy to the port.
49 static void sas_form_port(struct asd_sas_phy *phy) argument
156 sas_deform_port(struct asd_sas_phy *phy, int gone) argument
214 struct asd_sas_phy *phy = ev->phy; local
226 struct asd_sas_phy *phy = ev->phy; local
245 struct asd_sas_phy *phy = ev->phy; local
257 struct asd_sas_phy *phy = ev->phy; local
269 struct asd_sas_phy *phy = ev->phy; local
[all...]
H A Dsas_discover.c72 struct asd_sas_phy *phy; local
86 phy = container_of(port->phy_list.next, struct asd_sas_phy, port_phy_el);
87 spin_lock(&phy->frame_rcvd_lock);
88 memcpy(dev->frame_rcvd, phy->frame_rcvd, min(sizeof(dev->frame_rcvd),
89 (size_t)phy->frame_rcvd_size));
90 spin_unlock(&phy->frame_rcvd_lock);
136 rphy->identify.phy_identifier = phy->phy->identify.phy_identifier;
H A Dsas_host_smp.c25 struct sas_phy *phy; local
34 phy = sas_ha->sas_phy[phy_id]->phy;
36 resp_data[13] = phy->negotiated_linkrate;
40 resp_data[40] = (phy->minimum_linkrate << 4) |
41 phy->minimum_linkrate_hw;
42 resp_data[41] = (phy->maximum_linkrate << 4) |
43 phy->maximum_linkrate_hw;
280 memcpy(resp_data + 20, "libsas virt phy",
/drivers/media/video/omap3isp/
H A Dispcsiphy.c39 * Called with phy->mutex taken.
41 static void csiphy_lanes_config(struct isp_csiphy *phy) argument
46 reg = isp_reg_readl(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG);
48 for (i = 0; i < phy->num_data_lanes; i++) {
51 reg |= (phy->lanes.data[i].pol <<
53 reg |= (phy->lanes.data[i].pos <<
59 reg |= phy->lanes.clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT;
60 reg |= phy->lanes.clk.pos << ISPCSI2_PHY_CFG_CLOCK_POSITION_SHIFT;
62 isp_reg_writel(phy
69 csiphy_power_autoswitch_enable(struct isp_csiphy *phy, bool enable) argument
82 csiphy_set_power(struct isp_csiphy *phy, u32 power) argument
114 csiphy_dphy_config(struct isp_csiphy *phy) argument
141 csiphy_config(struct isp_csiphy *phy, struct isp_csiphy_dphy_cfg *dphy, struct isp_csiphy_lanes_cfg *lanes) argument
173 omap3isp_csiphy_acquire(struct isp_csiphy *phy) argument
208 omap3isp_csiphy_release(struct isp_csiphy *phy) argument
[all...]
H A Dispccp2.h83 struct isp_csiphy *phy; member in struct:isp_ccp2_device
/drivers/of/
H A Dof_mdio.c16 #include <linux/phy.h>
35 struct phy_device *phy; local
80 phy = get_phy_device(mdio, addr);
81 if (!phy || IS_ERR(phy)) {
90 phy->dev.of_node = child;
92 /* All data is now stored in the phy struct; register it */
93 rc = phy_device_register(phy);
95 phy_device_free(phy);
100 dev_dbg(&mdio->dev, "registered phy
145 struct phy_device *phy = of_phy_find_device(phy_np); local
170 struct phy_device *phy; local
[all...]
/drivers/bcma/
H A Ddriver_pci.c35 static void bcma_pcie_mdio_set_phy(struct bcma_drv_pci *pc, u8 phy) argument
46 v |= (phy << 4);
/drivers/net/phy/
H A Dmdio-bitbang.c97 static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg) argument
127 mdiobb_send_num(ctrl, phy, 5);
137 static int mdiobb_cmd_addr(struct mdiobb_ctrl *ctrl, int phy, u32 addr) argument
141 mdiobb_cmd(ctrl, MDIO_C45_ADDR, phy, dev_addr);
155 static int mdiobb_read(struct mii_bus *bus, int phy, int reg) argument
161 reg = mdiobb_cmd_addr(ctrl, phy, reg);
162 mdiobb_cmd(ctrl, MDIO_C45_READ, phy, reg);
164 mdiobb_cmd(ctrl, MDIO_READ, phy, reg);
184 static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val) argument
189 reg = mdiobb_cmd_addr(ctrl, phy, re
[all...]
/drivers/dma/
H A Dcoh901318_lli.c61 dma_addr_t phy; local
68 head = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy);
76 lli->phy_this = phy;
83 lli = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy);
89 lli->phy_this = phy;
93 lli_prev->link_addr = phy;
/drivers/ieee802154/
H A Dfakehard.c33 #include <net/wpan-phy.h>
36 struct wpan_phy *phy; member in struct:fakehard_priv
42 return priv->phy;
46 * fake_get_phy - Return a phy corresponding to this device.
47 * @dev: The network device for which to return the wan-phy object
49 * This function returns a wpan-phy object corresponding to the passed
50 * network device. Reference counter for wpan-phy object is incremented,
51 * so when the wpan-phy isn't necessary, you should drop the reference
56 struct wpan_phy *phy = fake_to_phy(dev); local
57 return to_phy(get_device(&phy
144 struct wpan_phy *phy = fake_to_phy(dev); local
219 struct wpan_phy *phy = fake_to_phy(dev); local
335 struct wpan_phy *phy = fake_to_phy(dev); local
361 struct wpan_phy *phy = wpan_phy_alloc(0); local
[all...]
/drivers/net/ethernet/chelsio/cxgb/
H A Dcphy.h82 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
84 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
85 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
140 static inline void cphy_init(struct cphy *phy, struct net_device *dev, argument
145 phy->adapter = adapter;
146 phy->ops = phy_ops;
148 phy->mdio.prtad = phy_addr;
149 phy->mdio.mmds = phy_ops->mmds;
150 phy->mdio.mode_support = mdio_ops->mode_support;
151 phy
[all...]
H A Dmv88e1xxx.c85 /* Disable all phy interrupts. */
124 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument
128 (void) simple_mdio_read(phy, MII_BMCR, &ctl);
143 (void) simple_mdio_write(phy, MII_BMCR, ctl);
199 static int mv88e1xxx_advertise(struct cphy *phy, unsigned int advertise_map) argument
205 (void) simple_mdio_read(phy, MII_GBCR, &val);
212 (void) simple_mdio_write(phy, MII_GBCR, val);
227 (void) simple_mdio_write(phy, MII_ADVERTISE, val);
/drivers/net/ethernet/chelsio/cxgb3/
H A Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) argument
71 int err = t3_phy_reset(phy, MDIO_MMD_VEND1, 3000);
74 CH_WARN(phy->adapter, "PHY%d: reset failed (0x%x).\n",
75 phy->mdio.prtad, err);
80 static int aq100x_intr_enable(struct cphy *phy) argument
82 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AQ_IMASK_PMA, IMASK_PMA);
86 err = t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, IMASK_GLOBAL);
90 static int aq100x_intr_disable(struct cphy *phy) argument
92 return t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, 0);
95 static int aq100x_intr_clear(struct cphy *phy) argument
105 aq100x_intr_handler(struct cphy *phy) argument
120 aq100x_power_down(struct cphy *phy, int off) argument
127 aq100x_autoneg_enable(struct cphy *phy) argument
140 aq100x_autoneg_restart(struct cphy *phy) argument
153 aq100x_advertise(struct cphy *phy, unsigned int advertise_map) argument
194 aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) argument
201 aq100x_set_speed_duplex(struct cphy *phy, int speed, int duplex) argument
207 aq100x_get_link_status(struct cphy *phy, int *link_ok, int *speed, int *duplex, int *fc) argument
266 t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, const struct mdio_ops *mdio_ops) argument
[all...]
/drivers/net/ethernet/dec/tulip/
H A Dmedia.c462 int phy = phyn & 0x1f; local
463 int mii_status = tulip_mdio_read (dev, phy, MII_BMSR);
472 mii_reg0 = tulip_mdio_read (dev, phy, MII_BMCR);
473 mii_advert = tulip_mdio_read (dev, phy, MII_ADVERTISE);
481 unsigned int tmpadv = tulip_mdio_read (dev, phy, MII_BMSR);
496 tp->phys[phy_idx++] = phy;
499 board_idx, phy, mii_reg0, mii_status, mii_advert);
504 board_idx, to_advert, phy, mii_advert);
505 tulip_mdio_write (dev, phy, 4, to_advert);
541 tulip_mdio_write (dev, phy, MII_BMC
[all...]
/drivers/net/ethernet/ibm/emac/
H A Dphy.c2 * drivers/net/ibm_newemac/phy.c
29 #include "phy.h"
34 static inline int _phy_read(struct mii_phy *phy, int reg) argument
36 return phy->mdio_read(phy->dev, phy->address, reg);
39 static inline void _phy_write(struct mii_phy *phy, int reg, int val) argument
41 phy->mdio_write(phy->dev, phy
44 gpcs_phy_read(struct mii_phy *phy, int reg) argument
49 gpcs_phy_write(struct mii_phy *phy, int reg, int val) argument
54 emac_mii_reset_phy(struct mii_phy *phy) argument
78 emac_mii_reset_gpcs(struct mii_phy *phy) argument
109 genmii_setup_aneg(struct mii_phy *phy, u32 advertise) argument
168 genmii_setup_forced(struct mii_phy *phy, int speed, int fd) argument
205 genmii_poll_link(struct mii_phy *phy) argument
219 genmii_read_link(struct mii_phy *phy) argument
305 cis8201_init(struct mii_phy *phy) argument
366 m88e1111_init(struct mii_phy *phy) argument
379 m88e1112_init(struct mii_phy *phy) argument
406 et1011c_init(struct mii_phy *phy) argument
483 emac_mii_phy_probe(struct mii_phy *phy, int address) argument
[all...]
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c29 #include <linux/phy.h>
206 struct phy_device *phy = priv->phydev; local
208 if (phy == NULL) {
220 rc = phy_ethtool_gset(phy, cmd);
229 struct phy_device *phy = priv->phydev; local
233 rc = phy_ethtool_sset(phy, cmd);
320 struct phy_device *phy = priv->phydev; local
332 phy->autoneg = pause->autoneg;
334 if (phy->autoneg) {
336 ret = phy_start_aneg(phy);
[all...]
/drivers/net/fddi/skfp/
H A Dcfm.c120 static void selection_criteria (struct s_smc *smc, struct s_phy *phy) argument
123 switch (phy->mib->fddiPORTMy_Type) {
126 phy->wc_flag = TRUE ;
128 phy->wc_flag = FALSE ;
134 phy->wc_flag = FALSE ;
137 phy->wc_flag = FALSE ;
140 phy->wc_flag = FALSE ;
148 struct s_phy *phy ; local
151 for ( p = 0,phy = smc->y ; p < NUMPHYS; p++, phy
[all...]
/drivers/net/wireless/ath/carl9170/
H A Drx.c446 struct ar9170_rx_phystatus *phy, struct ieee80211_rx_status *status)
453 if (phy->rssi[i] != 0x80)
458 if (phy->rssi[i] & 0x80)
459 phy->rssi[i] = ((phy->rssi[i] & 0x7f) + 1) & 0x7f;
462 status->signal = ar->noise[0] + phy->rssi_combined;
628 struct ar9170_rx_phystatus *phy = NULL; local
678 * which does contain the phy status of the whole
684 phy = (void *)(buf + mpdu_len);
710 /* single mpdu has both: plcp (head) and phy statu
445 carl9170_rx_phy_status(struct ar9170 *ar, struct ar9170_rx_phystatus *phy, struct ieee80211_rx_status *status) argument
[all...]
/drivers/net/wireless/b43/
H A Dphy_a.c67 struct b43_phy *phy = &dev->phy;
68 struct b43_phy_a *aphy = phy->a;
176 aphy_channel_switch(dev, dev->phy.ops->get_default_chan(dev));
185 if (dev->phy.rev < 3) {
268 struct b43_phy *phy = &dev->phy; local
271 * So we must not access phy->a, if called from G-PHY code.
273 B43_WARN_ON((phy->type != B43_PHYTYPE_A) &&
274 (phy
321 struct b43_phy *phy = &dev->phy; local
379 struct b43_phy *phy = &dev->phy; local
401 struct b43_phy *phy = &dev->phy; local
486 struct b43_phy *phy = &dev->phy; local
521 struct b43_phy *phy = &dev->phy; local
[all...]
H A Dphy_ht.c294 struct b43_phy *phy = &dev->phy; local
298 if (phy->radio_ver == 0x2059) {
309 if (phy->radio_ver == 0x2059) {
331 dev->phy.ht = phy_ht;
338 struct b43_phy *phy = &dev->phy; local
339 struct b43_phy_ht *phy_ht = phy->ht;
470 struct b43_phy *phy = &dev->phy; local
[all...]
H A Dwa.c62 struct b43_phy *phy = &dev->phy; local
66 if (phy->rev <= 2)
74 if (phy->rev <= 3)
76 else if (phy->rev == 5) {
80 if (phy->rev >= 3)
92 if (dev->phy.rev <= 2) {
136 struct b43_phy *phy = &dev->phy; local
141 if (phy
176 struct b43_phy *phy = &dev->phy; local
222 struct b43_phy *phy = &dev->phy; local
282 struct b43_phy *phy = &dev->phy; local
310 struct b43_phy *phy = &dev->phy; local
366 struct b43_phy *phy = &dev->phy; local
488 struct b43_phy *phy = &dev->phy; local
519 struct b43_phy *phy = &dev->phy; local
[all...]

Completed in 482 milliseconds

1234567