Home
last modified time | relevance | path

Searched refs:phy_addr (Results 1 – 25 of 139) sorted by relevance

123456

/linux-2.6.39/drivers/staging/octeon/
Dcvmx-helper-board.c194 int phy_addr; in __cvmx_helper_board_link_get() local
254 phy_addr = cvmx_helper_board_get_mii_address(ipd_port); in __cvmx_helper_board_link_get()
255 if (phy_addr != -1) { in __cvmx_helper_board_link_get()
263 cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, in __cvmx_helper_board_link_get()
315 cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, 17); in __cvmx_helper_board_link_get()
325 cvmx_mdio_read(phy_addr >> 8, in __cvmx_helper_board_link_get()
326 phy_addr & 0xff, 0); in __cvmx_helper_board_link_get()
418 int cvmx_helper_board_link_set_phy(int phy_addr, in cvmx_helper_board_link_set_phy() argument
429 cvmx_mdio_read(phy_addr >> 8, phy_addr & 0xff, in cvmx_helper_board_link_set_phy()
437 cvmx_mdio_write(phy_addr >> 8, phy_addr & 0xff, in cvmx_helper_board_link_set_phy()
[all …]
Dethernet-mdio.c166 int phy_addr = cvmx_helper_board_get_mii_address(priv->port); in cvm_oct_phy_setup_device() local
167 if (phy_addr != -1) { in cvm_oct_phy_setup_device()
170 snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, "0", phy_addr); in cvm_oct_phy_setup_device()
/linux-2.6.39/arch/mips/cavium-octeon/executive/
Dcvmx-bootmem.c398 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags) in __cvmx_bootmem_phy_free() argument
406 (unsigned long long)phy_addr, (unsigned long long)size); in __cvmx_bootmem_phy_free()
424 if (cur_addr == 0 || phy_addr < cur_addr) { in __cvmx_bootmem_phy_free()
426 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
428 else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
430 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
433 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
436 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
440 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
441 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
[all …]
/linux-2.6.39/drivers/net/
Ddl2k.c82 static int mii_read (struct net_device *dev, int phy_addr, int reg_num);
83 static int mii_write (struct net_device *dev, int phy_addr, int reg_num,
307 np->phy_addr = 1; in find_miiphy()
312 np->phy_addr = i; in find_miiphy()
1203 cmd->phy_address = np->phy_addr; in rio_get_settings()
1271 int phy_addr; in rio_ioctl() local
1278 phy_addr = np->phy_addr; in rio_ioctl()
1284 miidata->out_value = mii_read (dev, phy_addr, miidata->reg_num); in rio_ioctl()
1287 mii_write (dev, phy_addr, miidata->reg_num, miidata->in_value); in rio_ioctl()
1388 mii_read (struct net_device *dev, int phy_addr, int reg_num) in mii_read() argument
[all …]
Dsis900.c148 int phy_addr; member
232 static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr);
233 static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr);
599 int phy_addr; in sis900_mii_probe() local
604 for (phy_addr = 0; phy_addr < 32; phy_addr++) { in sis900_mii_probe()
611 mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); in sis900_mii_probe()
617 dev_name, phy_addr); in sis900_mii_probe()
633 mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); in sis900_mii_probe()
634 mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); in sis900_mii_probe()
635 mii_phy->phy_addr = phy_addr; in sis900_mii_probe()
[all …]
Dau1000_eth.c171 static int au1000_mdio_read(struct net_device *dev, int phy_addr, int reg) in au1000_mdio_read() argument
188 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_READ; in au1000_mdio_read()
203 static void au1000_mdio_write(struct net_device *dev, int phy_addr, in au1000_mdio_write() argument
221 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_WRITE; in au1000_mdio_write()
227 static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) in au1000_mdiobus_read() argument
239 return au1000_mdio_read(dev, phy_addr, regnum); in au1000_mdiobus_read()
242 static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, in au1000_mdiobus_write() argument
252 au1000_mdio_write(dev, phy_addr, regnum, value); in au1000_mdiobus_write()
378 int phy_addr; in au1000_mii_probe() local
383 if (aup->phy_addr) in au1000_mii_probe()
[all …]
Dmeth.c70 unsigned long phy_addr; member
116 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f); in mdio_read()
129 if(priv->phy_addr>=0&&priv->phy_addr<32) in mdio_probe()
133 priv->phy_addr=i; in mdio_probe()
158 if(priv->phy_addr<32) { in mdio_probe()
162 priv->phy_addr=-1; in mdio_probe()
311 priv->phy_addr = -1; /* No PHY is known yet... */ in meth_open()
/linux-2.6.39/arch/arm/mach-mv78xx0/
Ddb78x00-bp-setup.c24 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
28 .phy_addr = MV643XX_ETH_PHY_ADDR(9),
32 .phy_addr = MV643XX_ETH_PHY_ADDR(10),
36 .phy_addr = MV643XX_ETH_PHY_ADDR(11),
Drd78x00-masa-setup.c23 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
27 .phy_addr = MV643XX_ETH_PHY_ADDR(9),
Dbuffalo-wxl-setup.c30 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
34 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
/linux-2.6.39/drivers/net/cxgb3/
Daq100x.c266 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, in t3_aq100x_phy_prep() argument
272 cphy_init(phy, adapter, phy_addr, &aq100x_ops, mdio_ops, in t3_aq100x_phy_prep()
281 gpio = phy_addr ? F_GPIO10_OUT_VAL : F_GPIO6_OUT_VAL; in t3_aq100x_phy_prep()
298 phy_addr, err, v); in t3_aq100x_phy_prep()
308 phy_addr, v); in t3_aq100x_phy_prep()
316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); in t3_aq100x_phy_prep()
322 phy_addr, v); in t3_aq100x_phy_prep()
339 phy_addr); in t3_aq100x_phy_prep()
350 phy_addr, v, v2); in t3_aq100x_phy_prep()
Dael1002.c213 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael1002_phy_prep() argument
215 cphy_init(phy, adapter, phy_addr, &ael1002_ops, mdio_ops, in t3_ael1002_phy_prep()
239 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael1006_phy_prep() argument
241 cphy_init(phy, adapter, phy_addr, &ael1006_ops, mdio_ops, in t3_ael1006_phy_prep()
510 int phy_addr, const struct mdio_ops *mdio_ops) in t3_ael2005_phy_prep() argument
512 cphy_init(phy, adapter, phy_addr, &ael2005_ops, mdio_ops, in t3_ael2005_phy_prep()
815 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, in t3_ael2020_phy_prep() argument
820 cphy_init(phy, adapter, phy_addr, &ael2020_ops, mdio_ops, in t3_ael2020_phy_prep()
871 int phy_addr, const struct mdio_ops *mdio_ops) in t3_qt2045_phy_prep() argument
875 cphy_init(phy, adapter, phy_addr, &qt2045_ops, mdio_ops, in t3_qt2045_phy_prep()
[all …]
Dcommon.h159 int (*read)(struct net_device *dev, int phy_addr, int mmd_addr,
161 int (*write)(struct net_device *dev, int phy_addr, int mmd_addr,
582 int phy_addr, struct cphy_ops *phy_ops, in cphy_init() argument
591 phy->mdio.prtad = phy_addr; in cphy_init()
762 int phy_addr, const struct mdio_ops *mdio_ops);
764 int phy_addr, const struct mdio_ops *mdio_ops);
766 int phy_addr, const struct mdio_ops *mdio_ops);
768 int phy_addr, const struct mdio_ops *mdio_ops);
770 int phy_addr, const struct mdio_ops *mdio_ops);
771 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
[all …]
/linux-2.6.39/drivers/net/tulip/
Ddmfe.c259 u8 phy_addr; member
630 db->phy_addr = 1; in dmfe_init_dm910x()
768 phy_write(db->ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in dmfe_stop()
1156 db->phy_addr, 0, 0x1000, db->chip_id); in dmfe_timer()
1232 phy_read (db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_timer()
1234 db->phy_addr, 1, db->chip_id) & 0x4) ? 1 : 0; in dmfe_timer()
1249 phy_write(db->ioaddr, db->phy_addr, in dmfe_timer()
1632 phy_mode = phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed()
1633 phy_mode = phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); in dmfe_sense_speed()
1638 db->phy_addr, 7, db->chip_id) & 0xf000; in dmfe_sense_speed()
[all …]
Duli526x.c174 u8 phy_addr; member
516 db->phy_addr = 1; in uli526x_init()
522 db->phy_addr = phy_tmp; in uli526x_init()
532 phy_reg_reset = phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id); in uli526x_init()
534 phy_write(db->ioaddr, db->phy_addr, 0, phy_reg_reset, db->chip_id); in uli526x_init()
542 phy_read(db->ioaddr, db->phy_addr, 0, db->chip_id) & 0x8000) in uli526x_init()
662 phy_write(db->ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); in uli526x_stop()
944 ecmd->phy_address = db->phy_addr; in ULi_ethtool_gset()
1066 if((phy_read(db->ioaddr, db->phy_addr, 5, db->chip_id) & 0x01e0)!=0) in uli526x_timer()
1079 phy_write(db->ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); in uli526x_timer()
[all …]
/linux-2.6.39/drivers/net/chelsio/
Dcphy.h46 int (*read)(struct net_device *dev, int phy_addr, int mmd_addr,
48 int (*write)(struct net_device *dev, int phy_addr, int mmd_addr,
141 int phy_addr, struct cphy_ops *phy_ops, in cphy_init() argument
148 phy->mdio.prtad = phy_addr; in cphy_init()
160 struct cphy *(*create)(struct net_device *dev, int phy_addr,
/linux-2.6.39/arch/arm/mach-kirkwood/
Dts41x-setup.c41 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
45 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
138 qnap_ts41x_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); in qnap_ts41x_init()
139 qnap_ts41x_ge01_data.phy_addr = MV643XX_ETH_PHY_ADDR(1); in qnap_ts41x_init()
Dopenrd-setup.c45 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
49 .phy_addr = MV643XX_ETH_PHY_ADDR(24),
162 openrd_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); in openrd_init()
163 openrd_ge01_data.phy_addr = MV643XX_ETH_PHY_ADDR(1); in openrd_init()
Dguruplug-setup.c43 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
47 .phy_addr = MV643XX_ETH_PHY_ADDR(1),
Drd88f6281-setup.c44 .phy_addr = MV643XX_ETH_PHY_NONE,
63 .phy_addr = MV643XX_ETH_PHY_ADDR(11),
Dts219-setup.c34 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
112 qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); in qnap_ts219_init()
/linux-2.6.39/drivers/net/stmmac/
Dstmmac_mdio.c153 if (priv->phy_addr != -1) in stmmac_mdio_register()
154 irqlist[priv->phy_addr] = priv->phy_irq; in stmmac_mdio_register()
177 if (priv->phy_addr == -1) { in stmmac_mdio_register()
178 priv->phy_addr = addr; in stmmac_mdio_register()
185 (addr == priv->phy_addr) ? " active" : ""); in stmmac_mdio_register()
/linux-2.6.39/drivers/net/caif/
Dcaif_shmcore.c77 u32 phy_addr; member
305 (pbuf->phy_addr - pshm_drv->shm_base_addr)) in shm_rx_work_func()
312 ((pbuf->phy_addr - pshm_drv->shm_base_addr) + in shm_rx_work_func()
318 pck_desc->frm_ofs - (pbuf->phy_addr - in shm_rx_work_func()
486 pck_desc->frm_ofs = (pbuf->phy_addr - in shm_tx_work_func()
637 tx_buf->phy_addr = pshm_drv->shm_tx_addr + (TX_BUF_SZ * j); in caif_shmcore_probe()
643 tx_buf->desc_vptr = (char *)tx_buf->phy_addr; in caif_shmcore_probe()
646 ioremap(tx_buf->phy_addr, TX_BUF_SZ); in caif_shmcore_probe()
663 rx_buf->phy_addr = pshm_drv->shm_rx_addr + (RX_BUF_SZ * j); in caif_shmcore_probe()
667 rx_buf->desc_vptr = (char *)rx_buf->phy_addr; in caif_shmcore_probe()
[all …]
/linux-2.6.39/drivers/net/bnx2x/
Dbnx2x_link.h66 #define FW_PARAM_SET(phy_addr, phy_type, mdio_access) \ argument
67 (phy_addr | phy_type | mdio_access << FW_PARAM_MDIO_CTRL_OFFSET)
297 u8 bnx2x_phy_read(struct link_params *params, u8 phy_addr,
300 u8 bnx2x_phy_write(struct link_params *params, u8 phy_addr,
/linux-2.6.39/drivers/staging/tidspbridge/include/dspbridge/
Ddrv.h474 #define MEM_LINEAR_ADDRESS(phy_addr, byte_size) phy_addr argument

123456