Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c54 args->v0.pwrsrc = clk->pwrsrc; in nvkm_control_mthd_pstate_info()
60 args->v0.pwrsrc = -ENODEV; in nvkm_control_mthd_pstate_info()
153 args->v0.version, args->v0.ustate, args->v0.pwrsrc); in nvkm_control_mthd_pstate_user()
159 if (args->v0.pwrsrc >= 0) { in nvkm_control_mthd_pstate_user()
160 ret |= nvkm_clk_ustate(clk, args->v0.ustate, args->v0.pwrsrc); in nvkm_control_mthd_pstate_user()
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvif/
H A Dif0001.h16 __s8 pwrsrc; /* out: current power source */ member
44 __s8 pwrsrc; /* in: target power source */ member
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_debugfs.c104 seq_printf(m, "%s:", info.pwrsrc == 0 ? "DC" : in nouveau_debugfs_pstate_get()
105 info.pwrsrc == 1 ? "AC" : "--"); in nouveau_debugfs_pstate_get()
148 struct nvif_control_pstate_user_v0 args = { .pwrsrc = -EINVAL }; in nouveau_debugfs_pstate_set()
165 args.pwrsrc = 0; in nouveau_debugfs_pstate_set()
169 args.pwrsrc = 1; in nouveau_debugfs_pstate_set()
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dclk.h96 int pwrsrc; member
/openbmc/linux/drivers/platform/x86/intel/
H A Dbytcrc_pwrsrc.c105 DEFINE_SHOW_ATTRIBUTE(pwrsrc);
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c308 clk->pwrsrc = power_supply_is_system_supplied(); in nvkm_pstate_work()
311 clk->pstate, clk->pwrsrc, clk->ustate_ac, clk->ustate_dc, in nvkm_pstate_work()
314 pstate = clk->pwrsrc ? clk->ustate_ac : clk->ustate_dc; in nvkm_pstate_work()