Lines Matching refs:descs
351 static void pool_blocking_data_blocks(struct amdtp_stream *s, struct seq_desc *descs, in pool_blocking_data_blocks() argument
359 struct seq_desc *desc = descs + seq_tail; in pool_blocking_data_blocks()
370 static void pool_ideal_nonblocking_data_blocks(struct amdtp_stream *s, struct seq_desc *descs, in pool_ideal_nonblocking_data_blocks() argument
379 struct seq_desc *desc = descs + seq_tail; in pool_ideal_nonblocking_data_blocks()
451 static void pool_ideal_syt_offsets(struct amdtp_stream *s, struct seq_desc *descs, in pool_ideal_syt_offsets() argument
461 struct seq_desc *desc = descs + seq_tail; in pool_ideal_syt_offsets()
509 static void cache_seq(struct amdtp_stream *s, const struct pkt_desc *descs, unsigned int desc_count) in cache_seq() argument
513 struct seq_desc *cache = s->ctx_data.tx.cache.descs; in cache_seq()
520 const struct pkt_desc *src = descs + i; in cache_seq()
536 struct seq_desc *descs = s->ctx_data.rx.seq.descs; in pool_ideal_seq_descs() local
540 pool_ideal_syt_offsets(s, descs, seq_size, seq_tail, count); in pool_ideal_seq_descs()
543 pool_blocking_data_blocks(s, descs, seq_size, seq_tail, count); in pool_ideal_seq_descs()
545 pool_ideal_nonblocking_data_blocks(s, descs, seq_size, seq_tail, count); in pool_ideal_seq_descs()
553 const struct seq_desc *cache = target->ctx_data.tx.cache.descs; in pool_replayed_seq()
556 struct seq_desc *descs = s->ctx_data.rx.seq.descs; in pool_replayed_seq() local
562 descs[seq_tail] = cache[cache_head]; in pool_replayed_seq()
890 struct pkt_desc *descs, in generate_device_pkt_descs() argument
904 struct pkt_desc *desc = descs + *desc_count; in generate_device_pkt_descs()
985 struct pkt_desc *descs = s->pkt_descs; in generate_pkt_descs() local
986 const struct seq_desc *seq_descs = s->ctx_data.rx.seq.descs; in generate_pkt_descs()
994 struct pkt_desc *desc = descs + i; in generate_pkt_descs()
1035 const struct pkt_desc *descs, in process_ctx_payloads() argument
1042 pcm_frames = s->process_ctx_payloads(s, descs, packets, pcm); in process_ctx_payloads()
1620 s->ctx_data.tx.cache.descs = kcalloc(s->ctx_data.tx.cache.size, in amdtp_stream_start()
1621 sizeof(*s->ctx_data.tx.cache.descs), GFP_KERNEL); in amdtp_stream_start()
1622 if (!s->ctx_data.tx.cache.descs) { in amdtp_stream_start()
1641 s->ctx_data.rx.seq.descs = kcalloc(queue_size, sizeof(*s->ctx_data.rx.seq.descs), GFP_KERNEL); in amdtp_stream_start()
1642 if (!s->ctx_data.rx.seq.descs) { in amdtp_stream_start()
1710 kfree(s->ctx_data.rx.seq.descs); in amdtp_stream_start()
1713 kfree(s->ctx_data.tx.cache.descs); in amdtp_stream_start()
1804 kfree(s->ctx_data.rx.seq.descs); in amdtp_stream_stop()
1807 kfree(s->ctx_data.tx.cache.descs); in amdtp_stream_stop()