#include "nvhost_job.h"
#include "nvhost_sync.h"
-DEFINE_MUTEX(channel_lock);
+static DEFINE_MUTEX(channel_lock);
int nvhost_check_bondout(unsigned int id)
{
#include "t124/t124.h"
#include "t210/t210.h"
-struct nvhost_chip_support *nvhost_chip_ops;
+static struct nvhost_chip_support *nvhost_chip_ops;
struct nvhost_chip_support *nvhost_get_chip_ops(void)
{
static int nvhost_module_finalize_poweron(struct device *dev);
#endif
-DEFINE_MUTEX(client_list_lock);
+static DEFINE_MUTEX(client_list_lock);
struct nvhost_module_client {
struct list_head node;
EXPORT_SYMBOL(nvhost_module_pm_ops);
/*FIXME Use API to get host1x domain */
-struct generic_pm_domain *host1x_domain;
+static struct generic_pm_domain *host1x_domain;
-int _nvhost_module_add_domain(struct generic_pm_domain *domain,
+static int _nvhost_module_add_domain(struct generic_pm_domain *domain,
struct platform_device *pdev, bool client)
{
int ret = 0;
#define NVHOST_CHANNEL_LOW_PRIO_MAX_WAIT 50
/* Constructor for the host1x device list */
-int nvhost_channel_list_init(struct nvhost_master *host)
+static int nvhost_channel_list_init(struct nvhost_master *host)
{
if (host->info.nb_channels > BITS_PER_LONG) {
WARN(1, "host1x hardware has more channels than supported\n");
}
/* Check if more than channel needed for device and assign */
-int nvhost_channel_assign(struct nvhost_device_data *pdata,
+static int nvhost_channel_assign(struct nvhost_device_data *pdata,
struct nvhost_channel *ch)
{
int i;
}
}
-void reset_threshold_interrupt(struct nvhost_intr *intr,
+static void reset_threshold_interrupt(struct nvhost_intr *intr,
struct list_head *head,
unsigned int id)
{
* higher compared to the target frequency.
******************************************************************************/
-int freqlist_up(struct podgov_info_rec *podgov, unsigned long target, int steps)
+static int freqlist_up(struct podgov_info_rec *podgov, unsigned long target,
+ int steps)
{
int i, pos;
return podgov->freqlist[pos];
}
-/*******************************************************************************
- * freqlist_down(podgov, target, steps)
- *
- * This function determines the frequency that is "steps" frequency steps
- * lower compared to the target frequency.
- ******************************************************************************/
-
-int freqlist_down(struct podgov_info_rec *podgov, unsigned long target,
- int steps)
-{
- int i, pos;
-
- for (i = podgov->freq_count - 1; i >= 0; i--)
- if (podgov->freqlist[i] <= target)
- break;
-
- pos = max(0, i - steps);
- return podgov->freqlist[pos];
-}
-
/*******************************************************************************
* podgov_idle_handler(work)
*
}
#ifdef CONFIG_TEGRA_THROUGHPUT
+/*******************************************************************************
+ * freqlist_down(podgov, target, steps)
+ *
+ * This function determines the frequency that is "steps" frequency steps
+ * lower compared to the target frequency.
+ ******************************************************************************/
+
+static int freqlist_down(struct podgov_info_rec *podgov, unsigned long target,
+ int steps)
+{
+ int i, pos;
+
+ for (i = podgov->freq_count - 1; i >= 0; i--)
+ if (podgov->freqlist[i] <= target)
+ break;
+
+ pos = max(0, i - steps);
+ return podgov->freqlist[pos];
+}
+
/*******************************************************************************
* nvhost_scale3d_set_throughput_hint(hint)
*
* int FXDIV(int x, int y)
*/
-int FXMUL(int x, int y)
+static int FXMUL(int x, int y)
{
return ((long long) x * (long long) y) >> FXFRAC;
}
-int FXDIV(int x, int y)
+static int FXDIV(int x, int y)
{
/* long long div operation not supported, must shift manually. This
* would have been
};
-static struct platform_device tegra_host1x04_device = {
+struct platform_device tegra_host1x04_device = {
.name = "host1x",
.id = -1,
#ifdef CONFIG_ARCH_TEGRA
.gather_filter_enabled = true,
};
-struct platform_device tegra_msenc03_device = {
+static struct platform_device tegra_msenc03_device = {
.name = "msenc",
.id = -1,
.resource = msenc_resources,
.num_ppc = 2,
};
-struct platform_device tegra_vic03_device = {
+static struct platform_device tegra_vic03_device = {
.name = "vic03",
.num_resources = 1,
.resource = vic03_resources,
* T132 overrides for platform data.
*/
-struct nvhost_device_data t132_msenc_info = {
+static struct nvhost_device_data t132_msenc_info = {
.num_channels = 1,
.version = NVHOST_ENCODE_FLCN_VER(3, 1),
.modulemutexes = {NVMODMUTEX_MSENC},
static u8 otf_key[TSEC_KEY_LENGTH];
/* Pointer to this device */
-struct platform_device *tsec;
+static struct platform_device *tsec;
int tsec_hdcp_create_context(struct hdcp_context_t *hdcp_context)
{
}
-void tsec_execute_method(dma_addr_t dma_handle,
+static void tsec_execute_method(dma_addr_t dma_handle,
u32 *cpuvaddr,
u32 opcode_len)
{
return;
}
-void tsec_write_mthd(u32 *buf, u32 mid, u32 data, u32 *offset)
+static void tsec_write_mthd(u32 *buf, u32 mid, u32 data, u32 *offset)
{
int i = 0;
buf[i++] = nvhost_opcode_incr(NV_PSEC_THI_METHOD0>>2, 1);
return 0;
}
-int tsec_read_ucode(struct platform_device *dev, const char *fw_name)
+static int tsec_read_ucode(struct platform_device *dev, const char *fw_name)
{
struct tsec *m = get_tsec(dev);
const struct firmware *ucode_fw;
}
-long vi_ioctl(struct file *file,
+static long vi_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{
struct vi *tegra_vi = file->private_data;
u32 sync_fence;
};
-struct platform_device *vii2c_pdev;
+static struct platform_device *vii2c_pdev;
static struct of_device_id vii2c_of_match[] = {
#if defined(CONFIG_TEGRA_GRHOST_VII2C)