Lines Matching refs:itd

143 dbg_itd(const char *label, struct fotg210_hcd *fotg210, struct fotg210_itd *itd)  in dbg_itd()  argument
146 itd->frame, itd, hc32_to_cpu(fotg210, itd->hw_next), in dbg_itd()
147 itd->urb); in dbg_itd()
151 hc32_to_cpu(fotg210, itd->hw_transaction[0]), in dbg_itd()
152 hc32_to_cpu(fotg210, itd->hw_transaction[1]), in dbg_itd()
153 hc32_to_cpu(fotg210, itd->hw_transaction[2]), in dbg_itd()
154 hc32_to_cpu(fotg210, itd->hw_transaction[3]), in dbg_itd()
155 hc32_to_cpu(fotg210, itd->hw_transaction[4]), in dbg_itd()
156 hc32_to_cpu(fotg210, itd->hw_transaction[5]), in dbg_itd()
157 hc32_to_cpu(fotg210, itd->hw_transaction[6]), in dbg_itd()
158 hc32_to_cpu(fotg210, itd->hw_transaction[7])); in dbg_itd()
162 hc32_to_cpu(fotg210, itd->hw_bufp[0]), in dbg_itd()
163 hc32_to_cpu(fotg210, itd->hw_bufp[1]), in dbg_itd()
164 hc32_to_cpu(fotg210, itd->hw_bufp[2]), in dbg_itd()
165 hc32_to_cpu(fotg210, itd->hw_bufp[3]), in dbg_itd()
166 hc32_to_cpu(fotg210, itd->hw_bufp[4]), in dbg_itd()
167 hc32_to_cpu(fotg210, itd->hw_bufp[5]), in dbg_itd()
168 hc32_to_cpu(fotg210, itd->hw_bufp[6])); in dbg_itd()
171 itd->index[0], itd->index[1], itd->index[2], in dbg_itd()
172 itd->index[3], itd->index[4], itd->index[5], in dbg_itd()
173 itd->index[6], itd->index[7]); in dbg_itd()
597 " itd/%p", p.itd); in fill_periodic_buffer()
598 tag = Q_NEXT_TYPE(fotg210, p.itd->hw_next); in fill_periodic_buffer()
599 p = p.itd->itd_next; in fill_periodic_buffer()
1232 struct fotg210_itd *itd, *n; in end_free_itds() local
1237 list_for_each_entry_safe(itd, n, &fotg210->cached_itd_list, itd_list) { in end_free_itds()
1238 list_del(&itd->itd_list); in end_free_itds()
1239 dma_pool_free(fotg210->itd_pool, itd, itd->itd_dma); in end_free_itds()
1240 if (itd == fotg210->last_itd_to_free) in end_free_itds()
3279 return &periodic->itd->itd_next; in periodic_next_shadow()
3361 if (q->itd->hw_transaction[uframe]) in periodic_usecs()
3362 usecs += q->itd->stream->usecs; in periodic_usecs()
3363 hw_p = &q->itd->hw_next; in periodic_usecs()
3364 q = &q->itd->itd_next; in periodic_usecs()
3410 type = Q_NEXT_TYPE(fotg210, here.itd->hw_next); in tt_no_collision()
3411 here = here.itd->itd_next; in tt_no_collision()
4068 struct fotg210_itd *itd; in itd_urb_transaction() local
4095 itd = list_first_entry(&stream->free_list, in itd_urb_transaction()
4097 if (itd->frame == fotg210->now_frame) in itd_urb_transaction()
4099 list_del(&itd->itd_list); in itd_urb_transaction()
4100 itd_dma = itd->itd_dma; in itd_urb_transaction()
4104 itd = dma_pool_alloc(fotg210->itd_pool, mem_flags, in itd_urb_transaction()
4107 if (!itd) { in itd_urb_transaction()
4114 memset(itd, 0, sizeof(*itd)); in itd_urb_transaction()
4115 itd->itd_dma = itd_dma; in itd_urb_transaction()
4116 list_add(&itd->itd_list, &sched->td_list); in itd_urb_transaction()
4276 struct fotg210_iso_stream *stream, struct fotg210_itd *itd) in itd_init() argument
4281 itd->hw_next = FOTG210_LIST_END(fotg210); in itd_init()
4282 itd->hw_bufp[0] = stream->buf0; in itd_init()
4283 itd->hw_bufp[1] = stream->buf1; in itd_init()
4284 itd->hw_bufp[2] = stream->buf2; in itd_init()
4287 itd->index[i] = -1; in itd_init()
4293 struct fotg210_itd *itd, struct fotg210_iso_sched *iso_sched, in itd_patch() argument
4297 unsigned pg = itd->pg; in itd_patch()
4300 itd->index[uframe] = index; in itd_patch()
4302 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
4303 itd->hw_transaction[uframe] |= cpu_to_hc32(fotg210, pg << 12); in itd_patch()
4304 itd->hw_bufp[pg] |= cpu_to_hc32(fotg210, uf->bufp & ~(u32)0); in itd_patch()
4305 itd->hw_bufp_hi[pg] |= cpu_to_hc32(fotg210, (u32)(uf->bufp >> 32)); in itd_patch()
4311 itd->pg = ++pg; in itd_patch()
4312 itd->hw_bufp[pg] |= cpu_to_hc32(fotg210, bufp & ~(u32)0); in itd_patch()
4313 itd->hw_bufp_hi[pg] |= cpu_to_hc32(fotg210, (u32)(bufp >> 32)); in itd_patch()
4318 struct fotg210_itd *itd) in itd_link() argument
4335 itd->itd_next = here; in itd_link()
4336 itd->hw_next = *hw_p; in itd_link()
4337 prev->itd = itd; in itd_link()
4338 itd->frame = frame; in itd_link()
4340 *hw_p = cpu_to_hc32(fotg210, itd->itd_dma | Q_TYPE_ITD); in itd_link()
4350 struct fotg210_itd *itd; in itd_link_urb() local
4366 for (packet = 0, itd = NULL; packet < urb->number_of_packets;) { in itd_link_urb()
4367 if (itd == NULL) { in itd_link_urb()
4372 itd = list_entry(iso_sched->td_list.next, in itd_link_urb()
4374 list_move_tail(&itd->itd_list, &stream->td_list); in itd_link_urb()
4375 itd->stream = stream; in itd_link_urb()
4376 itd->urb = urb; in itd_link_urb()
4377 itd_init(fotg210, stream, itd); in itd_link_urb()
4383 itd_patch(fotg210, itd, iso_sched, packet, uframe); in itd_link_urb()
4393 itd); in itd_link_urb()
4394 itd = NULL; in itd_link_urb()
4420 static bool itd_complete(struct fotg210_hcd *fotg210, struct fotg210_itd *itd) in itd_complete() argument
4422 struct urb *urb = itd->urb; in itd_complete()
4427 struct fotg210_iso_stream *stream = itd->stream; in itd_complete()
4433 if (likely(itd->index[uframe] == -1)) in itd_complete()
4435 urb_index = itd->index[uframe]; in itd_complete()
4438 t = hc32_to_cpup(fotg210, &itd->hw_transaction[uframe]); in itd_complete()
4439 itd->hw_transaction[uframe] = 0; in itd_complete()
4496 itd->urb = NULL; in itd_complete()
4499 list_move_tail(&itd->itd_list, &stream->free_list); in itd_complete()
4596 if (q.itd->hw_transaction[uf] & in scan_frame_queue()
4601 q_p = &q.itd->itd_next; in scan_frame_queue()
4602 hw_p = &q.itd->hw_next; in scan_frame_queue()
4604 q.itd->hw_next); in scan_frame_queue()
4615 *q_p = q.itd->itd_next; in scan_frame_queue()
4616 *hw_p = q.itd->hw_next; in scan_frame_queue()
4617 type = Q_NEXT_TYPE(fotg210, q.itd->hw_next); in scan_frame_queue()
4619 modified = itd_complete(fotg210, q.itd); in scan_frame_queue()