Home
last modified time | relevance | path

Searched refs:cdma (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Dcdma.c19 #include "cdma.h"
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()
183 * Must be called with the cdma lock held.
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) in host1x_cdma_wait_locked()
235 host1x_cdma_wait_pushbuffer_space(struct host1x *host1x, struct host1x_cdma *cdma, unsigned int needed) host1x_cdma_wait_pushbuffer_space() argument
273 cdma_start_timer_locked(struct host1x_cdma *cdma, struct host1x_job *job) cdma_start_timer_locked() argument
294 stop_cdma_timer_locked(struct host1x_cdma *cdma) stop_cdma_timer_locked() argument
310 update_cdma_locked(struct host1x_cdma *cdma) update_cdma_locked() argument
363 host1x_cdma_update_sync_queue(struct host1x_cdma *cdma, struct device *dev) host1x_cdma_update_sync_queue() argument
495 struct host1x_cdma *cdma = container_of(work, struct host1x_cdma, update_work); cdma_update_work() local
505 host1x_cdma_init(struct host1x_cdma *cdma) host1x_cdma_init() argument
529 host1x_cdma_deinit(struct host1x_cdma *cdma) host1x_cdma_deinit() argument
548 host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job) host1x_cdma_begin() argument
592 host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2) host1x_cdma_push() argument
622 host1x_cdma_push_wide(struct host1x_cdma *cdma, u32 op1, u32 op2, u32 op3, u32 op4) host1x_cdma_push_wide() argument
666 host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job) host1x_cdma_end() argument
690 host1x_cdma_update(struct host1x_cdma *cdma) host1x_cdma_update() argument
[all...]
H A Dcdma.h21 * cdma
76 #define cdma_to_channel(cdma) container_of(cdma, struct host1x_channel, cdma)
77 #define cdma_to_host1x(cdma) dev_get_drvdata(cdma_to_channel(cdma)->dev->parent)
80 int host1x_cdma_init(struct host1x_cdma *cdma);
81 int host1x_cdma_deinit(struct host1x_cdma *cdma);
82 int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job);
83 void host1x_cdma_push(struct host1x_cdma *cdma, u3
[all...]
H A Ddev.h15 #include "cdma.h"
38 void (*start)(struct host1x_cdma *cdma);
39 void (*stop)(struct host1x_cdma *cdma);
40 void (*flush)(struct host1x_cdma *cdma);
41 int (*timeout_init)(struct host1x_cdma *cdma);
42 void (*timeout_destroy)(struct host1x_cdma *cdma);
43 void (*freeze)(struct host1x_cdma *cdma);
44 void (*resume)(struct host1x_cdma *cdma, u32 getptr);
45 void (*timeout_cpu_incr)(struct host1x_cdma *cdma, u32 getptr,
266 struct host1x_cdma *cdma) in host1x_hw_cdma_start()
265 host1x_hw_cdma_start(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_start() argument
271 host1x_hw_cdma_stop(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_stop() argument
277 host1x_hw_cdma_flush(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_flush() argument
283 host1x_hw_cdma_timeout_init(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_timeout_init() argument
289 host1x_hw_cdma_timeout_destroy(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_timeout_destroy() argument
295 host1x_hw_cdma_freeze(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_freeze() argument
301 host1x_hw_cdma_resume(struct host1x *host, struct host1x_cdma *cdma, u32 getptr) host1x_hw_cdma_resume() argument
307 host1x_hw_cdma_timeout_cpu_incr(struct host1x *host, struct host1x_cdma *cdma, u32 getptr, u32 syncpt_incrs, u32 syncval, u32 nr_slots) host1x_hw_cdma_timeout_cpu_incr() argument
[all...]
H A Dchannel.c78 host1x_hw_cdma_stop(host, &channel->cdma); in host1x_channel_stop()
89 host1x_hw_cdma_stop(host, &channel->cdma); in release_channel()
90 host1x_cdma_deinit(&channel->cdma); in release_channel()
147 err = host1x_cdma_init(&channel->cdma); in host1x_channel_request()
H A Dchannel.h14 #include "cdma.h"
31 struct host1x_cdma cdma; member
H A DMakefile7 cdma.o \
H A Ddebug.c62 mutex_lock(&ch->cdma.lock); in show_channel()
71 mutex_unlock(&ch->cdma.lock); in show_channel()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Dcdma.c19 #include "cdma.h"
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()
183 * Must be called with the cdma lock held.
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) in host1x_cdma_wait_locked()
235 host1x_cdma_wait_pushbuffer_space(struct host1x *host1x, struct host1x_cdma *cdma, unsigned int needed) host1x_cdma_wait_pushbuffer_space() argument
273 cdma_start_timer_locked(struct host1x_cdma *cdma, struct host1x_job *job) cdma_start_timer_locked() argument
296 stop_cdma_timer_locked(struct host1x_cdma *cdma) stop_cdma_timer_locked() argument
312 update_cdma_locked(struct host1x_cdma *cdma) update_cdma_locked() argument
370 host1x_cdma_update_sync_queue(struct host1x_cdma *cdma, struct device *dev) host1x_cdma_update_sync_queue() argument
449 host1x_cdma_init(struct host1x_cdma *cdma) host1x_cdma_init() argument
472 host1x_cdma_deinit(struct host1x_cdma *cdma) host1x_cdma_deinit() argument
491 host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job) host1x_cdma_begin() argument
526 host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2) host1x_cdma_push() argument
556 host1x_cdma_push_wide(struct host1x_cdma *cdma, u32 op1, u32 op2, u32 op3, u32 op4) host1x_cdma_push_wide() argument
606 host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job) host1x_cdma_end() argument
630 host1x_cdma_update(struct host1x_cdma *cdma) host1x_cdma_update() argument
[all...]
H A Dcdma.h20 * cdma
74 #define cdma_to_channel(cdma) container_of(cdma, struct host1x_channel, cdma)
75 #define cdma_to_host1x(cdma) dev_get_drvdata(cdma_to_channel(cdma)->dev->parent)
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, u3
[all...]
H A Ddev.h15 #include "cdma.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()
245 host1x_hw_cdma_start(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_start() argument
251 host1x_hw_cdma_stop(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_stop() argument
257 host1x_hw_cdma_flush(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_flush() argument
263 host1x_hw_cdma_timeout_init(struct host1x *host, struct host1x_cdma *cdma, unsigned int syncpt) host1x_hw_cdma_timeout_init() argument
270 host1x_hw_cdma_timeout_destroy(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_timeout_destroy() argument
276 host1x_hw_cdma_freeze(struct host1x *host, struct host1x_cdma *cdma) host1x_hw_cdma_freeze() argument
282 host1x_hw_cdma_resume(struct host1x *host, struct host1x_cdma *cdma, u32 getptr) host1x_hw_cdma_resume() argument
288 host1x_hw_cdma_timeout_cpu_incr(struct host1x *host, struct host1x_cdma *cdma, u32 getptr, u32 syncpt_incrs, u32 syncval, u32 nr_slots) host1x_hw_cdma_timeout_cpu_incr() argument
[all...]
H A Dchannel.c85 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()
H A Dchannel.h14 #include "cdma.h"
31 struct host1x_cdma cdma; member
H A DMakefile7 cdma.o \
H A Ddebug.c56 mutex_lock(&ch->cdma.lock); in show_channel()
65 mutex_unlock(&ch->cdma.lock); in show_channel()
/kernel/linux/linux-6.6/drivers/gpu/host1x/hw/
H A Dcdma_hw.c12 #include "../cdma.h"
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 in cdma_start()
89 cdma_timeout_restart(struct host1x_cdma *cdma, u32 getptr) cdma_timeout_restart() argument
143 cdma_flush(struct host1x_cdma *cdma) cdma_flush() argument
154 cdma_stop(struct host1x_cdma *cdma) cdma_stop() argument
198 cdma_freeze(struct host1x_cdma *cdma) cdma_freeze() argument
226 cdma_resume(struct host1x_cdma *cdma, u32 getptr) cdma_resume() argument
241 timeout_release_mlock(struct host1x_cdma *cdma) timeout_release_mlock() argument
280 struct host1x_cdma *cdma; cdma_timeout_handler() local
332 cdma_timeout_init(struct host1x_cdma *cdma) cdma_timeout_init() argument
343 cdma_timeout_destroy(struct host1x_cdma *cdma) cdma_timeout_destroy() argument
[all...]
H A Dchannel_hw.c21 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()
53 struct host1x_cdma *cdma = &job->channel->cdma; in submit_wait() local
68 host1x_cdma_push_wide(cdma, in submit_wait()
79 host1x_cdma_push_wide(&job->channel->cdma, in submit_wait()
85 host1x_cdma_push_wide(cdma, in submit_wait()
98 host1x_cdma_push(cdma, in submit_wait()
106 host1x_cdma_push(cdma, in submit_wait()
115 struct host1x_cdma *cdma in submit_gathers() local
214 struct host1x_cdma *cdma = &job->channel->cdma; channel_program_cdma() local
[all...]
H A Ddebug_hw.c11 #include "../cdma.h"
160 unsigned int words, struct host1x_cdma *cdma, in show_gather()
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()
198 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers()
205 show_gather(o, pb->dma + job->first_get, job->num_slots * 2, cdma, in show_channel_gathers()
230 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
159 show_gather(struct output *o, dma_addr_t phys_addr, unsigned int words, struct host1x_cdma *cdma, dma_addr_t pin_addr, u32 *map_addr) show_gather() argument
H A Ddebug_hw_1x06.c11 #include "../cdma.h"
18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma() local
46 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
62 show_channel_gathers(o, cdma); in host1x_debug_show_channel_cdma()
H A Ddebug_hw_1x01.c11 #include "../cdma.h"
18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma() local
35 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
67 show_channel_gathers(o, cdma); in host1x_debug_show_channel_cdma()
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
H A Dcdma_hw.c12 #include "../cdma.h"
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 in cdma_start()
89 cdma_timeout_restart(struct host1x_cdma *cdma, u32 getptr) cdma_timeout_restart() argument
143 cdma_flush(struct host1x_cdma *cdma) cdma_flush() argument
154 cdma_stop(struct host1x_cdma *cdma) cdma_stop() argument
198 cdma_freeze(struct host1x_cdma *cdma) cdma_freeze() argument
226 cdma_resume(struct host1x_cdma *cdma, u32 getptr) cdma_resume() argument
249 struct host1x_cdma *cdma; cdma_timeout_handler() local
298 cdma_timeout_init(struct host1x_cdma *cdma, unsigned int syncpt) cdma_timeout_init() argument
309 cdma_timeout_destroy(struct host1x_cdma *cdma) cdma_timeout_destroy() argument
[all...]
H A Dchannel_hw.c21 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()
[all...]
H A Ddebug_hw.c11 #include "../cdma.h"
160 unsigned int words, struct host1x_cdma *cdma, in show_gather()
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()
159 show_gather(struct output *o, phys_addr_t phys_addr, unsigned int words, struct host1x_cdma *cdma, phys_addr_t pin_addr, u32 *map_addr) show_gather() argument
H A Ddebug_hw_1x06.c11 #include "../cdma.h"
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()
H A Ddebug_hw_1x01.c11 #include "../cdma.h"
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()
/kernel/linux/linux-5.10/sound/pci/
H A Dcs4281.c1771 struct cs4281_dma *cdma; in snd_cs4281_interrupt() local
1784 cdma = &chip->dma[dma]; in snd_cs4281_interrupt()
1787 val = snd_cs4281_peekBA0(chip, cdma->regHDSR); in snd_cs4281_interrupt()
1790 cdma->frag++; in snd_cs4281_interrupt()
1791 if ((val & BA0_HDSR_DHTC) && !(cdma->frag & 1)) { in snd_cs4281_interrupt()
1792 cdma->frag--; in snd_cs4281_interrupt()
1797 if ((val & BA0_HDSR_DTC) && (cdma->frag & 1)) { in snd_cs4281_interrupt()
1798 cdma->frag--; in snd_cs4281_interrupt()
1804 snd_pcm_period_elapsed(cdma->substream); in snd_cs4281_interrupt()

Completed in 12 milliseconds

12