Lines Matching refs:pm2_WR

411 inline static void pm2_WR(struct pm2fb_info* p, s32 off, u32 v) {  in pm2_WR()  function
421 pm2_WR(p, PM2R_RD_PALETTE_WRITE_ADDRESS, idx); in pm2_RDAC_RD()
424 pm2_WR(p, PM2VR_RD_INDEX_LOW, idx & 0xff); in pm2_RDAC_RD()
438 pm2_WR(p, PM2R_RD_PALETTE_WRITE_ADDRESS, idx); in pm2_RDAC_WR()
441 pm2_WR(p, PM2VR_RD_INDEX_LOW, idx & 0xff); in pm2_RDAC_WR()
446 pm2_WR(p, index, v); in pm2_RDAC_WR()
451 pm2_WR(p, PM2VR_RD_INDEX_LOW, idx & 0xff); in pm2v_RDAC_RD()
459 pm2_WR(p, PM2VR_RD_INDEX_LOW, idx & 0xff); in pm2v_RDAC_WR()
461 pm2_WR(p, PM2VR_RD_INDEXED_DATA, v); in pm2v_RDAC_WR()
578 pm2_WR(i, PM2R_SYNC, 0); in wait_pm2()
628 pm2_WR(info, PM2VR_RD_INDEX_HIGH, PM2VI_RD_CLK0_PRESCALE >> 8); in pm2_set_pixclock()
632 pm2_WR(info, PM2VR_RD_INDEX_HIGH, 0); in pm2_set_pixclock()
641 pm2_WR(p, PM2R_RD_PALETTE_WRITE_ADDRESS, 0); in clear_palette()
645 pm2_WR(p, PM2R_RD_PALETTE_DATA, 0); in clear_palette()
646 pm2_WR(p, PM2R_RD_PALETTE_DATA, 0); in clear_palette()
647 pm2_WR(p, PM2R_RD_PALETTE_DATA, 0); in clear_palette()
655 pm2_WR(p, PM2R_RD_PALETTE_WRITE_ADDRESS, regno); in set_color()
657 pm2_WR(p, PM2R_RD_PALETTE_DATA, r); in set_color()
659 pm2_WR(p, PM2R_RD_PALETTE_DATA, g); in set_color()
661 pm2_WR(p, PM2R_RD_PALETTE_DATA, b); in set_color()
668 pm2_WR(i, PM2R_APERTURE_ONE, 0); in set_aperture()
669 pm2_WR(i, PM2R_APERTURE_TWO, 0); in set_aperture()
674 pm2_WR(i, PM2R_APERTURE_ONE, 0); in set_aperture()
675 pm2_WR(i, PM2R_APERTURE_TWO, 1); in set_aperture()
678 pm2_WR(i, PM2R_APERTURE_ONE, 2); in set_aperture()
679 pm2_WR(i, PM2R_APERTURE_TWO, 1); in set_aperture()
682 pm2_WR(i, PM2R_APERTURE_ONE, 1); in set_aperture()
683 pm2_WR(i, PM2R_APERTURE_TWO, 1); in set_aperture()
699 pm2_WR(i, PM2VR_RD_INDEX_HIGH, 0); in set_screen()
709 pm2_WR(i, PM2R_FB_READ_PIXEL, 0); in set_screen()
713 pm2_WR(i, PM2R_FB_READ_PIXEL, 1); in set_screen()
720 pm2_WR(i, PM2R_FB_READ_PIXEL, 2); in set_screen()
727 pm2_WR(i, PM2R_FB_READ_PIXEL, 4); in set_screen()
734 pm2_WR(i, PM2R_SCREEN_SIZE, (p->height<<16)|p->width); in set_screen()
735 pm2_WR(i, PM2R_SCISSOR_MODE, PM2F_SCREEN_SCISSOR_ENABLE); in set_screen()
736 pm2_WR(i, PM2R_FB_WRITE_MODE, PM2F_FB_WRITE_ENABLE); in set_screen()
737 pm2_WR(i, PM2R_FB_READ_MODE, partprod(xres)); in set_screen()
738 pm2_WR(i, PM2R_LB_READ_MODE, partprod(xres)); in set_screen()
739 pm2_WR(i, PM2R_TEXTURE_MAP_FORMAT, txtmap|partprod(xres)); in set_screen()
740 pm2_WR(i, PM2R_H_TOTAL, p->htotal); in set_screen()
741 pm2_WR(i, PM2R_HS_START, p->hsstart); in set_screen()
742 pm2_WR(i, PM2R_HS_END, p->hsend); in set_screen()
743 pm2_WR(i, PM2R_HG_END, p->hbend); in set_screen()
744 pm2_WR(i, PM2R_HB_END, p->hbend); in set_screen()
745 pm2_WR(i, PM2R_V_TOTAL, p->vtotal); in set_screen()
746 pm2_WR(i, PM2R_VS_START, p->vsstart); in set_screen()
747 pm2_WR(i, PM2R_VS_END, p->vsend); in set_screen()
748 pm2_WR(i, PM2R_VB_END, p->vbend); in set_screen()
749 pm2_WR(i, PM2R_SCREEN_STRIDE, p->stride); in set_screen()
751 pm2_WR(i, PM2R_SCREEN_BASE, p->base); in set_screen()
778 pm2_WR(i, PM2R_VIDEO_CONTROL, video); in set_screen()
793 pm2_WR(i, PM2R_CONFIG, PM2F_CONFIG_FB_WRITE_ENABLE| in pm2fb_pp_copy()
796 pm2_WR(i, PM2R_FB_PIXEL_OFFSET, 0); in pm2fb_pp_copy()
797 pm2_WR(i, PM2R_FB_SOURCE_DELTA, ((ysrc-y)&0xfff)<<16| in pm2fb_pp_copy()
800 pm2_WR(i, PM2R_RECTANGLE_ORIGIN, (y<<16)|(x>>scale)); in pm2fb_pp_copy()
801 pm2_WR(i, PM2R_RECTANGLE_SIZE, (h<<16)|((w+7)>>scale)); in pm2fb_pp_copy()
802 pm2_WR(i, PM2R_PACKED_DATA_LIMITS, (offset<<29)|(x<<16)|(x+w)); in pm2fb_pp_copy()
804 pm2_WR(i, PM2R_RENDER, PM2F_RENDER_RECTANGLE| in pm2fb_pp_copy()
821 pm2_WR(i, PM2R_CONFIG, PM2F_CONFIG_FB_WRITE_ENABLE| in pm2fb_block_op()
823 pm2_WR(i, PM2R_FB_PIXEL_OFFSET, 0); in pm2fb_block_op()
825 pm2_WR(i, PM2R_FB_SOURCE_DELTA, ((ysrc-y)&0xfff)<<16| in pm2fb_block_op()
828 pm2_WR(i, PM2R_FB_BLOCK_COLOR, color); in pm2fb_block_op()
829 pm2_WR(i, PM2R_RECTANGLE_ORIGIN, (y<<16)|x); in pm2fb_block_op()
830 pm2_WR(i, PM2R_RECTANGLE_SIZE, (h<<16)|w); in pm2fb_block_op()
832 pm2_WR(i, PM2R_RENDER, PM2F_RENDER_RECTANGLE| in pm2fb_block_op()
846 pm2_WR(p, PM2VR_RD_INDEX_HIGH, 0); in pm2fb_reset()
847 pm2_WR(p, PM2R_RESET_STATUS, 0); in pm2fb_reset()
853 pm2_WR(p, PM2R_FIFO_DISCON, 1); in pm2fb_reset()
859 pm2_WR(p, PM2R_CHIP_CONFIG, pm2_RD(p, PM2R_CHIP_CONFIG)& in pm2fb_reset()
861 pm2_WR(p, PM2R_BYPASS_WRITE_MASK, ~(0L)); in pm2fb_reset()
862 pm2_WR(p, PM2R_FRAMEBUFFER_WRITE_MASK, ~(0L)); in pm2fb_reset()
863 pm2_WR(p, PM2R_FIFO_CONTROL, 0); in pm2fb_reset()
864 pm2_WR(p, PM2R_FILTER_MODE, PM2F_SYNCHRONIZATION); in pm2fb_reset()
865 pm2_WR(p, PM2R_APERTURE_ONE, 0); in pm2fb_reset()
866 pm2_WR(p, PM2R_APERTURE_TWO, 0); in pm2fb_reset()
867 pm2_WR(p, PM2R_LB_READ_FORMAT, 0); in pm2fb_reset()
868 pm2_WR(p, PM2R_LB_WRITE_FORMAT, 0); in pm2fb_reset()
869 pm2_WR(p, PM2R_LB_READ_MODE, 0); in pm2fb_reset()
870 pm2_WR(p, PM2R_LB_SOURCE_OFFSET, 0); in pm2fb_reset()
871 pm2_WR(p, PM2R_FB_SOURCE_OFFSET, 0); in pm2fb_reset()
872 pm2_WR(p, PM2R_FB_PIXEL_OFFSET, 0); in pm2fb_reset()
873 pm2_WR(p, PM2R_WINDOW_ORIGIN, 0); in pm2fb_reset()
874 pm2_WR(p, PM2R_FB_WINDOW_BASE, 0); in pm2fb_reset()
875 pm2_WR(p, PM2R_LB_WINDOW_BASE, 0); in pm2fb_reset()
876 pm2_WR(p, PM2R_FB_SOFT_WRITE_MASK, ~(0L)); in pm2fb_reset()
877 pm2_WR(p, PM2R_FB_HARD_WRITE_MASK, ~(0L)); in pm2fb_reset()
878 pm2_WR(p, PM2R_FB_READ_PIXEL, 0); in pm2fb_reset()
879 pm2_WR(p, PM2R_DITHER_MODE, 0); in pm2fb_reset()
880 pm2_WR(p, PM2R_AREA_STIPPLE_MODE, 0); in pm2fb_reset()
881 pm2_WR(p, PM2R_DEPTH_MODE, 0); in pm2fb_reset()
882 pm2_WR(p, PM2R_STENCIL_MODE, 0); in pm2fb_reset()
883 pm2_WR(p, PM2R_TEXTURE_ADDRESS_MODE, 0); in pm2fb_reset()
884 pm2_WR(p, PM2R_TEXTURE_READ_MODE, 0); in pm2fb_reset()
885 pm2_WR(p, PM2R_TEXEL_LUT_MODE, 0); in pm2fb_reset()
886 pm2_WR(p, PM2R_YUV_MODE, 0); in pm2fb_reset()
887 pm2_WR(p, PM2R_COLOR_DDA_MODE, 0); in pm2fb_reset()
888 pm2_WR(p, PM2R_TEXTURE_COLOR_MODE, 0); in pm2fb_reset()
889 pm2_WR(p, PM2R_FOG_MODE, 0); in pm2fb_reset()
890 pm2_WR(p, PM2R_ALPHA_BLEND_MODE, 0); in pm2fb_reset()
891 pm2_WR(p, PM2R_LOGICAL_OP_MODE, 0); in pm2fb_reset()
892 pm2_WR(p, PM2R_STATISTICS_MODE, 0); in pm2fb_reset()
893 pm2_WR(p, PM2R_SCISSOR_MODE, 0); in pm2fb_reset()
1009 pm2_WR(p, PM2R_MEM_CONTROL, 0); in cvppc_init()
1010 pm2_WR(p, PM2R_BOOT_ADDRESS, 0x30); in cvppc_init()
1013 pm2_WR(p, PM2R_MEM_CONFIG, CVPPC_MEM_CONFIG_OLD); in cvppc_init()
1015 pm2_WR(p, PM2R_MEM_CONFIG, CVPPC_MEM_CONFIG_NEW); in cvppc_init()
1152 pm2_WR(p, PM2R_MEM_CONTROL, pci->mem_control); in pm2pci_init()
1153 pm2_WR(p, PM2R_BOOT_ADDRESS, pci->boot_address); in pm2pci_init()
1155 pm2_WR(p, PM2R_MEM_CONFIG, pci->mem_config); in pm2pci_init()
1192 pm2_WR(i, PM2R_VIDEO_CONTROL, video); in pm2fb_blank()
1205 pm2_WR(i, PM2R_SCREEN_BASE, i->current_par.base); in pm2fb_pan_display()
1722 pm2_WR(i, PM2R_SCREEN_BASE, p->base); in pm2fb_set_par()
1871 pm2_WR(fb, PM2VR_RD_INDEX_HIGH, PM2VI_RD_CURSOR_PALETTE >> 8); in pm2v_set_cursor_color()
1874 pm2_WR(fb, PM2VR_RD_INDEX_HIGH, 0); in pm2v_set_cursor_color()
1884 pm2_WR(fb, PM2VR_RD_INDEX_HIGH, PM2VI_RD_CURSOR_PATTERN >> 8); in pm2v_set_cursor_shape()
1913 pm2_WR(fb, PM2VR_RD_INDEX_HIGH, 0); in pm2v_set_cursor_shape()