Lines Matching refs:tegra_pmc

269 	struct tegra_pmc *pmc;
357 void (*init)(struct tegra_pmc *pmc);
358 void (*setup_irq_polarity)(struct tegra_pmc *pmc,
361 void (*set_wake_filters)(struct tegra_pmc *pmc);
364 int (*powergate_set)(struct tegra_pmc *pmc, unsigned int id,
427 struct tegra_pmc { struct
473 static struct tegra_pmc *pmc = &(struct tegra_pmc) { argument
484 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_readl()
506 static void tegra_pmc_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_writel()
527 static u32 tegra_pmc_scratch_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_scratch_readl()
535 static void tegra_pmc_scratch_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_scratch_writel()
557 static inline bool tegra_powergate_is_valid(struct tegra_pmc *pmc, int id) in tegra_powergate_is_valid()
562 static inline bool tegra_powergate_is_available(struct tegra_pmc *pmc, int id) in tegra_powergate_is_available()
567 static int tegra_powergate_lookup(struct tegra_pmc *pmc, const char *name) in tegra_powergate_lookup()
585 static int tegra20_powergate_set(struct tegra_pmc *pmc, unsigned int id, in tegra20_powergate_set()
608 static inline bool tegra_powergate_toggle_ready(struct tegra_pmc *pmc) in tegra_powergate_toggle_ready()
613 static int tegra114_powergate_set(struct tegra_pmc *pmc, unsigned int id, in tegra114_powergate_set()
648 static int tegra_powergate_set(struct tegra_pmc *pmc, unsigned int id, in tegra_powergate_set()
670 static int __tegra_powergate_remove_clamping(struct tegra_pmc *pmc, in __tegra_powergate_remove_clamping()
974 static int tegra_powergate_is_powered(struct tegra_pmc *pmc, unsigned int id) in tegra_powergate_is_powered()
1048 static int tegra_get_cpu_powergate_id(struct tegra_pmc *pmc, in tegra_get_cpu_powergate_id()
1273 static int tegra_powergate_add(struct tegra_pmc *pmc, struct device_node *np) in tegra_powergate_add()
1397 static int tegra_pmc_core_pd_add(struct tegra_pmc *pmc, struct device_node *np) in tegra_pmc_core_pd_add()
1437 static int tegra_powergate_init(struct tegra_pmc *pmc, in tegra_powergate_init()
1529 tegra_io_pad_find(struct tegra_pmc *pmc, enum tegra_io_pad id) in tegra_io_pad_find()
1540 static int tegra_io_pad_prepare(struct tegra_pmc *pmc, in tegra_io_pad_prepare()
1573 static int tegra_io_pad_poll(struct tegra_pmc *pmc, unsigned long offset, in tegra_io_pad_poll()
1591 static void tegra_io_pad_unprepare(struct tegra_pmc *pmc) in tegra_io_pad_unprepare()
1683 static int tegra_io_pad_is_powered(struct tegra_pmc *pmc, enum tegra_io_pad id) in tegra_io_pad_is_powered()
1706 static int tegra_io_pad_set_voltage(struct tegra_pmc *pmc, enum tegra_io_pad id, in tegra_io_pad_set_voltage()
1754 static int tegra_io_pad_get_voltage(struct tegra_pmc *pmc, enum tegra_io_pad id) in tegra_io_pad_get_voltage()
1828 static int tegra_pmc_parse_dt(struct tegra_pmc *pmc, struct device_node *np) in tegra_pmc_parse_dt()
1901 static int tegra_pmc_init(struct tegra_pmc *pmc) in tegra_pmc_init()
1927 static void tegra_pmc_init_tsense_reset(struct tegra_pmc *pmc) in tegra_pmc_init_tsense_reset()
2005 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_groups_count()
2013 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl); in tegra_io_pad_pinctrl_get_group_name()
2023 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_group_pins()
2043 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_get()
2082 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_set()
2133 static int tegra_pmc_pinctrl_init(struct tegra_pmc *pmc) in tegra_pmc_pinctrl_init()
2190 static void tegra_pmc_reset_sysfs_init(struct tegra_pmc *pmc) in tegra_pmc_reset_sysfs_init()
2229 struct tegra_pmc *pmc = domain->host_data; in tegra_pmc_irq_alloc()
2304 struct tegra_pmc *pmc = irq_data_get_irq_chip_data(data); in tegra210_pmc_irq_set_wake()
2338 struct tegra_pmc *pmc = irq_data_get_irq_chip_data(data); in tegra210_pmc_irq_set_type()
2376 static void tegra186_pmc_set_wake_filters(struct tegra_pmc *pmc) in tegra186_pmc_set_wake_filters()
2389 struct tegra_pmc *pmc = irq_data_get_irq_chip_data(data); in tegra186_pmc_irq_set_wake()
2417 struct tegra_pmc *pmc = irq_data_get_irq_chip_data(data); in tegra186_pmc_irq_set_type()
2480 static int tegra_pmc_irq_init(struct tegra_pmc *pmc) in tegra_pmc_irq_init()
2515 struct tegra_pmc *pmc = container_of(nb, struct tegra_pmc, clk_nb); in tegra_pmc_clk_notify_cb()
2617 tegra_pmc_clk_out_register(struct tegra_pmc *pmc, in tegra_pmc_clk_out_register()
2673 tegra_pmc_clk_gate_register(struct tegra_pmc *pmc, const char *name, in tegra_pmc_clk_gate_register()
2697 static void tegra_pmc_clock_register(struct tegra_pmc *pmc, in tegra_pmc_clock_register()
2809 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_readl()
2817 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_writel()
2835 static int tegra_pmc_regmap_init(struct tegra_pmc *pmc) in tegra_pmc_regmap_init()
3030 static void wke_32kwritel(struct tegra_pmc *pmc, u32 value, unsigned int offset) in wke_32kwritel()
3036 static void wke_write_wake_level(struct tegra_pmc *pmc, int wake, int level) in wke_write_wake_level()
3050 static void wke_write_wake_levels(struct tegra_pmc *pmc) in wke_write_wake_levels()
3058 static void wke_clear_sw_wake_status(struct tegra_pmc *pmc) in wke_clear_sw_wake_status()
3063 static void wke_read_sw_wake_status(struct tegra_pmc *pmc) in wke_read_sw_wake_status()
3103 static void wke_clear_wake_status(struct tegra_pmc *pmc) in wke_clear_wake_status()
3119 static void tegra186_pmc_process_wake_events(struct tegra_pmc *pmc, unsigned int index, in tegra186_pmc_process_wake_events()
3179 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_suspend()
3188 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_resume()
3218 static void tegra20_pmc_init(struct tegra_pmc *pmc) in tegra20_pmc_init()
3258 static void tegra20_pmc_setup_irq_polarity(struct tegra_pmc *pmc, in tegra20_pmc_setup_irq_polarity()
3824 static void tegra186_pmc_init(struct tegra_pmc *pmc) in tegra186_pmc_init()
3832 static void tegra186_pmc_setup_irq_polarity(struct tegra_pmc *pmc, in tegra186_pmc_setup_irq_polarity()
4307 static bool __init tegra_pmc_detect_tz_only(struct tegra_pmc *pmc) in tegra_pmc_detect_tz_only()