/drivers/gpu/host1x/ |
D | cdma.c | 50 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_destroy() local 51 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_destroy() 72 struct host1x_cdma *cdma = pb_to_cdma(pb); in host1x_pushbuffer_init() local 73 struct host1x *host1x = cdma_to_host1x(cdma); in host1x_pushbuffer_init() 185 unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma, in host1x_cdma_wait_locked() argument 189 struct push_buffer *pb = &cdma->push_buffer; in host1x_cdma_wait_locked() 194 space = list_empty(&cdma->sync_queue) ? 1 : 0; in host1x_cdma_wait_locked() 209 trace_host1x_wait_cdma(dev_name(cdma_to_channel(cdma)->dev), in host1x_cdma_wait_locked() 213 if (cdma->event != CDMA_EVENT_NONE) { in host1x_cdma_wait_locked() 214 mutex_unlock(&cdma->lock); in host1x_cdma_wait_locked() [all …]
|
D | cdma.h | 74 #define cdma_to_channel(cdma) container_of(cdma, struct host1x_channel, cdma) argument 75 #define cdma_to_host1x(cdma) dev_get_drvdata(cdma_to_channel(cdma)->dev->parent) argument 78 int host1x_cdma_init(struct host1x_cdma *cdma); 79 int host1x_cdma_deinit(struct host1x_cdma *cdma); 80 int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job); 81 void host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2); 82 void host1x_cdma_push_wide(struct host1x_cdma *cdma, u32 op1, u32 op2, 84 void host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job); 85 void host1x_cdma_update(struct host1x_cdma *cdma); 86 void host1x_cdma_peek(struct host1x_cdma *cdma, u32 dmaget, int slot, [all …]
|
D | dev.h | 37 void (*start)(struct host1x_cdma *cdma); 38 void (*stop)(struct host1x_cdma *cdma); 39 void (*flush)(struct host1x_cdma *cdma); 40 int (*timeout_init)(struct host1x_cdma *cdma, unsigned int syncpt); 41 void (*timeout_destroy)(struct host1x_cdma *cdma); 42 void (*freeze)(struct host1x_cdma *cdma); 43 void (*resume)(struct host1x_cdma *cdma, u32 getptr); 44 void (*timeout_cpu_incr)(struct host1x_cdma *cdma, u32 getptr, 246 struct host1x_cdma *cdma) in host1x_hw_cdma_start() argument 248 host->cdma_op->start(cdma); in host1x_hw_cdma_start() [all …]
|
D | channel.c | 85 host1x_hw_cdma_stop(host, &channel->cdma); in release_channel() 86 host1x_cdma_deinit(&channel->cdma); in release_channel() 143 err = host1x_cdma_init(&channel->cdma); in host1x_channel_request()
|
D | debug.c | 56 mutex_lock(&ch->cdma.lock); in show_channel() 65 mutex_unlock(&ch->cdma.lock); in show_channel()
|
D | channel.h | 31 struct host1x_cdma cdma; member
|
D | Makefile | 7 cdma.o \
|
D | intr.c | 103 host1x_cdma_update(&channel->cdma); in action_submit_complete()
|
/drivers/gpu/host1x/hw/ |
D | cdma_hw.c | 28 static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr, in cdma_timeout_cpu_incr() argument 34 host1x_syncpt_incr(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 37 host1x_syncpt_load(cdma->timeout.syncpt); in cdma_timeout_cpu_incr() 43 static void cdma_start(struct host1x_cdma *cdma) in cdma_start() argument 45 struct host1x_channel *ch = cdma_to_channel(cdma); in cdma_start() 48 if (cdma->running) in cdma_start() 51 cdma->last_pos = cdma->push_buffer.pos; in cdma_start() 52 start = cdma->push_buffer.dma; in cdma_start() 53 end = cdma->push_buffer.size + 4; in cdma_start() 63 host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT); in cdma_start() [all …]
|
D | channel_hw.c | 21 static void trace_write_gather(struct host1x_cdma *cdma, struct host1x_bo *bo, in trace_write_gather() argument 24 struct device *dev = cdma_to_channel(cdma)->dev; in trace_write_gather() 52 struct host1x_cdma *cdma = &job->channel->cdma; in submit_gathers() local 66 trace_write_gather(cdma, g->bo, g->offset, g->words); in submit_gathers() 73 host1x_cdma_push_wide(cdma, op1, op2, op3, op4); in submit_gathers() 82 host1x_cdma_push(cdma, op1, op2); in submit_gathers() 97 host1x_cdma_push(&job->channel->cdma, in synchronize_syncpt_base() 152 err = host1x_cdma_begin(&ch->cdma, job); in channel_submit() 163 host1x_cdma_push(&ch->cdma, in channel_submit() 182 host1x_cdma_push(&ch->cdma, in channel_submit() [all …]
|
D | debug_hw.c | 160 unsigned int words, struct host1x_cdma *cdma, in show_gather() argument 193 static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) in show_channel_gathers() argument 195 struct push_buffer *pb = &cdma->push_buffer; in show_channel_gathers() 201 show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped); in show_channel_gathers() 203 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers() 228 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
|
D | debug_hw_1x06.c | 18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma() local 33 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma() 48 show_channel_gathers(o, cdma); in host1x_debug_show_channel_cdma()
|
D | debug_hw_1x01.c | 18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma() local 32 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma() 63 show_channel_gathers(o, cdma); in host1x_debug_show_channel_cdma()
|