Lines Matching +full:1 +full:w
42 return 1; in omap_lcd_dma_running()
47 return 1; in omap_lcd_dma_running()
137 u16 w; in set_b1_regs() local
145 es = 1; in set_b1_regs()
159 xscale = lcd_dma.xscale ? lcd_dma.xscale : 1; in set_b1_regs()
160 yscale = lcd_dma.yscale ? lcd_dma.yscale : 1; in set_b1_regs()
165 #define PIXSTEP(sx, sy, dx, dy) (PIXADDR(dx, dy) - PIXADDR(sx, sy) - es + 1) in set_b1_regs()
171 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
177 ei = PIXSTEP(0, 0, 1, 0); in set_b1_regs()
178 fi = PIXSTEP(lcd_dma.xres - 1, 0, 0, 1); in set_b1_regs()
180 top = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs()
181 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
182 ei = PIXSTEP(1, 0, 0, 0); in set_b1_regs()
183 fi = PIXSTEP(0, 0, lcd_dma.xres - 1, 1); in set_b1_regs()
190 top = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
191 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs()
192 ei = PIXSTEP(0, 1, 0, 0); in set_b1_regs()
193 fi = PIXSTEP(0, 0, 1, lcd_dma.yres - 1); in set_b1_regs()
195 top = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
197 ei = PIXSTEP(0, 1, 0, 0); in set_b1_regs()
198 fi = PIXSTEP(1, 0, 0, lcd_dma.yres - 1); in set_b1_regs()
205 top = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
207 ei = PIXSTEP(1, 0, 0, 0); in set_b1_regs()
208 fi = PIXSTEP(0, 1, lcd_dma.xres - 1, 0); in set_b1_regs()
210 top = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
211 bottom = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs()
212 ei = PIXSTEP(0, 0, 1, 0); in set_b1_regs()
213 fi = PIXSTEP(lcd_dma.xres - 1, 1, 0, 0); in set_b1_regs()
220 top = PIXADDR(lcd_dma.xres - 1, 0); in set_b1_regs()
221 bottom = PIXADDR(0, lcd_dma.yres - 1); in set_b1_regs()
222 ei = PIXSTEP(0, 0, 0, 1); in set_b1_regs()
223 fi = PIXSTEP(1, lcd_dma.yres - 1, 0, 0); in set_b1_regs()
226 bottom = PIXADDR(lcd_dma.xres - 1, lcd_dma.yres - 1); in set_b1_regs()
227 ei = PIXSTEP(0, 0, 0, 1); in set_b1_regs()
228 fi = PIXSTEP(0, lcd_dma.yres - 1, 1, 0); in set_b1_regs()
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()
313 lcd_dma.reserved = 1; in omap_request_lcd_dma()
341 omap_writew(omap_readw(OMAP1610_DMA_LCD_CCR) & ~1, in omap_free_lcd_dma()
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()
364 lcd_dma.active = 1; 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()