#include "priv.h"
#include <subdev/bios.h>
#include <subdev/bios/boost.h>
#include <subdev/bios/cstep.h>
#include <subdev/bios/perf.h>
#include <subdev/bios/vpstate.h>
#include <subdev/fb.h>
#include <subdev/therm.h>
#include <subdev/volt.h>
#include <core/option.h>
static u32
nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust,
u8 pstate, u8 domain, u32 input)
{ … }
static bool
nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate,
u32 max_volt, int temp)
{ … }
static struct nvkm_cstate *
nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate,
struct nvkm_cstate *cstate)
{ … }
static struct nvkm_cstate *
nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei)
{ … }
static int
nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei)
{ … }
static void
nvkm_cstate_del(struct nvkm_cstate *cstate)
{ … }
static int
nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate)
{ … }
static int
nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei)
{ … }
static void
nvkm_pstate_work(struct work_struct *work)
{ … }
static int
nvkm_pstate_calc(struct nvkm_clk *clk, bool wait)
{ … }
static void
nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate)
{ … }
static void
nvkm_pstate_del(struct nvkm_pstate *pstate)
{ … }
static int
nvkm_pstate_new(struct nvkm_clk *clk, int idx)
{ … }
static int
nvkm_clk_ustate_update(struct nvkm_clk *clk, int req)
{ … }
static int
nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen)
{ … }
int
nvkm_clk_ustate(struct nvkm_clk *clk, int req, int pwr)
{ … }
int
nvkm_clk_astate(struct nvkm_clk *clk, int req, int rel, bool wait)
{ … }
int
nvkm_clk_tstate(struct nvkm_clk *clk, u8 temp)
{ … }
int
nvkm_clk_dstate(struct nvkm_clk *clk, int req, int rel)
{ … }
int
nvkm_clk_pwrsrc(struct nvkm_device *device)
{ … }
int
nvkm_clk_read(struct nvkm_clk *clk, enum nv_clk_src src)
{ … }
static int
nvkm_clk_fini(struct nvkm_subdev *subdev, bool suspend)
{ … }
static int
nvkm_clk_init(struct nvkm_subdev *subdev)
{ … }
static void *
nvkm_clk_dtor(struct nvkm_subdev *subdev)
{ … }
static const struct nvkm_subdev_func
nvkm_clk = …;
int
nvkm_clk_ctor(const struct nvkm_clk_func *func, struct nvkm_device *device,
enum nvkm_subdev_type type, int inst, bool allow_reclock, struct nvkm_clk *clk)
{ … }
int
nvkm_clk_new_(const struct nvkm_clk_func *func, struct nvkm_device *device,
enum nvkm_subdev_type type, int inst, bool allow_reclock, struct nvkm_clk **pclk)
{ … }