mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
tegra: hwpm: use consistent function names
- Update common function names to tegra_hwpm_* instead of tegra_soc_hwpm_*. - Update header guards to follow similar naming guidelines. Jira THWPM-41 Change-Id: If5ca4f136f5cb6659a99bae42030817142bd242c Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2675469 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
edb9e2c245
commit
9adf6a080d
@@ -20,24 +20,24 @@ struct tegra_soc_hwpm_ip_floorsweep_info;
|
||||
struct tegra_soc_hwpm_alloc_pma_stream;
|
||||
struct tegra_soc_hwpm_update_get_put;
|
||||
|
||||
int tegra_soc_hwpm_init_chip_info(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_init_floorsweep_info(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_reserve_resource(struct tegra_soc_hwpm *hwpm, u32 resource);
|
||||
int tegra_soc_hwpm_release_resources(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_bind_resources(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_get_allowlist_size(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_update_allowlist(struct tegra_soc_hwpm *hwpm,
|
||||
int tegra_hwpm_init_chip_info(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_init_floorsweep_info(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_reserve_resource(struct tegra_soc_hwpm *hwpm, u32 resource);
|
||||
int tegra_hwpm_release_resources(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_bind_resources(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_get_allowlist_size(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_update_allowlist(struct tegra_soc_hwpm *hwpm,
|
||||
void *ioctl_struct);
|
||||
int tegra_soc_hwpm_exec_regops(struct tegra_soc_hwpm *hwpm,
|
||||
int tegra_hwpm_exec_regops(struct tegra_soc_hwpm *hwpm,
|
||||
struct tegra_soc_hwpm_exec_reg_ops *exec_reg_ops);
|
||||
|
||||
int tegra_soc_hwpm_setup_hw(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_setup_sw(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_setup_hw(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_setup_sw(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_disable_triggers(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_soc_hwpm_release_hw(struct tegra_soc_hwpm *hwpm);
|
||||
void tegra_soc_hwpm_release_sw_components(struct tegra_soc_hwpm *hwpm);
|
||||
int tegra_hwpm_release_hw(struct tegra_soc_hwpm *hwpm);
|
||||
void tegra_hwpm_release_sw_components(struct tegra_soc_hwpm *hwpm);
|
||||
|
||||
int tegra_soc_hwpm_get_floorsweep_info(struct tegra_soc_hwpm *hwpm,
|
||||
int tegra_hwpm_get_floorsweep_info(struct tegra_soc_hwpm *hwpm,
|
||||
struct tegra_soc_hwpm_ip_floorsweep_info *fs_info);
|
||||
|
||||
int tegra_hwpm_map_stream_buffer(struct tegra_soc_hwpm *hwpm,
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
struct tegra_soc_hwpm;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm);
|
||||
void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm);
|
||||
void tegra_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm);
|
||||
void tegra_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm);
|
||||
#else
|
||||
static inline void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm) {}
|
||||
static inline void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm) {}
|
||||
static inline void tegra_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm) {}
|
||||
static inline void tegra_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm) {}
|
||||
#endif /* CONFIG_DEBUG_FS */
|
||||
|
||||
#endif /* TEGRA_HWPM_DEBUGFS_H */
|
||||
|
||||
@@ -57,9 +57,9 @@ u32 tegra_hwpm_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr);
|
||||
void tegra_hwpm_writel(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr, u32 val);
|
||||
u32 regops_readl(struct tegra_soc_hwpm *hwpm,
|
||||
u32 tegra_hwpm_regops_readl(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr);
|
||||
void regops_writel(struct tegra_soc_hwpm *hwpm,
|
||||
void tegra_hwpm_regops_writel(struct tegra_soc_hwpm *hwpm,
|
||||
struct hwpm_ip_aperture *aperture, u64 addr, u32 val);
|
||||
|
||||
#endif /* TEGRA_HWPM_IO_H */
|
||||
|
||||
@@ -30,7 +30,7 @@ enum tegra_soc_hwpm_log_type {
|
||||
#define hwpm_verbose BIT(3)
|
||||
|
||||
#define tegra_hwpm_err(hwpm, fmt, arg...) \
|
||||
tegra_soc_err_impl(hwpm, __func__, __LINE__, fmt, ##arg)
|
||||
tegra_hwpm_err_impl(hwpm, __func__, __LINE__, fmt, ##arg)
|
||||
#define tegra_hwpm_dbg(hwpm, dbg_mask, fmt, arg...) \
|
||||
tegra_hwpm_dbg_impl(hwpm, dbg_mask, __func__, __LINE__, fmt, ##arg)
|
||||
#define tegra_hwpm_fn(hwpm, fmt, arg...) \
|
||||
@@ -38,7 +38,7 @@ enum tegra_soc_hwpm_log_type {
|
||||
|
||||
struct tegra_soc_hwpm;
|
||||
|
||||
void tegra_soc_err_impl(struct tegra_soc_hwpm *hwpm,
|
||||
void tegra_hwpm_err_impl(struct tegra_soc_hwpm *hwpm,
|
||||
const char *func, int line, const char *fmt, ...);
|
||||
void tegra_hwpm_dbg_impl(struct tegra_soc_hwpm *hwpm,
|
||||
u32 dbg_mask, const char *func, int line, const char *fmt, ...);
|
||||
|
||||
Reference in New Issue
Block a user