Lines Matching refs:pCblk
57 dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
59 (dmacHw_MISC_t *) dmacHw_REG_MISC_BASE(pCblk->module);
61 switch (pCblk->channel) {
115 dmacHw_CBLK_t *pCblk;
117 pCblk = dmacHw_HANDLE_TO_CBLK(handle);
120 if (CHANNEL_BUSY(pCblk->module, pCblk->channel)) {
125 if (pCblk->varDataStarted) {
126 if (pCblk->descUpdated) {
127 pCblk->descUpdated = 0;
130 dmacHw_REG_LLP(pCblk->module,
131 pCblk->channel) +
136 dmacHw_SET_SAR(pCblk->module, pCblk->channel,
138 dmacHw_SET_DAR(pCblk->module, pCblk->channel,
140 dmacHw_REG_CTL_LO(pCblk->module,
141 pCblk->channel) =
143 dmacHw_REG_CTL_HI(pCblk->module,
144 pCblk->channel) =
197 dmacHw_SET_SAR(pCblk->module, pCblk->channel, pProg->sar);
198 dmacHw_SET_DAR(pCblk->module, pCblk->channel, pProg->dar);
199 dmacHw_SET_LLP(pCblk->module, pCblk->channel,
201 dmacHw_REG_CTL_LO(pCblk->module, pCblk->channel) =
203 dmacHw_REG_CTL_HI(pCblk->module, pCblk->channel) =
213 dmacHw_DMA_START(pCblk->module, pCblk->channel);
318 dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
319 int module = pCblk->module;
320 int channel = pCblk->channel;
323 memset((void *)pCblk, 0, sizeof(dmacHw_CBLK_t));
324 pCblk->module = module;
325 pCblk->channel = channel;
328 dmacHw_DMA_ENABLE(pCblk->module);
330 dmacHw_RESET_CONTROL_LO(pCblk->module, pCblk->channel);
331 dmacHw_RESET_CONTROL_HI(pCblk->module, pCblk->channel);
332 dmacHw_RESET_CONFIG_LO(pCblk->module, pCblk->channel);
333 dmacHw_RESET_CONFIG_HI(pCblk->module, pCblk->channel);
336 dmacHw_TRAN_INT_CLEAR(pCblk->module, pCblk->channel);
337 dmacHw_BLOCK_INT_CLEAR(pCblk->module, pCblk->channel);
338 dmacHw_ERROR_INT_CLEAR(pCblk->module, pCblk->channel);
341 dmacHw_TRAN_INT_DISABLE(pCblk->module, pCblk->channel);
342 dmacHw_BLOCK_INT_DISABLE(pCblk->module, pCblk->channel);
343 dmacHw_STRAN_INT_DISABLE(pCblk->module, pCblk->channel);
344 dmacHw_DTRAN_INT_DISABLE(pCblk->module, pCblk->channel);
345 dmacHw_ERROR_INT_DISABLE(pCblk->module, pCblk->channel);
453 dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
458 pCblk->varDataStarted = 0;
459 pCblk->userData = NULL;
472 dmacHw_SET_CHANNEL_PRIORITY(pCblk->module, pCblk->channel,
479 dmacHw_SET_DSTATAR(pCblk->module, pCblk->channel,
487 dmacHw_SET_SSTATAR(pCblk->module, pCblk->channel,
491 dmacHw_GET_CONFIG_HI(pCblk->module, pCblk->channel) = cfgHigh;
494 dmacHw_TRAN_INT_CLEAR(pCblk->module, pCblk->channel);
495 dmacHw_BLOCK_INT_CLEAR(pCblk->module, pCblk->channel);
496 dmacHw_ERROR_INT_CLEAR(pCblk->module, pCblk->channel);
500 dmacHw_BLOCK_INT_ENABLE(pCblk->module, pCblk->channel);
502 dmacHw_BLOCK_INT_DISABLE(pCblk->module, pCblk->channel);
506 dmacHw_TRAN_INT_ENABLE(pCblk->module, pCblk->channel);
508 dmacHw_TRAN_INT_DISABLE(pCblk->module, pCblk->channel);
512 dmacHw_ERROR_INT_ENABLE(pCblk->module, pCblk->channel);
514 dmacHw_ERROR_INT_DISABLE(pCblk->module, pCblk->channel);
523 dmacHw_REG_SGR_LO(pCblk->module, pCblk->channel) =
538 dmacHw_REG_DSR_LO(pCblk->module, pCblk->channel) =
562 dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
564 if (CHANNEL_BUSY(pCblk->module, pCblk->channel)) {
566 } else if (dmacHw_REG_INT_RAW_ERROR(pCblk->module) &
567 (0x00000001 << pCblk->channel)) {
898 dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);
902 return dmacHw_GET_NUM_CHANNEL(pCblk->module);
906 (pCblk->module, pCblk->module) + 2)) - 8;
908 return dmacHw_GET_NUM_INTERFACE(pCblk->module);
910 return 32 << dmacHw_GET_CHANNEL_DATA_WIDTH(pCblk->module,
911 pCblk->channel);