• Home
  • Raw
  • Download

Lines Matching refs:cycle

507 static void build_it_pkt_header(struct amdtp_stream *s, unsigned int cycle,  in build_it_pkt_header()  argument
528 trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks, in build_it_pkt_header()
628 static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle, in parse_ir_ctx_header() argument
670 trace_amdtp_packet(s, cycle, cip_header, *payload_length, *data_blocks, in parse_ir_ctx_header()
685 static inline u32 increment_cycle_count(u32 cycle, unsigned int addend) in increment_cycle_count() argument
687 cycle += addend; in increment_cycle_count()
688 if (cycle >= OHCI_MAX_SECOND * CYCLES_PER_SECOND) in increment_cycle_count()
689 cycle -= OHCI_MAX_SECOND * CYCLES_PER_SECOND; in increment_cycle_count()
690 return cycle; in increment_cycle_count()
700 u32 cycle = compute_cycle_count(ctx_header_tstamp); in compute_it_cycle() local
701 return increment_cycle_count(cycle, queue_size); in compute_it_cycle()
717 unsigned int cycle; in generate_device_pkt_descs() local
722 cycle = compute_cycle_count(ctx_header[1]); in generate_device_pkt_descs()
724 err = parse_ir_ctx_header(s, cycle, ctx_header, &payload_length, in generate_device_pkt_descs()
729 desc->cycle = cycle; in generate_device_pkt_descs()
749 static unsigned int compute_syt(unsigned int syt_offset, unsigned int cycle, in compute_syt() argument
755 syt = ((cycle + syt_offset / TICKS_PER_CYCLE) << 12) | in compute_syt()
775 desc->cycle = compute_it_cycle(*ctx_header, s->queue_size); in generate_pkt_descs()
779 syt = compute_syt(syt, desc->cycle, in generate_pkt_descs()
862 build_it_pkt_header(s, desc->cycle, &template.params, in out_stream_callback()
1006 u32 cycle; in amdtp_stream_first_callback() local
1016 cycle = compute_cycle_count(ctx_header[1]); in amdtp_stream_first_callback()
1020 cycle = compute_it_cycle(*ctx_header, s->queue_size); in amdtp_stream_first_callback()
1028 s->start_cycle = cycle; in amdtp_stream_first_callback()
1406 int cycle; in amdtp_domain_start() local
1446 err = get_current_cycle_time(fw_card, &cycle); in amdtp_domain_start()
1452 cycle += ir_delay_cycle; in amdtp_domain_start()
1455 if ((cycle & 0x00001fff) >= CYCLES_PER_SECOND) { in amdtp_domain_start()
1459 sec = (cycle & 0xffffe000) >> 13; in amdtp_domain_start()
1460 cycle = (++sec << 13) | in amdtp_domain_start()
1461 ((cycle & 0x00001fff) / CYCLES_PER_SECOND); in amdtp_domain_start()
1466 cycle &= 0x00007fff; in amdtp_domain_start()
1468 cycle = -1; in amdtp_domain_start()
1475 cycle_match = cycle; in amdtp_domain_start()