Lines Matching refs:cohd

1541 coh901318_desc_free(struct coh901318_chan *cohc, struct coh901318_desc *cohd)  in coh901318_desc_free()  argument
1543 list_add_tail(&cohd->node, &cohc->free); in coh901318_desc_free()
1568 coh901318_desc_remove(struct coh901318_desc *cohd) in coh901318_desc_remove() argument
1570 list_del(&cohd->node); in coh901318_desc_remove()
1614 struct coh901318_desc *cohd; in coh901318_get_bytes_left() local
1634 cohd = list_entry(pos, struct coh901318_desc, node); in coh901318_get_bytes_left()
1660 lli = cohd->lli; in coh901318_get_bytes_left()
1673 left += coh901318_get_bytes_in_lli(cohd->lli); in coh901318_get_bytes_left()
1680 cohd = list_entry(pos, struct coh901318_desc, node); in coh901318_get_bytes_left()
1681 left += coh901318_get_bytes_in_lli(cohd->lli); in coh901318_get_bytes_left()
1853 struct coh901318_desc *cohd; in coh901318_queue_start() local
1859 cohd = coh901318_first_queued(cohc); in coh901318_queue_start()
1861 if (cohd != NULL) { in coh901318_queue_start()
1863 coh901318_desc_remove(cohd); in coh901318_queue_start()
1867 coh901318_desc_submit(cohc, cohd); in coh901318_queue_start()
1870 coh901318_set_conf(cohc, cohd->head_config); in coh901318_queue_start()
1871 coh901318_set_ctrl(cohc, cohd->head_ctrl); in coh901318_queue_start()
1872 coh901318_prep_linked_list(cohc, cohd->lli); in coh901318_queue_start()
1879 return cohd; in coh901318_queue_start()
2123 struct coh901318_desc *cohd; in coh901318_terminate_all() local
2143 while ((cohd = coh901318_first_active_get(cohc))) { in coh901318_terminate_all()
2145 coh901318_lli_free(&cohc->base->pool, &cohd->lli); in coh901318_terminate_all()
2148 coh901318_desc_remove(cohd); in coh901318_terminate_all()
2149 coh901318_desc_free(cohc, cohd); in coh901318_terminate_all()
2152 while ((cohd = coh901318_first_queued(cohc))) { in coh901318_terminate_all()
2154 coh901318_lli_free(&cohc->base->pool, &cohd->lli); in coh901318_terminate_all()
2157 coh901318_desc_remove(cohd); in coh901318_terminate_all()
2158 coh901318_desc_free(cohc, cohd); in coh901318_terminate_all()
2219 struct coh901318_desc *cohd = container_of(tx, struct coh901318_desc, in coh901318_tx_submit() local
2228 coh901318_desc_queue(cohc, cohd); in coh901318_tx_submit()
2240 struct coh901318_desc *cohd; in coh901318_prep_memcpy() local
2276 cohd = coh901318_desc_get(cohc); in coh901318_prep_memcpy()
2277 cohd->lli = lli; in coh901318_prep_memcpy()
2278 cohd->flags = flags; in coh901318_prep_memcpy()
2279 cohd->desc.tx_submit = coh901318_tx_submit; in coh901318_prep_memcpy()
2283 return &cohd->desc; in coh901318_prep_memcpy()
2296 struct coh901318_desc *cohd; in coh901318_prep_slave_sg() local
2393 cohd = coh901318_desc_get(cohc); in coh901318_prep_slave_sg()
2394 cohd->head_config = config; in coh901318_prep_slave_sg()
2400 cohd->head_ctrl = lli->control; in coh901318_prep_slave_sg()
2401 cohd->dir = direction; in coh901318_prep_slave_sg()
2402 cohd->flags = flags; in coh901318_prep_slave_sg()
2403 cohd->desc.tx_submit = coh901318_tx_submit; in coh901318_prep_slave_sg()
2404 cohd->lli = lli; in coh901318_prep_slave_sg()
2408 return &cohd->desc; in coh901318_prep_slave_sg()