| /linux/include/linux/phy/ |
| A D | phy.h | 85 int (*init)(struct phy *phy); 86 int (*exit)(struct phy *phy); 87 int (*power_on)(struct phy *phy); 88 int (*power_off)(struct phy *phy); 123 int (*reset)(struct phy *phy); 124 int (*calibrate)(struct phy *phy); 130 void (*release)(struct phy *phy); 198 struct phy *phy; member 232 int phy_init(struct phy *phy); 233 int phy_exit(struct phy *phy); [all …]
|
| /linux/drivers/phy/ |
| A D | phy-core.c | 37 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 51 struct phy *phy = *(struct phy **)res; in devm_phy_consume() local 58 struct phy **phy = res; in devm_phy_match() local 84 pl->phy = phy; in phy_create_lookup() 623 struct phy *phy = NULL; in _of_phy_get() local 671 struct phy *phy = NULL; in of_phy_get() local 758 struct phy *phy; in of_phy_simple_xlate() local 789 struct phy *phy; in phy_get() local 835 struct phy **ptr, *phy; in devm_phy_get() local 1005 struct phy *phy; in phy_create() local [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/ |
| A D | sungem_phy.c | 49 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read() 54 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write() 59 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read() 64 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write() 317 phy->pause = 0; in genmii_setup_aneg() 348 phy->pause = 0; in genmii_setup_forced() 473 phy->pause = 0; in bcm54xx_setup_aneg() 517 phy->pause = 0; in bcm54xx_setup_forced() 561 phy->pause = (phy->duplex == DUPLEX_FULL) && in bcm54xx_read_link() 749 phy->pause = 0; in marvell_setup_aneg() [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/media/platform/ti/cal/ |
| A D | cal-camerarx.c | 258 cal_write(phy->cal, CAL_CSI2_VC_IRQENABLE(phy->instance), in cal_camerarx_enable_irqs() 363 val = cal_read(phy->cal, CAL_CSI2_TIMING(phy->instance)); in cal_camerarx_start() 371 cal_read(phy->cal, CAL_CSI2_TIMING(phy->instance))); in cal_camerarx_start() 378 cal_read(phy->cal, CAL_CSI2_TIMING(phy->instance))); in cal_camerarx_start() 411 phy->instance, camerarx_read(phy, CAL_CSI2_PHY_REG1)); in cal_camerarx_start() 819 phy = devm_kzalloc(cal->dev, sizeof(*phy), GFP_KERNEL); in cal_camerarx_create() 820 if (!phy) in cal_camerarx_create() 832 phy->base = devm_ioremap_resource(cal->dev, phy->res); in cal_camerarx_create() 839 phy->res->name, &phy->res->start, &phy->res->end); in cal_camerarx_create() 875 return phy; in cal_camerarx_create() [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() 176 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ralink_usb_phy_probe() 177 if (!phy) in ralink_usb_phy_probe() 211 if (IS_ERR(phy->phy)) { in ralink_usb_phy_probe() 213 return PTR_ERR(phy->phy); in ralink_usb_phy_probe() [all …]
|
| A D | phy-mt7621-pci.c | 79 struct phy *phy; member 210 static int mt7621_pci_phy_init(struct phy *phy) in mt7621_pci_phy_init() argument 220 static int mt7621_pci_phy_power_on(struct phy *phy) in mt7621_pci_phy_power_on() argument 236 static int mt7621_pci_phy_power_off(struct phy *phy) in mt7621_pci_phy_power_off() argument 252 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/phy/ti/ |
| A D | phy-dm816x-usb.c | 80 regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init() 85 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init() 96 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init() 100 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init() 208 phy->phy.dev = phy->dev; in dm816x_usb_phy_probe() 209 phy->phy.label = "dm8168_usb_phy"; in dm816x_usb_phy_probe() 210 phy->phy.otg = otg; in dm816x_usb_phy_probe() 211 phy->phy.type = USB_PHY_TYPE_USB2; in dm816x_usb_phy_probe() 214 otg->usb_phy = &phy->phy; in dm816x_usb_phy_probe() 241 usb_add_phy_dev(&phy->phy); in dm816x_usb_phy_probe() [all …]
|
| A D | phy-ti-pipe3.c | 330 ret = regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_off() 358 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 372 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 377 regmap_update_bits(phy->phy_power_syscon, phy->power_reg, in ti_pipe3_power_on() 516 ret = regmap_update_bits(phy->pcs_syscon, phy->pcie_pcs_reg, in ti_pipe3_init() 555 if (phy->mode == PIPE3_MODE_SATA && !phy->dpll_reset_syscon) in ti_pipe3_exit() 583 regmap_update_bits(phy->dpll_reset_syscon, phy->dpll_reset_reg, in ti_pipe3_exit() 628 if (phy->mode != PIPE3_MODE_PCIE || phy->phy_power_syscon) { in ti_pipe3_get_clk() 784 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ti_pipe3_probe() 785 if (!phy) in ti_pipe3_probe() [all …]
|
| A D | phy-omap-usb2.c | 120 if (!phy->comparator || !phy->comparator->set_vbus) in omap_usb_set_vbus() 130 if (!phy->comparator || !phy->comparator->start_srp) in omap_usb_start_srp() 133 return phy->comparator->start_srp(phy->comparator); in omap_usb_start_srp() 391 phy->phy.dev = phy->dev; in omap_usb2_probe() 392 phy->phy.label = phy_data->label; in omap_usb2_probe() 393 phy->phy.otg = otg; in omap_usb2_probe() 394 phy->phy.type = USB_PHY_TYPE_USB2; in omap_usb2_probe() 453 phy->optclk = devm_clk_get(phy->dev, "refclk"); in omap_usb2_probe() 478 otg->usb_phy = &phy->phy; in omap_usb2_probe() 499 usb_add_phy_dev(&phy->phy); in omap_usb2_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/gpu/drm/i915/display/ |
| A D | intel_combo_phy_regs.h | 17 #define _ICL_COMBOPHY(phy) _PICK(phy, _ICL_COMBOPHY_A, \ argument 24 #define _ICL_PORT_CL_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 27 #define ICL_PORT_CL_DW5(phy) _MMIO(_ICL_PORT_CL_DW(5, phy)) argument 31 #define ICL_PORT_CL_DW10(phy) _MMIO(_ICL_PORT_CL_DW(10, phy)) argument 46 #define ICL_PORT_CL_DW12(phy) _MMIO(_ICL_PORT_CL_DW(12, phy)) argument 51 #define _ICL_PORT_COMP_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 54 #define ICL_PORT_COMP_DW0(phy) _MMIO(_ICL_PORT_COMP_DW(0, phy)) argument 80 #define _ICL_PORT_PCS_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 82 #define _ICL_PORT_PCS_DW_GRP(dw, phy) (_ICL_COMBOPHY(phy) + \ argument 100 #define _ICL_PORT_TX_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument [all …]
|
| A D | intel_combo_phy.c | 78 enum phy phy) in icl_set_procmon_ref_values() argument 92 enum phy phy, i915_reg_t reg, u32 mask, in check_phy_reg() argument 110 enum phy phy) in icl_verify_procmon_ref_values() argument 117 ret = check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW1(phy), in icl_verify_procmon_ref_values() 119 ret &= check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW9(phy), in icl_verify_procmon_ref_values() 149 enum phy phy) in icl_combo_phy_enabled() argument 218 enum phy phy) in icl_combo_phy_verify_state() argument 247 ret &= check_phy_reg(dev_priv, phy, ICL_PHY_MISC(phy), in icl_combo_phy_verify_state() 260 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/nfc/pn544/ |
| A D | i2c.c | 485 if (!phy || irq != phy->i2c_dev->irq) { in pn544_hci_i2c_irq_thread_fn() 642 phy->fw_blob_data + phy->fw_written, in pn544_hci_i2c_fw_write_chunk() 643 phy->fw_blob_size - phy->fw_written); in pn544_hci_i2c_fw_write_chunk() 714 phy->fw_blob_data + phy->fw_written, in pn544_hci_i2c_fw_secure_write_frame() 715 phy->fw_blob_size - phy->fw_written); in pn544_hci_i2c_fw_secure_write_frame() 766 phy->fw_size = phy->fw->size; in pn544_hci_i2c_fw_work() 784 if (phy->fw_written == phy->fw_blob_size) { in pn544_hci_i2c_fw_work() 834 if (phy->fw_written == phy->fw_blob_size) { in pn544_hci_i2c_fw_work() 836 (phy->fw_blob_data + phy->fw_blob_size); in pn544_hci_i2c_fw_work() 837 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/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/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/gpu/drm/sun4i/ |
| A D | sun8i_hdmi_phy.c | 541 ret = sun8i_phy_clk_create(phy, phy->dev, in sun8i_hdmi_phy_init() 551 phy->variant->phy_init(phy); in sun8i_hdmi_phy_init() 662 if (!phy) { in sun8i_hdmi_phy_get() 667 hdmi->phy = phy; in sun8i_hdmi_phy_get() 680 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in sun8i_hdmi_phy_probe() 681 if (!phy) in sun8i_hdmi_phy_probe() 685 phy->dev = dev; in sun8i_hdmi_phy_probe() 694 if (IS_ERR(phy->regs)) in sun8i_hdmi_phy_probe() 699 if (IS_ERR(phy->clk_bus)) in sun8i_hdmi_phy_probe() 704 if (IS_ERR(phy->clk_mod)) in sun8i_hdmi_phy_probe() [all …]
|
| /linux/drivers/phy/qualcomm/ |
| A D | phy-qcom-ipq4019-usb.c | 23 struct phy *phy; member 100 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ipq4019_usb_phy_probe() 101 if (!phy) in ipq4019_usb_phy_probe() 104 phy->dev = &pdev->dev; in ipq4019_usb_phy_probe() 106 if (IS_ERR(phy->base)) { in ipq4019_usb_phy_probe() 111 phy->por_rst = devm_reset_control_get(phy->dev, "por_rst"); in ipq4019_usb_phy_probe() 118 phy->srif_rst = devm_reset_control_get_optional(phy->dev, "srif_rst"); in ipq4019_usb_phy_probe() 122 phy->phy = devm_phy_create(dev, NULL, of_device_get_match_data(dev)); in ipq4019_usb_phy_probe() 123 if (IS_ERR(phy->phy)) { in ipq4019_usb_phy_probe() 125 return PTR_ERR(phy->phy); in ipq4019_usb_phy_probe() [all …]
|
| A D | phy-qcom-snps-eusb2.c | 125 struct phy *phy; member 135 struct phy *repeater; 142 phy->mode = mode; in qcom_snps_eusb2_hsphy_set_mode() 223 dev_err(&phy->phy->dev, "unsupported ref_clk_freq:%lu\n", ref_clk_freq); in qcom_eusb2_ref_clk_init() 238 ret = regulator_bulk_enable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_init() 342 regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_init() 353 regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_exit() 355 phy_exit(phy->repeater); in qcom_snps_eusb2_hsphy_exit() 377 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in qcom_snps_eusb2_hsphy_probe() 378 if (!phy) in qcom_snps_eusb2_hsphy_probe() [all …]
|
| /linux/arch/arm64/boot/dts/microchip/ |
| A D | sparx5_pcb135_board.dtsi | 202 phy0: ethernet-phy@0 { 205 phy1: ethernet-phy@1 { 208 phy2: ethernet-phy@2 { 211 phy3: ethernet-phy@3 { 214 phy4: ethernet-phy@4 { 217 phy5: ethernet-phy@5 { 220 phy6: ethernet-phy@6 { 223 phy7: ethernet-phy@7 { 226 phy8: ethernet-phy@8 { 229 phy9: ethernet-phy@9 { [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() 185 phy = devm_kzalloc(&client->dev, sizeof(*phy), GFP_KERNEL); in s3fwrn5_i2c_probe() 186 if (!phy) in s3fwrn5_i2c_probe() 191 phy->irq_skip = true; in s3fwrn5_i2c_probe() 200 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->common.gpio_en, in s3fwrn5_i2c_probe() 218 if (IS_ERR(phy->clk)) in s3fwrn5_i2c_probe() [all …]
|