Lines Matching refs:evt
102 struct dwc3_event_buffer *evt) in dwc3_free_one_event_buffer() argument
104 dma_free_coherent(evt->buf); in dwc3_free_one_event_buffer()
118 struct dwc3_event_buffer *evt; in dwc3_alloc_one_event_buffer() local
120 evt = devm_kzalloc((struct udevice *)dwc->dev, sizeof(*evt), in dwc3_alloc_one_event_buffer()
122 if (!evt) in dwc3_alloc_one_event_buffer()
125 evt->dwc = dwc; in dwc3_alloc_one_event_buffer()
126 evt->length = length; in dwc3_alloc_one_event_buffer()
127 evt->buf = dma_alloc_coherent(length, in dwc3_alloc_one_event_buffer()
128 (unsigned long *)&evt->dma); in dwc3_alloc_one_event_buffer()
129 if (!evt->buf) in dwc3_alloc_one_event_buffer()
132 dwc3_flush_cache((uintptr_t)evt->buf, evt->length); in dwc3_alloc_one_event_buffer()
134 return evt; in dwc3_alloc_one_event_buffer()
143 struct dwc3_event_buffer *evt; in dwc3_free_event_buffers() local
147 evt = dwc->ev_buffs[i]; in dwc3_free_event_buffers()
148 if (evt) in dwc3_free_event_buffers()
149 dwc3_free_one_event_buffer(dwc, evt); in dwc3_free_event_buffers()
175 struct dwc3_event_buffer *evt; in dwc3_alloc_event_buffers() local
177 evt = dwc3_alloc_one_event_buffer(dwc, length); in dwc3_alloc_event_buffers()
178 if (IS_ERR(evt)) { in dwc3_alloc_event_buffers()
180 return PTR_ERR(evt); in dwc3_alloc_event_buffers()
182 dwc->ev_buffs[i] = evt; in dwc3_alloc_event_buffers()
196 struct dwc3_event_buffer *evt; in dwc3_event_buffers_setup() local
200 evt = dwc->ev_buffs[n]; in dwc3_event_buffers_setup()
202 evt->buf, (unsigned long long) evt->dma, in dwc3_event_buffers_setup()
203 evt->length); in dwc3_event_buffers_setup()
205 evt->lpos = 0; in dwc3_event_buffers_setup()
208 lower_32_bits(evt->dma)); in dwc3_event_buffers_setup()
210 upper_32_bits(evt->dma)); in dwc3_event_buffers_setup()
212 DWC3_GEVNTSIZ_SIZE(evt->length)); in dwc3_event_buffers_setup()
221 struct dwc3_event_buffer *evt; in dwc3_event_buffers_cleanup() local
225 evt = dwc->ev_buffs[n]; in dwc3_event_buffers_cleanup()
227 evt->lpos = 0; in dwc3_event_buffers_cleanup()