Lines Matching refs:descs

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