Lines Matching refs:bchan

287 	struct udma_bchan *bchan;  member
772 if (!uc->bchan && uc->config.ep_type != PSIL_EP_NATIVE) in udma_decrement_byte_counters()
791 if (!uc->bchan) { in udma_reset_counters()
1363 UDMA_RESERVE_RESOURCE(bchan);
1373 if (uc->bchan) { in bcdma_get_bchan()
1375 uc->id, uc->bchan->id); in bcdma_get_bchan()
1388 uc->bchan = __udma_reserve_bchan(ud, tpl, -1); in bcdma_get_bchan()
1389 if (IS_ERR(uc->bchan)) { in bcdma_get_bchan()
1390 ret = PTR_ERR(uc->bchan); in bcdma_get_bchan()
1391 uc->bchan = NULL; in bcdma_get_bchan()
1395 uc->tchan = uc->bchan; in bcdma_get_bchan()
1554 if (uc->bchan) { in bcdma_put_bchan()
1556 uc->bchan->id); in bcdma_put_bchan()
1557 clear_bit(uc->bchan->id, ud->bchan_map); in bcdma_put_bchan()
1558 uc->bchan = NULL; in bcdma_put_bchan()
1605 if (!uc->bchan) in bcdma_free_bchan_resources()
1608 k3_ringacc_ring_free(uc->bchan->tc_ring); in bcdma_free_bchan_resources()
1609 k3_ringacc_ring_free(uc->bchan->t_ring); in bcdma_free_bchan_resources()
1610 uc->bchan->tc_ring = NULL; in bcdma_free_bchan_resources()
1611 uc->bchan->t_ring = NULL; in bcdma_free_bchan_resources()
1627 ret = k3_ringacc_request_rings_pair(ud->ringacc, uc->bchan->id, -1, in bcdma_alloc_bchan_resources()
1628 &uc->bchan->t_ring, in bcdma_alloc_bchan_resources()
1629 &uc->bchan->tc_ring); in bcdma_alloc_bchan_resources()
1644 ret = k3_ringacc_ring_cfg(uc->bchan->t_ring, &ring_cfg); in bcdma_alloc_bchan_resources()
1651 k3_ringacc_ring_free(uc->bchan->tc_ring); in bcdma_alloc_bchan_resources()
1652 uc->bchan->tc_ring = NULL; in bcdma_alloc_bchan_resources()
1653 k3_ringacc_ring_free(uc->bchan->t_ring); in bcdma_alloc_bchan_resources()
1654 uc->bchan->t_ring = NULL; in bcdma_alloc_bchan_resources()
1930 struct udma_bchan *bchan = uc->bchan; in bcdma_tisci_m2m_channel_config() local
1936 tpl = udma_get_chan_tpl_index(&ud->bchan_tpl, bchan->id); in bcdma_tisci_m2m_channel_config()
1944 req_tx.index = bchan->id; in bcdma_tisci_m2m_channel_config()
1952 dev_err(ud->dev, "bchan%d cfg failed %d\n", bchan->id, ret); in bcdma_tisci_m2m_channel_config()
2410 irq_ring_idx = uc->bchan->id + oes->bcdma_bchan_ring; in bcdma_alloc_chan_resources()
2411 irq_udma_idx = uc->bchan->id + oes->bcdma_bchan_data; in bcdma_alloc_chan_resources()
2581 if (!uc->bchan) in bcdma_router_config()
2588 trigger_event += (uc->bchan->id * 2) + uc->config.tr_trigger_type - 1; in bcdma_router_config()
5260 seq_printf(s, "bchan%d)\n", uc->bchan->id); in udma_dbg_summary_show_chan()
5528 struct udma_bchan *bchan = &ud->bchans[i]; in udma_probe() local
5530 bchan->id = i; in udma_probe()
5531 bchan->reg_rt = ud->mmrs[MMR_BCHANRT] + i * 0x1000; in udma_probe()
5560 uc->bchan = NULL; in udma_probe()