Lines Matching full:ram
61 hwsq_init(struct hwsq *ram, struct nvkm_subdev *subdev) in hwsq_init() argument
65 ret = nvkm_hwsq_init(subdev, &ram->hwsq); in hwsq_init()
69 ram->sequence++; in hwsq_init()
70 ram->subdev = subdev; in hwsq_init()
75 hwsq_exec(struct hwsq *ram, bool exec) in hwsq_exec() argument
78 if (ram->subdev) { in hwsq_exec()
79 ret = nvkm_hwsq_fini(&ram->hwsq, exec); in hwsq_exec()
80 ram->subdev = NULL; in hwsq_exec()
86 hwsq_rd32(struct hwsq *ram, struct hwsq_reg *reg) in hwsq_rd32() argument
88 struct nvkm_device *device = ram->subdev->device; in hwsq_rd32()
89 if (reg->sequence != ram->sequence) in hwsq_rd32()
95 hwsq_wr32(struct hwsq *ram, struct hwsq_reg *reg, u32 data) in hwsq_wr32() argument
99 reg->sequence = ram->sequence; in hwsq_wr32()
104 nvkm_hwsq_wr32(ram->hwsq, reg->addr+off, reg->data); in hwsq_wr32()
111 hwsq_nuke(struct hwsq *ram, struct hwsq_reg *reg) in hwsq_nuke() argument
117 hwsq_mask(struct hwsq *ram, struct hwsq_reg *reg, u32 mask, u32 data) in hwsq_mask() argument
119 u32 temp = hwsq_rd32(ram, reg); in hwsq_mask()
121 hwsq_wr32(ram, reg, (temp & ~mask) | data); in hwsq_mask()
126 hwsq_setf(struct hwsq *ram, u8 flag, int data) in hwsq_setf() argument
128 nvkm_hwsq_setf(ram->hwsq, flag, data); in hwsq_setf()
132 hwsq_wait(struct hwsq *ram, u8 flag, u8 data) in hwsq_wait() argument
134 nvkm_hwsq_wait(ram->hwsq, flag, data); in hwsq_wait()
138 hwsq_wait_vblank(struct hwsq *ram) in hwsq_wait_vblank() argument
140 nvkm_hwsq_wait_vblank(ram->hwsq); in hwsq_wait_vblank()
144 hwsq_nsec(struct hwsq *ram, u32 nsec) in hwsq_nsec() argument
146 nvkm_hwsq_nsec(ram->hwsq, nsec); in hwsq_nsec()