• Home
  • Raw
  • Download

Lines Matching refs:buffer

35 	struct nvkm_fault_buffer *buffer = container_of(inth, typeof(*buffer), inth);  in tu102_fault_buffer_notify()  local
37 nvkm_event_ntfy(&buffer->fault->event, buffer->id, NVKM_FAULT_BUFFER_EVENT_PENDING); in tu102_fault_buffer_notify()
42 tu102_fault_buffer_intr(struct nvkm_fault_buffer *buffer, bool enable) in tu102_fault_buffer_intr() argument
45 nvkm_inth_allow(&buffer->inth); in tu102_fault_buffer_intr()
47 nvkm_inth_block(&buffer->inth); in tu102_fault_buffer_intr()
51 tu102_fault_buffer_fini(struct nvkm_fault_buffer *buffer) in tu102_fault_buffer_fini() argument
53 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_fini()
54 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_fini()
60 tu102_fault_buffer_init(struct nvkm_fault_buffer *buffer) in tu102_fault_buffer_init() argument
62 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_init()
63 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_init()
66 nvkm_wr32(device, 0xb83004 + foff, upper_32_bits(buffer->addr)); in tu102_fault_buffer_init()
67 nvkm_wr32(device, 0xb83000 + foff, lower_32_bits(buffer->addr)); in tu102_fault_buffer_init()
72 tu102_fault_buffer_info(struct nvkm_fault_buffer *buffer) in tu102_fault_buffer_info() argument
74 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_info()
75 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_info()
79 buffer->entries = nvkm_rd32(device, 0xb83010 + foff) & 0x000fffff; in tu102_fault_buffer_info()
80 buffer->get = 0xb83008 + foff; in tu102_fault_buffer_info()
81 buffer->put = 0xb8300c + foff; in tu102_fault_buffer_info()
120 if (fault->buffer[0]) in tu102_fault_fini()
121 fault->func->buffer.fini(fault->buffer[0]); in tu102_fault_fini()
131 fault->func->buffer.init(fault->buffer[0]); in tu102_fault_init()
151 tu102_fault_buffer_notify, &fault->buffer[i]->inth); in tu102_fault_oneinit()
164 .buffer.nr = 2,
165 .buffer.entry_size = 32,
166 .buffer.info = tu102_fault_buffer_info,
167 .buffer.pin = gp100_fault_buffer_pin,
168 .buffer.init = tu102_fault_buffer_init,
169 .buffer.fini = tu102_fault_buffer_fini,
170 .buffer.intr = tu102_fault_buffer_intr,