/linux-6.6.21/drivers/scsi/aic94xx/ |
D | aic94xx_scb.c | 71 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-6.6.21/drivers/net/ |
D | mii.c | 40 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-6.6.21/drivers/scsi/mvsas/ |
D | mv_94xx.c | 35 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 …]
|
D | mv_64xx.c | 28 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-6.6.21/drivers/scsi/libsas/ |
D | sas_expander.c | 25 static int sas_configure_phy(struct domain_device *dev, int phy_id, 178 static void sas_set_ex_phy(struct domain_device *dev, int phy_id, in sas_set_ex_phy() argument 187 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy() 195 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy() 223 phy->phy_id = phy_id; in sas_set_ex_phy() 232 phy->phy_id = phy_id; in sas_set_ex_phy() 259 phy->phy->identify.phy_identifier = phy_id; in sas_set_ex_phy() 322 SAS_ADDR(dev->sas_addr), phy->phy_id, in sas_set_ex_phy() 328 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id) in sas_ex_to_ata() argument 330 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata() [all …]
|
D | sas_host_smp.c | 20 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-6.6.21/drivers/scsi/pm8001/ |
D | pm80xx_tracepoints.h | 19 TP_PROTO(u32 id, u32 phy_id, u32 htag, u32 ctlr_opcode, 22 TP_ARGS(id, phy_id, htag, ctlr_opcode, ata_opcode, running_req), 26 __field(u32, phy_id) 35 __entry->phy_id = phy_id; 43 __entry->id, __entry->phy_id, __entry->htag, 49 TP_PROTO(u32 id, u32 phy_id, u32 htag, u32 ctlr_opcode, 52 TP_ARGS(id, phy_id, htag, ctlr_opcode, ata_opcode, running_req), 56 __field(u32, phy_id) 65 __entry->phy_id = phy_id; 73 __entry->id, __entry->phy_id, __entry->htag,
|
D | pm8001_sas.c | 161 int rc = 0, phy_id = sas_phy->id; in pm8001_phy_control() local 168 phy = &pm8001_ha->phy[phy_id]; in pm8001_phy_control() 169 pm8001_ha->phy[phy_id].enable_completion = &completion; in pm8001_phy_control() 185 pm8001_ha->phy[phy_id].minimum_linkrate = in pm8001_phy_control() 189 pm8001_ha->phy[phy_id].maximum_linkrate = in pm8001_phy_control() 192 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 193 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); in pm8001_phy_control() 196 PM8001_CHIP_DISP->phy_ctl_req(pm8001_ha, phy_id, in pm8001_phy_control() 200 if (pm8001_ha->phy[phy_id].phy_state == PHY_LINK_DISABLE) { in pm8001_phy_control() 201 PM8001_CHIP_DISP->phy_start_req(pm8001_ha, phy_id); in pm8001_phy_control() [all …]
|
/linux-6.6.21/drivers/net/mdio/ |
D | mdio-i2c.c | 23 static bool i2c_mii_valid_phy_id(int phy_id) in i2c_mii_valid_phy_id() argument 25 return phy_id != 0x10 && phy_id != 0x11; in i2c_mii_valid_phy_id() 28 static unsigned int i2c_mii_phy_addr(int phy_id) in i2c_mii_phy_addr() argument 30 return phy_id + 0x40; in i2c_mii_phy_addr() 33 static int i2c_mii_read_default_c45(struct mii_bus *bus, int phy_id, int devad, in i2c_mii_read_default_c45() argument 41 if (!i2c_mii_valid_phy_id(phy_id)) in i2c_mii_read_default_c45() 51 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read_default_c45() 68 static int i2c_mii_write_default_c45(struct mii_bus *bus, int phy_id, in i2c_mii_write_default_c45() argument 76 if (!i2c_mii_valid_phy_id(phy_id)) in i2c_mii_write_default_c45() 88 msg.addr = i2c_mii_phy_addr(phy_id); in i2c_mii_write_default_c45() [all …]
|
D | mdio-cavium.c | 29 int phy_id, int devad, int regnum) in cavium_mdiobus_c45_addr() argument 43 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_c45_addr() 60 int cavium_mdiobus_read_c22(struct mii_bus *bus, int phy_id, int regnum) in cavium_mdiobus_read_c22() argument 71 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_read_c22() 90 int cavium_mdiobus_read_c45(struct mii_bus *bus, int phy_id, int devad, in cavium_mdiobus_read_c45() argument 99 r = cavium_mdiobus_c45_addr(p, phy_id, devad, regnum); in cavium_mdiobus_read_c45() 105 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_read_c45() 124 int cavium_mdiobus_write_c22(struct mii_bus *bus, int phy_id, int regnum, in cavium_mdiobus_write_c22() argument 140 smi_cmd.s.phy_adr = phy_id; in cavium_mdiobus_write_c22() 159 int cavium_mdiobus_write_c45(struct mii_bus *bus, int phy_id, int devad, in cavium_mdiobus_write_c45() argument [all …]
|
/linux-6.6.21/include/linux/fsl/ |
D | enetc_mdio.h | 40 int enetc_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum); 41 int enetc_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, 43 int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, int devad, int regnum); 44 int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int devad, int regnum, 50 static inline int enetc_mdio_read_c22(struct mii_bus *bus, int phy_id, in enetc_mdio_read_c22() argument 53 static inline int enetc_mdio_write_c22(struct mii_bus *bus, int phy_id, in enetc_mdio_write_c22() argument 56 static inline int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, in enetc_mdio_read_c45() argument 59 static inline int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, in enetc_mdio_write_c45() argument
|
/linux-6.6.21/drivers/net/phy/ |
D | vitesse.c | 288 (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 …]
|
D | cortina.c | 48 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,
|
/linux-6.6.21/drivers/char/tpm/st33zp24/ |
D | i2c.c | 31 static int write8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in write8_reg() argument 33 struct st33zp24_i2c_phy *phy = phy_id; in write8_reg() 48 static int read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in read8_reg() argument 50 struct st33zp24_i2c_phy *phy = phy_id; in read8_reg() 70 static int st33zp24_i2c_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_send() argument 73 return write8_reg(phy_id, tpm_register | TPM_WRITE_DIRECTION, tpm_data, in st33zp24_i2c_send() 86 static int st33zp24_i2c_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_recv() argument 89 return read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_i2c_recv()
|
D | spi.c | 96 static int st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_send() argument 100 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_send() 139 static int st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_read8_reg() argument 143 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_read8_reg() 180 static int st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_recv() argument 185 ret = st33zp24_spi_read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_spi_recv() 191 static int st33zp24_spi_evaluate_latency(void *phy_id) in st33zp24_spi_evaluate_latency() argument 193 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_evaluate_latency() 199 status = st33zp24_spi_read8_reg(phy_id, TPM_INTF_CAPABILITY, in st33zp24_spi_evaluate_latency()
|
D | st33zp24.c | 71 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 72 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 85 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel() 96 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status() 109 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in check_locality() 129 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in request_locality() 153 tpm_dev->ops->send(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in release_locality() 168 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 1, in get_burstcount() 174 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 2, in get_burstcount() 277 ret = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_DATA_FIFO, in recv_data() [all …]
|
D | st33zp24.h | 18 void *phy_id; member 29 int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size); 30 int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size); 38 int st33zp24_probe(void *phy_id, const struct st33zp24_phy_ops *ops,
|
/linux-6.6.21/drivers/nfc/s3fwrn5/ |
D | phy_common.c | 17 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()
|
D | s3fwrn5.h | 33 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-6.6.21/drivers/net/ethernet/freescale/enetc/ |
D | enetc_mdio.c | 58 int enetc_mdio_write_c22(struct mii_bus *bus, int phy_id, int regnum, in enetc_mdio_write_c22() argument 77 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c22() 91 int enetc_mdio_write_c45(struct mii_bus *bus, int phy_id, int dev_addr, in enetc_mdio_write_c45() argument 108 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write_c45() 129 int enetc_mdio_read_c22(struct mii_bus *bus, int phy_id, int regnum) in enetc_mdio_read_c22() argument 147 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read_c22() 161 phy_id, dev_addr, regnum); in enetc_mdio_read_c22() 171 int enetc_mdio_read_c45(struct mii_bus *bus, int phy_id, int dev_addr, in enetc_mdio_read_c45() argument 189 mdio_ctl = MDIO_CTL_PORT_ADDR(phy_id) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read_c45() 210 phy_id, dev_addr, regnum); in enetc_mdio_read_c45()
|
/linux-6.6.21/drivers/net/ethernet/sis/ |
D | sis190.c | 297 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-6.6.21/drivers/net/usb/ |
D | asix_devices.c | 73 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-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_phy.c | 28 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-6.6.21/drivers/nfc/nxp-nci/ |
D | core.c | 46 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_NCI); in nxp_nci_open() 63 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_close() 86 r = info->phy_ops->write(info->phy_id, skb); in nxp_nci_send() 134 int nxp_nci_probe(void *phy_id, struct device *pdev, in nxp_nci_probe() argument 146 info->phy_id = phy_id; in nxp_nci_probe() 155 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_probe() 191 info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_remove()
|
/linux-6.6.21/drivers/net/ethernet/xilinx/ |
D | ll_temac_mdio.c | 24 static int temac_mdio_read(struct mii_bus *bus, int phy_id, int reg) in temac_mdio_read() argument 35 temac_iow(lp, XTE_LSW0_OFFSET, (phy_id << 5) | reg); in temac_mdio_read() 40 phy_id, reg, rc); in temac_mdio_read() 45 static int temac_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) in temac_mdio_write() argument 51 phy_id, reg, val); in temac_mdio_write() 58 temac_indirect_out32_locked(lp, XTE_MIIMAI_OFFSET, (phy_id << 5) | reg); in temac_mdio_write()
|