if (dma_set_mask(&meye.mchip_dev->dev, 0xffffffff)) 
if (dma_set_mask(&meye.mchip_dev->dev, DMA_32BIT_MASK)) 
static int ptable_alloc(void){	u32 *pt;	int i;	memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable));	/* give only 32 bit DMA addresses */	if (dma_set_mask(&meye.mchip_dev->dev, 0xffffffff))		return -1;	meye.mchip_ptable_toc = dma_alloc_coherent(&meye.mchip_dev->dev,						   PAGE_SIZE,						   &meye.mchip_dmahandle,						   GFP_KERNEL);	if (!meye.mchip_ptable_toc) {		meye.mchip_dmahandle = 0;		return -1;	}	pt = meye.mchip_ptable_toc;	for (i = 0; i < MCHIP_NB_PAGES; i++) {		dma_addr_t dma;		meye.mchip_ptable[i] = dma_alloc_coherent(&meye.mchip_dev->dev,							  PAGE_SIZE,							  &dma,							  GFP_KERNEL);		if (!meye.mchip_ptable[i]) {			int j;			pt = meye.mchip_ptable_toc;			for (j = 0; j < i; ++j) {				dma = (dma_addr_t) *pt;				dma_free_coherent(&meye.mchip_dev->dev,						  PAGE_SIZE,						  meye.mchip_ptable[j], dma);				pt++;			}			dma_free_coherent(&meye.mchip_dev->dev,					  PAGE_SIZE,					  meye.mchip_ptable_toc,					  meye.mchip_dmahandle);			meye.mchip_ptable_toc = NULL;			meye.mchip_dmahandle = 0;			return -1;		}		*pt = (u32) dma;		pt++;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/d013a068a5675ecd8e71f585a44e7af0798a4307/meye.c/clean/drivers/media/video/meye.c