Lines Matching refs:device

43 	struct nvif_device *device = &drm->device;  in nv40_get_intensity()  local
44 int val = (nvif_rd32(device, NV40_PMC_BACKLIGHT) & in nv40_get_intensity()
54 struct nvif_device *device = &drm->device; in nv40_set_intensity() local
56 int reg = nvif_rd32(device, NV40_PMC_BACKLIGHT); in nv40_set_intensity()
58 nvif_wr32(device, NV40_PMC_BACKLIGHT, in nv40_set_intensity()
74 struct nvif_device *device = &drm->device; in nv40_backlight_init() local
78 if (!(nvif_rd32(device, NV40_PMC_BACKLIGHT) & NV40_PMC_BACKLIGHT_MASK)) in nv40_backlight_init()
100 struct nvif_device *device = &drm->device; in nv50_get_intensity() local
105 val = nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(or)); in nv50_get_intensity()
115 struct nvif_device *device = &drm->device; in nv50_set_intensity() local
120 nvif_wr32(device, NV50_PDISP_SOR_PWM_CTL(or), in nv50_set_intensity()
136 struct nvif_device *device = &drm->device; in nva3_get_intensity() local
140 div = nvif_rd32(device, NV50_PDISP_SOR_PWM_DIV(or)); in nva3_get_intensity()
141 val = nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(or)); in nva3_get_intensity()
154 struct nvif_device *device = &drm->device; in nva3_set_intensity() local
158 div = nvif_rd32(device, NV50_PDISP_SOR_PWM_DIV(or)); in nva3_set_intensity()
161 nvif_wr32(device, NV50_PDISP_SOR_PWM_CTL(or), val | in nva3_set_intensity()
180 struct nvif_device *device = &drm->device; in nv50_backlight_init() local
193 if (!nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(nv_encoder->or))) in nv50_backlight_init()
196 if (device->info.chipset <= 0xa0 || in nv50_backlight_init()
197 device->info.chipset == 0xaa || in nv50_backlight_init()
198 device->info.chipset == 0xac) in nv50_backlight_init()
221 struct nvif_device *device = &drm->device; in nouveau_backlight_init() local
229 switch (device->info.family) { in nouveau_backlight_init()