Home
last modified time | relevance | path

Searched refs:phy_id (Results 51 - 75 of 659) sorted by relevance

12345678910>>...27

/kernel/linux/linux-5.10/include/linux/fsl/
H A Denetc_mdio.h40 int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum);
41 int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value);
46 static inline int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in enetc_mdio_read() argument
48 static inline int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, in enetc_mdio_write() argument
/kernel/linux/linux-6.6/drivers/net/usb/
H A Dasix_common.c497 static int __asix_mdio_read(struct net_device *netdev, int phy_id, int loc, in __asix_mdio_read() argument
512 ret = asix_read_cmd(dev, AX_CMD_READ_MII_REG, phy_id, (__u16)loc, 2, in __asix_mdio_read()
521 netdev_dbg(dev->net, "asix_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n", in __asix_mdio_read()
522 phy_id, loc, le16_to_cpu(res)); in __asix_mdio_read()
527 int asix_mdio_read(struct net_device *netdev, int phy_id, int loc) in asix_mdio_read() argument
529 return __asix_mdio_read(netdev, phy_id, loc, false); in asix_mdio_read()
532 static int __asix_mdio_write(struct net_device *netdev, int phy_id, int loc, in __asix_mdio_write() argument
539 netdev_dbg(dev->net, "asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x\n", in __asix_mdio_write()
540 phy_id, loc, val); in __asix_mdio_write()
548 ret = asix_write_cmd(dev, AX_CMD_WRITE_MII_REG, phy_id, (__u1 in __asix_mdio_write()
560 asix_mdio_write(struct net_device *netdev, int phy_id, int loc, int val) asix_mdio_write() argument
566 asix_mdio_bus_read(struct mii_bus *bus, int phy_id, int regnum) asix_mdio_bus_read() argument
573 asix_mdio_bus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) asix_mdio_bus_write() argument
580 asix_mdio_read_nopm(struct net_device *netdev, int phy_id, int loc) asix_mdio_read_nopm() argument
586 asix_mdio_write_nopm(struct net_device *netdev, int phy_id, int loc, int val) asix_mdio_write_nopm() argument
[all...]
H A Dasix_devices.c73 u32 phy_id; in asix_get_phyid() local
78 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID1); in asix_get_phyid()
89 phy_id = (phy_reg & 0xffff) << 16; in asix_get_phyid()
91 phy_reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_PHYSID2); in asix_get_phyid()
95 phy_id |= (phy_reg & 0xffff); in asix_get_phyid()
97 return phy_id; in asix_get_phyid()
208 asix_mdio_write(dev->net, dev->mii.phy_id, MII_BMCR, reset_bits); in asix_phy_reset()
210 /* give phy_id a chance to process reset */ in asix_phy_reset()
215 if (asix_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR) in asix_phy_reset()
222 netdev_err(dev->net, "BMCR_RESET timeout on phy_id in asix_phy_reset()
[all...]
/kernel/linux/linux-5.10/drivers/nfc/st-nci/
H A Di2c.c43 static int st_nci_i2c_enable(void *phy_id) in st_nci_i2c_enable() argument
45 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_enable()
60 static void st_nci_i2c_disable(void *phy_id) in st_nci_i2c_disable() argument
62 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_disable()
73 static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb) in st_nci_i2c_write() argument
76 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_write()
157 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) in st_nci_irq_thread_fn() argument
159 struct st_nci_i2c_phy *phy = phy_id; in st_nci_irq_thread_fn()
H A Dspi.c44 static int st_nci_spi_enable(void *phy_id) in st_nci_spi_enable() argument
46 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_enable()
61 static void st_nci_spi_disable(void *phy_id) in st_nci_spi_disable() argument
63 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_disable()
74 static int st_nci_spi_write(void *phy_id, struct sk_buff *skb) in st_nci_spi_write() argument
77 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_write()
172 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) in st_nci_irq_thread_fn() argument
174 struct st_nci_spi_phy *phy = phy_id; in st_nci_irq_thread_fn()
/kernel/linux/linux-6.6/drivers/nfc/st-nci/
H A Dspi.c44 static int st_nci_spi_enable(void *phy_id) in st_nci_spi_enable() argument
46 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_enable()
61 static void st_nci_spi_disable(void *phy_id) in st_nci_spi_disable() argument
63 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_disable()
74 static int st_nci_spi_write(void *phy_id, struct sk_buff *skb) in st_nci_spi_write() argument
77 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_write()
169 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) in st_nci_irq_thread_fn() argument
171 struct st_nci_spi_phy *phy = phy_id; in st_nci_irq_thread_fn()
H A Di2c.c43 static int st_nci_i2c_enable(void *phy_id) in st_nci_i2c_enable() argument
45 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_enable()
60 static void st_nci_i2c_disable(void *phy_id) in st_nci_i2c_disable() argument
62 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_disable()
73 static int st_nci_i2c_write(void *phy_id, struct sk_buff *skb) in st_nci_i2c_write() argument
76 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_write()
157 static irqreturn_t st_nci_irq_thread_fn(int irq, void *phy_id) in st_nci_irq_thread_fn() argument
159 struct st_nci_i2c_phy *phy = phy_id; in st_nci_irq_thread_fn()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dbroadcom.c25 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
28 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
235 if (phydev->drv->phy_id == PHY_ID_BCM50610) { in bcm54xx_phydsp_config()
991 .phy_id = PHY_ID_BCM5411,
1004 .phy_id = PHY_ID_BCM5421,
1017 .phy_id = PHY_ID_BCM54210E,
1036 .phy_id = PHY_ID_BCM5461,
1050 .phy_id = PHY_ID_BCM54612E,
1064 .phy_id = PHY_ID_BCM54616S,
1078 .phy_id
[all...]
/kernel/linux/linux-5.10/drivers/net/phy/
H A Dintel-xway.c253 .phy_id = PHY_ID_PHY11G_1_3,
265 .phy_id = PHY_ID_PHY22F_1_3,
277 .phy_id = PHY_ID_PHY11G_1_4,
289 .phy_id = PHY_ID_PHY22F_1_4,
301 .phy_id = PHY_ID_PHY11G_1_5,
312 .phy_id = PHY_ID_PHY22F_1_5,
323 .phy_id = PHY_ID_PHY11G_VR9_1_1,
334 .phy_id = PHY_ID_PHY22F_VR9_1_1,
345 .phy_id = PHY_ID_PHY11G_VR9_1_2,
356 .phy_id
[all...]
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
H A Dpm8001_sas.c158 int rc = 0, phy_id = sas_phy->id; in pm8001_phy_control() local
165 phy = &pm8001_ha->phy[phy_id]; in pm8001_phy_control()
166 pm8001_ha->phy[phy_id].enable_completion = &completion; in pm8001_phy_control()
171 pm8001_ha->phy[phy_id].minimum_linkrate = in pm8001_phy_control()
175 pm8001_ha->phy[phy_id].maximum_linkrate = in pm8001_phy_control()
178 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control()
179 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); in pm8001_phy_control()
182 PM8001_CHIP_DISP->phy_ctl_req(pm8001_ha, phy_id, in pm8001_phy_control()
186 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control()
187 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); in pm8001_phy_control()
642 int phy_id; pm8001_dev_found_notify() local
1189 u32 phy_id; pm8001_abort_task() local
[all...]
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_dev_enet.h22 int phy_id; member
40 int phy_id, int reg),
42 int phy_id, int reg, int val));
75 int phy_id; member
/kernel/linux/linux-6.6/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_dev_enet.h22 int phy_id; member
40 int phy_id, int reg),
42 int phy_id, int reg, int val));
75 int phy_id; member
/kernel/linux/linux-6.6/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_mdio.c53 * @phy_id: Address of the PHY device
62 static int axienet_mdio_read(struct mii_bus *bus, int phy_id, int reg) in axienet_mdio_read() argument
77 (((phy_id << XAE_MDIO_MCR_PHYAD_SHIFT) & in axienet_mdio_read()
92 dev_dbg(lp->dev, "axienet_mdio_read(phy_id=%i, reg=%x) == %x\n", in axienet_mdio_read()
93 phy_id, reg, rc); in axienet_mdio_read()
102 * @phy_id: Address of the PHY device
112 static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg, in axienet_mdio_write() argument
118 dev_dbg(lp->dev, "axienet_mdio_write(phy_id=%i, reg=%x, val=%x)\n", in axienet_mdio_write()
119 phy_id, reg, val); in axienet_mdio_write()
131 (((phy_id << XAE_MDIO_MCR_PHYAD_SHIF in axienet_mdio_write()
[all...]
/kernel/linux/linux-6.6/drivers/nfc/s3fwrn5/
H A Dphy_common.h32 void s3fwrn5_phy_set_wake(void *phy_id, bool wake);
34 void s3fwrn5_phy_set_mode(void *phy_id, enum s3fwrn5_mode mode);
35 enum s3fwrn5_mode s3fwrn5_phy_get_mode(void *phy_id);
/kernel/linux/linux-6.6/drivers/net/dsa/b53/
H A Db53_mdio.c295 u32 phy_id; in b53_mdio_probe() local
308 phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; in b53_mdio_probe()
309 phy_id |= mdiobus_read(mdiodev->bus, 0, 3); in b53_mdio_probe()
315 if ((phy_id & 0xfffffc00) != B53_BRCM_OUI_1 && in b53_mdio_probe()
316 (phy_id & 0xfffffc00) != B53_BRCM_OUI_2 && in b53_mdio_probe()
317 (phy_id & 0xfffffc00) != B53_BRCM_OUI_3 && in b53_mdio_probe()
318 (phy_id & 0xfffffc00) != B53_BRCM_OUI_4 && in b53_mdio_probe()
319 (phy_id & 0xfffffc00) != B53_BRCM_OUI_5) { in b53_mdio_probe()
320 dev_err(&mdiodev->dev, "Unsupported device: 0x%08x\n", phy_id); in b53_mdio_probe()
/kernel/linux/linux-6.6/drivers/scsi/libsas/
H A Dsas_internal.h75 int sas_smp_phy_control(struct domain_device *dev, int phy_id,
81 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id);
83 int sas_get_report_phy_sata(struct domain_device *dev, int phy_id,
85 int sas_get_phy_attached_dev(struct domain_device *dev, int phy_id,
180 static inline void sas_add_parent_port(struct domain_device *dev, int phy_id) in sas_add_parent_port() argument
183 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_add_parent_port()
186 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_add_parent_port()
/kernel/linux/linux-5.10/drivers/net/
H A Dsungem_phy.c71 static int reset_one_mii_phy(struct mii_phy* phy, int phy_id) in reset_one_mii_phy() argument
76 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
79 __sungem_phy_write(phy, phy_id, MII_BMCR, val); in reset_one_mii_phy()
84 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
90 __sungem_phy_write(phy, phy_id, MII_BMCR, val & ~BMCR_ISOLATE); in reset_one_mii_phy()
901 .phy_id = 0x00406210,
920 .phy_id = 0x004061e0,
938 .phy_id = 0x0143bc30,
957 .phy_id = 0x00206040,
976 .phy_id
[all...]
/kernel/linux/linux-6.6/drivers/net/
H A Dsungem_phy.c67 static int reset_one_mii_phy(struct mii_phy* phy, int phy_id) in reset_one_mii_phy() argument
72 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
75 __sungem_phy_write(phy, phy_id, MII_BMCR, val); in reset_one_mii_phy()
80 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
86 __sungem_phy_write(phy, phy_id, MII_BMCR, val & ~BMCR_ISOLATE); in reset_one_mii_phy()
897 .phy_id = 0x00406210,
916 .phy_id = 0x004061e0,
934 .phy_id = 0x0143bc30,
953 .phy_id = 0x00206040,
972 .phy_id
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/85xx/
H A Dmpc85xx_mds.c292 char phy_id[20]; in board_fixups() local
302 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", in board_fixups()
305 phy_register_fixup_for_id(phy_id, mpc8568_fixup_125_clock); in board_fixups()
306 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups); in board_fixups()
309 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", in board_fixups()
311 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups); in board_fixups()
/kernel/linux/linux-5.10/drivers/net/dsa/b53/
H A Db53_mdio.c293 u32 phy_id; in b53_mdio_probe() local
306 phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; in b53_mdio_probe()
307 phy_id |= mdiobus_read(mdiodev->bus, 0, 3); in b53_mdio_probe()
313 if ((phy_id & 0xfffffc00) != B53_BRCM_OUI_1 && in b53_mdio_probe()
314 (phy_id & 0xfffffc00) != B53_BRCM_OUI_2 && in b53_mdio_probe()
315 (phy_id & 0xfffffc00) != B53_BRCM_OUI_3 && in b53_mdio_probe()
316 (phy_id & 0xfffffc00) != B53_BRCM_OUI_4) { in b53_mdio_probe()
317 dev_err(&mdiodev->dev, "Unsupported device: 0x%08x\n", phy_id); in b53_mdio_probe()
/kernel/linux/linux-6.6/arch/powerpc/platforms/85xx/
H A Dmpc85xx_mds.c284 char phy_id[20]; in board_fixups() local
294 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", in board_fixups()
297 phy_register_fixup_for_id(phy_id, mpc8568_fixup_125_clock); in board_fixups()
298 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups); in board_fixups()
301 snprintf(phy_id, sizeof(phy_id), "%llx:%02x", in board_fixups()
303 phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups); in board_fixups()
/kernel/linux/linux-5.10/drivers/nfc/fdp/
H A Di2c.c48 static int fdp_nci_i2c_enable(void *phy_id) in fdp_nci_i2c_enable() argument
50 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_enable()
57 static void fdp_nci_i2c_disable(void *phy_id) in fdp_nci_i2c_disable() argument
59 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_disable()
87 static int fdp_nci_i2c_write(void *phy_id, struct sk_buff *skb) in fdp_nci_i2c_write() argument
89 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_write()
195 static irqreturn_t fdp_nci_i2c_irq_thread_fn(int irq, void *phy_id) in fdp_nci_i2c_irq_thread_fn() argument
197 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_irq_thread_fn()
/kernel/linux/linux-6.6/drivers/net/mdio/
H A Dmdio-mux.c38 static int mdio_mux_read(struct mii_bus *bus, int phy_id, int regnum) in mdio_mux_read() argument
51 r = pb->mii_bus->read(pb->mii_bus, phy_id, regnum); in mdio_mux_read()
58 static int mdio_mux_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, in mdio_mux_read_c45() argument
72 r = pb->mii_bus->read_c45(pb->mii_bus, phy_id, dev_addr, regnum); in mdio_mux_read_c45()
82 static int mdio_mux_write(struct mii_bus *bus, int phy_id, in mdio_mux_write() argument
97 r = pb->mii_bus->write(pb->mii_bus, phy_id, regnum, val); in mdio_mux_write()
104 static int mdio_mux_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, in mdio_mux_write_c45() argument
119 r = pb->mii_bus->write_c45(pb->mii_bus, phy_id, dev_addr, regnum, val); in mdio_mux_write_c45()
/kernel/linux/linux-6.6/drivers/nfc/fdp/
H A Di2c.c48 static int fdp_nci_i2c_enable(void *phy_id) in fdp_nci_i2c_enable() argument
50 const struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_enable()
57 static void fdp_nci_i2c_disable(void *phy_id) in fdp_nci_i2c_disable() argument
59 const struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_disable()
87 static int fdp_nci_i2c_write(void *phy_id, struct sk_buff *skb) in fdp_nci_i2c_write() argument
89 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_write()
195 static irqreturn_t fdp_nci_i2c_irq_thread_fn(int irq, void *phy_id) in fdp_nci_i2c_irq_thread_fn() argument
197 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_irq_thread_fn()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/
H A Dhns_mdio.c193 u8 is_c45, u8 op, u8 phy_id, u16 cmd) in hns_mdio_cmd_write()
201 (phy_id & MDIO_CMD_PRTAD_M) << MDIO_CMD_PRTAD_S; in hns_mdio_cmd_write()
211 * @phy_id: phy id
218 int phy_id, int regnum, u16 data) in hns_mdio_write()
231 phy_id, is_c45, devad, reg, data); in hns_mdio_write()
249 MDIO_C45_WRITE_ADDR, phy_id, devad); in hns_mdio_write()
266 hns_mdio_cmd_write(mdio_dev, is_c45, op, phy_id, cmd_reg_cfg); in hns_mdio_write()
274 * @phy_id: phy id
279 static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum) in hns_mdio_read() argument
291 phy_id, is_c4 in hns_mdio_read()
192 hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev, u8 is_c45, u8 op, u8 phy_id, u16 cmd) hns_mdio_cmd_write() argument
217 hns_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 data) hns_mdio_write() argument
[all...]

Completed in 15 milliseconds

12345678910>>...27