Lines Matching refs:cycle

369 				  unsigned int cycle)  in calculate_syt()  argument
403 syt = (cycle + syt_offset / TICKS_PER_CYCLE) << 12; in calculate_syt()
491 static void build_it_pkt_header(struct amdtp_stream *s, unsigned int cycle, in build_it_pkt_header() argument
512 trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks, in build_it_pkt_header()
612 static int parse_ir_ctx_header(struct amdtp_stream *s, unsigned int cycle, in parse_ir_ctx_header() argument
648 trace_amdtp_packet(s, cycle, cip_header, *payload_length, *data_blocks, in parse_ir_ctx_header()
663 static inline u32 increment_cycle_count(u32 cycle, unsigned int addend) in increment_cycle_count() argument
665 cycle += addend; in increment_cycle_count()
666 if (cycle >= 8 * CYCLES_PER_SECOND) in increment_cycle_count()
667 cycle -= 8 * CYCLES_PER_SECOND; in increment_cycle_count()
668 return cycle; in increment_cycle_count()
677 u32 cycle = compute_cycle_count(ctx_header_tstamp); in compute_it_cycle() local
678 return increment_cycle_count(cycle, QUEUE_LENGTH); in compute_it_cycle()
693 unsigned int cycle; in generate_device_pkt_descs() local
698 cycle = compute_cycle_count(ctx_header[1]); in generate_device_pkt_descs()
700 err = parse_ir_ctx_header(s, cycle, ctx_header, &payload_length, in generate_device_pkt_descs()
705 desc->cycle = cycle; in generate_device_pkt_descs()
735 desc->cycle = compute_it_cycle(*ctx_header); in generate_ideal_pkt_descs()
736 desc->syt = calculate_syt(s, desc->cycle); in generate_ideal_pkt_descs()
805 build_it_pkt_header(s, desc->cycle, &template.params, in out_stream_callback()
863 u32 cycle; in amdtp_stream_first_callback() local
873 cycle = compute_cycle_count(ctx_header[1]); in amdtp_stream_first_callback()
877 cycle = compute_it_cycle(*ctx_header); in amdtp_stream_first_callback()
882 s->start_cycle = cycle; in amdtp_stream_first_callback()