Lines Matching defs:polarity
879 void via_set_sync_polarity(u32 devices, u8 polarity)
881 if (polarity & ~(VIA_HSYNC_NEGATIVE | VIA_VSYNC_NEGATIVE)) {
882 printk(KERN_WARNING "viafb: Unsupported polarity: %d\n",
883 polarity);
888 via_write_misc_reg_mask(polarity << 6, 0xC0);
890 via_write_reg_mask(VIACR, 0x9B, polarity << 5, 0x60);
892 via_write_reg_mask(VIACR, 0x99, polarity << 5, 0x60);
894 via_write_reg_mask(VIACR, 0x97, polarity << 5, 0x60);
1735 u8 polarity = 0;
1738 polarity |= VIA_HSYNC_NEGATIVE;
1740 polarity |= VIA_VSYNC_NEGATIVE;
1741 return polarity;