Home
last modified time | relevance | path

Searched refs:phy_id (Results 1 – 25 of 143) sorted by relevance

123456

/drivers/scsi/aic94xx/
Daic94xx_scb.c89 int phy_id = dl->status_block[0] & DL_PHY_MASK; in asd_phy_event_tasklet() local
90 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
98 ASD_DPRINTK("phy%d: device unplugged\n", phy_id); in asd_phy_event_tasklet()
99 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
105 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
108 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
113 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
118 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
120 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
236 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
[all …]
Daic94xx_hwi.c83 phy->identify_frame->phy_id = phy->sas_phy.id; in asd_init_phy_identify()
1279 void asd_turn_led(struct asd_ha_struct *asd_ha, int phy_id, int op) in asd_turn_led() argument
1281 if (phy_id < ASD_MAX_PHYS) { in asd_turn_led()
1282 u32 v = asd_read_reg_dword(asd_ha, LmCONTROL(phy_id)); in asd_turn_led()
1287 asd_write_reg_dword(asd_ha, LmCONTROL(phy_id), v); in asd_turn_led()
1300 void asd_control_led(struct asd_ha_struct *asd_ha, int phy_id, int op) in asd_control_led() argument
1302 if (phy_id < ASD_MAX_PHYS) { in asd_control_led()
1307 v |= (1 << phy_id); in asd_control_led()
1309 v &= ~(1 << phy_id); in asd_control_led()
1314 v |= (1 << phy_id); in asd_control_led()
[all …]
/drivers/net/sfc/
Dmdio_10g.c24 int phy_id = port->mii.phy_id; in mdio_clause45_reset_mmd() local
29 mdio_clause45_write(port, phy_id, mmd, MDIO_MMDREG_CTRL1, in mdio_clause45_reset_mmd()
34 ctrl = mdio_clause45_read(port, phy_id, mmd, MDIO_MMDREG_CTRL1); in mdio_clause45_reset_mmd()
46 int phy_id = efx->mii.phy_id; in mdio_clause45_check_mmd() local
53 status = mdio_clause45_read(efx, phy_id, mmd, in mdio_clause45_check_mmd()
64 status = mdio_clause45_read(efx, phy_id, mmd, MDIO_MMDREG_STAT1); in mdio_clause45_check_mmd()
98 efx->mii.phy_id, in mdio_clause45_wait_reset_mmds()
136 devices = (mdio_clause45_read(efx, efx->mii.phy_id, in mdio_clause45_check_mmds()
138 mdio_clause45_read(efx, efx->mii.phy_id, in mdio_clause45_check_mmds()
170 int phy_id = efx->mii.phy_id; in mdio_clause45_links_ok() local
[all …]
Dtenxpress.c206 reg = mdio_clause45_read(efx, efx->mii.phy_id, MDIO_MMD_PMAPMD, in show_phy_short_reach()
219 mdio_clause45_set_flag(efx, efx->mii.phy_id, MDIO_MMD_PMAPMD, in set_phy_short_reach()
235 int phy_id = efx->mii.phy_id; in tenxpress_phy_check() local
241 boot_stat = mdio_clause45_read(efx, phy_id, in tenxpress_phy_check()
263 int phy_id = efx->mii.phy_id; in tenxpress_init() local
269 mdio_clause45_write(efx, phy_id, in tenxpress_init()
274 reg = mdio_clause45_read(efx, phy_id, MDIO_MMD_PMAPMD, in tenxpress_init()
281 mdio_clause45_write(efx, phy_id, MDIO_MMD_PMAPMD, in tenxpress_init()
283 mdio_clause45_set_flag(efx, phy_id, MDIO_MMD_C22EXT, in tenxpress_init()
294 mdio_clause45_set_flag(efx, phy_id, MDIO_MMD_PMAPMD, in tenxpress_init()
[all …]
Dmdio_10g.h200 efx_dword_t phy_id; in mdio_clause45_pack() local
201 EFX_POPULATE_DWORD_2(phy_id, MDIO45_PRT_ID_COMP, prt, in mdio_clause45_pack()
203 return MDIO45_XPRT_ID_IS10G | EFX_DWORD_VAL(phy_id); in mdio_clause45_pack()
208 efx_dword_t phy_id; in mdio_clause45_unpack() local
209 EFX_POPULATE_DWORD_1(phy_id, EFX_DWORD_0, val); in mdio_clause45_unpack()
210 *prt = EFX_DWORD_FIELD(phy_id, MDIO45_PRT_ID_COMP); in mdio_clause45_unpack()
211 *dev = EFX_DWORD_FIELD(phy_id, MDIO45_DEV_ID_COMP); in mdio_clause45_unpack()
231 int phy_id = efx->mii.phy_id; in mdio_clause45_read_id() local
232 u16 id_low = mdio_clause45_read(efx, phy_id, mmd, MDIO_MMDREG_IDLOW); in mdio_clause45_read_id()
233 u16 id_hi = mdio_clause45_read(efx, phy_id, mmd, MDIO_MMDREG_IDHI); in mdio_clause45_read_id()
[all …]
Dxenpack.h38 int phy_id = efx->mii.phy_id; in xenpack_enable_lasi_irqs() local
40 reg = mdio_clause45_read(efx, phy_id, MDIO_MMD_PMAPMD, in xenpack_enable_lasi_irqs()
43 mdio_clause45_write(efx, phy_id, MDIO_MMD_PMAPMD, in xenpack_enable_lasi_irqs()
51 return mdio_clause45_read(efx, efx->mii.phy_id, in xenpack_clear_lasi_irqs()
58 mdio_clause45_write(efx, efx->mii.phy_id, MDIO_MMD_PMAPMD, in xenpack_disable_lasi_irqs()
/drivers/net/
Dmii.c64 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset()
67 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_gset()
69 advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_gset()
84 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_gset()
85 lpa = mii->mdio_read(dev, mii->phy_id, MII_LPA); in mii_ethtool_gset()
87 bmcr2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_gset()
88 lpa2 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); in mii_ethtool_gset()
145 if (ecmd->phy_address != mii->phy_id) in mii_ethtool_sset()
167 advert = mii->mdio_read(dev, mii->phy_id, MII_ADVERTISE); in mii_ethtool_sset()
170 advert2 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_sset()
[all …]
Dsis190.c301 int phy_id; member
386 static void mdio_write(void __iomem *ioaddr, int phy_id, int reg, int val) in mdio_write() argument
389 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift) | in mdio_write()
393 static int mdio_read(void __iomem *ioaddr, int phy_id, int reg) in mdio_read() argument
396 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift)); in mdio_read()
401 static void __mdio_write(struct net_device *dev, int phy_id, int reg, int val) in __mdio_write() argument
405 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write()
408 static int __mdio_read(struct net_device *dev, int phy_id, int reg) in __mdio_read() argument
412 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
415 static u16 mdio_read_latched(void __iomem *ioaddr, int phy_id, int reg) in mdio_read_latched() argument
[all …]
Dsungem_phy.c70 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()
78 __phy_write(phy, phy_id, MII_BMCR, val); in reset_one_mii_phy()
83 val = __phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
89 __phy_write(phy, phy_id, MII_BMCR, val & ~BMCR_ISOLATE); in reset_one_mii_phy()
899 .phy_id = 0x00406210,
918 .phy_id = 0x004061e0,
936 .phy_id = 0x0143bc30,
955 .phy_id = 0x00206040,
974 .phy_id = 0x00206050,
[all …]
Dfec_mpc52xx_phy.c25 static int mpc52xx_fec_mdio_transfer(struct mii_bus *bus, int phy_id, in mpc52xx_fec_mdio_transfer() argument
32 value |= (phy_id << FEC_MII_DATA_PA_SHIFT) & FEC_MII_DATA_PA_MSK; in mpc52xx_fec_mdio_transfer()
50 static int mpc52xx_fec_mdio_read(struct mii_bus *bus, int phy_id, int reg) in mpc52xx_fec_mdio_read() argument
52 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, FEC_MII_READ_FRAME); in mpc52xx_fec_mdio_read()
55 static int mpc52xx_fec_mdio_write(struct mii_bus *bus, int phy_id, int reg, in mpc52xx_fec_mdio_write() argument
58 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, in mpc52xx_fec_mdio_write()
/drivers/scsi/libsas/
Dsas_expander.c36 static int sas_configure_phy(struct domain_device *dev, int phy_id,
157 static void sas_set_ex_phy(struct domain_device *dev, int phy_id, in sas_set_ex_phy() argument
161 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
168 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
186 phy->phy_id = phy_id; in sas_set_ex_phy()
203 phy->phy->identify.phy_identifier = phy_id; in sas_set_ex_phy()
214 SAS_ADDR(dev->sas_addr), phy->phy_id, in sas_set_ex_phy()
442 int sas_smp_phy_control(struct domain_device *dev, int phy_id, in sas_smp_phy_control() argument
461 pc_req[9] = phy_id; in sas_smp_phy_control()
475 static void sas_ex_disable_phy(struct domain_device *dev, int phy_id) in sas_ex_disable_phy() argument
[all …]
Dsas_host_smp.c21 u8 phy_id) in sas_host_smp_discover() argument
26 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
32 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover()
33 resp_data[9] = phy_id; in sas_host_smp_discover()
36 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_host_smp_discover()
43 if (!sas_ha->sas_phy[phy_id]->port || in sas_host_smp_discover()
44 !sas_ha->sas_phy[phy_id]->port->port_dev) in sas_host_smp_discover()
47 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover()
54 u8 phy_id) in sas_report_phy_sata() argument
60 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
[all …]
Dsas_internal.h75 int sas_smp_phy_control(struct domain_device *dev, int phy_id,
153 static inline void sas_add_parent_port(struct domain_device *dev, int phy_id) in sas_add_parent_port() argument
156 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_add_parent_port()
159 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_add_parent_port()
/drivers/net/usb/
Dasix.c579 static int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) in asix_mdio_read() argument
586 asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, in asix_mdio_read()
591 …devdbg(dev, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x", phy_id, loc, le16_to_cpu… in asix_mdio_read()
597 asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) in asix_mdio_write() argument
602 devdbg(dev, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x", phy_id, loc, val); in asix_mdio_write()
605 asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u16)loc, 2, &res); in asix_mdio_write()
614 u32 phy_id; in asix_get_phyid() local
616 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid()
620 phy_id = (phy_reg & 0xffff) << 16; in asix_get_phyid()
622 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid()
[all …]
/drivers/net/phy/
Dfixed.c116 static int fixed_mdio_read(struct mii_bus *bus, int phy_id, int reg_num) in fixed_mdio_read() argument
125 if (fp->id == phy_id) { in fixed_mdio_read()
139 static int fixed_mdio_write(struct mii_bus *bus, int phy_id, int reg_num, in fixed_mdio_write() argument
161 if (fp->id == phydev->phy_id) { in fixed_phy_set_link_update()
172 int fixed_phy_add(unsigned int irq, int phy_id, in fixed_phy_add() argument
185 fmb->irqs[phy_id] = irq; in fixed_phy_add()
187 fp->id = phy_id; in fixed_phy_add()
Dphy_device.c117 (phydev->phy_id & fixup->phy_uid_mask)) in phy_needs_fixup()
146 struct phy_device* phy_device_create(struct mii_bus *bus, int addr, int phy_id) in phy_device_create() argument
167 dev->phy_id = phy_id; in phy_device_create()
187 int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) in get_phy_id() argument
198 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
206 *phy_id |= (phy_reg & 0xffff); in get_phy_id()
223 u32 phy_id; in get_phy_device() local
226 r = get_phy_id(bus, addr, &phy_id); in get_phy_device()
231 if ((phy_id & 0x1fffffff) == 0x1fffffff) in get_phy_device()
234 dev = phy_device_create(bus, addr, phy_id); in get_phy_device()
[all …]
Dbroadcom.c275 if (phydev->drv->phy_id == PHY_ID_BCM50610) { in bcm54xx_config_init()
439 .phy_id = 0x00206070,
454 .phy_id = 0x002060e0,
469 .phy_id = 0x002060c0,
484 .phy_id = 0x002060b0,
499 .phy_id = 0x0143bca0,
514 .phy_id = 0x0143bcb0,
529 .phy_id = PHY_ID_BCM50610,
544 .phy_id = 0x03625d90,
Dsmsc.c67 .phy_id = 0x0007c0a0, /* OUI=0x00800f, Model#=0x0a */
91 .phy_id = 0x0007c0b0, /* OUI=0x00800f, Model#=0x0b */
115 .phy_id = 0x0007c0c0, /* OUI=0x00800f, Model#=0x0c */
139 .phy_id = 0x0007c0d0, /* OUI=0x00800f, Model#=0x0d */
Dmarvell.c434 .phy_id = 0x01410c60,
446 .phy_id = 0x01410c90,
459 .phy_id = 0x01410cc0,
472 .phy_id = 0x01410e10,
485 .phy_id = 0x01410cd0,
498 .phy_id = 0x01410e30,
/drivers/net/cris/
Deth_v10.c214 static int e100_get_mdio_reg(struct net_device *dev, int phy_id, int location);
215 static void e100_set_mdio_reg(struct net_device *dev, int phy_id, int location, int value);
640 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, MII_ADVERTISE); in generic_check_speed()
654 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, in tdk_check_speed()
665 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, in broadcom_check_speed()
676 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, in intel_check_speed()
692 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, MII_BMSR); in e100_check_speed()
721 unsigned short data = e100_get_mdio_reg(dev, np->mii_if.phy_id, in e100_negotiate()
763 e100_set_mdio_reg(dev, np->mii_if.phy_id, MII_ADVERTISE, data); in e100_negotiate()
767 data = e100_get_mdio_reg(dev, np->mii_if.phy_id, MII_BMCR); in e100_negotiate()
[all …]
/drivers/ieee1394/
Dieee1394.h129 u32 phy_id:6; member
149 u32 phy_id:6; member
176 u32 phy_id:6; member
196 u32 phy_id:6; member
/drivers/message/fusion/
Dmptsas.h77 u8 phy_id; member
101 u8 phy_id; /* phy number of parent device */ member
126 u8 phy_id; /* phy index */ member
/drivers/net/ibm_newemac/
Dphy.c284 .phy_id = 0x00000000,
349 .phy_id = 0x000fc410,
357 .phy_id = 0x0143bc00,
429 .phy_id = 0x0282f000,
449 .phy_id = 0x01410CC0,
464 .phy_id = 0x01410C90,
500 if ((id & def->phy_id_mask) == def->phy_id) in emac_mii_phy_probe()
/drivers/net/pcmcia/
Dpcnet_cs.c224 u_char phy_id; member
770 static int mdio_read(unsigned int addr, int phy_id, int loc) in mdio_read() argument
772 u_int cmd = (0x06<<10)|(phy_id<<5)|loc; in mdio_read()
789 static void mdio_write(unsigned int addr, int phy_id, int loc, int value) in mdio_write() argument
791 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; in mdio_write()
983 info->phy_id = info->eth_phy; in pcnet_open()
1106 mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog()
1107 link = mdio_read(mii_addr, info->phy_id, 1); in ei_watchdog()
1110 info->phy_id = info->eth_phy = 0; in ei_watchdog()
1120 u_short p = mdio_read(mii_addr, info->phy_id, 5); in ei_watchdog()
[all …]
/drivers/net/fs_enet/
Dmii-fec.c51 static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) in fs_enet_fec_mii_read() argument
61 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_read(location)); in fs_enet_fec_mii_read()
75 static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, u16 val) in fs_enet_fec_mii_write() argument
86 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_write(location, val)); in fs_enet_fec_mii_write()

123456