u16 w; 
OMAP_DMA_CSDP_REG(lch) &= ~0x03; OMAP_DMA_CSDP_REG(lch) |= data_type; 
void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,				  int frame_count, int sync_mode){	u16 w;	w = omap_readw(OMAP_DMA_CSDP(lch));	w &= ~0x03;	w |= data_type;	omap_writew(w, OMAP_DMA_CSDP(lch));	w = omap_readw(OMAP_DMA_CCR(lch));	w &= ~(1 << 5);	if (sync_mode == OMAP_DMA_SYNC_FRAME)		w |= 1 << 5;	omap_writew(w, OMAP_DMA_CCR(lch));	w = omap_readw(OMAP_DMA_CCR2(lch));	w &= ~(1 << 2);	if (sync_mode == OMAP_DMA_SYNC_BLOCK)		w |= 1 << 2;	omap_writew(w, OMAP_DMA_CCR2(lch));	omap_writew(elem_count, OMAP_DMA_CEN(lch));	omap_writew(frame_count, OMAP_DMA_CFN(lch));}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1a8bfa1eb998af6e650ad26201f7cae9f2a2fdc8/dma.c/buggy/arch/arm/plat-omap/dma.c