Lines Matching refs:rchan

222 	struct udma_rchan *rchan;  member
315 if (!uc->rchan) in udma_rchanrt_read()
317 return udma_read(uc->rchan->reg_rt, reg); in udma_rchanrt_read()
322 if (!uc->rchan) in udma_rchanrt_write()
324 udma_write(uc->rchan->reg_rt, reg, val); in udma_rchanrt_write()
330 if (!uc->rchan) in udma_rchanrt_update_bits()
332 udma_update_bits(uc->rchan->reg_rt, reg, mask, val); in udma_rchanrt_update_bits()
507 if (uc->rchan) in udma_is_chan_running()
630 if (uc->rchan) { in udma_reset_rings()
677 if (uc->rchan) { in udma_reset_counters()
1235 UDMA_RESERVE_RESOURCE(rchan);
1256 if (uc->rchan) { in udma_get_rchan()
1258 uc->id, uc->rchan->id); in udma_get_rchan()
1262 uc->rchan = __udma_reserve_rchan(ud, uc->config.channel_tpl, -1); in udma_get_rchan()
1264 return PTR_ERR_OR_ZERO(uc->rchan); in udma_get_rchan()
1272 if ((uc->tchan && uc->rchan) && uc->tchan->id == uc->rchan->id) { in udma_get_chan_pair()
1282 } else if (uc->rchan) { in udma_get_chan_pair()
1284 uc->id, uc->rchan->id); in udma_get_chan_pair()
1304 uc->rchan = &ud->rchans[chan_id]; in udma_get_chan_pair()
1313 if (!uc->rchan) { in udma_get_rflow()
1333 if (uc->rchan) { in udma_put_rchan()
1335 uc->rchan->id); in udma_put_rchan()
1336 clear_bit(uc->rchan->id, ud->rchan_map); in udma_put_rchan()
1337 uc->rchan = NULL; in udma_put_rchan()
1422 if (!uc->rchan) in udma_free_rx_resources()
1455 ret = udma_get_rflow(uc, uc->rchan->id); in udma_alloc_rx_resources()
1462 fd_ring_id = ud->tchan_cnt + ud->echan_cnt + uc->rchan->id; in udma_alloc_rx_resources()
1529 struct udma_rchan *rchan = uc->rchan; in udma_tisci_m2m_channel_config() local
1553 req_rx.index = rchan->id; in udma_tisci_m2m_channel_config()
1561 dev_err(ud->dev, "rchan%d alloc failed %d\n", rchan->id, ret); in udma_tisci_m2m_channel_config()
1607 struct udma_rchan *rchan = uc->rchan; in udma_tisci_rx_channel_config() local
1626 req_rx.index = rchan->id; in udma_tisci_rx_channel_config()
1634 dev_err(ud->dev, "rchan%d cfg failed %d\n", rchan->id, ret); in udma_tisci_rx_channel_config()
1654 flow_req.flow_index = rchan->id; in udma_tisci_rx_channel_config()
1678 dev_err(ud->dev, "flow%d config failed: %d\n", rchan->id, ret); in udma_tisci_rx_channel_config()
1747 uc->config.dst_thread = (ud->psil_base + uc->rchan->id) | in udma_alloc_chan_resources()
1783 uc->config.dst_thread = (ud->psil_base + uc->rchan->id) | in udma_alloc_chan_resources()
1787 irq_udma_idx = soc_data->rchan_oes_offset + uc->rchan->id; in udma_alloc_chan_resources()
3455 seq_printf(s, "rchan%d [0x%04x -> 0x%04x], ", uc->rchan->id, in udma_dbg_summary_show_chan()
3640 struct udma_rchan *rchan = &ud->rchans[i]; in udma_probe() local
3642 rchan->id = i; in udma_probe()
3643 rchan->reg_rt = ud->mmrs[MMR_RCHANRT] + i * 0x1000; in udma_probe()
3659 uc->rchan = NULL; in udma_probe()