Lines Matching refs:w
137 u16 w; in set_b1_regs() local
256 w = omap_readw(OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
257 w &= ~0x03; in set_b1_regs()
258 w |= lcd_dma.data_type; in set_b1_regs()
259 omap_writew(w, OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
261 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
263 w &= ~(0x03 << 6); in set_b1_regs()
265 w |= 1 << 1; /* Block interrupt enable */ in set_b1_regs()
267 w &= ~(1 << 1); in set_b1_regs()
268 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
274 w = omap_readw(OMAP1610_DMA_LCD_CCR); in set_b1_regs()
276 w |= (0x03 << 12); in set_b1_regs()
277 omap_writew(w, OMAP1610_DMA_LCD_CCR); in set_b1_regs()
286 u16 w; in lcd_dma_irq_handler() local
288 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in lcd_dma_irq_handler()
289 if (unlikely(!(w & (1 << 3)))) { in lcd_dma_irq_handler()
294 w |= (1 << 3); in lcd_dma_irq_handler()
295 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in lcd_dma_irq_handler()
298 lcd_dma.callback(w, lcd_dma.cb_data); in lcd_dma_irq_handler()
350 u16 w; in omap_enable_lcd_dma() local
360 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in omap_enable_lcd_dma()
361 w |= 1 << 8; in omap_enable_lcd_dma()
362 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in omap_enable_lcd_dma()
366 w = omap_readw(OMAP1610_DMA_LCD_CCR); in omap_enable_lcd_dma()
367 w |= 1 << 7; in omap_enable_lcd_dma()
368 omap_writew(w, OMAP1610_DMA_LCD_CCR); in omap_enable_lcd_dma()
383 u16 w; in omap_setup_lcd_dma() local
385 w = omap_readw(OMAP1610_DMA_LCD_CCR); in omap_setup_lcd_dma()
391 w |= 1 << 11; /* End_prog */ in omap_setup_lcd_dma()
393 w |= (3 << 8); /* Auto_init, repeat */ in omap_setup_lcd_dma()
394 omap_writew(w, OMAP1610_DMA_LCD_CCR); in omap_setup_lcd_dma()
401 u16 w; in omap_stop_lcd_dma() local
407 w = omap_readw(OMAP1610_DMA_LCD_CCR); in omap_stop_lcd_dma()
408 w &= ~(1 << 7); in omap_stop_lcd_dma()
409 omap_writew(w, OMAP1610_DMA_LCD_CCR); in omap_stop_lcd_dma()
411 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in omap_stop_lcd_dma()
412 w &= ~(1 << 8); in omap_stop_lcd_dma()
413 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in omap_stop_lcd_dma()
425 u16 w; in omap_init_lcd_dma() local
428 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in omap_init_lcd_dma()
429 w &= ~(1 << 8); in omap_init_lcd_dma()
430 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in omap_init_lcd_dma()