Lines Matching refs:cycle

220 	// of syt interval. This comes from the interval of isoc cycle. As 1394
507 static void build_it_pkt_header(struct amdtp_stream *s, unsigned int cycle,
528 trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks,
628 static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle,
670 trace_amdtp_packet(s, cycle, cip_header, *payload_length, *data_blocks,
685 static inline u32 increment_cycle_count(u32 cycle, unsigned int addend)
687 cycle += addend;
688 if (cycle >= OHCI_MAX_SECOND * CYCLES_PER_SECOND)
689 cycle -= OHCI_MAX_SECOND * CYCLES_PER_SECOND;
690 return cycle;
693 // Align to actual cycle count for the packet which is going to be scheduled.
694 // This module queued the same number of isochronous cycle as the size of queue
695 // to kip isochronous cycle, therefore it's OK to just increment the cycle by
696 // the size of queue for scheduled cycle.
700 u32 cycle = compute_cycle_count(ctx_header_tstamp);
701 return increment_cycle_count(cycle, queue_size);
717 unsigned int cycle;
722 cycle = compute_cycle_count(ctx_header[1]);
724 err = parse_ir_ctx_header(s, cycle, ctx_header, &payload_length,
729 desc->cycle = cycle;
749 static unsigned int compute_syt(unsigned int syt_offset, unsigned int cycle,
755 syt = ((cycle + syt_offset / TICKS_PER_CYCLE) << 12) |
775 desc->cycle = compute_it_cycle(*ctx_header, s->queue_size);
779 syt = compute_syt(syt, desc->cycle,
862 build_it_pkt_header(s, desc->cycle, &template.params,
1006 u32 cycle;
1016 cycle = compute_cycle_count(ctx_header[1]);
1020 cycle = compute_it_cycle(*ctx_header, s->queue_size);
1028 s->start_cycle = cycle;
1038 * @start_cycle: the isochronous cycle to start the context. Start immediately
1211 // preemption to keep latency against bus cycle.
1233 // Process isochronous packets for recent isochronous cycle to handle
1237 // preemption to keep latency against bus cycle.
1385 * @ir_delay_cycle: the cycle delay to start all IR contexts.
1406 int cycle;
1446 err = get_current_cycle_time(fw_card, &cycle);
1450 // No need to care overflow in cycle field because of enough
1452 cycle += ir_delay_cycle;
1455 if ((cycle & 0x00001fff) >= CYCLES_PER_SECOND) {
1459 sec = (cycle & 0xffffe000) >> 13;
1460 cycle = (++sec << 13) |
1461 ((cycle & 0x00001fff) / CYCLES_PER_SECOND);
1466 cycle &= 0x00007fff;
1468 cycle = -1;
1475 cycle_match = cycle;