/drivers/phy/ |
D | phy-core.c | 34 struct phy *phy = *(struct phy **)res; in devm_phy_release() local 36 phy_put(phy); in devm_phy_release() 48 struct phy *phy = *(struct phy **)res; in devm_phy_consume() local 50 phy_destroy(phy); in devm_phy_consume() 55 struct phy **phy = res; in devm_phy_match() local 57 return *phy == match_data; in devm_phy_match() 68 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument 72 if (!phy || !dev_id || !con_id) in phy_create_lookup() 81 pl->phy = phy; in phy_create_lookup() 100 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_remove_lookup() argument [all …]
|
D | phy-omap-usb2.c | 51 struct omap_usb *phy; in omap_usb2_set_comparator() local 57 phy = phy_to_omapusb(x); in omap_usb2_set_comparator() 58 phy->comparator = comparator; in omap_usb2_set_comparator() 65 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus() local 67 if (!phy->comparator) in omap_usb_set_vbus() 70 return phy->comparator->set_vbus(phy->comparator, enabled); in omap_usb_set_vbus() 75 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp() local 77 if (!phy->comparator) in omap_usb_start_srp() 80 return phy->comparator->start_srp(phy->comparator); in omap_usb_start_srp() 102 static int omap_usb_phy_power(struct omap_usb *phy, int on) in omap_usb_phy_power() argument [all …]
|
D | phy-ti-pipe3.c | 141 static struct pipe3_dpll_params *ti_pipe3_get_dpll_params(struct ti_pipe3 *phy) in ti_pipe3_get_dpll_params() argument 144 struct pipe3_dpll_map *dpll_map = phy->dpll_map; in ti_pipe3_get_dpll_params() 146 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params() 153 dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate); in ti_pipe3_get_dpll_params() 158 static int ti_pipe3_enable_clocks(struct ti_pipe3 *phy); 159 static void ti_pipe3_disable_clocks(struct ti_pipe3 *phy); 161 static int ti_pipe3_power_off(struct phy *x) in ti_pipe3_power_off() 165 struct ti_pipe3 *phy = phy_get_drvdata(x); in ti_pipe3_power_off() local 167 if (!phy->phy_power_syscon) { in ti_pipe3_power_off() 168 omap_control_phy_power(phy->control_dev, 0); in ti_pipe3_power_off() [all …]
|
D | phy-dm816x-usb.c | 57 struct usb_phy phy; member 81 static int dm816x_usb_phy_init(struct phy *x) in dm816x_usb_phy_init() 83 struct dm816x_usb_phy *phy = phy_get_drvdata(x); in dm816x_usb_phy_init() local 87 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init() 88 dev_warn(phy->dev, "nonstandard phy refclk\n"); in dm816x_usb_phy_init() 91 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init() 96 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init() 98 dev_info(phy->dev, in dm816x_usb_phy_init() 107 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init() 111 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init() [all …]
|
D | Makefile | 5 obj-$(CONFIG_GENERIC_PHY) += phy-core.o 6 obj-$(CONFIG_PHY_BCM_NS_USB2) += phy-bcm-ns-usb2.o 7 obj-$(CONFIG_PHY_BCM_NS_USB3) += phy-bcm-ns-usb3.o 8 obj-$(CONFIG_PHY_BERLIN_USB) += phy-berlin-usb.o 9 obj-$(CONFIG_PHY_BERLIN_SATA) += phy-berlin-sata.o 10 obj-$(CONFIG_PHY_DA8XX_USB) += phy-da8xx-usb.o 11 obj-$(CONFIG_PHY_DM816X_USB) += phy-dm816x-usb.o 12 obj-$(CONFIG_ARMADA375_USBCLUSTER_PHY) += phy-armada375-usb2.o 13 obj-$(CONFIG_BCM_KONA_USB2_PHY) += phy-bcm-kona-usb2.o 14 obj-$(CONFIG_PHY_EXYNOS_DP_VIDEO) += phy-exynos-dp-video.o [all …]
|
D | phy-sun9i-usb.c | 45 struct phy *phy; member 53 static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable) in sun9i_usb_phy_passby() argument 61 if (phy->type == USBPHY_INTERFACE_MODE_HSIC) in sun9i_usb_phy_passby() 65 reg_value = readl(phy->pmu); in sun9i_usb_phy_passby() 72 writel(reg_value, phy->pmu); in sun9i_usb_phy_passby() 75 static int sun9i_usb_phy_init(struct phy *_phy) in sun9i_usb_phy_init() 77 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); in sun9i_usb_phy_init() local 80 ret = clk_prepare_enable(phy->clk); in sun9i_usb_phy_init() 84 ret = clk_prepare_enable(phy->hsic_clk); in sun9i_usb_phy_init() 88 ret = reset_control_deassert(phy->reset); in sun9i_usb_phy_init() [all …]
|
/drivers/net/ |
D | sungem_phy.c | 50 static inline int __sungem_phy_read(struct mii_phy* phy, int id, int reg) in __sungem_phy_read() argument 52 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read() 55 static inline void __sungem_phy_write(struct mii_phy* phy, int id, int reg, int val) in __sungem_phy_write() argument 57 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write() 60 static inline int sungem_phy_read(struct mii_phy* phy, int reg) in sungem_phy_read() argument 62 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read() 65 static inline void sungem_phy_write(struct mii_phy* phy, int reg, int val) in sungem_phy_write() argument 67 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write() 70 static int reset_one_mii_phy(struct mii_phy* phy, int phy_id) in reset_one_mii_phy() argument 75 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy() [all …]
|
/drivers/scsi/libsas/ |
D | sas_phy.c | 36 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local 38 clear_bit(PHYE_LOSS_OF_SIGNAL, &phy->phy_events_pending); in sas_phye_loss_of_signal() 39 phy->error = 0; in sas_phye_loss_of_signal() 40 sas_deform_port(phy, 1); in sas_phye_loss_of_signal() 46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local 48 clear_bit(PHYE_OOB_DONE, &phy->phy_events_pending); in sas_phye_oob_done() 49 phy->error = 0; in sas_phye_oob_done() 55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local 56 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error() 57 struct asd_sas_port *port = phy->port; in sas_phye_oob_error() [all …]
|
D | sas_port.c | 31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument 33 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member() 35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member() 37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member() 42 static void sas_resume_port(struct asd_sas_phy *phy) in sas_resume_port() argument 45 struct asd_sas_port *port = phy->port; in sas_resume_port() 46 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port() 50 si->dft->lldd_port_formed(phy); in sas_resume_port() 75 struct ex_phy *phy = &dev->ex_dev.ex_phy[i]; in sas_resume_port() local 77 phy->phy_change_count = -1; in sas_resume_port() [all …]
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 34 static inline int _phy_read(struct mii_phy *phy, int reg) in _phy_read() argument 36 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read() 39 static inline void _phy_write(struct mii_phy *phy, int reg, int val) in _phy_write() argument 41 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write() 44 static inline int gpcs_phy_read(struct mii_phy *phy, int reg) in gpcs_phy_read() argument 46 return phy->mdio_read(phy->dev, phy->gpcs_address, reg); in gpcs_phy_read() 49 static inline void gpcs_phy_write(struct mii_phy *phy, int reg, int val) in gpcs_phy_write() argument 51 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write() 54 int emac_mii_reset_phy(struct mii_phy *phy) in emac_mii_reset_phy() argument 59 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy() [all …]
|
/drivers/nfc/pn544/ |
D | i2c.c | 202 static void pn544_hci_i2c_platform_init(struct pn544_i2c_phy *phy) in pn544_hci_i2c_platform_init() argument 208 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init() 211 gpio_set_value_cansleep(phy->gpio_fw, 0); in pn544_hci_i2c_platform_init() 214 phy->en_polarity = polarity; in pn544_hci_i2c_platform_init() 218 gpio_set_value_cansleep(phy->gpio_en, in pn544_hci_i2c_platform_init() 219 !phy->en_polarity); in pn544_hci_i2c_platform_init() 223 gpio_set_value_cansleep(phy->gpio_en, phy->en_polarity); in pn544_hci_i2c_platform_init() 227 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init() 228 ret = i2c_master_send(phy->i2c_dev, rset_cmd, count); in pn544_hci_i2c_platform_init() 230 nfc_info(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
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 …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 76 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() local 82 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 84 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 88 phy->id = (u32)(phy_id << 16); in igb_get_phy_id() 90 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 94 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igb_get_phy_id() 95 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igb_get_phy_id() 111 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp() 114 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp() 118 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp() [all …]
|
/drivers/nfc/s3fwrn5/ |
D | i2c.c | 51 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_wake() local 53 mutex_lock(&phy->mutex); in s3fwrn5_i2c_set_wake() 54 gpio_set_value(phy->gpio_fw_wake, wake); in s3fwrn5_i2c_set_wake() 56 mutex_unlock(&phy->mutex); in s3fwrn5_i2c_set_wake() 61 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_mode() local 63 mutex_lock(&phy->mutex); in s3fwrn5_i2c_set_mode() 65 if (phy->mode == mode) in s3fwrn5_i2c_set_mode() 68 phy->mode = mode; in s3fwrn5_i2c_set_mode() 70 gpio_set_value(phy->gpio_en, 1); in s3fwrn5_i2c_set_mode() 71 gpio_set_value(phy->gpio_fw_wake, 0); in s3fwrn5_i2c_set_mode() [all …]
|
/drivers/usb/phy/ |
D | phy-ulpi.c | 55 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags() argument 60 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags() 67 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags() 70 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags() 73 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags() 76 return usb_phy_io_write(phy, flags, ULPI_OTG_CTRL); in ulpi_set_otg_flags() 79 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags() argument 87 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags() 89 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags() 91 else if (phy->flags & ULPI_FC_FS4LS) in ulpi_set_fc_flags() [all …]
|
D | phy.c | 26 struct usb_phy *phy; member 33 struct usb_phy *phy = NULL; in __usb_find_phy() local 35 list_for_each_entry(phy, list, head) { in __usb_find_phy() 36 if (phy->type != type) in __usb_find_phy() 39 return phy; in __usb_find_phy() 53 if (phy_bind->phy) in __usb_find_phy_dev() 54 return phy_bind->phy; in __usb_find_phy_dev() 65 struct usb_phy *phy; in __of_usb_find_phy() local 70 list_for_each_entry(phy, &phy_list, head) { in __of_usb_find_phy() 71 if (node != phy->dev->of_node) in __of_usb_find_phy() [all …]
|
/drivers/net/fddi/skfp/ |
D | pcmplc.c | 202 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd); 203 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy); 204 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy); 205 static void reset_lem_struct(struct s_phy *phy); 209 static void sm_ph_linestate(struct s_smc *smc, int phy, int ls); 217 struct s_phy *phy) in start_pcm_timer0() argument 219 phy->timer0_exp = FALSE ; /* clear timer event flag */ in start_pcm_timer0() 220 smt_timer_start(smc,&phy->pcm_timer0,value, in start_pcm_timer0() 221 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0() 227 static void stop_pcm_timer0(struct s_smc *smc, struct s_phy *phy) in stop_pcm_timer0() argument [all …]
|
/drivers/net/ieee802154/ |
D | fakelb.c | 60 struct fakelb_phy *phy = hw->priv; in fakelb_hw_channel() local 63 phy->page = page; in fakelb_hw_channel() 64 phy->channel = channel; in fakelb_hw_channel() 71 struct fakelb_phy *current_phy = hw->priv, *phy; in fakelb_hw_xmit() local 75 list_for_each_entry(phy, &fakelb_ifup_phys, list_ifup) { in fakelb_hw_xmit() 76 if (current_phy == phy) in fakelb_hw_xmit() 79 if (current_phy->page == phy->page && in fakelb_hw_xmit() 80 current_phy->channel == phy->channel) { in fakelb_hw_xmit() 84 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc); in fakelb_hw_xmit() 95 struct fakelb_phy *phy = hw->priv; in fakelb_hw_start() local [all …]
|
/drivers/nfc/pn533/ |
D | usb.c | 70 struct pn533_usb_phy *phy = urb->context; in pn533_recv_response() local 76 nfc_err(&phy->udev->dev, "failed to alloc memory\n"); in pn533_recv_response() 83 pn533_recv_frame(phy->priv, skb, urb->status); in pn533_recv_response() 86 static int pn533_submit_urb_for_response(struct pn533_usb_phy *phy, gfp_t flags) in pn533_submit_urb_for_response() argument 88 phy->in_urb->complete = pn533_recv_response; in pn533_submit_urb_for_response() 90 return usb_submit_urb(phy->in_urb, flags); in pn533_submit_urb_for_response() 95 struct pn533_usb_phy *phy = urb->context; in pn533_recv_ack() local 96 struct pn533 *priv = phy->priv; in pn533_recv_ack() 108 dev_dbg(&phy->udev->dev, in pn533_recv_ack() 114 nfc_err(&phy->udev->dev, in pn533_recv_ack() [all …]
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_phy.c | 18 static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy) in msm_hdmi_phy_resource_init() argument 20 struct hdmi_phy_cfg *cfg = phy->cfg; in msm_hdmi_phy_resource_init() 21 struct device *dev = &phy->pdev->dev; in msm_hdmi_phy_resource_init() 24 phy->regs = devm_kzalloc(dev, sizeof(phy->regs[0]) * cfg->num_regs, in msm_hdmi_phy_resource_init() 26 if (!phy->regs) in msm_hdmi_phy_resource_init() 29 phy->clks = devm_kzalloc(dev, sizeof(phy->clks[0]) * cfg->num_clks, in msm_hdmi_phy_resource_init() 31 if (!phy->clks) in msm_hdmi_phy_resource_init() 45 phy->regs[i] = reg; in msm_hdmi_phy_resource_init() 59 phy->clks[i] = clk; in msm_hdmi_phy_resource_init() 65 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy) in msm_hdmi_phy_resource_enable() argument [all …]
|
/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy.c | 145 void msm_dsi_phy_set_src_pll(struct msm_dsi_phy *phy, int pll_id, u32 reg, in msm_dsi_phy_set_src_pll() argument 148 int phy_id = phy->id; in msm_dsi_phy_set_src_pll() 154 val = dsi_phy_read(phy->base + reg); in msm_dsi_phy_set_src_pll() 156 if (phy->cfg->src_pll_truthtable[phy_id][pll_id]) in msm_dsi_phy_set_src_pll() 157 dsi_phy_write(phy->base + reg, val | bit_mask); in msm_dsi_phy_set_src_pll() 159 dsi_phy_write(phy->base + reg, val & (~bit_mask)); in msm_dsi_phy_set_src_pll() 162 static int dsi_phy_regulator_init(struct msm_dsi_phy *phy) in dsi_phy_regulator_init() argument 164 struct regulator_bulk_data *s = phy->supplies; in dsi_phy_regulator_init() 165 const struct dsi_reg_entry *regs = phy->cfg->reg_cfg.regs; in dsi_phy_regulator_init() 166 struct device *dev = &phy->pdev->dev; in dsi_phy_regulator_init() [all …]
|
/drivers/nfc/st21nfca/ |
D | i2c.c | 111 static int st21nfca_hci_platform_init(struct st21nfca_i2c_phy *phy) in st21nfca_hci_platform_init() argument 119 r = i2c_master_send(phy->i2c_dev, reboot_cmd, in st21nfca_hci_platform_init() 131 r = i2c_master_recv(phy->i2c_dev, tmp, in st21nfca_hci_platform_init() 152 struct st21nfca_i2c_phy *phy = phy_id; in st21nfca_hci_i2c_enable() local 154 gpio_set_value(phy->gpio_ena, 1); in st21nfca_hci_i2c_enable() 155 phy->powered = 1; in st21nfca_hci_i2c_enable() 156 phy->run_mode = ST21NFCA_HCI_MODE; in st21nfca_hci_i2c_enable() 165 struct st21nfca_i2c_phy *phy = phy_id; in st21nfca_hci_i2c_disable() local 167 gpio_set_value(phy->gpio_ena, 0); in st21nfca_hci_i2c_disable() 169 phy->powered = 0; in st21nfca_hci_i2c_disable() [all …]
|
/drivers/media/platform/omap3isp/ |
D | ispcsiphy.c | 26 static void csiphy_routing_cfg_3630(struct isp_csiphy *phy, in csiphy_routing_cfg_3630() argument 33 regmap_read(phy->isp->syscon, phy->isp->syscon_offset, ®); in csiphy_routing_cfg_3630() 68 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630() 71 static void csiphy_routing_cfg_3430(struct isp_csiphy *phy, u32 iface, bool on, in csiphy_routing_cfg_3430() argument 82 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430() 89 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430() 104 static void csiphy_routing_cfg(struct isp_csiphy *phy, in csiphy_routing_cfg() argument 108 if (phy->isp->phy_type == ISP_PHY_TYPE_3630 && on) in csiphy_routing_cfg() 109 return csiphy_routing_cfg_3630(phy, iface, ccp2_strobe); in csiphy_routing_cfg() 110 if (phy->isp->phy_type == ISP_PHY_TYPE_3430) in csiphy_routing_cfg() [all …]
|
/drivers/staging/media/omap4iss/ |
D | iss_csiphy.c | 30 static void csiphy_lanes_config(struct iss_csiphy *phy) in csiphy_lanes_config() argument 35 reg = iss_reg_read(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG); in csiphy_lanes_config() 37 for (i = 0; i < phy->max_data_lanes; i++) { in csiphy_lanes_config() 40 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config() 42 reg |= (phy->lanes.data[i].pos << in csiphy_lanes_config() 48 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config() 49 reg |= phy->lanes.clk.pos << CSI2_COMPLEXIO_CFG_CLOCK_POSITION_SHIFT; in csiphy_lanes_config() 51 iss_reg_write(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG, reg); in csiphy_lanes_config() 60 static int csiphy_set_power(struct iss_csiphy *phy, u32 power) in csiphy_set_power() argument 65 iss_reg_update(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG, in csiphy_set_power() [all …]
|
/drivers/nfc/st-nci/ |
D | spi.c | 62 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_enable() local 64 gpio_set_value(phy->gpio_reset, 0); in st_nci_spi_enable() 66 gpio_set_value(phy->gpio_reset, 1); in st_nci_spi_enable() 69 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable() 70 enable_irq(phy->spi_dev->irq); in st_nci_spi_enable() 71 phy->irq_active = true; in st_nci_spi_enable() 79 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_disable() local 81 disable_irq_nosync(phy->spi_dev->irq); in st_nci_spi_disable() 82 phy->irq_active = false; in st_nci_spi_disable() 93 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_write() local [all …]
|