Lines Matching defs:dw
16 struct dw_dma *dw = to_dw_dma(dwc->chan.device);
23 cfghi |= DWC_CFGH_PROTCTL(dw->pdata->protctl);
91 static void dw_dma_set_device_name(struct dw_dma *dw, int id)
93 snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id);
96 static void dw_dma_disable(struct dw_dma *dw)
98 do_dw_dma_off(dw);
101 static void dw_dma_enable(struct dw_dma *dw)
103 do_dw_dma_on(dw);
108 struct dw_dma *dw;
110 dw = devm_kzalloc(chip->dev, sizeof(*dw), GFP_KERNEL);
111 if (!dw)
115 dw->initialize_chan = dw_dma_initialize_chan;
116 dw->suspend_chan = dw_dma_suspend_chan;
117 dw->resume_chan = dw_dma_resume_chan;
118 dw->prepare_ctllo = dw_dma_prepare_ctllo;
119 dw->encode_maxburst = dw_dma_encode_maxburst;
120 dw->bytes2block = dw_dma_bytes2block;
121 dw->block2bytes = dw_dma_block2bytes;
124 dw->set_device_name = dw_dma_set_device_name;
125 dw->disable = dw_dma_disable;
126 dw->enable = dw_dma_enable;
128 chip->dw = dw;