Searched refs:dma_ctx (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/hid/intel-thc-hid/intel-thc/ |
| H A D | intel-thc-dma.c | 80 if (dev->dma_ctx->use_write_interrupts) in dma_set_start_bit() 323 struct thc_dma_context *dma_ctx; in thc_dma_init() local 325 dma_ctx = devm_kzalloc(dev->dev, sizeof(*dma_ctx), GFP_KERNEL); in thc_dma_init() 326 if (!dma_ctx) in thc_dma_init() 329 dev->dma_ctx = dma_ctx; in thc_dma_init() 331 dma_ctx->dma_config[THC_RXDMA1].dma_channel = THC_RXDMA1; in thc_dma_init() 332 dma_ctx->dma_config[THC_RXDMA2].dma_channel = THC_RXDMA2; in thc_dma_init() 333 dma_ctx->dma_config[THC_TXDMA].dma_channel = THC_TXDMA; in thc_dma_init() 334 dma_ctx->dma_config[THC_SWDMA].dma_channel = THC_SWDMA; in thc_dma_init() 336 dma_ctx->dma_config[THC_RXDMA1].dir = DMA_FROM_DEVICE; in thc_dma_init() [all …]
|
| H A D | intel-thc-dev.h | 80 struct thc_dma_context *dma_ctx; member
|
| H A D | intel-thc-dev.c | 219 thc_dev->dma_ctx = thc_dma_init(thc_dev); in thc_dev_init() 220 if (!thc_dev->dma_ctx) { in thc_dev_init()
|
| /linux/drivers/media/platform/ti/cal/ |
| H A D | cal.c | 382 val = cal_read(ctx->cal, CAL_WR_DMA_CTRL(ctx->dma_ctx)); in cal_ctx_wr_dma_config() 391 cal_write(ctx->cal, CAL_WR_DMA_CTRL(ctx->dma_ctx), val); in cal_ctx_wr_dma_config() 392 ctx_dbg(3, ctx, "CAL_WR_DMA_CTRL(%d) = 0x%08x\n", ctx->dma_ctx, in cal_ctx_wr_dma_config() 393 cal_read(ctx->cal, CAL_WR_DMA_CTRL(ctx->dma_ctx))); in cal_ctx_wr_dma_config() 395 cal_write_field(ctx->cal, CAL_WR_DMA_OFST(ctx->dma_ctx), in cal_ctx_wr_dma_config() 397 ctx_dbg(3, ctx, "CAL_WR_DMA_OFST(%d) = 0x%08x\n", ctx->dma_ctx, in cal_ctx_wr_dma_config() 398 cal_read(ctx->cal, CAL_WR_DMA_OFST(ctx->dma_ctx))); in cal_ctx_wr_dma_config() 400 val = cal_read(ctx->cal, CAL_WR_DMA_XSIZE(ctx->dma_ctx)); in cal_ctx_wr_dma_config() 409 cal_write(ctx->cal, CAL_WR_DMA_XSIZE(ctx->dma_ctx), val); in cal_ctx_wr_dma_config() 410 ctx_dbg(3, ctx, "CAL_WR_DMA_XSIZE(%d) = 0x%08x\n", ctx->dma_ctx, in cal_ctx_wr_dma_config() [all …]
|
| H A D | cal.h | 244 u8 dma_ctx; member 269 cal_dbg(level, (ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg) 271 cal_info((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg) 273 cal_err((ctx)->cal, "ctx%u: " fmt, (ctx)->dma_ctx, ##arg)
|
| H A D | cal-video.c | 997 bool enable = (ctx->dma_ctx == 0 && in cal_ctx_v4l2_register() 999 (ctx->dma_ctx == 1 && in cal_ctx_v4l2_register() 1008 ctx->dma_ctx); in cal_ctx_v4l2_register() 1022 ctx->dma_ctx); in cal_ctx_v4l2_register() 1075 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init()
|