Lines Matching refs:descs
358 static void pool_blocking_data_blocks(struct amdtp_stream *s, struct seq_desc *descs, in pool_blocking_data_blocks() argument
365 struct seq_desc *desc = descs + pos; in pool_blocking_data_blocks()
376 static void pool_ideal_nonblocking_data_blocks(struct amdtp_stream *s, struct seq_desc *descs, in pool_ideal_nonblocking_data_blocks() argument
385 struct seq_desc *desc = descs + pos; in pool_ideal_nonblocking_data_blocks()
457 static void pool_ideal_syt_offsets(struct amdtp_stream *s, struct seq_desc *descs, in pool_ideal_syt_offsets() argument
466 struct seq_desc *desc = descs + pos; in pool_ideal_syt_offsets()
518 struct seq_desc *cache = s->ctx_data.tx.cache.descs; in cache_seq()
539 static void pool_ideal_seq_descs(struct amdtp_stream *s, struct seq_desc *descs, unsigned int size, in pool_ideal_seq_descs() argument
542 pool_ideal_syt_offsets(s, descs, size, pos, count); in pool_ideal_seq_descs()
545 pool_blocking_data_blocks(s, descs, size, pos, count); in pool_ideal_seq_descs()
547 pool_ideal_nonblocking_data_blocks(s, descs, size, pos, count); in pool_ideal_seq_descs()
550 static void pool_replayed_seq(struct amdtp_stream *s, struct seq_desc *descs, unsigned int size, in pool_replayed_seq() argument
554 const struct seq_desc *cache = target->ctx_data.tx.cache.descs; in pool_replayed_seq()
560 descs[pos] = cache[cache_pos]; in pool_replayed_seq()
568 static void pool_seq_descs(struct amdtp_stream *s, struct seq_desc *descs, unsigned int size, in pool_seq_descs() argument
572 void (*pool_seq_descs)(struct amdtp_stream *s, struct seq_desc *descs, unsigned int size, in pool_seq_descs()
593 pool_seq_descs(s, descs, size, pos, count); in pool_seq_descs()
1004 struct seq_desc *seq_descs = s->ctx_data.rx.seq.descs; in generate_rx_packet_descs()
1655 struct pkt_desc *descs; in amdtp_stream_start() local
1722 s->ctx_data.tx.cache.descs = kcalloc(s->ctx_data.tx.cache.size, in amdtp_stream_start()
1723 sizeof(*s->ctx_data.tx.cache.descs), GFP_KERNEL); in amdtp_stream_start()
1724 if (!s->ctx_data.tx.cache.descs) { in amdtp_stream_start()
1743 s->ctx_data.rx.seq.descs = kcalloc(queue_size, sizeof(*s->ctx_data.rx.seq.descs), GFP_KERNEL); in amdtp_stream_start()
1744 if (!s->ctx_data.rx.seq.descs) { in amdtp_stream_start()
1768 descs = kcalloc(s->queue_size + 8, sizeof(*descs), GFP_KERNEL); in amdtp_stream_start()
1769 if (!descs) { in amdtp_stream_start()
1773 s->packet_descs = descs; in amdtp_stream_start()
1777 INIT_LIST_HEAD(&descs->link); in amdtp_stream_start()
1778 list_add_tail(&descs->link, &s->packet_descs_list); in amdtp_stream_start()
1779 ++descs; in amdtp_stream_start()
1824 kfree(s->ctx_data.rx.seq.descs); in amdtp_stream_start()
1827 kfree(s->ctx_data.tx.cache.descs); in amdtp_stream_start()
1919 kfree(s->ctx_data.rx.seq.descs); in amdtp_stream_stop()
1922 kfree(s->ctx_data.tx.cache.descs); in amdtp_stream_stop()