pwrsrc 16 drivers/gpu/drm/nouveau/include/nvif/if0001.h __s8 pwrsrc; /* out: current power source */ pwrsrc 44 drivers/gpu/drm/nouveau/include/nvif/if0001.h __s8 pwrsrc; /* in: target power source */ pwrsrc 98 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h int pwrsrc; pwrsrc 101 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, "%s:", info.pwrsrc == 0 ? "DC" : pwrsrc 102 drivers/gpu/drm/nouveau/nouveau_debugfs.c info.pwrsrc == 1 ? "AC" : "--"); pwrsrc 146 drivers/gpu/drm/nouveau/nouveau_debugfs.c struct nvif_control_pstate_user_v0 args = { .pwrsrc = -EINVAL }; pwrsrc 163 drivers/gpu/drm/nouveau/nouveau_debugfs.c args.pwrsrc = 0; pwrsrc 167 drivers/gpu/drm/nouveau/nouveau_debugfs.c args.pwrsrc = 1; pwrsrc 54 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.pwrsrc = clk->pwrsrc; pwrsrc 60 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.pwrsrc = -ENOSYS; pwrsrc 153 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c args->v0.version, args->v0.ustate, args->v0.pwrsrc); pwrsrc 159 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c if (args->v0.pwrsrc >= 0) { pwrsrc 160 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c ret |= nvkm_clk_ustate(clk, args->v0.ustate, args->v0.pwrsrc); pwrsrc 306 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->pwrsrc = power_supply_is_system_supplied(); pwrsrc 309 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->pstate, clk->pwrsrc, clk->ustate_ac, clk->ustate_dc, pwrsrc 312 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c pstate = clk->pwrsrc ? clk->ustate_ac : clk->ustate_dc;