/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | mii.h | 179 __u16 phy_id; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/ |
H A D | bcm63xx_enet.h | 288 int phy_id; member
|
H A D | b44.c | 281 static int b44_mdio_read_mii(struct net_device *dev, int phy_id, int location) in b44_mdio_read_mii() argument 285 int rc = __b44_readphy(bp, phy_id, location, &val); in b44_mdio_read_mii() 291 static void b44_mdio_write_mii(struct net_device *dev, int phy_id, int location, in b44_mdio_write_mii() argument 295 __b44_writephy(bp, phy_id, location, val); in b44_mdio_write_mii() 298 static int b44_mdio_read_phylib(struct mii_bus *bus, int phy_id, int location) in b44_mdio_read_phylib() argument 302 int rc = __b44_readphy(bp, phy_id, location, &val); in b44_mdio_read_phylib() 308 static int b44_mdio_write_phylib(struct mii_bus *bus, int phy_id, int location, in b44_mdio_write_phylib() argument 312 return __b44_writephy(bp, phy_id, location, val); in b44_mdio_write_phylib() 2391 bp->mii_if.phy_id = bp->phy_addr; in b44_init_one()
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | mii.h | 179 __u16 phy_id; member
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | marvell-88q2xxx.c | 240 .phy_id = MARVELL_PHY_ID_88Q2110,
|
H A D | bcm84881.c | 228 .phy_id = 0xae025150,
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | mii.h | 157 __u16 phy_id; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | mii.h | 157 __u16 phy_id; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/packetengines/ |
H A D | hamachi.c | 546 static int mdio_read(struct net_device *dev, int phy_id, int location); 547 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 765 hmp->mii_if.phy_id = hmp->phys[0]; in hamachi_init_one() 813 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() argument 823 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_read() 831 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() argument 841 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_write()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/packetengines/ |
H A D | hamachi.c | 546 static int mdio_read(struct net_device *dev, int phy_id, int location); 547 static void mdio_write(struct net_device *dev, int phy_id, int location, int value); 769 hmp->mii_if.phy_id = hmp->phys[0]; in hamachi_init_one() 817 static int mdio_read(struct net_device *dev, int phy_id, int location) in mdio_read() argument 827 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_read() 835 static void mdio_write(struct net_device *dev, int phy_id, int location, int value) in mdio_write() argument 845 writew((phy_id<<8) + location, ioaddr + MII_Addr); in mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 641 static int mdio_read (struct net_device *dev, int phy_id, int location); 642 static void mdio_write (struct net_device *dev, int phy_id, int location, 1074 tp->mii.phy_id = tp->phys[0]; in rtl8139_init_one() 1233 static int mdio_read (struct net_device *dev, int phy_id, int location) in mdio_read() argument 1239 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() 1243 if (phy_id > 31) { /* Really a 8139. Use internal registers. */ in mdio_read() 1275 static void mdio_write (struct net_device *dev, int phy_id, int location, in mdio_write() argument 1281 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write() 1285 if (phy_id > 31) { /* Really a 8139. Use internal registers. */ in mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 302 static int b44_mdio_read_mii(struct net_device *dev, int phy_id, int location) in b44_mdio_read_mii() argument 306 int rc = __b44_readphy(bp, phy_id, location, &val); in b44_mdio_read_mii() 312 static void b44_mdio_write_mii(struct net_device *dev, int phy_id, int location, in b44_mdio_write_mii() argument 316 __b44_writephy(bp, phy_id, location, val); in b44_mdio_write_mii() 319 static int b44_mdio_read_phylib(struct mii_bus *bus, int phy_id, int location) in b44_mdio_read_phylib() argument 323 int rc = __b44_readphy(bp, phy_id, location, &val); in b44_mdio_read_phylib() 329 static int b44_mdio_write_phylib(struct mii_bus *bus, int phy_id, int location, in b44_mdio_write_phylib() argument 333 return __b44_writephy(bp, phy_id, location, val); in b44_mdio_write_phylib() 2409 bp->mii_if.phy_id = bp->phy_addr; in b44_init_one()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 641 static int mdio_read (struct net_device *dev, int phy_id, int location); 642 static void mdio_write (struct net_device *dev, int phy_id, int location, 1075 tp->mii.phy_id = tp->phys[0]; in rtl8139_init_one() 1234 static int mdio_read (struct net_device *dev, int phy_id, int location) in mdio_read() argument 1240 int mii_cmd = (0xf6 << 10) | (phy_id << 5) | location; in mdio_read() 1244 if (phy_id > 31) { /* Really a 8139. Use internal registers. */ in mdio_read() 1276 static void mdio_write (struct net_device *dev, int phy_id, int location, in mdio_write() argument 1282 int mii_cmd = (0x5002 << 16) | (phy_id << 23) | (location << 18) | value; in mdio_write() 1286 if (phy_id > 31) { /* Really a 8139. Use internal registers. */ in mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | realtek.c | 543 return phydev->phy_id == RTL_GENERIC_PHYID && in rtlgen_match_phy_device() 549 return phydev->phy_id == RTL_GENERIC_PHYID && in rtl8226_match_phy_device()
|
/kernel/linux/linux-5.10/drivers/scsi/pm8001/ |
H A D | pm8001_sas.h | 195 int (*phy_start_req)(struct pm8001_hba_info *pm8001_ha, u8 phy_id); 196 int (*phy_stop_req)(struct pm8001_hba_info *pm8001_ha, u8 phy_id); 201 u32 phy_id, u32 phy_op);
|
/kernel/linux/linux-5.10/tools/firewire/ |
H A D | nosy-dump.c | 768 printf("ext phy config: phy_id=%02x", pp->phy_config.root_id); in print_packet() 779 printf("link-on packet, phy_id=%02x", pp->link_on.phy_id); in print_packet() 784 printf("extended self id: phy_id=%02x, seq=%d", in print_packet() 785 pp->ext_self_id.phy_id, pp->ext_self_id.sequence); in print_packet() 790 printf("self id: phy_id=%02x, link %s, gap_count=%d, speed=%s%s%s", in print_packet() 791 pp->self_id.phy_id, in print_packet()
|
/kernel/linux/linux-6.6/drivers/scsi/pm8001/ |
H A D | pm8001_sas.h | 195 int (*phy_start_req)(struct pm8001_hba_info *pm8001_ha, u8 phy_id); 196 int (*phy_stop_req)(struct pm8001_hba_info *pm8001_ha, u8 phy_id); 201 u32 phy_id, u32 phy_op);
|
/kernel/linux/linux-6.6/tools/firewire/ |
H A D | nosy-dump.c | 768 printf("ext phy config: phy_id=%02x", pp->phy_config.root_id); in print_packet() 779 printf("link-on packet, phy_id=%02x", pp->link_on.phy_id); in print_packet() 784 printf("extended self id: phy_id=%02x, seq=%d", in print_packet() 785 pp->ext_self_id.phy_id, pp->ext_self_id.sequence); in print_packet() 790 printf("self id: phy_id=%02x, link %s, gap_count=%d, speed=%s%s%s", in print_packet() 791 pp->self_id.phy_id, in print_packet()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
H A D | seville_vsc9953.c | 898 static int vsc9953_mdio_write(struct mii_bus *bus, int phy_id, int regnum, in vsc9953_mdio_write() argument 912 cmd = MSCC_MIIM_CMD_VLD | (phy_id << MSCC_MIIM_CMD_PHYAD_SHIFT) | in vsc9953_mdio_write() 923 static int vsc9953_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in vsc9953_mdio_read() argument 937 cmd = MSCC_MIIM_CMD_VLD | (phy_id << MSCC_MIIM_CMD_PHYAD_SHIFT) | in vsc9953_mdio_read()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 670 static int lpc_mdio_read(struct mii_bus *bus, int phy_id, int phyreg) in lpc_mdio_read() argument 676 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_read() 692 static int lpc_mdio_write(struct mii_bus *bus, int phy_id, int phyreg, in lpc_mdio_write() argument 698 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aurora/ |
H A D | nb8800.c | 137 static int nb8800_mdio_read(struct mii_bus *bus, int phy_id, int reg) in nb8800_mdio_read() argument 143 err = nb8800_mdio_cmd(bus, MDIO_CMD_ADDR(phy_id) | MDIO_CMD_REG(reg)); in nb8800_mdio_read() 154 static int nb8800_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) in nb8800_mdio_write() argument 156 u32 cmd = MDIO_CMD_ADDR(phy_id) | MDIO_CMD_REG(reg) | in nb8800_mdio_write()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/xircom/ |
H A D | xirc2ps_cs.c | 1434 data->phy_id, data->reg_num, data->val_in, data->val_out); in do_ioctl() 1441 data->phy_id = 0; /* we have only this address */ in do_ioctl() 1444 data->val_out = mii_rd(ioaddr, data->phy_id & 0x1f, in do_ioctl() 1448 mii_wr(ioaddr, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in, in do_ioctl()
|
/kernel/linux/linux-6.6/drivers/net/dsa/ |
H A D | rzn1_a5psw.c | 1041 static int a5psw_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) in a5psw_mdio_read() argument 1049 cmd |= FIELD_PREP(A5PSW_MDIO_COMMAND_PHY_ADDR, phy_id); in a5psw_mdio_read() 1066 static int a5psw_mdio_write(struct mii_bus *bus, int phy_id, int phy_reg, in a5psw_mdio_write() argument 1073 cmd |= FIELD_PREP(A5PSW_MDIO_COMMAND_PHY_ADDR, phy_id); in a5psw_mdio_write()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/nxp/ |
H A D | lpc_eth.c | 670 static int lpc_mdio_read(struct mii_bus *bus, int phy_id, int phyreg) in lpc_mdio_read() argument 676 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_read() 692 static int lpc_mdio_write(struct mii_bus *bus, int phy_id, int phyreg, in lpc_mdio_write() argument 698 writel(((phy_id << 8) | phyreg), LPC_ENET_MADR(pldat->net_base)); in lpc_mdio_write()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/davicom/ |
H A D | dm9051.c | 1154 char phy_id[MII_BUS_ID_SIZE + 3]; in dm9051_phy_connect() local 1156 snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, in dm9051_phy_connect() 1159 db->phydev = phy_connect(db->ndev, phy_id, dm9051_handle_link_change, in dm9051_phy_connect()
|