Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 25 of 1709) sorted by relevance

12345678910>>...69

/linux-6.3-rc2/include/linux/phy/
A Dphy.h85 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);
125 void (*release)(struct phy *phy);
191 struct phy *phy; member
225 int phy_init(struct phy *phy);
226 int phy_exit(struct phy *phy);
[all …]
/linux-6.3-rc2/drivers/phy/
A Dphy-core.c30 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()
569 struct phy *phy = NULL; in _of_phy_get() local
617 struct phy *phy = NULL; in of_phy_get() local
704 struct phy *phy; in of_phy_simple_xlate() local
735 struct phy *phy; in phy_get() local
781 struct phy **ptr, *phy; in devm_phy_get() local
951 struct phy *phy; in phy_create() local
[all …]
/linux-6.3-rc2/drivers/scsi/libsas/
A Dsas_phy.c20 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-6.3-rc2/drivers/media/platform/ti/cal/
A Dcal-camerarx.c252 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()
867 phy = kzalloc(sizeof(*phy), GFP_KERNEL); in cal_camerarx_create()
868 if (!phy) in cal_camerarx_create()
889 phy->res->name, &phy->res->start, &phy->res->end); in cal_camerarx_create()
924 return phy; in cal_camerarx_create()
928 kfree(phy); in cal_camerarx_create()
934 if (!phy) in cal_camerarx_destroy()
[all …]
/linux-6.3-rc2/drivers/net/
A Dsungem_phy.c49 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-6.3-rc2/drivers/net/ethernet/ibm/emac/
A Dphy.c37 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-6.3-rc2/drivers/phy/hisilicon/
A Dphy-hi3670-pcie.c582 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-6.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_combo_phy_regs.h17 #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
48 #define ICL_PORT_CL_DW12(phy) _MMIO(_ICL_PORT_CL_DW(12, phy)) argument
53 #define _ICL_PORT_COMP_DW(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
56 #define ICL_PORT_COMP_DW0(phy) _MMIO(_ICL_PORT_COMP_DW(0, phy)) argument
84 #define _ICL_PORT_PCS_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
86 #define _ICL_PORT_PCS_DW_GRP(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
104 #define _ICL_PORT_TX_DW_AUX(dw, phy) (_ICL_COMBOPHY(phy) + \ argument
[all …]
A Dintel_combo_phy.c78 enum phy phy) in icl_set_procmon_ref_values() argument
95 enum phy phy, i915_reg_t reg, u32 mask, in check_phy_reg() argument
113 enum phy phy) in icl_verify_procmon_ref_values() argument
124 ret = check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW1(phy), in icl_verify_procmon_ref_values()
126 ret &= check_phy_reg(dev_priv, phy, ICL_PORT_COMP_DW9(phy), in icl_verify_procmon_ref_values()
156 enum phy phy) in icl_combo_phy_enabled() argument
223 enum phy phy) in icl_combo_phy_verify_state() argument
253 ret &= check_phy_reg(dev_priv, phy, ICL_PHY_MISC(phy), in icl_combo_phy_verify_state()
266 enum phy phy, bool is_dsi, in intel_combo_phy_power_up_lanes() argument
319 enum phy phy; in icl_combo_phys_init() local
[all …]
/linux-6.3-rc2/drivers/net/phy/
A Dphy_led_triggers.c33 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-6.3-rc2/drivers/phy/ralink/
A Dphy-ralink-usb.c56 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 Dphy-mt7621-pci.c80 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
301 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in mt7621_pci_phy_probe()
302 if (!phy) in mt7621_pci_phy_probe()
318 phy->regmap = devm_regmap_init_mmio(phy->dev, phy->port_base, in mt7621_pci_phy_probe()
324 if (IS_ERR(phy->phy)) { in mt7621_pci_phy_probe()
326 return PTR_ERR(phy->phy); in mt7621_pci_phy_probe()
[all …]
/linux-6.3-rc2/drivers/phy/ti/
A Dphy-dm816x-usb.c81 regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init()
86 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init()
97 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init()
101 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init()
217 phy->phy.dev = phy->dev; in dm816x_usb_phy_probe()
218 phy->phy.label = "dm8168_usb_phy"; in dm816x_usb_phy_probe()
219 phy->phy.otg = otg; in dm816x_usb_phy_probe()
220 phy->phy.type = USB_PHY_TYPE_USB2; in dm816x_usb_phy_probe()
223 otg->usb_phy = &phy->phy; in dm816x_usb_phy_probe()
250 usb_add_phy_dev(&phy->phy); in dm816x_usb_phy_probe()
[all …]
A Dphy-ti-pipe3.c329 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()
784 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in ti_pipe3_probe()
785 if (!phy) in ti_pipe3_probe()
[all …]
A Dphy-omap-usb2.c132 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-6.3-rc2/drivers/nfc/pn544/
A Di2c.c487 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-6.3-rc2/drivers/net/ethernet/chelsio/cxgb3/
A Dael1002.c147 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-6.3-rc2/drivers/net/ethernet/intel/igb/
A De1000_phy.c56 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-6.3-rc2/drivers/phy/allwinner/
A Dphy-sun9i-usb.c36 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-6.3-rc2/drivers/usb/phy/
A Dphy-ulpi.c248 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-6.3-rc2/drivers/gpu/drm/sun4i/
A Dsun8i_hdmi_phy.c540 ret = sun8i_phy_clk_create(phy, phy->dev, in sun8i_hdmi_phy_init()
550 phy->variant->phy_init(phy); in sun8i_hdmi_phy_init()
661 if (!phy) { in sun8i_hdmi_phy_get()
666 hdmi->phy = phy; in sun8i_hdmi_phy_get()
679 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in sun8i_hdmi_phy_probe()
680 if (!phy) in sun8i_hdmi_phy_probe()
684 phy->dev = dev; in sun8i_hdmi_phy_probe()
693 if (IS_ERR(phy->regs)) in sun8i_hdmi_phy_probe()
698 if (IS_ERR(phy->clk_bus)) in sun8i_hdmi_phy_probe()
703 if (IS_ERR(phy->clk_mod)) in sun8i_hdmi_phy_probe()
[all …]
/linux-6.3-rc2/drivers/phy/qualcomm/
A Dphy-qcom-ipq4019-usb.c24 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 …]
A Dphy-qcom-snps-eusb2.c124 struct phy *phy; member
134 struct phy *repeater;
141 phy->mode = mode; in qcom_snps_eusb2_hsphy_set_mode()
222 dev_err(&phy->phy->dev, "unsupported ref_clk_freq:%lu\n", ref_clk_freq); in qcom_eusb2_ref_clk_init()
237 ret = regulator_bulk_enable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_init()
341 regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_init()
352 regulator_bulk_disable(ARRAY_SIZE(phy->vregs), phy->vregs); in qcom_snps_eusb2_hsphy_exit()
354 phy_exit(phy->repeater); in qcom_snps_eusb2_hsphy_exit()
376 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL); in qcom_snps_eusb2_hsphy_probe()
377 if (!phy) in qcom_snps_eusb2_hsphy_probe()
[all …]
/linux-6.3-rc2/arch/arm64/boot/dts/microchip/
A Dsparx5_pcb135_board.dtsi212 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-6.3-rc2/drivers/nfc/s3fwrn5/
A Di2c.c40 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 …]

Completed in 79 milliseconds

12345678910>>...69