Lines Matching refs:cohd
1545 coh901318_desc_free(struct coh901318_chan *cohc, struct coh901318_desc *cohd) in coh901318_desc_free() argument
1547 list_add_tail(&cohd->node, &cohc->free); in coh901318_desc_free()
1565 coh901318_desc_remove(struct coh901318_desc *cohd) in coh901318_desc_remove() argument
1567 list_del(&cohd->node); in coh901318_desc_remove()
1604 struct coh901318_desc *cohd; in coh901318_get_bytes_left() local
1624 cohd = list_entry(pos, struct coh901318_desc, node); in coh901318_get_bytes_left()
1650 lli = cohd->lli; in coh901318_get_bytes_left()
1663 left += coh901318_get_bytes_in_lli(cohd->lli); in coh901318_get_bytes_left()
1670 cohd = list_entry(pos, struct coh901318_desc, node); in coh901318_get_bytes_left()
1671 left += coh901318_get_bytes_in_lli(cohd->lli); in coh901318_get_bytes_left()
1838 struct coh901318_desc *cohd; in coh901318_queue_start() local
1844 cohd = coh901318_first_queued(cohc); in coh901318_queue_start()
1846 if (cohd != NULL) { in coh901318_queue_start()
1848 coh901318_desc_remove(cohd); in coh901318_queue_start()
1852 coh901318_desc_submit(cohc, cohd); in coh901318_queue_start()
1855 coh901318_set_conf(cohc, cohd->head_config); in coh901318_queue_start()
1856 coh901318_set_ctrl(cohc, cohd->head_ctrl); in coh901318_queue_start()
1857 coh901318_prep_linked_list(cohc, cohd->lli); in coh901318_queue_start()
1864 return cohd; in coh901318_queue_start()
2101 struct coh901318_desc *cohd; in coh901318_terminate_all() local
2121 while ((cohd = coh901318_first_active_get(cohc))) { in coh901318_terminate_all()
2123 coh901318_lli_free(&cohc->base->pool, &cohd->lli); in coh901318_terminate_all()
2126 coh901318_desc_remove(cohd); in coh901318_terminate_all()
2127 coh901318_desc_free(cohc, cohd); in coh901318_terminate_all()
2130 while ((cohd = coh901318_first_queued(cohc))) { in coh901318_terminate_all()
2132 coh901318_lli_free(&cohc->base->pool, &cohd->lli); in coh901318_terminate_all()
2135 coh901318_desc_remove(cohd); in coh901318_terminate_all()
2136 coh901318_desc_free(cohc, cohd); in coh901318_terminate_all()
2197 struct coh901318_desc *cohd = container_of(tx, struct coh901318_desc, in coh901318_tx_submit() local
2206 coh901318_desc_queue(cohc, cohd); in coh901318_tx_submit()
2218 struct coh901318_desc *cohd; in coh901318_prep_memcpy() local
2254 cohd = coh901318_desc_get(cohc); in coh901318_prep_memcpy()
2255 cohd->lli = lli; in coh901318_prep_memcpy()
2256 cohd->flags = flags; in coh901318_prep_memcpy()
2257 cohd->desc.tx_submit = coh901318_tx_submit; in coh901318_prep_memcpy()
2261 return &cohd->desc; in coh901318_prep_memcpy()
2274 struct coh901318_desc *cohd; in coh901318_prep_slave_sg() local
2373 cohd = coh901318_desc_get(cohc); in coh901318_prep_slave_sg()
2374 cohd->head_config = config; in coh901318_prep_slave_sg()
2380 cohd->head_ctrl = lli->control; in coh901318_prep_slave_sg()
2381 cohd->dir = direction; in coh901318_prep_slave_sg()
2382 cohd->flags = flags; in coh901318_prep_slave_sg()
2383 cohd->desc.tx_submit = coh901318_tx_submit; in coh901318_prep_slave_sg()
2384 cohd->lli = lli; in coh901318_prep_slave_sg()
2388 return &cohd->desc; in coh901318_prep_slave_sg()