Home
last modified time | relevance | path

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

1234567891011

/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()
87 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
90 phy_id, phy->sas_phy.linkrate, phy->sas_phy.iproto); in asd_phy_event_tasklet()
95 asd_turn_led(asd_ha, phy_id, 1); in asd_phy_event_tasklet()
100 ASD_DPRINTK("phy%d error while OOB: oob status:0x%x\n", phy_id, in asd_phy_event_tasklet()
102 asd_turn_led(asd_ha, phy_id, 0); in asd_phy_event_tasklet()
218 int edb_id, int phy_id) in asd_bytes_dmaed_tasklet() argument
[all …]
/drivers/net/
Dmii.c40 advert = mii->mdio_read(mii->dev, mii->phy_id, addr); in mii_get_an()
76 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset()
81 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_gset()
82 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset()
84 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_gset()
85 stat1000 = mii->mdio_read(dev, mii->phy_id, MII_STAT1000); in mii_ethtool_gset()
163 cmd->base.phy_address = mii->phy_id; in mii_ethtool_get_link_ksettings()
168 bmcr = mii->mdio_read(dev, mii->phy_id, MII_BMCR); in mii_ethtool_get_link_ksettings()
169 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_get_link_ksettings()
171 ctrl1000 = mii->mdio_read(dev, mii->phy_id, MII_CTRL1000); in mii_ethtool_get_link_ksettings()
[all …]
/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 …]
/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 …]
/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()
/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()
265 dev->mii.phy_id = asix_get_phy_addr(dev); in ax88172_bind()
[all …]
/drivers/net/phy/
Dvitesse.c293 (phydev->drv->phy_id == PHY_ID_VSC8234 || in vsc82xx_config_intr()
294 phydev->drv->phy_id == PHY_ID_VSC8244 || in vsc82xx_config_intr()
295 phydev->drv->phy_id == PHY_ID_VSC8572 || in vsc82xx_config_intr()
296 phydev->drv->phy_id == PHY_ID_VSC8601) ? in vsc82xx_config_intr()
387 .phy_id = PHY_ID_VSC8234,
396 .phy_id = PHY_ID_VSC8244,
405 .phy_id = PHY_ID_VSC8572,
414 .phy_id = PHY_ID_VSC8601,
422 .phy_id = PHY_ID_VSC7385,
431 .phy_id = PHY_ID_VSC7388,
[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.c21 ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask)
24 ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask))
217 if (phydev->drv->phy_id == PHY_ID_BCM50610) { in bcm54xx_phydsp_config()
780 .phy_id = PHY_ID_BCM5411,
788 .phy_id = PHY_ID_BCM5421,
796 .phy_id = PHY_ID_BCM54210E,
804 .phy_id = PHY_ID_BCM5461,
812 .phy_id = PHY_ID_BCM54612E,
820 .phy_id = PHY_ID_BCM54616S,
832 .phy_id = PHY_ID_BCM5464,
[all …]
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 = PHY_ID_PHY22F_VR9_1_2,
/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 …]
/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 …]
/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()
96 int nxp_nci_probe(void *phy_id, struct device *pdev, in nxp_nci_probe() argument
108 info->phy_id = phy_id; in nxp_nci_probe()
117 r = info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_probe()
153 info->phy_ops->set_mode(info->phy_id, NXP_NCI_MODE_COLD); in nxp_nci_remove()
/drivers/nfc/s3fwrn5/
Ds3fwrn5.h33 void *phy_id; member
50 info->phy_ops->set_mode(info->phy_id, mode); in s3fwrn5_set_mode()
60 return info->phy_ops->get_mode(info->phy_id); in s3fwrn5_get_mode()
68 info->phy_ops->set_wake(info->phy_id, wake); in s3fwrn5_set_wake()
78 return info->phy_ops->write(info->phy_id, skb); in s3fwrn5_write()
81 int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,
Di2c.c38 static void s3fwrn5_i2c_set_wake(void *phy_id, bool wake) in s3fwrn5_i2c_set_wake() argument
40 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_wake()
48 static void s3fwrn5_i2c_set_mode(void *phy_id, enum s3fwrn5_mode mode) in s3fwrn5_i2c_set_mode() argument
50 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_mode()
76 static enum s3fwrn5_mode s3fwrn5_i2c_get_mode(void *phy_id) in s3fwrn5_i2c_get_mode() argument
78 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_get_mode()
90 static int s3fwrn5_i2c_write(void *phy_id, struct sk_buff *skb) in s3fwrn5_i2c_write() argument
92 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_write()
164 static irqreturn_t s3fwrn5_i2c_irq_thread_fn(int irq, void *phy_id) in s3fwrn5_i2c_irq_thread_fn() argument
166 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_irq_thread_fn()
/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()
/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 …]
/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()
/drivers/nfc/st-nci/
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()
/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()

1234567891011