Home
last modified time | relevance | path

Searched refs:pwrsrc (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dctrl.c53 args->v0.pwrsrc = clk->pwrsrc; in nvkm_control_mthd_pstate_info()
59 args->v0.pwrsrc = -ENOSYS; in nvkm_control_mthd_pstate_info()
152 args->v0.ustate, args->v0.pwrsrc); in nvkm_control_mthd_pstate_user()
158 if (args->v0.pwrsrc >= 0) { in nvkm_control_mthd_pstate_user()
159 ret |= nvkm_clk_ustate(clk, args->v0.ustate, args->v0.pwrsrc); in nvkm_control_mthd_pstate_user()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_sysfs.c77 snappendf(buf, cnt, "%s:", info.pwrsrc == 0 ? "DC" : in nouveau_sysfs_pstate_get()
78 info.pwrsrc == 1 ? "AC" : in nouveau_sysfs_pstate_get()
121 struct nvif_control_pstate_user_v0 args = { .pwrsrc = -EINVAL }; in nouveau_sysfs_pstate_set()
129 args.pwrsrc = 0; in nouveau_sysfs_pstate_set()
133 args.pwrsrc = 1; in nouveau_sysfs_pstate_set()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
Dclass.h299 __s8 pwrsrc; /* out: current power source */ member
327 __s8 pwrsrc; /* in: target power source */ member
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dclk.h87 int pwrsrc; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dbase.c208 clk->pwrsrc = power_supply_is_system_supplied(); in nvkm_pstate_work()
211 clk->pstate, clk->pwrsrc, clk->ustate_ac, clk->ustate_dc, in nvkm_pstate_work()
214 pstate = clk->pwrsrc ? clk->ustate_ac : clk->ustate_dc; in nvkm_pstate_work()