/linux/include/linux/phy/ |
A D | phy.h | 81 int (*init)(struct phy *phy); 82 int (*exit)(struct phy *phy); 83 int (*power_on)(struct phy *phy); 84 int (*power_off)(struct phy *phy); 119 int (*reset)(struct phy *phy); 120 int (*calibrate)(struct phy *phy); 121 void (*release)(struct phy *phy); 187 struct phy *phy; member 221 int phy_init(struct phy *phy); 222 int phy_exit(struct phy *phy); [all …]
|
/linux/drivers/phy/ |
A D | phy-core.c | 30 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 44 struct phy *phy = *(struct phy **)res; in devm_phy_consume() local 51 struct phy **phy = res; in devm_phy_match() local 77 pl->phy = phy; in phy_create_lookup() 531 struct phy *phy = NULL; in _of_phy_get() local 579 struct phy *phy = NULL; in of_phy_get() local 666 struct phy *phy; in of_phy_simple_xlate() local 697 struct phy *phy; in phy_get() local 764 struct phy **ptr, *phy; in devm_phy_get() local 904 struct phy *phy; in phy_create() local [all …]
|
/linux/drivers/net/ |
A D | sungem_phy.c | 53 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read() 58 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write() 63 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read() 68 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write() 321 phy->pause = 0; in genmii_setup_aneg() 352 phy->pause = 0; in genmii_setup_forced() 476 phy->pause = 0; in bcm54xx_setup_aneg() 520 phy->pause = 0; in bcm54xx_setup_forced() 564 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link() 752 phy->pause = 0; in marvell_setup_aneg() [all …]
|
/linux/drivers/media/platform/ti-vpe/ |
A D | cal-camerarx.c | 252 cal_write(phy->cal, CAL_CSI2_VC_IRQENABLE(phy->instance), in cal_camerarx_enable_irqs() 365 cal_read(phy->cal, CAL_CSI2_TIMING(phy->instance))); in cal_camerarx_start() 372 cal_read(phy->cal, CAL_CSI2_TIMING(phy->instance))); in cal_camerarx_start() 405 phy->instance, camerarx_read(phy, CAL_CSI2_PHY_REG1)); in cal_camerarx_start() 840 phy = kzalloc(sizeof(*phy), GFP_KERNEL); in cal_camerarx_create() 841 if (!phy) in cal_camerarx_create() 861 phy->res->name, &phy->res->start, &phy->res->end); in cal_camerarx_create() 896 return phy; in cal_camerarx_create() 900 kfree(phy); in cal_camerarx_create() 906 if (!phy) in cal_camerarx_destroy() [all …]
|
/linux/drivers/scsi/libsas/ |
A D | sas_phy.c | 20 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local 29 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local 37 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local 66 struct asd_sas_phy *phy = ev->phy; in sas_phye_spinup_hold() local 78 struct asd_sas_phy *phy = ev->phy; in sas_phye_resume_timeout() local 95 struct asd_sas_phy *phy = ev->phy; in sas_phye_shutdown() local 135 if (!phy->phy) in sas_register_phys() 138 phy->phy->identify.initiator_port_protocols = in sas_register_phys() 140 phy->phy->identify.target_port_protocols = phy->tproto; in sas_register_phys() 142 phy->phy->identify.phy_identifier = i; in sas_register_phys() [all …]
|
/linux/drivers/net/ethernet/ibm/emac/ |
A D | phy.c | 37 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read() 42 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write() 47 return phy->mdio_read(phy->dev, phy->gpcs_address, reg); in gpcs_phy_read() 52 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write() 117 phy->pause = phy->asym_pause = 0; in genmii_setup_aneg() 176 phy->pause = phy->asym_pause = 0; in genmii_setup_forced() 241 phy->pause = phy->asym_pause = 0; in genmii_read_link() 274 phy->pause = phy->asym_pause = 0; in genmii_read_link() 521 phy->pause = phy->asym_pause = 0; in emac_mii_phy_probe() 536 phy->def = def; in emac_mii_phy_probe() [all …]
|
/linux/drivers/phy/hisilicon/ |
A D | phy-hi3670-pcie.c | 582 if (!phy->apb) { in hi3670_pcie_get_resources_from_pcie() 752 if (IS_ERR(phy->crgctrl)) in hi3670_pcie_phy_get_resources() 756 if (IS_ERR(phy->sysctrl)) in hi3670_pcie_phy_get_resources() 760 if (IS_ERR(phy->pmctrl)) in hi3670_pcie_phy_get_resources() 769 if (IS_ERR(phy->aux_clk)) in hi3670_pcie_phy_get_resources() 781 if (IS_ERR(phy->aclk)) in hi3670_pcie_phy_get_resources() 786 if (IS_ERR(phy->base)) in hi3670_pcie_phy_get_resources() 799 struct phy *generic_phy; in hi3670_pcie_phy_probe() 802 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in hi3670_pcie_phy_probe() 803 if (!phy) in hi3670_pcie_phy_probe() [all …]
|
/linux/drivers/phy/ti/ |
A D | phy-ti-pipe3.c | 329 ret = regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_off() 357 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 371 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 376 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 515 ret = regmap_update_bits(phy->pcs_syscon, phy->pcie_pcs_reg, in ti_pipe3_init() 554 if (phy->mode == PIPE3_MODE_SATA && !phy->dpll_reset_syscon) in ti_pipe3_exit() 582 regmap_update_bits(phy->dpll_reset_syscon, phy->dpll_reset_reg, in ti_pipe3_exit() 627 if (phy->mode != PIPE3_MODE_PCIE || phy->phy_power_syscon) { in ti_pipe3_get_clk() 783 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ti_pipe3_probe() 784 if (!phy) in ti_pipe3_probe() [all …]
|
A D | phy-dm816x-usb.c | 90 regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init() 95 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init() 106 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init() 110 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init() 226 phy->phy.dev = phy->dev; in dm816x_usb_phy_probe() 227 phy->phy.label = "dm8168_usb_phy"; in dm816x_usb_phy_probe() 228 phy->phy.otg = otg; in dm816x_usb_phy_probe() 229 phy->phy.type = USB_PHY_TYPE_USB2; in dm816x_usb_phy_probe() 232 otg->usb_phy = &phy->phy; in dm816x_usb_phy_probe() 259 usb_add_phy_dev(&phy->phy); in dm816x_usb_phy_probe() [all …]
|
A D | phy-omap-usb2.c | 132 return phy->comparator->start_srp(phy->comparator); in omap_usb_start_srp() 385 if (!phy) in omap_usb2_probe() 394 phy->phy.dev = phy->dev; in omap_usb2_probe() 395 phy->phy.label = phy_data->label; in omap_usb2_probe() 396 phy->phy.otg = otg; in omap_usb2_probe() 397 phy->phy.type = USB_PHY_TYPE_USB2; in omap_usb2_probe() 439 phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); in omap_usb2_probe() 458 phy->optclk = devm_clk_get(phy->dev, "refclk"); in omap_usb2_probe() 483 otg->usb_phy = &phy->phy; in omap_usb2_probe() 504 usb_add_phy_dev(&phy->phy); in omap_usb2_probe() [all …]
|
/linux/drivers/phy/ralink/ |
A D | phy-ralink-usb.c | 56 struct phy *phy; member 98 phy->clk, phy->clk); in ralink_usb_phy_power_on() 115 if (phy->base) in ralink_usb_phy_power_on() 120 dev_info(&phy->phy->dev, "remote usb device wakeup %s\n", in ralink_usb_phy_power_on() 123 dev_info(&phy->phy->dev, "UTMI 8bit 60MHz\n"); in ralink_usb_phy_power_on() 125 dev_info(&phy->phy->dev, "UTMI 16bit 30MHz\n"); in ralink_usb_phy_power_on() 181 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ralink_usb_phy_probe() 182 if (!phy) in ralink_usb_phy_probe() 216 if (IS_ERR(phy->phy)) { in ralink_usb_phy_probe() 218 return PTR_ERR(phy->phy); in ralink_usb_phy_probe() [all …]
|
A D | phy-mt7621-pci.c | 80 struct phy *phy; member 211 static int mt7621_pci_phy_init(struct phy *phy) in mt7621_pci_phy_init() argument 221 static int mt7621_pci_phy_power_on(struct phy *phy) in mt7621_pci_phy_power_on() argument 237 static int mt7621_pci_phy_power_off(struct phy *phy) in mt7621_pci_phy_power_off() argument 253 static int mt7621_pci_phy_exit(struct phy *phy) in mt7621_pci_phy_exit() argument 300 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in mt7621_pci_phy_probe() 301 if (!phy) in mt7621_pci_phy_probe() 317 phy->regmap = devm_regmap_init_mmio(phy->dev, phy->port_base, in mt7621_pci_phy_probe() 323 if (IS_ERR(phy->phy)) { in mt7621_pci_phy_probe() 325 return PTR_ERR(phy->phy); in mt7621_pci_phy_probe() [all …]
|
/linux/drivers/net/phy/ |
A D | phy_led_triggers.c | 33 if (!phy->link) in phy_led_trigger_change_speed() 36 if (phy->speed == 0) in phy_led_trigger_change_speed() 39 plt = phy_speed_to_led_trigger(phy, phy->speed); in phy_led_trigger_change_speed() 43 phy->speed); in phy_led_trigger_change_speed() 64 phy->mdio.bus->id, phy->mdio.addr, suffix); in phy_led_trigger_format_name() 89 phy->phy_num_led_triggers = phy_supported_speeds(phy, speeds, in phy_led_triggers_register() 94 phy->led_link_trigger = devm_kzalloc(&phy->mdio.dev, in phy_led_triggers_register() 106 phy->phy_led_triggers = devm_kcalloc(&phy->mdio.dev, in phy_led_triggers_register() 116 err = phy_led_trigger_register(phy, &phy->phy_led_triggers[i], in phy_led_triggers_register() 130 devm_kfree(&phy->mdio.dev, phy->phy_led_triggers); in phy_led_triggers_register() [all …]
|
/linux/drivers/nfc/pn544/ |
A D | i2c.c | 487 if (!phy || irq != phy->i2c_dev->irq) { in pn544_hci_i2c_irq_thread_fn() 644 phy->fw_blob_data + phy->fw_written, in pn544_hci_i2c_fw_write_chunk() 645 phy->fw_blob_size - phy->fw_written); in pn544_hci_i2c_fw_write_chunk() 716 phy->fw_blob_data + phy->fw_written, in pn544_hci_i2c_fw_secure_write_frame() 717 phy->fw_blob_size - phy->fw_written); in pn544_hci_i2c_fw_secure_write_frame() 768 phy->fw_size = phy->fw->size; in pn544_hci_i2c_fw_work() 786 if (phy->fw_written == phy->fw_blob_size) { in pn544_hci_i2c_fw_work() 836 if (phy->fw_written == phy->fw_blob_size) { in pn544_hci_i2c_fw_work() 838 (phy->fw_blob_data + phy->fw_blob_size); in pn544_hci_i2c_fw_work() 839 phy->fw_size -= phy->fw_blob_size + in pn544_hci_i2c_fw_work() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | ael1002.c | 147 err = mdio_set_flag(&phy->mdio, phy->mdio.prtad, in ael1002_power_down() 218 ael100x_txon(phy); in t3_ael1002_phy_prep() 244 ael100x_txon(phy); in t3_ael1006_phy_prep() 321 phy->priv = edc_sr; in ael2005_setup_sr_edc() 425 phy->priv = edc_none; in ael2005_reset() 435 phy->modtype = err; in ael2005_reset() 474 phy->modtype = ret; in ael2005_intr_handler() 544 phy->priv = edc_sr; in ael2020_setup_sr_edc() 653 phy2portid(phy)); in ael2020_intr_enable() 739 phy->priv = edc_none; in ael2020_reset() [all …]
|
/linux/drivers/net/ethernet/intel/igb/ |
A D | e1000_phy.c | 56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() local 115 struct e1000_phy_info *phy = &hw->phy; in igb_read_phy_reg_mdic() local 171 struct e1000_phy_info *phy = &hw->phy; in igb_write_phy_reg_mdic() local 228 struct e1000_phy_info *phy = &hw->phy; in igb_read_phy_reg_i2c() local 273 struct e1000_phy_info *phy = &hw->phy; in igb_write_phy_reg_i2c() local 457 struct e1000_phy_info *phy = &hw->phy; in igb_copper_link_setup_82580() local 524 struct e1000_phy_info *phy = &hw->phy; in igb_copper_link_setup_m88() local 628 struct e1000_phy_info *phy = &hw->phy; in igb_copper_link_setup_m88_gen2() local 724 struct e1000_phy_info *phy = &hw->phy; in igb_copper_link_setup_igp() local 863 struct e1000_phy_info *phy = &hw->phy; in igb_copper_link_autoneg() local [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_combo_phy.c | 73 enum phy phy) in icl_set_procmon_ref_values() argument 90 enum phy phy, i915_reg_t reg, u32 mask, in check_phy_reg() argument 108 enum phy phy) in icl_verify_procmon_ref_values() argument 115 ret = check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW1(phy), in icl_verify_procmon_ref_values() 117 ret &= check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW9(phy), in icl_verify_procmon_ref_values() 147 enum phy phy) in icl_combo_phy_enabled() argument 214 enum phy phy) in icl_combo_phy_verify_state() argument 244 ret &= check_phy_reg(dev_priv, phy, ICL_PHY_MISC(phy), in icl_combo_phy_verify_state() 257 enum phy phy, bool is_dsi, in intel_combo_phy_power_up_lanes() argument 310 enum phy phy; in icl_combo_phys_init() local [all …]
|
/linux/drivers/gpu/drm/sun4i/ |
A D | sun8i_hdmi_phy.c | 355 return phy->variant->phy_config(hdmi, phy, mode->crtc_clock * 1000); in sun8i_hdmi_phy_config() 382 phy->variant->phy_disable(hdmi, phy); in sun8i_hdmi_phy_disable() 532 ret = sun8i_phy_clk_create(phy, phy->dev, in sun8i_hdmi_phy_init() 542 phy->variant->phy_init(phy); in sun8i_hdmi_phy_init() 661 if (!phy) in sun8i_hdmi_phy_get() 664 hdmi->phy = phy; in sun8i_hdmi_phy_get() 687 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in sun8i_hdmi_phy_probe() 688 if (!phy) in sun8i_hdmi_phy_probe() 692 phy->dev = dev; in sun8i_hdmi_phy_probe() 760 clk_put(phy->clk_mod); in sun8i_hdmi_phy_probe() [all …]
|
/linux/drivers/usb/phy/ |
A D | phy-ulpi.c | 248 phy->flags = flags; in otg_ulpi_init() 249 phy->io_ops = ops; in otg_ulpi_init() 250 phy->otg = otg; in otg_ulpi_init() 253 otg->usb_phy = phy; in otg_ulpi_init() 265 phy = kzalloc(sizeof(*phy), GFP_KERNEL); in otg_ulpi_create() 266 if (!phy) in otg_ulpi_create() 271 kfree(phy); in otg_ulpi_create() 277 return phy; in otg_ulpi_create() 289 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in devm_otg_ulpi_create() 290 if (!phy) in devm_otg_ulpi_create() [all …]
|
/linux/drivers/phy/allwinner/ |
A D | phy-sun9i-usb.c | 36 struct phy *phy; member 116 struct sun9i_usb_phy *phy; in sun9i_usb_phy_probe() local 121 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in sun9i_usb_phy_probe() 122 if (!phy) in sun9i_usb_phy_probe() 128 if (IS_ERR(phy->clk)) { in sun9i_usb_phy_probe() 146 if (IS_ERR(phy->clk)) { in sun9i_usb_phy_probe() 159 if (IS_ERR(phy->pmu)) in sun9i_usb_phy_probe() 162 phy->phy = devm_phy_create(dev, NULL, &sun9i_usb_phy_ops); in sun9i_usb_phy_probe() 163 if (IS_ERR(phy->phy)) { in sun9i_usb_phy_probe() 165 return PTR_ERR(phy->phy); in sun9i_usb_phy_probe() [all …]
|
/linux/arch/arm64/boot/dts/microchip/ |
A D | sparx5_pcb135_board.dtsi | 212 phy0: ethernet-phy@0 { 215 phy1: ethernet-phy@1 { 218 phy2: ethernet-phy@2 { 221 phy3: ethernet-phy@3 { 224 phy4: ethernet-phy@4 { 227 phy5: ethernet-phy@5 { 230 phy6: ethernet-phy@6 { 233 phy7: ethernet-phy@7 { 236 phy8: ethernet-phy@8 { 239 phy9: ethernet-phy@9 { [all …]
|
/linux/drivers/phy/mediatek/ |
A D | phy-mtk-ufs.c | 49 writel(val, phy->mmio + reg); in mphy_writel() 56 val = mphy_readl(phy, reg); in mphy_set_bit() 58 mphy_writel(phy, val, reg); in mphy_set_bit() 65 val = mphy_readl(phy, reg); in mphy_clr_bit() 67 mphy_writel(phy, val, reg); in mphy_clr_bit() 174 struct phy *generic_phy; in ufs_mtk_phy_probe() 176 struct ufs_mtk_phy *phy; in ufs_mtk_phy_probe() local 179 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ufs_mtk_phy_probe() 180 if (!phy) in ufs_mtk_phy_probe() 184 if (IS_ERR(phy->mmio)) in ufs_mtk_phy_probe() [all …]
|
/linux/drivers/phy/samsung/ |
A D | phy-samsung-ufs.c | 48 static int samsung_ufs_phy_wait_for_lock_acq(struct phy *phy) in samsung_ufs_phy_wait_for_lock_acq() argument 75 static int samsung_ufs_phy_calibrate(struct phy *phy) in samsung_ufs_phy_calibrate() argument 137 phy->tx0_symbol_clk = devm_clk_get(phy->dev, "tx0_symbol_clk"); in samsung_ufs_phy_symbol_clk_init() 143 phy->rx0_symbol_clk = devm_clk_get(phy->dev, "rx0_symbol_clk"); in samsung_ufs_phy_symbol_clk_init() 187 phy->ref_clk = devm_clk_get(phy->dev, "ref_clk"); in samsung_ufs_phy_clks_init() 202 static int samsung_ufs_phy_init(struct phy *phy) in samsung_ufs_phy_init() argument 227 static int samsung_ufs_phy_power_on(struct phy *phy) in samsung_ufs_phy_power_on() argument 235 static int samsung_ufs_phy_power_off(struct phy *phy) in samsung_ufs_phy_power_off() argument 256 static int samsung_ufs_phy_exit(struct phy *phy) in samsung_ufs_phy_exit() argument 300 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in samsung_ufs_phy_probe() [all …]
|
/linux/drivers/nfc/s3fwrn5/ |
A D | i2c.c | 40 phy->irq_skip = true; in s3fwrn5_i2c_set_mode() 53 phy->irq_skip = false; in s3fwrn5_i2c_write() 117 return s3fwrn5_recv_frame(phy->common.ndev, skb, phy->common.mode); in s3fwrn5_i2c_read() 124 if (!phy || !phy->common.ndev) { in s3fwrn5_i2c_irq_thread_fn() 131 if (phy->irq_skip) in s3fwrn5_i2c_irq_thread_fn() 186 phy = devm_kzalloc(&client->dev, sizeof(*phy), GFP_KERNEL); in s3fwrn5_i2c_probe() 187 if (!phy) in s3fwrn5_i2c_probe() 192 phy->irq_skip = true; in s3fwrn5_i2c_probe() 201 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->common.gpio_en, in s3fwrn5_i2c_probe() 213 if (IS_ERR(phy->clk)) in s3fwrn5_i2c_probe() [all …]
|
/linux/drivers/phy/qualcomm/ |
A D | phy-qcom-ipq4019-usb.c | 24 struct phy *phy; member 101 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ipq4019_usb_phy_probe() 102 if (!phy) in ipq4019_usb_phy_probe() 105 phy->dev = &pdev->dev; in ipq4019_usb_phy_probe() 107 if (IS_ERR(phy->base)) { in ipq4019_usb_phy_probe() 112 phy->por_rst = devm_reset_control_get(phy->dev, "por_rst"); in ipq4019_usb_phy_probe() 119 phy->srif_rst = devm_reset_control_get_optional(phy->dev, "srif_rst"); in ipq4019_usb_phy_probe() 123 phy->phy = devm_phy_create(dev, NULL, of_device_get_match_data(dev)); in ipq4019_usb_phy_probe() 124 if (IS_ERR(phy->phy)) { in ipq4019_usb_phy_probe() 126 return PTR_ERR(phy->phy); in ipq4019_usb_phy_probe() [all …]
|