Home
last modified time | relevance | path

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

12345678910>>...14

/Linux-v5.15/drivers/scsi/aic94xx/
Daic94xx_scb.c71 int phy_id = dl->status_block[0] & DL_PHY_MASK; in asd_phy_event_tasklet() local
72 struct asd_phy *phy = &asd_ha->phys[phy_id]; in asd_phy_event_tasklet()
80 ASD_DPRINTK("phy%d: device unplugged\n", phy_id); in asd_phy_event_tasklet()
81 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
88 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
91 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
96 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
102 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
104 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
220 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
[all …]
/Linux-v5.15/drivers/net/
Dmii.c40 advert = mii->mdio_read(mii->dev, mii->phy_id, addr); in mii_get_an()
74 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset()
79 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_gset()
80 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset()
82 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_gset()
83 stat1000 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); in mii_ethtool_gset()
160 cmd->base.phy_address = mii->phy_id; in mii_ethtool_get_link_ksettings()
165 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_get_link_ksettings()
166 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_get_link_ksettings()
168 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_get_link_ksettings()
[all …]
/Linux-v5.15/drivers/scsi/mvsas/
Dmv_94xx.c35 static void set_phy_tuning(struct mvs_info *mvi, int phy_id, in set_phy_tuning() argument
80 mvs_write_port_vsr_addr(mvi, phy_id, setting_0); in set_phy_tuning()
81 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_tuning()
86 mvs_write_port_vsr_data(mvi, phy_id, tmp); in set_phy_tuning()
89 mvs_write_port_vsr_addr(mvi, phy_id, setting_1); in set_phy_tuning()
90 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_tuning()
93 mvs_write_port_vsr_data(mvi, phy_id, tmp); in set_phy_tuning()
97 static void set_phy_ffe_tuning(struct mvs_info *mvi, int phy_id, in set_phy_ffe_tuning() argument
114 mvs_write_port_vsr_addr(mvi, phy_id, VSR_PHY_FFE_CONTROL); in set_phy_ffe_tuning()
115 tmp = mvs_read_port_vsr_data(mvi, phy_id); in set_phy_ffe_tuning()
[all …]
Dmv_64xx.c28 static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) in mvs_64xx_enable_xmt() argument
35 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT); in mvs_64xx_enable_xmt()
37 tmp |= 1 << (phy_id + PCS_EN_PORT_XMT_SHIFT2); in mvs_64xx_enable_xmt()
67 static void mvs_64xx_stp_reset(struct mvs_info *mvi, u32 phy_id) in mvs_64xx_stp_reset() argument
73 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
82 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset()
83 tmp |= (1U << phy_id) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
85 tmp |= (1U << (phy_id - MVS_SOC_PORTS)) << PCTL_LINK_OFFS; in mvs_64xx_stp_reset()
88 if (phy_id < MVS_SOC_PORTS) { in mvs_64xx_stp_reset()
104 static void mvs_64xx_phy_reset(struct mvs_info *mvi, u32 phy_id, int hard) in mvs_64xx_phy_reset() argument
[all …]
/Linux-v5.15/drivers/scsi/libsas/
Dsas_expander.c25 static int sas_configure_phy(struct domain_device *dev, int phy_id,
195 static void sas_set_ex_phy(struct domain_device *dev, int phy_id, void *rsp) in sas_set_ex_phy() argument
204 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
212 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
240 phy->phy_id = phy_id; in sas_set_ex_phy()
249 phy->phy_id = phy_id; in sas_set_ex_phy()
276 phy->phy->identify.phy_identifier = phy_id; in sas_set_ex_phy()
339 SAS_ADDR(dev->sas_addr), phy->phy_id, in sas_set_ex_phy()
345 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id) in sas_ex_to_ata() argument
347 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata()
[all …]
Dsas_host_smp.c20 u8 phy_id) in sas_host_smp_discover() argument
25 if (phy_id >= sas_ha->num_phys) { in sas_host_smp_discover()
31 phy = sas_ha->sas_phy[phy_id]->phy; in sas_host_smp_discover()
32 resp_data[9] = phy_id; in sas_host_smp_discover()
35 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr, in sas_host_smp_discover()
42 if (!sas_ha->sas_phy[phy_id]->port || in sas_host_smp_discover()
43 !sas_ha->sas_phy[phy_id]->port->port_dev) in sas_host_smp_discover()
46 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover()
138 u8 phy_id) in sas_report_phy_sata() argument
144 if (phy_id >= sas_ha->num_phys) { in sas_report_phy_sata()
[all …]
/Linux-v5.15/drivers/net/mdio/
Dmdio-i2c.c21 static bool i2c_mii_valid_phy_id(int phy_id) in i2c_mii_valid_phy_id() argument
23 return phy_id != 0x10 && phy_id != 0x11; in i2c_mii_valid_phy_id()
26 static unsigned int i2c_mii_phy_addr(int phy_id) in i2c_mii_phy_addr() argument
28 return phy_id + 0x40; in i2c_mii_phy_addr()
31 static int i2c_mii_read(struct mii_bus *bus, int phy_id, int reg) in i2c_mii_read() argument
38 if (!i2c_mii_valid_phy_id(phy_id)) in i2c_mii_read()
48 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read()
65 static int i2c_mii_write(struct mii_bus *bus, int phy_id, int reg, u16 val) in i2c_mii_write() argument
72 if (!i2c_mii_valid_phy_id(phy_id)) in i2c_mii_write()
84 msg.addr = i2c_mii_phy_addr(phy_id); in i2c_mii_write()
Dmdio-cavium.c29 int phy_id, int regnum) in cavium_mdiobus_c45_addr() argument
45 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_c45_addr()
62 int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) in cavium_mdiobus_read() argument
71 int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); in cavium_mdiobus_read()
84 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_read()
103 int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) in cavium_mdiobus_write() argument
112 int r = cavium_mdiobus_c45_addr(p, phy_id, regnum); in cavium_mdiobus_write()
129 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_write()
/Linux-v5.15/drivers/net/phy/
Dvitesse.c288 (phydev->drv->phy_id == PHY_ID_VSC8234 || in vsc82xx_config_intr()
289 phydev->drv->phy_id == PHY_ID_VSC8244 || in vsc82xx_config_intr()
290 phydev->drv->phy_id == PHY_ID_VSC8572 || in vsc82xx_config_intr()
291 phydev->drv->phy_id == PHY_ID_VSC8601) ? in vsc82xx_config_intr()
313 if (phydev->drv->phy_id == PHY_ID_VSC8244 || in vsc82xx_handle_interrupt()
314 phydev->drv->phy_id == PHY_ID_VSC8572 || in vsc82xx_handle_interrupt()
315 phydev->drv->phy_id == PHY_ID_VSC8601) in vsc82xx_handle_interrupt()
407 .phy_id = PHY_ID_VSC8234,
416 .phy_id = PHY_ID_VSC8244,
425 .phy_id = PHY_ID_VSC8572,
[all …]
Dcortina.c48 u32 phy_id = 0; in cortina_probe() local
56 phy_id = id_lsb << 16; in cortina_probe()
62 phy_id |= id_msb; in cortina_probe()
67 if (phy_id != phydev->drv->phy_id) { in cortina_probe()
78 .phy_id = PHY_ID_CS4340,
Dbroadcom.c20 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
23 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
216 if (phydev->drv->phy_id == PHY_ID_BCM50610) { in bcm54xx_phydsp_config()
707 .phy_id = PHY_ID_BCM5411,
719 .phy_id = PHY_ID_BCM5421,
731 .phy_id = PHY_ID_BCM54210E,
743 .phy_id = PHY_ID_BCM5461,
755 .phy_id = PHY_ID_BCM54612E,
767 .phy_id = PHY_ID_BCM54616S,
778 .phy_id = PHY_ID_BCM5464,
[all …]
/Linux-v5.15/drivers/char/tpm/st33zp24/
Di2c.c36 static int write8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in write8_reg() argument
38 struct st33zp24_i2c_phy *phy = phy_id; in write8_reg()
53 static int read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in read8_reg() argument
55 struct st33zp24_i2c_phy *phy = phy_id; in read8_reg()
75 static int st33zp24_i2c_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_send() argument
78 return write8_reg(phy_id, tpm_register | TPM_WRITE_DIRECTION, tpm_data, in st33zp24_i2c_send()
91 static int st33zp24_i2c_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_recv() argument
94 return read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_i2c_recv()
113 struct st33zp24_i2c_phy *phy = tpm_dev->phy_id; in st33zp24_i2c_acpi_request_resources()
145 struct st33zp24_i2c_phy *phy = tpm_dev->phy_id; in st33zp24_i2c_of_request_resources()
[all …]
Dst33zp24.c72 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption()
73 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption()
88 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel()
101 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status()
116 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in check_locality()
141 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in request_locality()
169 tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in release_locality()
186 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 1, in get_burstcount()
192 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 2, in get_burstcount()
318 ret = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_DATA_FIFO, in recv_data()
[all …]
Dspi.c101 static int st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_send() argument
105 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_send()
144 static int st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_read8_reg() argument
148 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_read8_reg()
185 static int st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_recv() argument
190 ret = st33zp24_spi_read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_spi_recv()
196 static int st33zp24_spi_evaluate_latency(void *phy_id) in st33zp24_spi_evaluate_latency() argument
198 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_evaluate_latency()
204 status = st33zp24_spi_read8_reg(phy_id, TPM_INTF_CAPABILITY, in st33zp24_spi_evaluate_latency()
232 struct st33zp24_spi_phy *phy = tpm_dev->phy_id; in st33zp24_spi_acpi_request_resources()
[all …]
Dst33zp24.h15 void *phy_id; member
26 int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
27 int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
35 int st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops,
/Linux-v5.15/drivers/nfc/s3fwrn5/
Dphy_common.c17 void s3fwrn5_phy_set_wake(void *phy_id, bool wake) in s3fwrn5_phy_set_wake() argument
19 struct phy_common *phy = phy_id; in s3fwrn5_phy_set_wake()
51 void s3fwrn5_phy_set_mode(void *phy_id, enum s3fwrn5_mode mode) in s3fwrn5_phy_set_mode() argument
53 struct phy_common *phy = phy_id; in s3fwrn5_phy_set_mode()
63 enum s3fwrn5_mode s3fwrn5_phy_get_mode(void *phy_id) in s3fwrn5_phy_get_mode() argument
65 struct phy_common *phy = phy_id; in s3fwrn5_phy_get_mode()
Ds3fwrn5.h33 void *phy_id; member
49 info->phy_ops->set_mode(info->phy_id, mode); in s3fwrn5_set_mode()
59 return info->phy_ops->get_mode(info->phy_id); in s3fwrn5_get_mode()
67 info->phy_ops->set_wake(info->phy_id, wake); in s3fwrn5_set_wake()
77 return info->phy_ops->write(info->phy_id, skb); in s3fwrn5_write()
80 int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,
/Linux-v5.15/drivers/net/usb/
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()
215 if (asix_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR) in asix_phy_reset()
223 dev->mii.phy_id); in asix_phy_reset()
266 dev->mii.phy_id = asix_read_phy_addr(dev, true); in ax88172_bind()
[all …]
/Linux-v5.15/drivers/nfc/nxp-nci/
Dcore.c43 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_NCI); in nxp_nci_open()
60 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_close()
79 r = info->phy_ops->write(info->phy_id, skb); in nxp_nci_send()
93 int nxp_nci_probe(void *phy_id, struct device *pdev, in nxp_nci_probe() argument
105 info->phy_id = phy_id; in nxp_nci_probe()
114 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_probe()
150 info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_remove()
/Linux-v5.15/drivers/net/ethernet/sis/
Dsis190.c297 int phy_id; member
383 static void mdio_write(void __iomem *ioaddr, int phy_id, int reg, int val) in mdio_write() argument
386 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift) | in mdio_write()
390 static int mdio_read(void __iomem *ioaddr, int phy_id, int reg) in mdio_read() argument
393 (((u32) reg) << EhnMIIregShift) | (phy_id << EhnMIIpmdShift)); in mdio_read()
398 static void __mdio_write(struct net_device *dev, int phy_id, int reg, int val) in __mdio_write() argument
402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write()
405 static int __mdio_read(struct net_device *dev, int phy_id, int reg) in __mdio_read() argument
409 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
412 static u16 mdio_read_latched(void __iomem *ioaddr, int phy_id, int reg) in mdio_read_latched() argument
[all …]
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/
Daq_phy.c28 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_read_word()
54 u16 phy_addr = aq_hw->phy_id << 5 | mmd; in aq_mdio_write_word()
117 for (aq_hw->phy_id = 0; aq_hw->phy_id < HW_ATL_PHY_ID_MAX; in aq_phy_init_phy_id()
118 ++aq_hw->phy_id) { in aq_phy_init_phy_id()
133 if (aq_hw->phy_id == HW_ATL_PHY_ID_MAX) in aq_phy_init()
146 aq_hw->phy_id = HW_ATL_PHY_ID_MAX; in aq_phy_init()
/Linux-v5.15/drivers/net/ethernet/xilinx/
Dll_temac_mdio.c24 static int temac_mdio_read(struct mii_bus *bus, int phy_id, int reg) in temac_mdio_read() argument
34 temac_iow(lp, XTE_LSW0_OFFSET, (phy_id << 5) | reg); in temac_mdio_read()
39 phy_id, reg, rc); in temac_mdio_read()
44 static int temac_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) in temac_mdio_write() argument
50 phy_id, reg, val); in temac_mdio_write()
57 temac_indirect_out32_locked(lp, XTE_MIIMAI_OFFSET, (phy_id << 5) | reg); in temac_mdio_write()
/Linux-v5.15/include/linux/fsl/
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
/Linux-v5.15/drivers/net/ethernet/freescale/
Dfec_mpc52xx_phy.c27 static int mpc52xx_fec_mdio_transfer(struct mii_bus *bus, int phy_id, in mpc52xx_fec_mdio_transfer() argument
34 value |= (phy_id << FEC_MII_DATA_PA_SHIFT) & FEC_MII_DATA_PA_MSK; in mpc52xx_fec_mdio_transfer()
51 static int mpc52xx_fec_mdio_read(struct mii_bus *bus, int phy_id, int reg) in mpc52xx_fec_mdio_read() argument
53 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, FEC_MII_READ_FRAME); in mpc52xx_fec_mdio_read()
56 static int mpc52xx_fec_mdio_write(struct mii_bus *bus, int phy_id, int reg, in mpc52xx_fec_mdio_write() argument
59 return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, in mpc52xx_fec_mdio_write()
/Linux-v5.15/drivers/scsi/pm8001/
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()
[all …]

12345678910>>...14