Home
last modified time | relevance | path

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

/drivers/gpu/host1x/
Dcdma.c51 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_destroy() local
52 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy()
67 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_init() local
68 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init()
133 unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma, in host1x_cdma_wait_locked() argument
140 space = list_empty(&cdma->sync_queue) ? 1 : 0; in host1x_cdma_wait_locked()
142 struct push_buffer *pb = &cdma->push_buffer; in host1x_cdma_wait_locked()
152 trace_host1x_wait_cdma(dev_name(cdma_to_channel(cdma)->dev), in host1x_cdma_wait_locked()
156 if (cdma->event != CDMA_EVENT_NONE) { in host1x_cdma_wait_locked()
157 mutex_unlock(&cdma->lock); in host1x_cdma_wait_locked()
[all …]
Dcdma.h83 #define cdma_to_channel(cdma) container_of(cdma, struct host1x_channel, cdma) argument
84 #define cdma_to_host1x(cdma) dev_get_drvdata(cdma_to_channel(cdma)->dev->parent) argument
87 int host1x_cdma_init(struct host1x_cdma *cdma);
88 int host1x_cdma_deinit(struct host1x_cdma *cdma);
89 void host1x_cdma_stop(struct host1x_cdma *cdma);
90 int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job);
91 void host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2);
92 void host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job);
93 void host1x_cdma_update(struct host1x_cdma *cdma);
94 void host1x_cdma_peek(struct host1x_cdma *cdma, u32 dmaget, int slot,
[all …]
Ddev.h45 void (*start)(struct host1x_cdma *cdma);
46 void (*stop)(struct host1x_cdma *cdma);
47 void (*flush)(struct host1x_cdma *cdma);
48 int (*timeout_init)(struct host1x_cdma *cdma, u32 syncpt_id);
49 void (*timeout_destroy)(struct host1x_cdma *cdma);
50 void (*freeze)(struct host1x_cdma *cdma);
51 void (*resume)(struct host1x_cdma *cdma, u32 getptr);
52 void (*timeout_cpu_incr)(struct host1x_cdma *cdma, u32 getptr,
226 struct host1x_cdma *cdma) in host1x_hw_cdma_start() argument
228 host->cdma_op->start(cdma); in host1x_hw_cdma_start()
[all …]
Dchannel.c55 err = host1x_cdma_init(&channel->cdma); in host1x_channel_get()
73 host1x_hw_cdma_stop(host, &channel->cdma); in host1x_channel_put()
74 host1x_cdma_deinit(&channel->cdma); in host1x_channel_put()
Ddebug.c52 mutex_lock(&ch->cdma.lock); in show_channels()
56 mutex_unlock(&ch->cdma.lock); in show_channels()
Dchannel.h37 struct host1x_cdma cdma; member
DMakefile6 cdma.o \
Dintr.c114 host1x_cdma_update(&channel->cdma); in action_submit_complete()
/drivers/gpu/host1x/hw/
Dcdma_hw.c39 static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr, in cdma_timeout_cpu_incr() argument
42 struct host1x *host1x = cdma_to_host1x(cdma); in cdma_timeout_cpu_incr()
43 struct push_buffer *pb = &cdma->push_buffer; in cdma_timeout_cpu_incr()
47 host1x_syncpt_incr(cdma->timeout.syncpt); in cdma_timeout_cpu_incr()
50 host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_cpu_incr()
67 static void cdma_start(struct host1x_cdma *cdma) in cdma_start() argument
69 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_start()
71 if (cdma->running) in cdma_start()
74 cdma->last_pos = cdma->push_buffer.pos; in cdma_start()
80 host1x_ch_writel(ch, cdma->push_buffer.phys, HOST1X_CHANNEL_DMASTART); in cdma_start()
[all …]
Dchannel_hw.c32 static void trace_write_gather(struct host1x_cdma *cdma, struct host1x_bo *bo, in trace_write_gather() argument
48 dev_name(cdma_to_channel(cdma)->dev), in trace_write_gather()
58 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers() local
65 trace_write_gather(cdma, g->bo, g->offset, op1 & 0xffff); in submit_gathers()
66 host1x_cdma_push(cdma, op1, op2); in submit_gathers()
79 host1x_cdma_push(&job->channel->cdma, in synchronize_syncpt_base()
119 err = host1x_cdma_begin(&ch->cdma, job); in channel_submit()
130 host1x_cdma_push(&ch->cdma, in channel_submit()
147 host1x_cdma_push(&ch->cdma, in channel_submit()
154 host1x_cdma_end(&ch->cdma, job); in channel_submit()
Ddebug_hw.c109 unsigned int words, struct host1x_cdma *cdma, in show_gather() argument
141 static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) in show_channel_gathers() argument
145 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers()
169 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
182 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma() local
196 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
228 show_channel_gathers(o, cdma); in host1x_debug_show_channel_cdma()