Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/scsi/aic94xx/
A Daic94xx_scb.c242 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 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()
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 Dmv_94xx.c236 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 Dmv_64xx.c73 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 Dsas_expander.c240 phy->phy_id = phy_id; in sas_set_ex_phy()
249 phy->phy_id = phy_id; in sas_set_ex_phy()
596 pc_req[9] = phy_id; in sas_smp_phy_control()
892 phy_id); in sas_ex_discover_end_dev()
1064 phy_id); in sas_ex_discover_dev()
1093 phy_id); in sas_ex_discover_dev()
1769 *phy_id = i; in sas_find_bcast_phy()
1829 int phy_id = -1; in sas_find_bcast_dev() local
2091 if (i == phy_id) in sas_rediscover()
2125 phy_id = -1; in sas_ex_revalidate_domain()
[all …]
A 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()
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/net/mdio/
A 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()
A 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/drivers/net/phy/
A Dvitesse.c407 .phy_id = PHY_ID_VSC8234,
416 .phy_id = PHY_ID_VSC8244,
425 .phy_id = PHY_ID_VSC8572,
434 .phy_id = PHY_ID_VSC8601,
442 .phy_id = PHY_ID_VSC7385,
451 .phy_id = PHY_ID_VSC7388,
460 .phy_id = PHY_ID_VSC7395,
469 .phy_id = PHY_ID_VSC7398,
478 .phy_id = PHY_ID_VSC8662,
488 .phy_id = PHY_ID_VSC8221,
[all …]
A 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,
A Dbroadcom.c786 .phy_id = PHY_ID_BCM5411,
799 .phy_id = PHY_ID_BCM5421,
827 .phy_id = PHY_ID_BCM5461,
865 .phy_id = PHY_ID_BCM5464,
880 .phy_id = PHY_ID_BCM5481,
926 .phy_id = PHY_ID_BCM5482,
939 .phy_id = PHY_ID_BCM50610,
969 .phy_id = PHY_ID_BCM57780,
982 .phy_id = PHY_ID_BCMAC131,
990 .phy_id = PHY_ID_BCM5241,
[all …]
A Dintel-xway.c352 .phy_id = PHY_ID_PHY11G_1_3,
363 .phy_id = PHY_ID_PHY22F_1_3,
374 .phy_id = PHY_ID_PHY11G_1_4,
385 .phy_id = PHY_ID_PHY22F_1_4,
396 .phy_id = PHY_ID_PHY11G_1_5,
406 .phy_id = PHY_ID_PHY22F_1_5,
416 .phy_id = PHY_ID_PHY11G_VR9_1_1,
426 .phy_id = PHY_ID_PHY22F_VR9_1_1,
436 .phy_id = PHY_ID_PHY11G_VR9_1_2,
446 .phy_id = PHY_ID_PHY22F_VR9_1_2,
/linux/drivers/net/usb/
A Dasix_devices.c73 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()
855 asix_mdio_write(dev->net, dev->mii.phy_id, in marvell_phy_init()
1132 if (dev->mii.phy_id < 0) in ax88178_bind()
[all …]
/linux/drivers/char/tpm/st33zp24/
A 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 …]
A Dst33zp24.c88 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()
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()
387 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_DATA_FIFO, in st33zp24_send()
401 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_DATA_FIFO, in st33zp24_send()
413 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_send()
527 tpm_dev->phy_id = phy_id; in st33zp24_probe()
[all …]
A 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()
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()
263 struct st33zp24_spi_phy *phy = tpm_dev->phy_id; in st33zp24_spi_of_request_resources()
[all …]
/linux/drivers/net/ethernet/sis/
A Dsis190.c297 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/nfc/s3fwrn5/
A 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()
A 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/drivers/nfc/nxp-nci/
A 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/drivers/net/ethernet/aquantia/atlantic/
A 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/drivers/scsi/pm8001/
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()
207 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
215 if (pm8001_ha->phy[phy_id].phy_state == in pm8001_phy_control()
229 (phy_id < 4) ? 0x30000 : 0x40000)) { in pm8001_phy_control()
238 + 0x1034 + (0x4000 * (phy_id & 3))); in pm8001_phy_control()
642 int phy_id; in pm8001_dev_found_notify() local
644 for (phy_id = 0; phy_id < parent_dev->ex_dev.num_phys; in pm8001_dev_found_notify()
645 phy_id++) { in pm8001_dev_found_notify()
1186 u32 phy_id; in pm8001_abort_task() local
[all …]
/linux/drivers/net/ethernet/xilinx/
A 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/arch/powerpc/platforms/85xx/
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()
/linux/drivers/nfc/st-nci/
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()

Completed in 69 milliseconds

12345678910>>...14