H A D | amdtp-stream.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Audio and Music Data Transmission Protocol (IEC 61883-6) streams 4 * with Common Isochronous Packet (IEC 61883-1) headers 12 #include <linux/firewire-constants.h> 17 #include "amdtp-stream.h" 27 #include "amdtp-stream-trac 92 amdtp_stream_init(struct amdtp_stream * s,struct fw_unit * unit,enum amdtp_stream_direction dir,unsigned int flags,unsigned int fmt,amdtp_stream_process_ctx_payloads_t process_ctx_payloads,unsigned int protocol_size) amdtp_stream_init() argument 126 amdtp_stream_destroy(struct amdtp_stream * s) amdtp_stream_destroy() argument 163 struct snd_interval *s = hw_param_interval(params, rule->var); apply_constraint_to_size() local 190 amdtp_stream_add_pcm_hw_constraints(struct amdtp_stream * s,struct snd_pcm_runtime * runtime) amdtp_stream_add_pcm_hw_constraints() argument 286 amdtp_stream_set_parameters(struct amdtp_stream * s,unsigned int rate,unsigned int data_block_quadlets,unsigned int pcm_frame_multiplier) amdtp_stream_set_parameters() argument 316 amdtp_stream_get_max_ctx_payload_size(struct amdtp_stream * s) amdtp_stream_get_max_ctx_payload_size() argument 335 amdtp_stream_get_max_payload(struct amdtp_stream * s) amdtp_stream_get_max_payload() argument 354 amdtp_stream_pcm_prepare(struct amdtp_stream * s) amdtp_stream_pcm_prepare() argument 362 prev_packet_desc(s,desc) global() argument 365 pool_blocking_data_blocks(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_blocking_data_blocks() argument 383 pool_ideal_nonblocking_data_blocks(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_ideal_nonblocking_data_blocks() argument 464 pool_ideal_syt_offsets(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_ideal_syt_offsets() argument 509 calculate_cached_cycle_count(struct amdtp_stream * s,unsigned int head) calculate_cached_cycle_count() argument 521 cache_seq(struct amdtp_stream * s,const struct pkt_desc * src,unsigned int desc_count) cache_seq() argument 546 pool_ideal_seq_descs(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_ideal_seq_descs() argument 557 pool_replayed_seq(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_replayed_seq() argument 575 pool_seq_descs(struct amdtp_stream * s,struct seq_desc * descs,unsigned int size,unsigned int pos,unsigned int count) pool_seq_descs() argument 603 update_pcm_pointers(struct amdtp_stream * s,struct snd_pcm_substream * pcm,unsigned int frames) update_pcm_pointers() argument 644 struct amdtp_stream *s = container_of(work, struct amdtp_stream, pcm_period_work() local 652 queue_packet(struct amdtp_stream * s,struct fw_iso_packet * params,bool sched_irq) queue_packet() argument 674 queue_out_packet(struct amdtp_stream * s,struct fw_iso_packet * params,bool sched_irq) queue_out_packet() argument 682 queue_in_packet(struct amdtp_stream * s,struct fw_iso_packet * params) queue_in_packet() argument 692 generate_cip_header(struct amdtp_stream * s,__be32 cip_header[2],unsigned int data_block_counter,unsigned int syt) generate_cip_header() argument 705 build_it_pkt_header(struct amdtp_stream * s,unsigned int cycle,struct fw_iso_packet * params,unsigned int header_length,unsigned int data_blocks,unsigned int data_block_counter,unsigned int syt,unsigned int index,u32 curr_cycle_time) build_it_pkt_header() argument 729 check_cip_header(struct amdtp_stream * s,const __be32 * buf,unsigned int payload_length,unsigned int * data_blocks,unsigned int * data_block_counter,unsigned int * syt) check_cip_header() argument 828 parse_ir_ctx_header(struct amdtp_stream * s,unsigned int cycle,const __be32 * ctx_header,unsigned int * data_blocks,unsigned int * data_block_counter,unsigned int * syt,unsigned int packet_index,unsigned int index,u32 curr_cycle_time) parse_ir_ctx_header() argument 934 generate_tx_packet_descs(struct amdtp_stream * s,struct pkt_desc * desc,const __be32 * ctx_header,unsigned int packet_count,unsigned int * desc_count) generate_tx_packet_descs() argument 1030 generate_rx_packet_descs(struct amdtp_stream * s,struct pkt_desc * desc,const __be32 * ctx_header,unsigned int packet_count) generate_rx_packet_descs() argument 1075 cancel_stream(struct amdtp_stream * s) cancel_stream() argument 1090 compute_pcm_extra_delay(struct amdtp_stream * s,const struct pkt_desc * desc,unsigned int count) compute_pcm_extra_delay() argument 1147 process_ctx_payloads(struct amdtp_stream * s,const struct pkt_desc * desc,unsigned int count) process_ctx_payloads() argument 1174 struct amdtp_stream *s = private_data; process_rx_packets() local 1245 struct amdtp_stream *s = private_data; skip_rx_packets() local 1280 struct amdtp_stream *s = private_data; process_rx_packets_intermediately() local 1334 struct amdtp_stream *s = private_data; process_tx_packets() local 1381 struct amdtp_stream *s = private_data; drop_tx_packets() local 1409 struct amdtp_stream *s = private_data; process_tx_packets_intermediately() local 1460 struct amdtp_stream *s = private_data; drop_tx_packets_initially() local 1552 struct amdtp_stream *s; process_ctxs_in_domain() local 1576 struct amdtp_stream *s = private_data; irq_target_callback() local 1586 struct amdtp_stream *s = private_data; irq_target_callback_intermediately() local 1596 struct amdtp_stream *s = private_data; irq_target_callback_skip() local 1654 struct amdtp_stream *s = private_data; amdtp_stream_first_callback() local 1681 amdtp_stream_start(struct amdtp_stream * s,int channel,int speed,unsigned int queue_size,unsigned int idle_irq_interval) amdtp_stream_start() argument 1880 amdtp_domain_stream_pcm_pointer(struct amdtp_domain * d,struct amdtp_stream * s) amdtp_domain_stream_pcm_pointer() argument 1903 amdtp_domain_stream_pcm_ack(struct amdtp_domain * d,struct amdtp_stream * s) amdtp_domain_stream_pcm_ack() argument 1920 amdtp_stream_update(struct amdtp_stream * s) amdtp_stream_update() argument 1935 amdtp_stream_stop(struct amdtp_stream * s) amdtp_stream_stop() argument 1969 amdtp_stream_pcm_abort(struct amdtp_stream * s) amdtp_stream_pcm_abort() argument 2011 amdtp_domain_add_stream(struct amdtp_domain * d,struct amdtp_stream * s,int channel,int speed) amdtp_domain_add_stream() argument 2043 struct amdtp_stream *s; make_association() local 2093 struct amdtp_stream *s; amdtp_domain_start() local 2157 struct amdtp_stream *s, *next; amdtp_domain_stop() local [all...] |