| /linux/drivers/media/pci/intel/ipu6/ |
| A D | ipu6-isys-dwc-phy.c | 96 temp = dwc_dphy_read(isys, phy_id, addr); in dwc_dphy_write_mask() 99 dwc_dphy_write(isys, phy_id, addr, temp); in dwc_dphy_write_mask() 204 phy_id, 0x1e, 0, 4); in dwc_dphy_pwr_up() 303 u32 phy_id, u32 mbps) in ipu6_isys_dwc_phy_config() argument 408 ret = dwc_dphy_pwr_up(isys, phy_id); in ipu6_isys_dwc_phy_powerup_ack() 418 dev_dbg(dev, "Dphy %u is ready!", phy_id); in ipu6_isys_dwc_phy_powerup_ack() 454 u32 phy_id, primary, secondary; in ipu6_isys_dwc_phy_set_power() local 482 phy_id = port; in ipu6_isys_dwc_phy_set_power() 511 phy_id, nlanes); in ipu6_isys_dwc_phy_set_power() 513 ipu6_isys_dwc_phy_reset(isys, phy_id); in ipu6_isys_dwc_phy_set_power() [all …]
|
| A D | ipu6-isys-mcd-phy.c | 579 u8 phy_id; in ipu6_isys_mcd_phy_common_init() local 583 phy_id = s_asd->csi2.port / 4; in ipu6_isys_mcd_phy_common_init() 632 int phy_port, phy_id; in ipu6_isys_mcd_phy_config() local 647 phy_id = cfg.port / 4; in ipu6_isys_mcd_phy_config() 672 u8 port, phy_id; in ipu6_isys_mcd_phy_set_power() local 677 phy_id = port / 4; in ipu6_isys_mcd_phy_set_power() 679 ref = &phy_power_ref_count[phy_id]; in ipu6_isys_mcd_phy_set_power() 691 dev_dbg(dev, "for phy %d is already UP", phy_id); in ipu6_isys_mcd_phy_set_power() 700 ipu6_isys_mcd_phy_reset(isys, phy_id, 0); in ipu6_isys_mcd_phy_set_power() 707 ipu6_isys_mcd_phy_reset(isys, phy_id, 1); in ipu6_isys_mcd_phy_set_power() [all …]
|
| /linux/drivers/scsi/aic94xx/ |
| A D | aic94xx_scb.c | 242 int phy_id) in asd_link_reset_err_tasklet() argument 284 phy_id); in asd_link_reset_err_tasklet() 295 int phy_id) in asd_primitive_rcvd_tasklet() argument 336 phy_id); in asd_primitive_rcvd_tasklet() 553 phy_id); in escb_tasklet_complete() 562 phy_id); in escb_tasklet_complete() 632 u8 phy_id = control_phy->phy_id; in control_phy_tasklet_complete() local 667 phy_id); in control_phy_tasklet_complete() 773 control_phy->phy_id = (u8) phy_id; in asd_build_control_phy() 821 u8 phy_id = link_adm->phy_id; [all …]
|
| /linux/drivers/net/ |
| A 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() 160 cmd->base.phy_address = mii->phy_id; in mii_ethtool_get_link_ksettings() 250 if (ecmd->phy_address != mii->phy_id) in mii_ethtool_sset() 341 if (cmd->base.phy_address != mii->phy_id) in mii_ethtool_set_link_ksettings() 371 advert2 = mii->mdio_read(dev, mii->phy_id, in mii_ethtool_set_link_ksettings() 592 mii_data->phy_id &= mii_if->phy_id_mask; in generic_mii_ioctl() 597 mii_data->phy_id = mii_if->phy_id; in generic_mii_ioctl() [all …]
|
| /linux/drivers/scsi/mvsas/ |
| A D | mv_94xx.c | 236 set_phy_tuning(mvi, phy_id, in mvs_94xx_config_reg_from_hba() 238 set_phy_ffe_tuning(mvi, phy_id, in mvs_94xx_config_reg_from_hba() 239 mvi->hba_info_param.ffe_ctl[phy_id]); in mvs_94xx_config_reg_from_hba() 240 set_phy_rate(mvi, phy_id, in mvs_94xx_config_reg_from_hba() 269 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_94xx_phy_reset() 271 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_94xx_phy_reset() 280 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_94xx_phy_reset() 282 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_94xx_phy_reset() 855 att_dev_info |= (u32)id->phy_id<<24; in mvs_94xx_make_dev_info() 900 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_94xx_phy_set_link_rate() [all …]
|
| A D | mv_64xx.c | 73 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset() 82 if (phy_id < MVS_SOC_PORTS) in mvs_64xx_stp_reset() 88 if (phy_id < MVS_SOC_PORTS) { in mvs_64xx_stp_reset() 110 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset() 115 mvs_write_phy_ctl(mvi, phy_id, tmp); in mvs_64xx_phy_reset() 118 tmp = mvs_read_phy_ctl(mvi, phy_id); in mvs_64xx_phy_reset() 200 if (phy_id < 4) in mvs_64xx_phy_disable() 204 phy_id -= 4; in mvs_64xx_phy_disable() 222 if (phy_id < 4) in mvs_64xx_phy_enable() 226 phy_id -= 4; in mvs_64xx_phy_enable() [all …]
|
| /linux/drivers/scsi/libsas/ |
| A D | sas_expander.c | 245 phy->phy_id = phy_id; in sas_set_ex_phy() 254 phy->phy_id = phy_id; in sas_set_ex_phy() 849 phy_id); in sas_ex_discover_end_dev() 1014 phy_id); in sas_ex_discover_dev() 1043 phy_id); in sas_ex_discover_dev() 1737 *phy_id = i; in sas_find_bcast_phy() 1797 int phy_id = -1; in sas_find_bcast_dev() local 2105 phy_id = -1; in sas_ex_revalidate_domain() 2120 int phy_id; in sas_find_attached_phy_id() local 2122 for (phy_id = 0; phy_id < ex_dev->num_phys; phy_id++) { in sas_find_attached_phy_id() [all …]
|
| A 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() 42 if (!sas_ha->sas_phy[phy_id]->port || 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() 151 if (!sas_ha->sas_phy[phy_id]->port) in sas_report_phy_sata() 161 resp_data[9] = phy_id; in sas_report_phy_sata() 189 if (phy_id >= sas_ha->num_phys) { in sas_phy_control() [all …]
|
| /linux/drivers/scsi/pm8001/ |
| A 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,
|
| A 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() 245 (phy_id < 4) ? 0x30000 : 0x40000)) { in pm8001_phy_control() 253 + 0x1034 + (0x4000 * (phy_id & 3)); in pm8001_phy_control() 658 int phy_id; in pm8001_dev_found_notify() local 661 if (phy_id < 0) { in pm8001_dev_found_notify() 666 res = phy_id; in pm8001_dev_found_notify() 668 pm8001_device->attached_phy = phy_id; in pm8001_dev_found_notify() 1003 u32 phy_id, port_id; in pm8001_abort_task() local 1012 phy_id = pm8001_dev->attached_phy; in pm8001_abort_task() [all …]
|
| /linux/drivers/net/mdio/ |
| A 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() 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() 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() 100 return i2c_mii_read_default_c45(bus, phy_id, -1, reg); in i2c_mii_read_default_c22() 301 bus_addr = i2c_mii_phy_addr(phy_id); in i2c_mii_read_rollball() [all …]
|
| A 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() 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 168 r = cavium_mdiobus_c45_addr(p, phy_id, devad, regnum); in cavium_mdiobus_write_c45() [all …]
|
| /linux/include/linux/fsl/ |
| A 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/drivers/char/tpm/st33zp24/ |
| A 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()
|
| A 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()
|
| A D | st33zp24.c | 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() 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() 334 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_DATA_FIFO, in st33zp24_send() 348 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_DATA_FIFO, in st33zp24_send() 360 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_send() 463 tpm_dev->phy_id = phy_id; in st33zp24_probe() [all …]
|
| /linux/drivers/nfc/s3fwrn5/ |
| A 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()
|
| A 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/drivers/net/phy/ |
| A D | vitesse.c | 564 .phy_id = PHY_ID_VSC8234, 573 .phy_id = PHY_ID_VSC8244, 582 .phy_id = PHY_ID_VSC8572, 591 .phy_id = PHY_ID_VSC8601, 599 .phy_id = PHY_ID_VSC7385, 611 .phy_id = PHY_ID_VSC7388, 623 .phy_id = PHY_ID_VSC7395, 635 .phy_id = PHY_ID_VSC7398, 647 .phy_id = PHY_ID_VSC8662, 657 .phy_id = PHY_ID_VSC8221, [all …]
|
| A 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/drivers/net/ethernet/freescale/enetc/ |
| A 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/drivers/net/ethernet/sis/ |
| A D | sis190.c | 297 int phy_id; member 414 mdio_read(ioaddr, phy_id, reg); in mdio_read_latched() 415 return mdio_read(ioaddr, phy_id, reg); in mdio_read_latched() 922 int phy_id = tp->mii_if.phy_id; in sis190_phy_task() local 1309 if (mii_if->phy_id != phy_default->phy_id) { in sis190_default_phy() 1310 mii_if->phy_id = phy_default->phy_id; in sis190_default_phy() 1334 phy->phy_id = phy_id; in sis190_init_phy() 1367 int phy_id = tp->mii_if.phy_id; in sis190_mii_probe_88e1111_fixup() local 1395 int phy_id; in sis190_mii_probe() local 1400 for (phy_id = 0; phy_id < PHY_MAX_ADDR; phy_id++) { in sis190_mii_probe() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dio/dcn32/ |
| A D | dcn32_dio_link_encoder.c | 67 uint8_t phy_id; in phy_id_from_transmitter() local 71 phy_id = 0; in phy_id_from_transmitter() 74 phy_id = 1; in phy_id_from_transmitter() 77 phy_id = 2; in phy_id_from_transmitter() 80 phy_id = 3; in phy_id_from_transmitter() 83 phy_id = 4; in phy_id_from_transmitter() 86 phy_id = 5; in phy_id_from_transmitter() 89 phy_id = 6; in phy_id_from_transmitter() 92 phy_id = 0; in phy_id_from_transmitter() 95 return phy_id; in phy_id_from_transmitter() [all …]
|
| /linux/drivers/net/usb/ |
| A D | asix_devices.c | 73 u32 phy_id; in asix_get_phyid() local 89 phy_id = (phy_reg & 0xffff) << 16; in asix_get_phyid() 95 phy_id |= (phy_reg & 0xffff); in asix_get_phyid() 97 return phy_id; in asix_get_phyid() 223 dev->mii.phy_id); in asix_phy_reset() 266 dev->mii.phy_id = asix_read_phy_addr(dev, true); in ax88172_bind() 267 if (dev->mii.phy_id < 0) in ax88172_bind() 268 return dev->mii.phy_id; in ax88172_bind() 995 asix_mdio_write(dev->net, dev->mii.phy_id, in marvell_phy_init() 1281 if (dev->mii.phy_id < 0) in ax88178_bind() [all …]
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| A 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()
|