Lines Matching refs:ctx_data

108 		s->ctx_data.rx.syt_override = -1;  in amdtp_stream_init()
273 s->ctx_data.rx.transfer_delay = in amdtp_stream_set_parameters()
279 s->ctx_data.rx.transfer_delay += in amdtp_stream_set_parameters()
340 data_blocks = s->ctx_data.rx.data_block_state; in calculate_data_blocks()
342 phase = s->ctx_data.rx.data_block_state; in calculate_data_blocks()
361 s->ctx_data.rx.data_block_state = phase; in calculate_data_blocks()
373 if (s->ctx_data.rx.last_syt_offset < TICKS_PER_CYCLE) { in calculate_syt()
375 syt_offset = s->ctx_data.rx.last_syt_offset + in calculate_syt()
376 s->ctx_data.rx.syt_offset_state; in calculate_syt()
388 phase = s->ctx_data.rx.syt_offset_state; in calculate_syt()
390 syt_offset = s->ctx_data.rx.last_syt_offset; in calculate_syt()
395 s->ctx_data.rx.syt_offset_state = phase; in calculate_syt()
398 syt_offset = s->ctx_data.rx.last_syt_offset - TICKS_PER_CYCLE; in calculate_syt()
399 s->ctx_data.rx.last_syt_offset = syt_offset; in calculate_syt()
402 syt_offset += s->ctx_data.rx.transfer_delay; in calculate_syt()
472 params->header_length = s->ctx_data.tx.ctx_header_size; in queue_in_packet()
473 params->payload_length = s->ctx_data.tx.max_ctx_payload_length; in queue_in_packet()
487 ((s->ctx_data.rx.fdf << CIP_FDF_SHIFT) & CIP_FDF_MASK) | in generate_cip_header()
590 if (*data_blocks > 0 && s->ctx_data.tx.dbc_interval > 0) in check_cip_header()
591 dbc_interval = s->ctx_data.tx.dbc_interval; in check_cip_header()
623 if (*payload_length > s->ctx_data.tx.ctx_header_size + in parse_ir_ctx_header()
624 s->ctx_data.tx.max_ctx_payload_length) { in parse_ir_ctx_header()
627 *payload_length, s->ctx_data.tx.max_ctx_payload_length); in parse_ir_ctx_header()
715 s->ctx_data.tx.ctx_header_size / sizeof(*ctx_header); in generate_device_pkt_descs()
800 if (s->ctx_data.rx.syt_override < 0) in out_stream_callback()
803 syt = s->ctx_data.rx.syt_override; in out_stream_callback()
832 packets = header_length / s->ctx_data.tx.ctx_header_size; in in_stream_callback()
930 s->ctx_data.rx.data_block_state = entry->data_block; in amdtp_stream_start()
931 s->ctx_data.rx.syt_offset_state = entry->syt_offset; in amdtp_stream_start()
932 s->ctx_data.rx.last_syt_offset = TICKS_PER_CYCLE; in amdtp_stream_start()
975 s->ctx_data.tx.max_ctx_payload_length = max_ctx_payload_size; in amdtp_stream_start()
976 s->ctx_data.tx.ctx_header_size = ctx_header_size; in amdtp_stream_start()