cdma 50 drivers/gpu/host1x/cdma.c struct host1x_cdma *cdma = pb_to_cdma(pb); cdma 51 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 72 drivers/gpu/host1x/cdma.c struct host1x_cdma *cdma = pb_to_cdma(pb); cdma 73 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 185 drivers/gpu/host1x/cdma.c unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma, cdma 189 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 194 drivers/gpu/host1x/cdma.c space = list_empty(&cdma->sync_queue) ? 1 : 0; cdma 209 drivers/gpu/host1x/cdma.c trace_host1x_wait_cdma(dev_name(cdma_to_channel(cdma)->dev), cdma 213 drivers/gpu/host1x/cdma.c if (cdma->event != CDMA_EVENT_NONE) { cdma 214 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 216 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 220 drivers/gpu/host1x/cdma.c cdma->event = event; cdma 222 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 223 drivers/gpu/host1x/cdma.c wait_for_completion(&cdma->complete); cdma 224 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 236 drivers/gpu/host1x/cdma.c struct host1x_cdma *cdma, cdma 240 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 247 drivers/gpu/host1x/cdma.c trace_host1x_wait_cdma(dev_name(cdma_to_channel(cdma)->dev), cdma 250 drivers/gpu/host1x/cdma.c host1x_hw_cdma_flush(host1x, cdma); cdma 253 drivers/gpu/host1x/cdma.c if (cdma->event != CDMA_EVENT_NONE) { cdma 254 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 256 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 260 drivers/gpu/host1x/cdma.c cdma->event = CDMA_EVENT_PUSH_BUFFER_SPACE; cdma 262 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 263 drivers/gpu/host1x/cdma.c wait_for_completion(&cdma->complete); cdma 264 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 273 drivers/gpu/host1x/cdma.c static void cdma_start_timer_locked(struct host1x_cdma *cdma, cdma 276 drivers/gpu/host1x/cdma.c struct host1x *host = cdma_to_host1x(cdma); cdma 278 drivers/gpu/host1x/cdma.c if (cdma->timeout.client) { cdma 283 drivers/gpu/host1x/cdma.c cdma->timeout.client = job->client; cdma 284 drivers/gpu/host1x/cdma.c cdma->timeout.syncpt = host1x_syncpt_get(host, job->syncpt_id); cdma 285 drivers/gpu/host1x/cdma.c cdma->timeout.syncpt_val = job->syncpt_end; cdma 286 drivers/gpu/host1x/cdma.c cdma->timeout.start_ktime = ktime_get(); cdma 288 drivers/gpu/host1x/cdma.c schedule_delayed_work(&cdma->timeout.wq, cdma 296 drivers/gpu/host1x/cdma.c static void stop_cdma_timer_locked(struct host1x_cdma *cdma) cdma 298 drivers/gpu/host1x/cdma.c cancel_delayed_work(&cdma->timeout.wq); cdma 299 drivers/gpu/host1x/cdma.c cdma->timeout.client = NULL; cdma 312 drivers/gpu/host1x/cdma.c static void update_cdma_locked(struct host1x_cdma *cdma) cdma 315 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 319 drivers/gpu/host1x/cdma.c if (!cdma->running) cdma 326 drivers/gpu/host1x/cdma.c list_for_each_entry_safe(job, n, &cdma->sync_queue, list) { cdma 334 drivers/gpu/host1x/cdma.c cdma_start_timer_locked(cdma, job); cdma 340 drivers/gpu/host1x/cdma.c if (cdma->timeout.client) cdma 341 drivers/gpu/host1x/cdma.c stop_cdma_timer_locked(cdma); cdma 348 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 352 drivers/gpu/host1x/cdma.c if (cdma->event == CDMA_EVENT_PUSH_BUFFER_SPACE) cdma 360 drivers/gpu/host1x/cdma.c if (cdma->event == CDMA_EVENT_SYNC_QUEUE_EMPTY && cdma 361 drivers/gpu/host1x/cdma.c list_empty(&cdma->sync_queue)) cdma 365 drivers/gpu/host1x/cdma.c cdma->event = CDMA_EVENT_NONE; cdma 366 drivers/gpu/host1x/cdma.c complete(&cdma->complete); cdma 370 drivers/gpu/host1x/cdma.c void host1x_cdma_update_sync_queue(struct host1x_cdma *cdma, cdma 373 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 377 drivers/gpu/host1x/cdma.c syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); cdma 392 drivers/gpu/host1x/cdma.c list_for_each_entry(job, &cdma->sync_queue, list) { cdma 395 drivers/gpu/host1x/cdma.c if (!list_is_last(&job->list, &cdma->sync_queue)) cdma 418 drivers/gpu/host1x/cdma.c restart_addr = cdma->last_pos; cdma 434 drivers/gpu/host1x/cdma.c host1x_hw_cdma_timeout_cpu_incr(host1x, cdma, job->first_get, cdma 443 drivers/gpu/host1x/cdma.c host1x_hw_cdma_resume(host1x, cdma, restart_addr); cdma 449 drivers/gpu/host1x/cdma.c int host1x_cdma_init(struct host1x_cdma *cdma) cdma 453 drivers/gpu/host1x/cdma.c mutex_init(&cdma->lock); cdma 454 drivers/gpu/host1x/cdma.c init_completion(&cdma->complete); cdma 456 drivers/gpu/host1x/cdma.c INIT_LIST_HEAD(&cdma->sync_queue); cdma 458 drivers/gpu/host1x/cdma.c cdma->event = CDMA_EVENT_NONE; cdma 459 drivers/gpu/host1x/cdma.c cdma->running = false; cdma 460 drivers/gpu/host1x/cdma.c cdma->torndown = false; cdma 462 drivers/gpu/host1x/cdma.c err = host1x_pushbuffer_init(&cdma->push_buffer); cdma 472 drivers/gpu/host1x/cdma.c int host1x_cdma_deinit(struct host1x_cdma *cdma) cdma 474 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 475 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 477 drivers/gpu/host1x/cdma.c if (cdma->running) { cdma 483 drivers/gpu/host1x/cdma.c host1x_hw_cdma_timeout_destroy(host1x, cdma); cdma 491 drivers/gpu/host1x/cdma.c int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job) cdma 493 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 495 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 499 drivers/gpu/host1x/cdma.c if (!cdma->timeout.initialized) { cdma 502 drivers/gpu/host1x/cdma.c err = host1x_hw_cdma_timeout_init(host1x, cdma, cdma 505 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 511 drivers/gpu/host1x/cdma.c if (!cdma->running) cdma 512 drivers/gpu/host1x/cdma.c host1x_hw_cdma_start(host1x, cdma); cdma 514 drivers/gpu/host1x/cdma.c cdma->slots_free = 0; cdma 515 drivers/gpu/host1x/cdma.c cdma->slots_used = 0; cdma 516 drivers/gpu/host1x/cdma.c cdma->first_get = cdma->push_buffer.pos; cdma 526 drivers/gpu/host1x/cdma.c void host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2) cdma 528 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 529 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 530 drivers/gpu/host1x/cdma.c u32 slots_free = cdma->slots_free; cdma 533 drivers/gpu/host1x/cdma.c trace_host1x_cdma_push(dev_name(cdma_to_channel(cdma)->dev), cdma 537 drivers/gpu/host1x/cdma.c host1x_hw_cdma_flush(host1x, cdma); cdma 538 drivers/gpu/host1x/cdma.c slots_free = host1x_cdma_wait_locked(cdma, cdma 542 drivers/gpu/host1x/cdma.c cdma->slots_free = slots_free - 1; cdma 543 drivers/gpu/host1x/cdma.c cdma->slots_used++; cdma 556 drivers/gpu/host1x/cdma.c void host1x_cdma_push_wide(struct host1x_cdma *cdma, u32 op1, u32 op2, cdma 559 drivers/gpu/host1x/cdma.c struct host1x_channel *channel = cdma_to_channel(cdma); cdma 560 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 561 drivers/gpu/host1x/cdma.c struct push_buffer *pb = &cdma->push_buffer; cdma 563 drivers/gpu/host1x/cdma.c unsigned int space = cdma->slots_free; cdma 575 drivers/gpu/host1x/cdma.c host1x_cdma_wait_pushbuffer_space(host1x, cdma, needed); cdma 578 drivers/gpu/host1x/cdma.c cdma->slots_free = space - needed; cdma 579 drivers/gpu/host1x/cdma.c cdma->slots_used += needed; cdma 606 drivers/gpu/host1x/cdma.c void host1x_cdma_end(struct host1x_cdma *cdma, cdma 609 drivers/gpu/host1x/cdma.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 610 drivers/gpu/host1x/cdma.c bool idle = list_empty(&cdma->sync_queue); cdma 612 drivers/gpu/host1x/cdma.c host1x_hw_cdma_flush(host1x, cdma); cdma 614 drivers/gpu/host1x/cdma.c job->first_get = cdma->first_get; cdma 615 drivers/gpu/host1x/cdma.c job->num_slots = cdma->slots_used; cdma 617 drivers/gpu/host1x/cdma.c list_add_tail(&job->list, &cdma->sync_queue); cdma 621 drivers/gpu/host1x/cdma.c cdma_start_timer_locked(cdma, job); cdma 624 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 630 drivers/gpu/host1x/cdma.c void host1x_cdma_update(struct host1x_cdma *cdma) cdma 632 drivers/gpu/host1x/cdma.c mutex_lock(&cdma->lock); cdma 633 drivers/gpu/host1x/cdma.c update_cdma_locked(cdma); cdma 634 drivers/gpu/host1x/cdma.c mutex_unlock(&cdma->lock); cdma 74 drivers/gpu/host1x/cdma.h #define cdma_to_channel(cdma) container_of(cdma, struct host1x_channel, cdma) cdma 75 drivers/gpu/host1x/cdma.h #define cdma_to_host1x(cdma) dev_get_drvdata(cdma_to_channel(cdma)->dev->parent) cdma 78 drivers/gpu/host1x/cdma.h int host1x_cdma_init(struct host1x_cdma *cdma); cdma 79 drivers/gpu/host1x/cdma.h int host1x_cdma_deinit(struct host1x_cdma *cdma); cdma 80 drivers/gpu/host1x/cdma.h int host1x_cdma_begin(struct host1x_cdma *cdma, struct host1x_job *job); cdma 81 drivers/gpu/host1x/cdma.h void host1x_cdma_push(struct host1x_cdma *cdma, u32 op1, u32 op2); cdma 82 drivers/gpu/host1x/cdma.h void host1x_cdma_push_wide(struct host1x_cdma *cdma, u32 op1, u32 op2, cdma 84 drivers/gpu/host1x/cdma.h void host1x_cdma_end(struct host1x_cdma *cdma, struct host1x_job *job); cdma 85 drivers/gpu/host1x/cdma.h void host1x_cdma_update(struct host1x_cdma *cdma); cdma 86 drivers/gpu/host1x/cdma.h void host1x_cdma_peek(struct host1x_cdma *cdma, u32 dmaget, int slot, cdma 88 drivers/gpu/host1x/cdma.h unsigned int host1x_cdma_wait_locked(struct host1x_cdma *cdma, cdma 90 drivers/gpu/host1x/cdma.h void host1x_cdma_update_sync_queue(struct host1x_cdma *cdma, cdma 85 drivers/gpu/host1x/channel.c host1x_hw_cdma_stop(host, &channel->cdma); cdma 86 drivers/gpu/host1x/channel.c host1x_cdma_deinit(&channel->cdma); cdma 142 drivers/gpu/host1x/channel.c err = host1x_cdma_init(&channel->cdma); cdma 30 drivers/gpu/host1x/channel.h struct host1x_cdma cdma; cdma 54 drivers/gpu/host1x/debug.c mutex_lock(&ch->cdma.lock); cdma 61 drivers/gpu/host1x/debug.c mutex_unlock(&ch->cdma.lock); cdma 37 drivers/gpu/host1x/dev.h void (*start)(struct host1x_cdma *cdma); cdma 38 drivers/gpu/host1x/dev.h void (*stop)(struct host1x_cdma *cdma); cdma 39 drivers/gpu/host1x/dev.h void (*flush)(struct host1x_cdma *cdma); cdma 40 drivers/gpu/host1x/dev.h int (*timeout_init)(struct host1x_cdma *cdma, unsigned int syncpt); cdma 41 drivers/gpu/host1x/dev.h void (*timeout_destroy)(struct host1x_cdma *cdma); cdma 42 drivers/gpu/host1x/dev.h void (*freeze)(struct host1x_cdma *cdma); cdma 43 drivers/gpu/host1x/dev.h void (*resume)(struct host1x_cdma *cdma, u32 getptr); cdma 44 drivers/gpu/host1x/dev.h void (*timeout_cpu_incr)(struct host1x_cdma *cdma, u32 getptr, cdma 243 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma) cdma 245 drivers/gpu/host1x/dev.h host->cdma_op->start(cdma); cdma 249 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma) cdma 251 drivers/gpu/host1x/dev.h host->cdma_op->stop(cdma); cdma 255 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma) cdma 257 drivers/gpu/host1x/dev.h host->cdma_op->flush(cdma); cdma 261 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma, cdma 264 drivers/gpu/host1x/dev.h return host->cdma_op->timeout_init(cdma, syncpt); cdma 268 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma) cdma 270 drivers/gpu/host1x/dev.h host->cdma_op->timeout_destroy(cdma); cdma 274 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma) cdma 276 drivers/gpu/host1x/dev.h host->cdma_op->freeze(cdma); cdma 280 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma, u32 getptr) cdma 282 drivers/gpu/host1x/dev.h host->cdma_op->resume(cdma, getptr); cdma 286 drivers/gpu/host1x/dev.h struct host1x_cdma *cdma, cdma 291 drivers/gpu/host1x/dev.h host->cdma_op->timeout_cpu_incr(cdma, getptr, syncpt_incrs, syncval, cdma 28 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr, cdma 34 drivers/gpu/host1x/hw/cdma_hw.c host1x_syncpt_incr(cdma->timeout.syncpt); cdma 37 drivers/gpu/host1x/hw/cdma_hw.c host1x_syncpt_load(cdma->timeout.syncpt); cdma 43 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_start(struct host1x_cdma *cdma) cdma 45 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 48 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->running) cdma 51 drivers/gpu/host1x/hw/cdma_hw.c cdma->last_pos = cdma->push_buffer.pos; cdma 52 drivers/gpu/host1x/hw/cdma_hw.c start = cdma->push_buffer.dma; cdma 53 drivers/gpu/host1x/hw/cdma_hw.c end = cdma->push_buffer.size + 4; cdma 63 drivers/gpu/host1x/hw/cdma_hw.c host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT); cdma 81 drivers/gpu/host1x/hw/cdma_hw.c cdma->running = true; cdma 89 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_timeout_restart(struct host1x_cdma *cdma, u32 getptr) cdma 91 drivers/gpu/host1x/hw/cdma_hw.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 92 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 95 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->running) cdma 98 drivers/gpu/host1x/hw/cdma_hw.c cdma->last_pos = cdma->push_buffer.pos; cdma 103 drivers/gpu/host1x/hw/cdma_hw.c start = cdma->push_buffer.dma; cdma 104 drivers/gpu/host1x/hw/cdma_hw.c end = cdma->push_buffer.size + 4; cdma 127 drivers/gpu/host1x/hw/cdma_hw.c cdma->last_pos); cdma 132 drivers/gpu/host1x/hw/cdma_hw.c host1x_ch_writel(ch, cdma->push_buffer.pos, HOST1X_CHANNEL_DMAPUT); cdma 137 drivers/gpu/host1x/hw/cdma_hw.c cdma->running = true; cdma 143 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_flush(struct host1x_cdma *cdma) cdma 145 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 147 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->push_buffer.pos != cdma->last_pos) { cdma 148 drivers/gpu/host1x/hw/cdma_hw.c host1x_ch_writel(ch, cdma->push_buffer.pos, cdma 150 drivers/gpu/host1x/hw/cdma_hw.c cdma->last_pos = cdma->push_buffer.pos; cdma 154 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_stop(struct host1x_cdma *cdma) cdma 156 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 158 drivers/gpu/host1x/hw/cdma_hw.c mutex_lock(&cdma->lock); cdma 160 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->running) { cdma 161 drivers/gpu/host1x/hw/cdma_hw.c host1x_cdma_wait_locked(cdma, CDMA_EVENT_SYNC_QUEUE_EMPTY); cdma 164 drivers/gpu/host1x/hw/cdma_hw.c cdma->running = false; cdma 167 drivers/gpu/host1x/hw/cdma_hw.c mutex_unlock(&cdma->lock); cdma 198 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_freeze(struct host1x_cdma *cdma) cdma 200 drivers/gpu/host1x/hw/cdma_hw.c struct host1x *host = cdma_to_host1x(cdma); cdma 201 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 203 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->torndown && !cdma->running) { cdma 215 drivers/gpu/host1x/hw/cdma_hw.c cdma->last_pos); cdma 222 drivers/gpu/host1x/hw/cdma_hw.c cdma->running = false; cdma 223 drivers/gpu/host1x/hw/cdma_hw.c cdma->torndown = true; cdma 226 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_resume(struct host1x_cdma *cdma, u32 getptr) cdma 228 drivers/gpu/host1x/hw/cdma_hw.c struct host1x *host1x = cdma_to_host1x(cdma); cdma 229 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_channel *ch = cdma_to_channel(cdma); cdma 237 drivers/gpu/host1x/hw/cdma_hw.c cdma->torndown = false; cdma 238 drivers/gpu/host1x/hw/cdma_hw.c cdma_timeout_restart(cdma, getptr); cdma 249 drivers/gpu/host1x/hw/cdma_hw.c struct host1x_cdma *cdma; cdma 253 drivers/gpu/host1x/hw/cdma_hw.c cdma = container_of(to_delayed_work(work), struct host1x_cdma, cdma 255 drivers/gpu/host1x/hw/cdma_hw.c host1x = cdma_to_host1x(cdma); cdma 256 drivers/gpu/host1x/hw/cdma_hw.c ch = cdma_to_channel(cdma); cdma 258 drivers/gpu/host1x/hw/cdma_hw.c host1x_debug_dump(cdma_to_host1x(cdma)); cdma 260 drivers/gpu/host1x/hw/cdma_hw.c mutex_lock(&cdma->lock); cdma 262 drivers/gpu/host1x/hw/cdma_hw.c if (!cdma->timeout.client) { cdma 265 drivers/gpu/host1x/hw/cdma_hw.c mutex_unlock(&cdma->lock); cdma 272 drivers/gpu/host1x/hw/cdma_hw.c syncpt_val = host1x_syncpt_load(cdma->timeout.syncpt); cdma 275 drivers/gpu/host1x/hw/cdma_hw.c if ((s32)(syncpt_val - cdma->timeout.syncpt_val) >= 0) { cdma 280 drivers/gpu/host1x/hw/cdma_hw.c mutex_unlock(&cdma->lock); cdma 285 drivers/gpu/host1x/hw/cdma_hw.c __func__, cdma->timeout.syncpt->id, cdma->timeout.syncpt->name, cdma 286 drivers/gpu/host1x/hw/cdma_hw.c syncpt_val, cdma->timeout.syncpt_val); cdma 289 drivers/gpu/host1x/hw/cdma_hw.c host1x_hw_cdma_freeze(host1x, cdma); cdma 291 drivers/gpu/host1x/hw/cdma_hw.c host1x_cdma_update_sync_queue(cdma, ch->dev); cdma 292 drivers/gpu/host1x/hw/cdma_hw.c mutex_unlock(&cdma->lock); cdma 298 drivers/gpu/host1x/hw/cdma_hw.c static int cdma_timeout_init(struct host1x_cdma *cdma, unsigned int syncpt) cdma 300 drivers/gpu/host1x/hw/cdma_hw.c INIT_DELAYED_WORK(&cdma->timeout.wq, cdma_timeout_handler); cdma 301 drivers/gpu/host1x/hw/cdma_hw.c cdma->timeout.initialized = true; cdma 309 drivers/gpu/host1x/hw/cdma_hw.c static void cdma_timeout_destroy(struct host1x_cdma *cdma) cdma 311 drivers/gpu/host1x/hw/cdma_hw.c if (cdma->timeout.initialized) cdma 312 drivers/gpu/host1x/hw/cdma_hw.c cancel_delayed_work(&cdma->timeout.wq); cdma 314 drivers/gpu/host1x/hw/cdma_hw.c cdma->timeout.initialized = false; cdma 21 drivers/gpu/host1x/hw/channel_hw.c static void trace_write_gather(struct host1x_cdma *cdma, struct host1x_bo *bo, cdma 24 drivers/gpu/host1x/hw/channel_hw.c struct device *dev = cdma_to_channel(cdma)->dev; cdma 52 drivers/gpu/host1x/hw/channel_hw.c struct host1x_cdma *cdma = &job->channel->cdma; cdma 66 drivers/gpu/host1x/hw/channel_hw.c trace_write_gather(cdma, g->bo, g->offset, g->words); cdma 73 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_push_wide(cdma, op1, op2, op3, op4); cdma 82 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_push(cdma, op1, op2); cdma 97 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_push(&job->channel->cdma, cdma 152 drivers/gpu/host1x/hw/channel_hw.c err = host1x_cdma_begin(&ch->cdma, job); cdma 163 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_push(&ch->cdma, cdma 182 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_push(&ch->cdma, cdma 189 drivers/gpu/host1x/hw/channel_hw.c host1x_cdma_end(&ch->cdma, job); cdma 160 drivers/gpu/host1x/hw/debug_hw.c unsigned int words, struct host1x_cdma *cdma, cdma 193 drivers/gpu/host1x/hw/debug_hw.c static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) cdma 197 drivers/gpu/host1x/hw/debug_hw.c list_for_each_entry(job, &cdma->sync_queue, list) { cdma 222 drivers/gpu/host1x/hw/debug_hw.c show_gather(o, g->base + g->offset, g->words, cdma, cdma 18 drivers/gpu/host1x/hw/debug_hw_1x01.c struct host1x_cdma *cdma = &ch->cdma; cdma 32 drivers/gpu/host1x/hw/debug_hw_1x01.c !ch->cdma.push_buffer.mapped) { cdma 63 drivers/gpu/host1x/hw/debug_hw_1x01.c show_channel_gathers(o, cdma); cdma 18 drivers/gpu/host1x/hw/debug_hw_1x06.c struct host1x_cdma *cdma = &ch->cdma; cdma 33 drivers/gpu/host1x/hw/debug_hw_1x06.c !ch->cdma.push_buffer.mapped) { cdma 48 drivers/gpu/host1x/hw/debug_hw_1x06.c show_channel_gathers(o, cdma); cdma 103 drivers/gpu/host1x/intr.c host1x_cdma_update(&channel->cdma); cdma 1791 sound/pci/cs4281.c struct cs4281_dma *cdma; cdma 1804 sound/pci/cs4281.c cdma = &chip->dma[dma]; cdma 1807 sound/pci/cs4281.c val = snd_cs4281_peekBA0(chip, cdma->regHDSR); cdma 1810 sound/pci/cs4281.c cdma->frag++; cdma 1811 sound/pci/cs4281.c if ((val & BA0_HDSR_DHTC) && !(cdma->frag & 1)) { cdma 1812 sound/pci/cs4281.c cdma->frag--; cdma 1817 sound/pci/cs4281.c if ((val & BA0_HDSR_DTC) && (cdma->frag & 1)) { cdma 1818 sound/pci/cs4281.c cdma->frag--; cdma 1824 sound/pci/cs4281.c snd_pcm_period_elapsed(cdma->substream);