Home
last modified time | relevance | path

Searched refs:tre_ring (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/net/ipa/
Dgsi_trans.c224 channel->trans_info.map[index % channel->tre_ring.count] = trans; in gsi_trans_map()
232 return channel->trans_info.map[index % channel->tre_ring.count]; in gsi_channel_trans_mapped()
545 struct gsi_ring *tre_ring = &channel->tre_ring; in __gsi_trans_commit() local
563 avail = tre_ring->count - tre_ring->index % tre_ring->count; in __gsi_trans_commit()
564 dest_tre = gsi_ring_virt(tre_ring, tre_ring->index); in __gsi_trans_commit()
572 dest_tre = gsi_ring_virt(tre_ring, 0); in __gsi_trans_commit()
580 gsi_trans_map(trans, tre_ring->index); in __gsi_trans_commit()
582 tre_ring->index += trans->used_count; in __gsi_trans_commit()
671 struct gsi_ring *tre_ring = &channel->tre_ring; in gsi_trans_read_byte() local
683 dest_tre = gsi_ring_virt(tre_ring, tre_ring->index); in gsi_trans_read_byte()
[all …]
Dgsi.c759 size_t size = channel->tre_ring.count * GSI_RING_ELEMENT_SIZE; in gsi_channel_program()
782 val = lower_32_bits(channel->tre_ring.addr); in gsi_channel_program()
784 val = upper_32_bits(channel->tre_ring.addr); in gsi_channel_program()
944 channel->tre_ring.index = 0; in gsi_channel_reset()
1329 tre_index = gsi_ring_index(&channel->tre_ring, tre_offset); in gsi_event_trans()
1467 struct gsi_ring *tre_ring = &channel->tre_ring; in gsi_channel_doorbell() local
1473 val = gsi_ring_addr(tre_ring, tre_ring->index % tre_ring->count); in gsi_channel_doorbell()
2099 ret = gsi_ring_alloc(gsi, &channel->tre_ring, data->channel.tre_count); in gsi_channel_init_one()
2120 gsi_ring_free(gsi, &channel->tre_ring); in gsi_channel_init_one()
2138 gsi_ring_free(channel->gsi, &channel->tre_ring); in gsi_channel_exit_one()
Dgsi.h112 struct gsi_ring tre_ring; member
/linux-6.1.9/drivers/bus/mhi/host/
Dmain.c135 struct mhi_ring *ring = &mhi_chan->tre_ring; in mhi_ring_chan_db()
339 struct mhi_ring *tre_ring = &mhi_chan->tre_ring; in mhi_get_free_desc_count() local
341 return get_nr_avail_ring_elements(mhi_cntrl, tre_ring); in mhi_get_free_desc_count()
571 struct mhi_ring *buf_ring, *tre_ring; in parse_xfer_event() local
579 tre_ring = &mhi_chan->tre_ring; in parse_xfer_event()
609 if (!is_valid_ring_ptr(tre_ring, ptr)) { in parse_xfer_event()
615 ev_tre = mhi_to_virtual(tre_ring, ptr); in parse_xfer_event()
618 if (dev_rp >= (tre_ring->base + tre_ring->len)) in parse_xfer_event()
619 dev_rp = tre_ring->base; in parse_xfer_event()
623 local_rp = tre_ring->rp; in parse_xfer_event()
[all …]
Dinit.c319 mhi_chan->tre_ring.db_addr = (void __iomem *)&chan_ctxt->wp; in mhi_init_dev_ctxt()
526 mhi_chan->tre_ring.db_addr = base + val; in mhi_init_mmio()
573 struct mhi_ring *tre_ring; in mhi_deinit_chan_ctxt() local
578 tre_ring = &mhi_chan->tre_ring; in mhi_deinit_chan_ctxt()
584 dma_free_coherent(mhi_cntrl->cntrl_dev, tre_ring->alloc_size, in mhi_deinit_chan_ctxt()
585 tre_ring->pre_aligned, tre_ring->dma_handle); in mhi_deinit_chan_ctxt()
588 buf_ring->base = tre_ring->base = NULL; in mhi_deinit_chan_ctxt()
589 tre_ring->ctxt_wp = NULL; in mhi_deinit_chan_ctxt()
608 struct mhi_ring *tre_ring; in mhi_init_chan_ctxt() local
614 tre_ring = &mhi_chan->tre_ring; in mhi_init_chan_ctxt()
[all …]
Dpm.c293 struct mhi_ring *tre_ring = &mhi_chan->tre_ring; in mhi_pm_m0_transition() local
304 if (tre_ring->base && tre_ring->wp != tre_ring->rp && in mhi_pm_m0_transition()
Dinternal.h221 struct mhi_ring tre_ring; member
Ddebugfs.c96 struct mhi_ring *ring = &mhi_chan->tre_ring; in mhi_debugfs_channels_show()
/linux-6.1.9/drivers/dma/qcom/
Dhidma_ll.c535 memcpy(lldev->tre_ring + lldev->tre_write_offset, in hidma_ll_queue_request()
747 lldev->tre_ring = dmam_alloc_coherent(dev, sz, &lldev->tre_dma, in hidma_ll_init()
749 if (!lldev->tre_ring) in hidma_ll_init()
762 lldev->tre_ring += tre_ring_shift; in hidma_ll_init()
Dhidma.h61 void *tre_ring; /* TRE ring */ member
Dhidma_dbg.c65 seq_printf(s, "tre_ring=%p\n", lldev->tre_ring); in hidma_ll_devstats()