• Home
  • Raw
  • Download

Lines Matching refs:value

101 static inline void padctl_writel(struct tegra_xusb_padctl *padctl, u32 value,  in padctl_writel()  argument
104 writel(value, padctl->regs + offset); in padctl_writel()
154 #define TEGRA_XUSB_PADCTL_PACK(param, value) ((param) << 16 | (value)) argument
169 u32 value; in tegra_xusb_padctl_parse_subnode() local
180 err = of_property_read_u32(np, properties[i].name, &value); in tegra_xusb_padctl_parse_subnode()
188 config = TEGRA_XUSB_PADCTL_PACK(properties[i].param, value); in tegra_xusb_padctl_parse_subnode()
309 u32 value; in tegra_xusb_padctl_pinmux_set() local
320 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_pinmux_set()
321 value &= ~(lane->mask << lane->shift); in tegra_xusb_padctl_pinmux_set()
322 value |= i << lane->shift; in tegra_xusb_padctl_pinmux_set()
323 padctl_writel(padctl, value, lane->offset); in tegra_xusb_padctl_pinmux_set()
342 u32 value; in tegra_xusb_padctl_pinconf_group_get() local
353 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_pinconf_group_get()
355 if (value & BIT(lane->iddq)) in tegra_xusb_padctl_pinconf_group_get()
356 value = 0; in tegra_xusb_padctl_pinconf_group_get()
358 value = 1; in tegra_xusb_padctl_pinconf_group_get()
360 *config = TEGRA_XUSB_PADCTL_PACK(param, value); in tegra_xusb_padctl_pinconf_group_get()
380 unsigned long value; in tegra_xusb_padctl_pinconf_group_set() local
388 value = TEGRA_XUSB_PADCTL_UNPACK_VALUE(configs[i]); in tegra_xusb_padctl_pinconf_group_set()
398 if (value) in tegra_xusb_padctl_pinconf_group_set()
435 unsigned long config, value; in tegra_xusb_padctl_pinconf_group_dbg_show() local
445 value = TEGRA_XUSB_PADCTL_UNPACK_VALUE(config); in tegra_xusb_padctl_pinconf_group_dbg_show()
448 value); in tegra_xusb_padctl_pinconf_group_dbg_show()
459 unsigned long value; in tegra_xusb_padctl_pinconf_config_dbg_show() local
463 value = TEGRA_XUSB_PADCTL_UNPACK_VALUE(config); in tegra_xusb_padctl_pinconf_config_dbg_show()
472 seq_printf(s, "%s=%lu", strip_prefix(name), value); in tegra_xusb_padctl_pinconf_config_dbg_show()
487 u32 value; in tegra_xusb_padctl_enable() local
494 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
495 value &= ~XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_CLAMP_EN; in tegra_xusb_padctl_enable()
496 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
500 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
501 value &= ~XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_CLAMP_EN_EARLY; in tegra_xusb_padctl_enable()
502 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
506 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
507 value &= ~XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_VCORE_DOWN; in tegra_xusb_padctl_enable()
508 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
517 u32 value; in tegra_xusb_padctl_disable() local
527 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
528 value |= XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_VCORE_DOWN; in tegra_xusb_padctl_disable()
529 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
533 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
534 value |= XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_CLAMP_EN_EARLY; in tegra_xusb_padctl_disable()
535 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
539 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
540 value |= XUSB_PADCTL_ELPG_PROGRAM_AUX_MUX_LP0_CLAMP_EN; in tegra_xusb_padctl_disable()
541 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_disable()
567 u32 value; in pcie_phy_power_on() local
569 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_on()
570 value &= ~XUSB_PADCTL_IOPHY_PLL_P0_CTL1_REFCLK_SEL_MASK; in pcie_phy_power_on()
571 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_on()
573 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_P0_CTL2); in pcie_phy_power_on()
574 value |= XUSB_PADCTL_IOPHY_PLL_P0_CTL2_REFCLKBUF_EN | in pcie_phy_power_on()
577 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_P0_CTL2); in pcie_phy_power_on()
579 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_on()
580 value |= XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST; in pcie_phy_power_on()
581 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_on()
586 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_on()
587 if (value & XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL0_LOCKDET) { in pcie_phy_power_on()
601 u32 value; in pcie_phy_power_off() local
603 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_off()
604 value &= ~XUSB_PADCTL_IOPHY_PLL_P0_CTL1_PLL_RST; in pcie_phy_power_off()
605 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_P0_CTL1); in pcie_phy_power_off()
623 u32 value; in sata_phy_power_on() local
625 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1); in sata_phy_power_on()
626 value &= ~XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD; in sata_phy_power_on()
627 value &= ~XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ; in sata_phy_power_on()
628 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1); in sata_phy_power_on()
630 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
631 value &= ~XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD; in sata_phy_power_on()
632 value &= ~XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ; in sata_phy_power_on()
633 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
635 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
636 value |= XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE; in sata_phy_power_on()
637 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
639 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
640 value |= XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST; in sata_phy_power_on()
641 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
646 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_on()
647 if (value & XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_LOCKDET) { in sata_phy_power_on()
661 u32 value; in sata_phy_power_off() local
663 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
664 value &= ~XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_RST; in sata_phy_power_off()
665 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
667 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
668 value &= ~XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL1_MODE; in sata_phy_power_off()
669 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
671 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
672 value |= XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_PWR_OVRD; in sata_phy_power_off()
673 value |= XUSB_PADCTL_IOPHY_PLL_S0_CTL1_PLL_IDDQ; in sata_phy_power_off()
674 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_PLL_S0_CTL1); in sata_phy_power_off()
676 value = padctl_readl(padctl, XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1); in sata_phy_power_off()
677 value |= ~XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ_OVRD; in sata_phy_power_off()
678 value |= ~XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1_IDDQ; in sata_phy_power_off()
679 padctl_writel(padctl, value, XUSB_PADCTL_IOPHY_MISC_PAD_S0_CTL1); in sata_phy_power_off()