/kernel/linux/linux-5.10/drivers/scsi/aic94xx/ |
H A 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() 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() 216 asd_bytes_dmaed_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int edb_id, int phy_id) asd_bytes_dmaed_tasklet() argument 238 asd_link_reset_err_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int phy_id) asd_link_reset_err_tasklet() argument 291 asd_primitive_rcvd_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int phy_id) asd_primitive_rcvd_tasklet() argument 402 int phy_id = sb_opcode & DL_PHY_MASK; escb_tasklet_complete() local 628 u8 phy_id = control_phy->phy_id; control_phy_tasklet_complete() local 760 asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) asd_build_control_phy() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/ |
H A 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() 218 asd_bytes_dmaed_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int edb_id, int phy_id) asd_bytes_dmaed_tasklet() argument 240 asd_link_reset_err_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int phy_id) asd_link_reset_err_tasklet() argument 293 asd_primitive_rcvd_tasklet(struct asd_ascb *ascb, struct done_list_struct *dl, int phy_id) asd_primitive_rcvd_tasklet() argument 406 int phy_id = sb_opcode & DL_PHY_MASK; escb_tasklet_complete() local 632 u8 phy_id = control_phy->phy_id; control_phy_tasklet_complete() local 766 asd_build_control_phy(struct asd_ascb *ascb, int phy_id, u8 subfunc) asd_build_control_phy() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A D | mii.c | 40 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_CTRL100 in mii_ethtool_get_link_ksettings() [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H 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() 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_CTRL100 in mii_ethtool_get_link_ksettings() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/libsas/ |
H A 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 sas_ex_to_ata(struct domain_device *ex_dev, int phy_id) sas_ex_to_ata() argument 555 sas_smp_phy_control(struct domain_device *dev, int phy_id, enum phy_func phy_func, struct sas_phy_linkrates *rates) sas_smp_phy_control() argument 595 sas_ex_disable_phy(struct domain_device *dev, int phy_id) sas_ex_disable_phy() argument 681 sas_get_report_phy_sata(struct domain_device *dev, int phy_id, struct smp_rps_resp *rps_resp) sas_get_report_phy_sata() argument 754 sas_ex_add_dev(struct domain_device *parent, struct ex_phy *phy, struct domain_device *child, int phy_id) sas_ex_add_dev() argument 788 sas_ex_discover_end_dev( struct domain_device *parent, int phy_id) sas_ex_discover_end_dev() argument 847 sas_ex_join_wide_port(struct domain_device *parent, int phy_id) sas_ex_join_wide_port() argument 870 sas_ex_discover_expander( struct domain_device *parent, int phy_id) sas_ex_discover_expander() argument 949 sas_ex_discover_dev(struct domain_device *dev, int phy_id) sas_ex_discover_dev() argument 1335 sas_configure_present(struct domain_device *dev, int phy_id, u8 *sas_addr, int *index, int *present) sas_configure_present() argument 1408 sas_configure_set(struct domain_device *dev, int phy_id, u8 *sas_addr, int index, int include) sas_configure_set() argument 1447 sas_configure_phy(struct domain_device *dev, int phy_id, u8 *sas_addr, int include) sas_configure_phy() argument 1624 sas_get_phy_discover(struct domain_device *dev, int phy_id, struct smp_disc_resp *disc_resp) sas_get_phy_discover() argument 1648 sas_get_phy_change_count(struct domain_device *dev, int phy_id, int *pcc) sas_get_phy_change_count() argument 1666 sas_get_phy_attached_dev(struct domain_device *dev, int phy_id, u8 *sas_addr, enum sas_device_type *type) sas_get_phy_attached_dev() argument 1688 sas_find_bcast_phy(struct domain_device *dev, int *phy_id, int from_phy, bool update) sas_find_bcast_phy() argument 1773 int phy_id = -1; sas_find_bcast_dev() local 1822 sas_unregister_devs_sas_addr(struct domain_device *parent, int phy_id, bool last) sas_unregister_devs_sas_addr() argument 1894 sas_discover_new(struct domain_device *dev, int phy_id) sas_discover_new() argument 1937 sas_rediscover_dev(struct domain_device *dev, int phy_id, bool last, int sibling) sas_rediscover_dev() argument 2018 sas_rediscover(struct domain_device *dev, const int phy_id) sas_rediscover() argument 2063 int i = 0, phy_id; sas_ex_revalidate_domain() local 2081 int phy_id; sas_find_attached_phy_id() local [all...] |
H A D | sas_host_smp.c | 20 u8 phy_id) in sas_host_smp_discover() 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() 144 if (phy_id > in sas_report_phy_sata() 19 sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data, u8 phy_id) sas_host_smp_discover() argument 137 sas_report_phy_sata(struct sas_ha_struct *sas_ha, u8 *resp_data, u8 phy_id) sas_report_phy_sata() argument 180 sas_phy_control(struct sas_ha_struct *sas_ha, u8 phy_id, u8 phy_op, enum sas_linkrate min, enum sas_linkrate max, u8 *resp_data) sas_phy_control() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/libsas/ |
H A D | sas_expander.c | 25 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 sas_ex_to_ata(struct domain_device *ex_dev, int phy_id) sas_ex_to_ata() argument 577 sas_smp_phy_control(struct domain_device *dev, int phy_id, enum phy_func phy_func, struct sas_phy_linkrates *rates) sas_smp_phy_control() argument 617 sas_ex_disable_phy(struct domain_device *dev, int phy_id) sas_ex_disable_phy() argument 703 sas_get_report_phy_sata(struct domain_device *dev, int phy_id, struct smp_resp *rps_resp) sas_get_report_phy_sata() argument 778 sas_ex_discover_end_dev( struct domain_device *parent, int phy_id) sas_ex_discover_end_dev() argument 914 sas_ex_join_wide_port(struct domain_device *parent, int phy_id) sas_ex_join_wide_port() argument 937 sas_ex_discover_expander( struct domain_device *parent, int phy_id) sas_ex_discover_expander() argument 1016 sas_ex_discover_dev(struct domain_device *dev, int phy_id) sas_ex_discover_dev() argument 1386 sas_configure_present(struct domain_device *dev, int phy_id, u8 *sas_addr, int *index, int *present) sas_configure_present() argument 1459 sas_configure_set(struct domain_device *dev, int phy_id, u8 *sas_addr, int index, int include) sas_configure_set() argument 1498 sas_configure_phy(struct domain_device *dev, int phy_id, u8 *sas_addr, int include) sas_configure_phy() argument 1675 sas_get_phy_discover(struct domain_device *dev, int phy_id, struct smp_resp *disc_resp) sas_get_phy_discover() argument 1701 sas_get_phy_change_count(struct domain_device *dev, int phy_id, int *pcc) sas_get_phy_change_count() argument 1719 sas_get_phy_attached_dev(struct domain_device *dev, int phy_id, u8 *sas_addr, enum sas_device_type *type) sas_get_phy_attached_dev() argument 1743 sas_find_bcast_phy(struct domain_device *dev, int *phy_id, int from_phy, bool update) sas_find_bcast_phy() argument 1828 int phy_id = -1; sas_find_bcast_dev() local 1877 sas_unregister_devs_sas_addr(struct domain_device *parent, int phy_id, bool last) sas_unregister_devs_sas_addr() argument 1950 sas_discover_new(struct domain_device *dev, int phy_id) sas_discover_new() argument 1994 sas_rediscover_dev(struct domain_device *dev, int phy_id, bool last, int sibling) sas_rediscover_dev() argument 2075 sas_rediscover(struct domain_device *dev, const int phy_id) sas_rediscover() argument 2121 int i = 0, phy_id; sas_ex_revalidate_domain() local [all...] |
H A D | sas_host_smp.c | 20 u8 phy_id) in sas_host_smp_discover() 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() 144 if (phy_id > in sas_report_phy_sata() 19 sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data, u8 phy_id) sas_host_smp_discover() argument 137 sas_report_phy_sata(struct sas_ha_struct *sas_ha, u8 *resp_data, u8 phy_id) sas_report_phy_sata() argument 180 sas_phy_control(struct sas_ha_struct *sas_ha, u8 phy_id, u8 phy_op, enum sas_linkrate min, enum sas_linkrate max, u8 *resp_data) sas_phy_control() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/mvsas/ |
H A 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() 164 set_phy_rate(struct mvs_info *mvi, int phy_id, u8 rate) set_phy_rate() argument 203 mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) mvs_94xx_config_reg_from_hba() argument 244 mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) mvs_94xx_enable_xmt() argument 254 mvs_94xx_phy_reset(struct mvs_info *mvi, u32 phy_id, int hard) mvs_94xx_phy_reset() argument 286 mvs_94xx_phy_disable(struct mvs_info *mvi, u32 phy_id) mvs_94xx_phy_disable() argument 294 mvs_94xx_phy_enable(struct mvs_info *mvi, u32 phy_id) mvs_94xx_phy_enable() argument 894 mvs_94xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id, struct sas_phy_linkrates *rates) mvs_94xx_phy_set_link_rate() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/mvsas/ |
H A 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() 164 set_phy_rate(struct mvs_info *mvi, int phy_id, u8 rate) set_phy_rate() argument 203 mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) mvs_94xx_config_reg_from_hba() argument 244 mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) mvs_94xx_enable_xmt() argument 254 mvs_94xx_phy_reset(struct mvs_info *mvi, u32 phy_id, int hard) mvs_94xx_phy_reset() argument 286 mvs_94xx_phy_disable(struct mvs_info *mvi, u32 phy_id) mvs_94xx_phy_disable() argument 294 mvs_94xx_phy_enable(struct mvs_info *mvi, u32 phy_id) mvs_94xx_phy_enable() argument 894 mvs_94xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id, struct sas_phy_linkrates *rates) mvs_94xx_phy_set_link_rate() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/pm8001/ |
H 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; 42 TP_printk("ctlr_id = %u phy_id = %u htag = %#x, ctlr_opcode = %#x ata_opcode = %#x running_req = %d", 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) [all...] |
H 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() 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() 656 int phy_id; pm8001_dev_found_notify() local 1001 u32 phy_id, port_id; pm8001_abort_task() local [all...] |
/kernel/linux/linux-6.6/include/linux/fsl/ |
H 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
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
H A D | mdio-i2c.c | 21 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/mdio/ |
H 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() 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() 98 i2c_mii_read_default_c22(struct mii_bus *bus, int phy_id, int reg) i2c_mii_read_default_c22() argument 103 i2c_mii_write_default_c22(struct mii_bus *bus, int phy_id, int reg, u16 val) i2c_mii_write_default_c22() argument 294 i2c_mii_read_rollball(struct mii_bus *bus, int phy_id, int devad, int reg) i2c_mii_read_rollball() argument 326 i2c_mii_write_rollball(struct mii_bus *bus, int phy_id, int devad, int reg, u16 val) i2c_mii_write_rollball() argument [all...] |
H A D | mdio-cavium.c | 29 int phy_id, int devad, int regnum) in cavium_mdiobus_c45_addr() 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, in argument 28 cavium_mdiobus_c45_addr(struct cavium_mdiobus *p, int phy_id, int devad, int regnum) cavium_mdiobus_c45_addr() argument [all...] |
/kernel/linux/linux-6.6/drivers/nfc/s3fwrn5/ |
H 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()
|
H 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,
|
/kernel/linux/linux-5.10/drivers/nfc/nxp-nci/ |
H A D | core.c | 43 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()
|
/kernel/linux/linux-6.6/drivers/char/tpm/st33zp24/ |
H 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() 64 * @param: phy_id, the phy description 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() 80 * @param: phy_id, the phy description 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_registe in st33zp24_i2c_recv() [all...] |
/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/ |
H A D | i2c.c | 36 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() 69 * @param: phy_id, the phy description 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() 85 * @param: phy_id, the phy description 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_registe in st33zp24_i2c_recv() [all...] |
/kernel/linux/linux-5.10/drivers/net/usb/ |
H A 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() 210 /* give phy_id a chance to process reset */ in asix_phy_reset() 215 if (asix_mdio_read(dev->net, dev->mii.phy_id, MII_BMCR) in asix_phy_reset() 222 netdev_err(dev->net, "BMCR_RESET timeout on phy_id in asix_phy_reset() [all...] |
/kernel/linux/linux-5.10/drivers/net/phy/ |
H 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,
|
/kernel/linux/linux-5.10/drivers/nfc/s3fwrn5/ |
H A D | s3fwrn5.h | 33 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,
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H 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,
|