| /linux/drivers/phy/ |
| H A D | phy-core.c | 3 * phy-core.c -- Generic Phy framework. 18 #include <linux/phy/phy.h> 25 .name = "phy", 37 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 39 phy_put(dev, phy); in devm_phy_release() 51 struct phy *phy in devm_phy_consume() local 58 struct phy **phy = res; devm_phy_match() local 71 phy_create_lookup(struct phy * phy,const char * con_id,const char * dev_id) phy_create_lookup() argument 103 phy_remove_lookup(struct phy * phy,const char * con_id,const char * dev_id) phy_remove_lookup() argument 154 phy_pm_runtime_get(struct phy * phy) phy_pm_runtime_get() argument 172 phy_pm_runtime_get_sync(struct phy * phy) phy_pm_runtime_get_sync() argument 190 phy_pm_runtime_put(struct phy * phy) phy_pm_runtime_put() argument 202 phy_pm_runtime_put_sync(struct phy * phy) phy_pm_runtime_put_sync() argument 225 phy_init(struct phy * phy) phy_init() argument 265 phy_exit(struct phy * phy) phy_exit() argument 302 phy_power_on(struct phy * phy) phy_power_on() argument 352 phy_power_off(struct phy * phy) phy_power_off() argument 379 phy_set_mode_ext(struct phy * phy,enum phy_mode mode,int submode) phy_set_mode_ext() argument 397 phy_set_media(struct phy * phy,enum phy_media media) phy_set_media() argument 412 phy_set_speed(struct phy * phy,int speed) phy_set_speed() argument 427 phy_reset(struct phy * phy) phy_reset() argument 458 phy_calibrate(struct phy * phy) phy_calibrate() argument 481 phy_notify_connect(struct phy * phy,int port) phy_notify_connect() argument 505 phy_notify_disconnect(struct phy * phy,int port) phy_notify_disconnect() argument 530 phy_notify_state(struct phy * phy,union phy_notify state) phy_notify_state() argument 556 phy_configure(struct phy * phy,union phy_configure_opts * opts) phy_configure() argument 590 phy_validate(struct phy * phy,enum phy_mode mode,int submode,union phy_configure_opts * opts) phy_validate() argument 624 struct phy *phy = NULL; _of_phy_get() local 675 struct phy *phy = NULL; of_phy_get() local 700 of_phy_put(struct phy * phy) of_phy_put() argument 722 phy_put(struct device * dev,struct phy * phy) phy_put() argument 737 devm_phy_put(struct device * dev,struct phy * phy) devm_phy_put() argument 786 struct phy *phy; phy_get() local 832 struct phy **ptr, *phy; devm_phy_get() local 865 struct phy *phy = devm_phy_get(dev, string); devm_phy_optional_get() local 887 struct phy **ptr, *phy; devm_of_phy_get() local 929 struct phy *phy = devm_of_phy_get(dev, np, con_id); devm_of_phy_optional_get() local 957 struct phy **ptr, *phy; devm_of_phy_get_by_index() local 1002 struct phy *phy; phy_create() local 1079 struct phy **ptr, *phy; devm_phy_create() local 1103 phy_destroy(struct phy * phy) phy_destroy() argument 1118 devm_phy_destroy(struct device * dev,struct phy * phy) devm_phy_destroy() argument 1279 struct phy *phy; phy_release() local [all...] |
| H A D | phy-snps-eusb2.c | 10 #include <linux/phy/phy.h> 157 int (*phy_init)(struct phy *p); 163 struct phy *phy; member 174 struct phy *repeater; 179 static int snps_eusb2_hsphy_set_mode(struct phy *p, enum phy_mode mode, int submode) in snps_eusb2_hsphy_set_mode() 181 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); in snps_eusb2_hsphy_set_mode() local 183 phy->mode = mode; in snps_eusb2_hsphy_set_mode() 185 return phy_set_mode_ext(phy in snps_eusb2_hsphy_set_mode() 202 qcom_eusb2_default_parameters(struct snps_eusb2_hsphy * phy) qcom_eusb2_default_parameters() argument 245 exynos_eusb2_ref_clk_init(struct snps_eusb2_hsphy * phy) exynos_eusb2_ref_clk_init() argument 282 qcom_eusb2_ref_clk_init(struct snps_eusb2_hsphy * phy) qcom_eusb2_ref_clk_init() argument 319 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); exynos_snps_eusb2_hsphy_init() local 368 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); qcom_snps_eusb2_hsphy_init() local 457 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); snps_eusb2_hsphy_init() local 508 struct snps_eusb2_hsphy *phy = phy_get_drvdata(p); snps_eusb2_hsphy_exit() local 530 struct snps_eusb2_hsphy *phy; snps_eusb2_hsphy_probe() local [all...] |
| /linux/drivers/scsi/libsas/ |
| H A D | sas_phy.c | 20 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local 22 phy->error = 0; in sas_phye_loss_of_signal() 23 sas_deform_port(phy, true); in sas_phye_loss_of_signal() 29 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local 31 phy->error = 0; in sas_phye_oob_done() 37 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local 38 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error() 39 struct asd_sas_port *port = phy->port; in sas_phye_oob_error() 43 sas_deform_port(phy, true); in sas_phye_oob_error() 45 if (!port && phy->enabled && i->dft->lldd_control_phy) { in sas_phye_oob_error() [all …]
|
| H A D | sas_port.c | 15 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument 17 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 19 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 21 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member() 26 static void sas_resume_port(struct asd_sas_phy *phy) in sas_resume_port() argument 29 struct asd_sas_port *port = phy->port; in sas_resume_port() 30 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 34 si->dft->lldd_port_formed(phy); in sas_resume_port() 60 struct ex_phy *phy = &dev->ex_dev.ex_phy[i]; in sas_resume_port() local 62 phy->phy_change_count = -1; in sas_resume_port() [all …]
|
| /linux/drivers/net/ethernet/ibm/emac/ |
| H A D | phy.c | 35 static inline int _phy_read(struct mii_phy *phy, int reg) in _phy_read() argument 37 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read() 40 static inline void _phy_write(struct mii_phy *phy, int reg, int val) in _phy_write() argument 42 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write() 45 static inline int gpcs_phy_read(struct mii_phy *phy, int reg) in gpcs_phy_read() argument 47 return phy->mdio_read(phy->dev, phy->gpcs_address, reg); in gpcs_phy_read() 50 static inline void gpcs_phy_write(struct mii_phy *phy, int reg, int val) in gpcs_phy_write() argument 52 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write() 55 int emac_mii_reset_phy(struct mii_phy *phy) in emac_mii_reset_phy() argument 60 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy() [all …]
|
| /linux/drivers/phy/hisilicon/ |
| H A D | phy-hi3670-pcie.c | 3 * PCIe phy driver for Kirin 970 28 #include <linux/phy/phy.h> 172 static inline void hi3670_apb_phy_writel(struct hi3670_pcie_phy *phy, u32 val, in hi3670_apb_phy_writel() argument 175 writel(val, phy->base + APB_PHY_START_ADDR + reg); in hi3670_apb_phy_writel() 178 static inline u32 hi3670_apb_phy_readl(struct hi3670_pcie_phy *phy, u32 reg) in hi3670_apb_phy_readl() argument 180 return readl(phy->base + APB_PHY_START_ADDR + reg); in hi3670_apb_phy_readl() 183 static inline void hi3670_apb_phy_updatel(struct hi3670_pcie_phy *phy, in hi3670_apb_phy_updatel() argument 188 regval = hi3670_apb_phy_readl(phy, reg); in hi3670_apb_phy_updatel() 191 hi3670_apb_phy_writel(phy, regva in hi3670_apb_phy_updatel() 194 kirin_apb_natural_phy_writel(struct hi3670_pcie_phy * phy,u32 val,u32 reg) kirin_apb_natural_phy_writel() argument 200 kirin_apb_natural_phy_readl(struct hi3670_pcie_phy * phy,u32 reg) kirin_apb_natural_phy_readl() argument 206 hi3670_pcie_phy_oe_enable(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_phy_oe_enable() argument 219 hi3670_pcie_get_eyeparam(struct hi3670_pcie_phy * phy) hi3670_pcie_get_eyeparam() argument 237 hi3670_pcie_set_eyeparam(struct hi3670_pcie_phy * phy) hi3670_pcie_set_eyeparam() argument 282 hi3670_pcie_natural_cfg(struct hi3670_pcie_phy * phy) hi3670_pcie_natural_cfg() argument 310 hi3670_pcie_pll_init(struct hi3670_pcie_phy * phy) hi3670_pcie_pll_init() argument 338 hi3670_pcie_pll_ctrl(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_pll_ctrl() argument 378 hi3670_pcie_hp_debounce_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_hp_debounce_gt() argument 390 hi3670_pcie_phyref_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_phyref_gt() argument 407 hi3670_pcie_oe_ctrl(struct hi3670_pcie_phy * phy,bool en_flag) hi3670_pcie_oe_ctrl() argument 433 hi3670_pcie_ioref_gt(struct hi3670_pcie_phy * phy,bool open) hi3670_pcie_ioref_gt() argument 466 hi3670_pcie_allclk_ctrl(struct hi3670_pcie_phy * phy,bool clk_on) hi3670_pcie_allclk_ctrl() argument 507 is_pipe_clk_stable(struct hi3670_pcie_phy * phy) is_pipe_clk_stable() argument 528 hi3670_pcie_noc_power(struct hi3670_pcie_phy * phy,bool enable) hi3670_pcie_noc_power() argument 558 hi3670_pcie_get_resources_from_pcie(struct hi3670_pcie_phy * phy) hi3670_pcie_get_resources_from_pcie() argument 594 kirin_pcie_clk_ctrl(struct hi3670_pcie_phy * phy,bool enable) kirin_pcie_clk_ctrl() argument 643 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_init() local 666 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_power_on() local 721 struct hi3670_pcie_phy *phy = phy_get_drvdata(generic_phy); hi3670_pcie_phy_power_off() local 749 hi3670_pcie_phy_get_resources(struct hi3670_pcie_phy * phy,struct platform_device * pdev) hi3670_pcie_phy_get_resources() argument 802 struct hi3670_pcie_phy *phy; hi3670_pcie_phy_probe() local [all...] |
| /linux/drivers/phy/ralink/ |
| H A D | phy-ralink-usb.c | 17 #include <linux/phy/phy.h> 56 struct phy *phy; member 61 static void u2_phy_w32(struct ralink_usb_phy *phy, u32 val, u32 reg) in u2_phy_w32() argument 63 writel(val, phy->base + reg); in u2_phy_w32() 66 static u32 u2_phy_r32(struct ralink_usb_phy *phy, u32 reg) in u2_phy_r32() argument 68 return readl(phy->base + reg); in u2_phy_r32() 71 static void ralink_usb_phy_init(struct ralink_usb_phy *phy) in ralink_usb_phy_init() argument 73 u2_phy_r32(phy, OFS_U2_PHY_AC in ralink_usb_phy_init() 93 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); ralink_usb_phy_power_on() local 132 struct ralink_usb_phy *phy = phy_get_drvdata(_phy); ralink_usb_phy_power_off() local 174 struct ralink_usb_phy *phy; ralink_usb_phy_probe() local [all...] |
| H A D | phy-mt7621-pci.c | 7 #include <dt-bindings/phy/phy.h> 13 #include <linux/phy/phy.h> 69 * @phy: pointer to the kernel PHY device 72 * @has_dual_port: if the phy has dual ports. 79 struct phy *phy; member 86 static inline void mt7621_phy_rmw(struct mt7621_pci_phy *phy, in mt7621_phy_rmw() argument 98 regmap_read(phy in mt7621_phy_rmw() 104 mt7621_bypass_pipe_rst(struct mt7621_pci_phy * phy) mt7621_bypass_pipe_rst() argument 117 mt7621_set_phy_for_ssc(struct mt7621_pci_phy * phy) mt7621_set_phy_for_ssc() argument 210 mt7621_pci_phy_init(struct phy * phy) mt7621_pci_phy_init() argument 220 mt7621_pci_phy_power_on(struct phy * phy) mt7621_pci_phy_power_on() argument 236 mt7621_pci_phy_power_off(struct phy * phy) mt7621_pci_phy_power_off() argument 252 mt7621_pci_phy_exit(struct phy * phy) mt7621_pci_phy_exit() argument 298 struct mt7621_pci_phy *phy; mt7621_pci_phy_probe() local [all...] |
| /linux/drivers/phy/ti/ |
| H A D | phy-dm816x-usb.c | 15 #include <linux/phy/phy.h> 22 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at 32 * Finally, the phy on dm814x and am335x is different from dm816x. 35 #define DM816X_USB_CTRL_PHYSLEEP1 BIT(1) /* Enable the first phy */ 36 #define DM816X_USB_CTRL_PHYSLEEP0 BIT(0) /* Enable the second phy */ 47 struct usb_phy phy; member 71 static int dm816x_usb_phy_init(struct phy *x) in dm816x_usb_phy_init() 73 struct dm816x_usb_phy *phy = phy_get_drvdata(x); in dm816x_usb_phy_init() local 76 if (clk_get_rate(phy in dm816x_usb_phy_init() 112 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); dm816x_usb_phy_runtime_suspend() local 130 struct dm816x_usb_phy *phy = dev_get_drvdata(dev); dm816x_usb_phy_runtime_resume() local 173 struct dm816x_usb_phy *phy; dm816x_usb_phy_probe() local 253 struct dm816x_usb_phy *phy = platform_get_drvdata(pdev); dm816x_usb_phy_remove() local [all...] |
| H A D | phy-ti-pipe3.c | 3 * phy-ti-pipe3 - PIPE3 PHY driver. 13 #include <linux/phy/phy.h> 20 #include <linux/phy/omap_control_phy.h> 300 static struct pipe3_dpll_params *ti_pipe3_get_dpll_params(struct ti_pipe3 *phy) in ti_pipe3_get_dpll_params() argument 303 struct pipe3_dpll_map *dpll_map = phy->dpll_map; in ti_pipe3_get_dpll_params() 305 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params() 312 dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate); in ti_pipe3_get_dpll_params() 317 static int ti_pipe3_enable_clocks(struct ti_pipe3 *phy); 318 static void ti_pipe3_disable_clocks(struct ti_pipe3 *phy); 323 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_power_off() local 342 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_power_on() local 387 ti_pipe3_dpll_wait_lock(struct ti_pipe3 * phy) ti_pipe3_dpll_wait_lock() argument 404 ti_pipe3_dpll_program(struct ti_pipe3 * phy) ti_pipe3_dpll_program() argument 443 ti_pipe3_calibrate(struct ti_pipe3 * phy) ti_pipe3_calibrate() argument 499 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_init() local 548 struct ti_pipe3 *phy = phy_get_drvdata(x); ti_pipe3_exit() local 603 ti_pipe3_get_clk(struct ti_pipe3 * phy) ti_pipe3_get_clk() argument 677 ti_pipe3_get_sysctrl(struct ti_pipe3 * phy) ti_pipe3_get_sysctrl() argument 761 ti_pipe3_get_tx_rx_base(struct ti_pipe3 * phy) ti_pipe3_get_tx_rx_base() argument 775 ti_pipe3_get_pll_base(struct ti_pipe3 * phy) ti_pipe3_get_pll_base() argument 790 struct ti_pipe3 *phy; ti_pipe3_probe() local 853 struct ti_pipe3 *phy = platform_get_drvdata(pdev); ti_pipe3_remove() local 862 ti_pipe3_enable_clocks(struct ti_pipe3 * phy) ti_pipe3_enable_clocks() argument 903 ti_pipe3_disable_clocks(struct ti_pipe3 * phy) ti_pipe3_disable_clocks() argument [all...] |
| H A D | phy-omap-usb2.c | 17 #include <linux/phy/omap_control_phy.h> 18 #include <linux/phy/omap_usb.h> 19 #include <linux/phy/phy.h> 55 struct usb_phy phy; member 71 #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) 93 * omap_usb2_set_comparator() - links the comparator present in the system with this phy 95 * @comparator: the companion phy(comparator) for this phy 97 * The phy companio 104 struct omap_usb *phy; omap_usb2_set_comparator() local 118 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); omap_usb_set_vbus() local 128 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); omap_usb_start_srp() local 155 omap_usb_phy_power(struct omap_usb * phy,int on) omap_usb_phy_power() argument 177 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_power_off() local 184 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_power_on() local 189 omap_usb2_disable_clocks(struct omap_usb * phy) omap_usb2_disable_clocks() argument 198 omap_usb2_enable_clocks(struct omap_usb * phy) omap_usb2_enable_clocks() argument 227 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_init() local 258 struct omap_usb *phy = phy_get_drvdata(x); omap_usb_exit() local 346 omap_usb2_init_errata(struct omap_usb * phy) omap_usb2_init_errata() argument 375 struct omap_usb *phy; omap_usb2_probe() local 519 struct omap_usb *phy = platform_get_drvdata(pdev); omap_usb2_remove() local [all...] |
| /linux/drivers/net/phy/ |
| H A D | phy_led_triggers.c | 4 #include <linux/phy.h> 10 static struct phy_led_trigger *phy_speed_to_led_trigger(struct phy_device *phy, in phy_speed_to_led_trigger() argument 15 for (i = 0; i < phy->phy_num_led_triggers; i++) { in phy_speed_to_led_trigger() 16 if (phy->phy_led_triggers[i].speed == speed) in phy_speed_to_led_trigger() 17 return &phy->phy_led_triggers[i]; in phy_speed_to_led_trigger() 22 static void phy_led_trigger_no_link(struct phy_device *phy) in phy_led_trigger_no_link() argument 24 if (phy->last_triggered) { in phy_led_trigger_no_link() 25 led_trigger_event(&phy->last_triggered->trigger, LED_OFF); in phy_led_trigger_no_link() 26 led_trigger_event(&phy->led_link_trigger->trigger, LED_OFF); in phy_led_trigger_no_link() 27 phy in phy_led_trigger_no_link() 31 phy_led_trigger_change_speed(struct phy_device * phy) phy_led_trigger_change_speed() argument 62 phy_led_trigger_format_name(struct phy_device * phy,char * buf,size_t size,const char * suffix) phy_led_trigger_format_name() argument 69 phy_led_trigger_register(struct phy_device * phy,struct phy_led_trigger * plt,unsigned int speed,const char * suffix) phy_led_trigger_register() argument 86 phy_led_triggers_register(struct phy_device * phy) phy_led_triggers_register() argument 140 phy_led_triggers_unregister(struct phy_device * phy) phy_led_triggers_unregister() argument [all...] |
| /linux/drivers/nfc/pn544/ |
| H A D | i2c.c | 184 static void pn544_hci_i2c_platform_init(struct pn544_i2c_phy *phy) in pn544_hci_i2c_platform_init() argument 190 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init() 193 gpiod_set_value_cansleep(phy->gpiod_fw, 0); in pn544_hci_i2c_platform_init() 196 phy->en_polarity = polarity; in pn544_hci_i2c_platform_init() 200 gpiod_set_value_cansleep(phy->gpiod_en, !phy->en_polarity); in pn544_hci_i2c_platform_init() 204 gpiod_set_value_cansleep(phy->gpiod_en, phy->en_polarity); in pn544_hci_i2c_platform_init() 208 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init() 209 ret = i2c_master_send(phy in pn544_hci_i2c_platform_init() 227 pn544_hci_i2c_enable_mode(struct pn544_i2c_phy * phy,int run_mode) pn544_hci_i2c_enable_mode() argument 238 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_enable() local 249 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_disable() local 292 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_write() local 352 pn544_hci_i2c_read(struct pn544_i2c_phy * phy,struct sk_buff ** skb) pn544_hci_i2c_read() argument 411 pn544_hci_i2c_fw_read_status(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_read_status() argument 478 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_irq_thread_fn() local 523 struct pn544_i2c_phy *phy = phy_id; pn544_hci_i2c_fw_download() local 537 pn544_hci_i2c_fw_work_complete(struct pn544_i2c_phy * phy,int result) pn544_hci_i2c_fw_work_complete() argument 634 pn544_hci_i2c_fw_write_chunk(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_write_chunk() argument 651 pn544_hci_i2c_fw_secure_write_frame_cmd(struct pn544_i2c_phy * phy,const u8 * data,u16 datalen) pn544_hci_i2c_fw_secure_write_frame_cmd() argument 683 pn544_hci_i2c_fw_secure_write_frame(struct pn544_i2c_phy * phy) pn544_hci_i2c_fw_secure_write_frame() argument 733 struct pn544_i2c_phy *phy = container_of(work, struct pn544_i2c_phy, pn544_hci_i2c_fw_work() local 868 struct pn544_i2c_phy *phy; pn544_hci_i2c_probe() local 928 struct pn544_i2c_phy *phy = i2c_get_clientdata(client); pn544_hci_i2c_remove() local [all...] |
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | ael1002.c | 84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() argument 90 err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs() 93 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs() 100 static void ael100x_txon(struct cphy *phy) in ael100x_txon() argument 103 phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL; in ael100x_txon() 106 t3_set_reg_field(phy->adapter, A_T3DBG_GPIO_EN, 0, tx_on_gpio); in ael100x_txon() 113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() argument 118 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL_I2C_CTRL, in ael_i2c_rd() 125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); in ael_i2c_rd() 129 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_DATA, in ael_i2c_rd() [all …]
|
| /linux/drivers/net/ethernet/intel/igb/ |
| H A D | e1000_phy.c | 56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() local 62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 68 phy->id = (u32)(phy_id << 16); in igb_get_phy_id() 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 74 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igb_get_phy_id() 75 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igb_get_phy_id() 91 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp() 94 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp() 98 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | channel.c | 22 mt76_phy_update_channel(struct mt76_phy *phy, in mt76_phy_update_channel() argument 25 phy->radar_enabled = conf->radar_enabled; in mt76_phy_update_channel() 26 phy->main_chandef = conf->def; in mt76_phy_update_channel() 27 phy->chanctx = (struct mt76_chanctx *)conf->drv_priv; in mt76_phy_update_channel() 29 return __mt76_set_channel(phy, &phy->main_chandef, false); in mt76_phy_update_channel() 36 struct mt76_phy *phy = hw->priv; in mt76_add_chanctx() local 37 struct mt76_dev *dev = phy->dev; in mt76_add_chanctx() 40 phy = ctx->phy in mt76_add_chanctx() 62 struct mt76_phy *phy = hw->priv; mt76_remove_chanctx() local 84 struct mt76_phy *phy = ctx->phy; mt76_change_chanctx() local 112 struct mt76_phy *phy = ctx->phy; mt76_assign_vif_chanctx() local 161 struct mt76_phy *phy = ctx->phy; mt76_unassign_vif_chanctx() local 191 struct mt76_phy *old_phy, *phy = hw->priv; mt76_switch_vif_chanctx() local 268 mt76_get_vif_phy_link(struct mt76_phy * phy,struct ieee80211_vif * vif) mt76_get_vif_phy_link() argument 303 mt76_put_vif_phy_link(struct mt76_phy * phy,struct ieee80211_vif * vif,struct mt76_vif_link * mlink) mt76_put_vif_phy_link() argument 319 mt76_roc_complete(struct mt76_phy * phy) mt76_roc_complete() argument 343 struct mt76_phy *phy = container_of(work, struct mt76_phy, roc_work.work); mt76_roc_complete_work() local 351 mt76_abort_roc(struct mt76_phy * phy) mt76_abort_roc() argument 368 struct mt76_phy *phy = hw->priv; mt76_remain_on_channel() local 424 struct mt76_phy *phy = mvif->roc_phy; mt76_cancel_remain_on_channel() local [all...] |
| /linux/drivers/phy/allwinner/ |
| H A D | phy-sun9i-usb.c | 3 * Allwinner sun9i USB phy driver 7 * Based on phy-sun4i-usb.c from 18 #include <linux/phy/phy.h> 36 struct phy *phy; member 44 static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable) in sun9i_usb_phy_passby() argument 52 if (phy->type == USBPHY_INTERFACE_MODE_HSIC) in sun9i_usb_phy_passby() 56 reg_value = readl(phy->pmu); in sun9i_usb_phy_passby() 63 writel(reg_value, phy in sun9i_usb_phy_passby() 68 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); sun9i_usb_phy_init() local 98 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); sun9i_usb_phy_exit() local 116 struct sun9i_usb_phy *phy; sun9i_usb_phy_probe() local [all...] |
| H A D | phy-sun50i-usb3.c | 3 * Allwinner sun50i(H6) USB 3.0 phy driver 7 * Based on phy-sun9i-usb.c, which is: 20 #include <linux/phy/phy.h> 55 struct phy *phy; member 61 static void sun50i_usb3_phy_open(struct sun50i_usb3_phy *phy) in sun50i_usb3_phy_open() argument 65 val = readl(phy->regs + SUNXI_PHY_EXTERNAL_CONTROL); in sun50i_usb3_phy_open() 68 writel(val, phy->regs + SUNXI_PHY_EXTERNAL_CONTROL); in sun50i_usb3_phy_open() 70 val = readl(phy in sun50i_usb3_phy_open() 99 struct sun50i_usb3_phy *phy = phy_get_drvdata(_phy); sun50i_usb3_phy_init() local 118 struct sun50i_usb3_phy *phy = phy_get_drvdata(_phy); sun50i_usb3_phy_exit() local 134 struct sun50i_usb3_phy *phy; sun50i_usb3_phy_probe() local [all...] |
| /linux/arch/arm64/boot/dts/microchip/ |
| H 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/phy/qualcomm/ |
| H A D | phy-qcom-ipq4019-usb.c | 17 #include <linux/phy/phy.h> 23 struct phy *phy; member 29 static int ipq4019_ss_phy_power_off(struct phy *_phy) in ipq4019_ss_phy_power_off() 31 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); in ipq4019_ss_phy_power_off() local 33 reset_control_assert(phy->por_rst); in ipq4019_ss_phy_power_off() 39 static int ipq4019_ss_phy_power_on(struct phy *_phy) in ipq4019_ss_phy_power_on() 41 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); in ipq4019_ss_phy_power_on() local 45 reset_control_deassert(phy in ipq4019_ss_phy_power_on() 57 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); ipq4019_hs_phy_power_off() local 70 struct ipq4019_usb_phy *phy = phy_get_drvdata(_phy); ipq4019_hs_phy_power_on() local 98 struct ipq4019_usb_phy *phy; ipq4019_usb_phy_probe() local [all...] |
| /linux/drivers/nfc/pn533/ |
| H A D | usb.c | 61 struct pn533_usb_phy *phy = urb->context; in pn533_recv_response() local 67 nfc_err(&phy->udev->dev, "failed to alloc memory\n"); in pn533_recv_response() 74 pn533_recv_frame(phy->priv, skb, urb->status); in pn533_recv_response() 77 static int pn533_submit_urb_for_response(struct pn533_usb_phy *phy, gfp_t flags) in pn533_submit_urb_for_response() argument 79 phy->in_urb->complete = pn533_recv_response; in pn533_submit_urb_for_response() 81 return usb_submit_urb(phy->in_urb, flags); in pn533_submit_urb_for_response() 86 struct pn533_usb_phy *phy = urb->context; in pn533_recv_ack() local 87 struct pn533 *priv = phy->priv; in pn533_recv_ack() 99 dev_dbg(&phy->udev->dev, in pn533_recv_ack() 105 nfc_err(&phy in pn533_recv_ack() 132 pn533_submit_urb_for_ack(struct pn533_usb_phy * phy,gfp_t flags) pn533_submit_urb_for_ack() argument 141 struct pn533_usb_phy *phy = dev->phy; pn533_usb_send_ack() local 157 struct pn533_usb_phy *phy; global() member 164 struct pn533_usb_phy *phy = dev->phy; pn533_usb_send_frame() local 211 struct pn533_usb_phy *phy = dev->phy; pn533_usb_abort_cmd() local 381 pn533_acr122_poweron_rdr(struct pn533_usb_phy * phy) pn533_acr122_poweron_rdr() argument 430 struct pn533_usb_phy *phy = arg->phy; pn533_out_complete() local 453 struct pn533_usb_phy *phy = urb->context; pn533_ack_complete() local 483 struct pn533_usb_phy *phy; pn533_usb_probe() local 601 struct pn533_usb_phy *phy = usb_get_intfdata(interface); pn533_usb_disconnect() local [all...] |
| /linux/drivers/phy/starfive/ |
| H A D | phy-jh7110-usb.c | 15 #include <linux/phy/phy.h> 30 struct phy *phy; member 38 static void usb2_set_ls_keepalive(struct jh7110_usb2_phy *phy, bool set) in usb2_set_ls_keepalive() argument 43 val = readl(phy->regs + USB_LS_KEEPALIVE_OFF); in usb2_set_ls_keepalive() 49 writel(val, phy->regs + USB_LS_KEEPALIVE_OFF); in usb2_set_ls_keepalive() 52 static int usb2_phy_set_mode(struct phy *_phy, in usb2_phy_set_mode() 55 struct jh7110_usb2_phy *phy = phy_get_drvdata(_phy); in usb2_phy_set_mode() local 66 if (mode != phy in usb2_phy_set_mode() 81 struct jh7110_usb2_phy *phy = phy_get_drvdata(_phy); jh7110_usb2_phy_init() local 102 struct jh7110_usb2_phy *phy = phy_get_drvdata(_phy); jh7110_usb2_phy_exit() local 118 struct jh7110_usb2_phy *phy; jh7110_usb_phy_probe() local [all...] |
| /linux/drivers/nfc/s3fwrn5/ |
| H A D | i2c.c | 31 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_mode() local 33 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 35 if (s3fwrn5_phy_power_ctrl(&phy->common, mode) == false) in s3fwrn5_i2c_set_mode() 38 phy->irq_skip = true; in s3fwrn5_i2c_set_mode() 41 mutex_unlock(&phy->common.mutex); in s3fwrn5_i2c_set_mode() 46 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_write() local 49 mutex_lock(&phy->common.mutex); in s3fwrn5_i2c_write() 51 phy->irq_skip = false; in s3fwrn5_i2c_write() 53 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write() 57 ret = i2c_master_send(phy in s3fwrn5_i2c_write() 78 s3fwrn5_i2c_read(struct s3fwrn5_i2c_phy * phy) s3fwrn5_i2c_read() argument 120 struct s3fwrn5_i2c_phy *phy = phy_id; s3fwrn5_i2c_irq_thread_fn() local 149 struct s3fwrn5_i2c_phy *phy; s3fwrn5_i2c_probe() local 202 struct s3fwrn5_i2c_phy *phy = i2c_get_clientdata(client); s3fwrn5_i2c_remove() local [all...] |
| /linux/drivers/phy/sophgo/ |
| H A D | phy-cv1800-usb2.c | 15 #include <linux/phy/phy.h> 33 struct phy *phy; member 42 static int cv1800_usb_phy_set_mode(struct phy *_phy, in cv1800_usb_phy_set_mode() 45 struct cv1800_usb_phy *phy = phy_get_drvdata(_phy); in cv1800_usb_phy_set_mode() local 49 dev_info(&phy->phy->dev, "set mode %d", (int)mode); in cv1800_usb_phy_set_mode() 54 regmap_clear_bits(phy->syscon, REG_USB_PHY_CTRL, PHY_VBUS_POWER); in cv1800_usb_phy_set_mode() 58 regmap_set_bits(phy in cv1800_usb_phy_set_mode() 79 cv1800_usb_phy_set_clock(struct cv1800_usb_phy * phy) cv1800_usb_phy_set_clock() argument 103 struct cv1800_usb_phy *phy; cv1800_usb_phy_probe() local [all...] |
| /linux/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_phy.c | 11 static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy) in msm_hdmi_phy_resource_init() argument 13 struct hdmi_phy_cfg *cfg = phy->cfg; in msm_hdmi_phy_resource_init() 14 struct device *dev = &phy->pdev->dev; in msm_hdmi_phy_resource_init() 17 phy->regs = devm_kzalloc_objs(dev, phy->regs[0], cfg->num_regs); in msm_hdmi_phy_resource_init() 18 if (!phy->regs) in msm_hdmi_phy_resource_init() 21 phy->clks = devm_kzalloc_objs(dev, phy->clks[0], cfg->num_clks); in msm_hdmi_phy_resource_init() 22 if (!phy->clks) in msm_hdmi_phy_resource_init() 26 phy in msm_hdmi_phy_resource_init() 55 msm_hdmi_phy_resource_enable(struct hdmi_phy * phy) msm_hdmi_phy_resource_enable() argument 83 msm_hdmi_phy_resource_disable(struct hdmi_phy * phy) msm_hdmi_phy_resource_disable() argument 97 msm_hdmi_phy_powerup(struct hdmi_phy * phy,unsigned long pixclock) msm_hdmi_phy_powerup() argument 105 msm_hdmi_phy_powerdown(struct hdmi_phy * phy) msm_hdmi_phy_powerdown() argument 144 struct hdmi_phy *phy; msm_hdmi_phy_probe() local [all...] |