Lines Matching defs:dev
33 calc_bias(struct drm_device *dev, int k, int i, int j)
35 struct drm_nouveau_private *dev_priv = dev->dev_private;
37 nv_rd32(dev, 0x122c + 0x10 * k + 0x4 * j) >> (4 * (i ^ 1)) :
44 calc_ref(struct drm_device *dev, int l, int k, int i)
49 int m = (l >> (8 * i) & 0xff) + calc_bias(dev, k, i, j);
58 nv30_fb_init(struct drm_device *dev)
60 struct drm_nouveau_private *dev_priv = dev->dev_private;
68 pfb->set_region_tiling(dev, i, 0, 0, 0);
76 int l = nv_rd32(dev, 0x1003d0);
80 nv_wr32(dev, 0x10037c + 0xc * i + 0x4 * j,
81 calc_ref(dev, l, 0, j));
84 nv_wr32(dev, 0x1003ac + 0x8 * i + 0x4 * j,
85 calc_ref(dev, l, 1, j));
93 nv30_fb_takedown(struct drm_device *dev)