Lines Matching refs:ram
59 ramfuc_init(struct ramfuc *ram, struct nvkm_fb *fb) in ramfuc_init() argument
61 int ret = nvkm_memx_init(fb->subdev.device->pmu, &ram->memx); in ramfuc_init()
65 ram->sequence++; in ramfuc_init()
66 ram->fb = fb; in ramfuc_init()
71 ramfuc_exec(struct ramfuc *ram, bool exec) in ramfuc_exec() argument
74 if (ram->fb) { in ramfuc_exec()
75 ret = nvkm_memx_fini(&ram->memx, exec); in ramfuc_exec()
76 ram->fb = NULL; in ramfuc_exec()
82 ramfuc_rd32(struct ramfuc *ram, struct ramfuc_reg *reg) in ramfuc_rd32() argument
84 struct nvkm_device *device = ram->fb->subdev.device; in ramfuc_rd32()
85 if (reg->sequence != ram->sequence) in ramfuc_rd32()
91 ramfuc_wr32(struct ramfuc *ram, struct ramfuc_reg *reg, u32 data) in ramfuc_wr32() argument
95 reg->sequence = ram->sequence; in ramfuc_wr32()
100 nvkm_memx_wr32(ram->memx, reg->addr+off, reg->data); in ramfuc_wr32()
106 ramfuc_nuke(struct ramfuc *ram, struct ramfuc_reg *reg) in ramfuc_nuke() argument
112 ramfuc_mask(struct ramfuc *ram, struct ramfuc_reg *reg, u32 mask, u32 data) in ramfuc_mask() argument
114 u32 temp = ramfuc_rd32(ram, reg); in ramfuc_mask()
116 ramfuc_wr32(ram, reg, (temp & ~mask) | data); in ramfuc_mask()
123 ramfuc_wait(struct ramfuc *ram, u32 addr, u32 mask, u32 data, u32 nsec) in ramfuc_wait() argument
125 nvkm_memx_wait(ram->memx, addr, mask, data, nsec); in ramfuc_wait()
129 ramfuc_nsec(struct ramfuc *ram, u32 nsec) in ramfuc_nsec() argument
131 nvkm_memx_nsec(ram->memx, nsec); in ramfuc_nsec()
135 ramfuc_wait_vblank(struct ramfuc *ram) in ramfuc_wait_vblank() argument
137 nvkm_memx_wait_vblank(ram->memx); in ramfuc_wait_vblank()
141 ramfuc_train(struct ramfuc *ram) in ramfuc_train() argument
143 nvkm_memx_train(ram->memx); in ramfuc_train()
153 ramfuc_block(struct ramfuc *ram) in ramfuc_block() argument
155 nvkm_memx_block(ram->memx); in ramfuc_block()
159 ramfuc_unblock(struct ramfuc *ram) in ramfuc_unblock() argument
161 nvkm_memx_unblock(ram->memx); in ramfuc_unblock()