• Home
  • Raw
  • Download

Lines Matching refs:cycle

472 static unsigned int compute_syt_offset(unsigned int syt, unsigned int cycle,  in compute_syt_offset()  argument
475 unsigned int cycle_lo = (cycle % CYCLES_PER_SECOND) & 0x0f; in compute_syt_offset()
523 dst->syt_offset = compute_syt_offset(src->syt, src->cycle, transfer_delay); in cache_seq()
678 static void build_it_pkt_header(struct amdtp_stream *s, unsigned int cycle, in build_it_pkt_header() argument
698 trace_amdtp_packet(s, cycle, cip_header, payload_length + header_length, data_blocks, in build_it_pkt_header()
797 static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle, in parse_ir_ctx_header() argument
845 trace_amdtp_packet(s, cycle, cip_header, payload_length, *data_blocks, in parse_ir_ctx_header()
860 static inline u32 increment_ohci_cycle_count(u32 cycle, unsigned int addend) in increment_ohci_cycle_count() argument
862 cycle += addend; in increment_ohci_cycle_count()
863 if (cycle >= OHCI_SECOND_MODULUS * CYCLES_PER_SECOND) in increment_ohci_cycle_count()
864 cycle -= OHCI_SECOND_MODULUS * CYCLES_PER_SECOND; in increment_ohci_cycle_count()
865 return cycle; in increment_ohci_cycle_count()
885 u32 cycle = compute_ohci_cycle_count(ctx_header_tstamp); in compute_ohci_it_cycle() local
886 return increment_ohci_cycle_count(cycle, queue_size); in compute_ohci_it_cycle()
905 unsigned int cycle; in generate_device_pkt_descs() local
910 cycle = compute_ohci_cycle_count(ctx_header[1]); in generate_device_pkt_descs()
911 lost = (next_cycle != cycle); in generate_device_pkt_descs()
919 lost = (next_cycle != cycle); in generate_device_pkt_descs()
923 desc->cycle = prev_cycle; in generate_device_pkt_descs()
937 lost = (compare_ohci_cycle_count(safe_cycle, cycle) > 0); in generate_device_pkt_descs()
941 next_cycle, cycle); in generate_device_pkt_descs()
946 err = parse_ir_ctx_header(s, cycle, ctx_header, &data_blocks, &dbc, &syt, in generate_device_pkt_descs()
951 desc->cycle = cycle; in generate_device_pkt_descs()
972 static unsigned int compute_syt(unsigned int syt_offset, unsigned int cycle, in compute_syt() argument
978 syt = ((cycle + syt_offset / TICKS_PER_CYCLE) << 12) | in compute_syt()
998 desc->cycle = compute_ohci_it_cycle(*ctx_header, s->queue_size); in generate_pkt_descs()
1001 desc->syt = compute_syt(seq->syt_offset, desc->cycle, s->transfer_delay); in generate_pkt_descs()
1095 build_it_pkt_header(s, desc->cycle, &template.params, pkt_header_length, in process_rx_packets()
1123 unsigned int cycle; in skip_rx_packets() local
1131 cycle = compute_ohci_it_cycle(ctx_header[packets - 1], s->queue_size); in skip_rx_packets()
1132 s->next_cycle = increment_ohci_cycle_count(cycle, 1); in skip_rx_packets()
1168 unsigned int cycle = compute_ohci_it_cycle(ctx_header[offset], queue_size); in process_rx_packets_intermediately() local
1170 if (compare_ohci_cycle_count(cycle, d->processing_cycle.rx_start) >= 0) in process_rx_packets_intermediately()
1250 unsigned int cycle; in drop_tx_packets() local
1259 cycle = compute_ohci_cycle_count(ctx_header[1]); in drop_tx_packets()
1260 s->next_cycle = increment_ohci_cycle_count(cycle, 1); in drop_tx_packets()
1289 unsigned int cycle = compute_ohci_cycle_count(ctx_header[1]); in process_tx_packets_intermediately() local
1291 if (compare_ohci_cycle_count(cycle, d->processing_cycle.tx_start) >= 0) in process_tx_packets_intermediately()
1385 unsigned int cycle = UINT_MAX; in drop_tx_packets_initially() local
1404 if (cycle == UINT_MAX || in drop_tx_packets_initially()
1405 compare_ohci_cycle_count(next_cycle, cycle) > 0) in drop_tx_packets_initially()
1406 cycle = next_cycle; in drop_tx_packets_initially()
1411 d->processing_cycle.tx_start = cycle; in drop_tx_packets_initially()
1496 unsigned int cycle = s->next_cycle; in irq_target_callback_skip() local
1501 if (compare_ohci_cycle_count(s->next_cycle, cycle) > 0) in irq_target_callback_skip()
1502 cycle = s->next_cycle; in irq_target_callback_skip()
1510 d->processing_cycle.rx_start = cycle; in irq_target_callback_skip()