Lines Matching refs:vid

46 void sti_vid_commit(struct sti_vid *vid,  in sti_vid_commit()  argument
63 val = readl(vid->regs + VID_CTL); in sti_vid_commit()
65 writel(val, vid->regs + VID_CTL); in sti_vid_commit()
72 writel((ydo << 16) | xdo, vid->regs + VID_VPO); in sti_vid_commit()
73 writel((yds << 16) | xds, vid->regs + VID_VPS); in sti_vid_commit()
76 void sti_vid_disable(struct sti_vid *vid) in sti_vid_disable() argument
81 val = readl(vid->regs + VID_CTL); in sti_vid_disable()
83 writel(val, vid->regs + VID_CTL); in sti_vid_disable()
86 static void sti_vid_init(struct sti_vid *vid) in sti_vid_init() argument
89 writel(VID_CTL_PSI_ENABLE | VID_CTL_IGNORE, vid->regs + VID_CTL); in sti_vid_init()
92 writel(VID_ALP_OPAQUE, vid->regs + VID_ALP); in sti_vid_init()
95 writel(VID_MPR0_BT709, vid->regs + VID_MPR0); in sti_vid_init()
96 writel(VID_MPR1_BT709, vid->regs + VID_MPR1); in sti_vid_init()
97 writel(VID_MPR2_BT709, vid->regs + VID_MPR2); in sti_vid_init()
98 writel(VID_MPR3_BT709, vid->regs + VID_MPR3); in sti_vid_init()
101 writel(VID_BC_DFLT, vid->regs + VID_BC); in sti_vid_init()
102 writel(VID_TINT_DFLT, vid->regs + VID_TINT); in sti_vid_init()
103 writel(VID_CSAT_DFLT, vid->regs + VID_CSAT); in sti_vid_init()
109 struct sti_vid *vid; in sti_vid_create() local
111 vid = devm_kzalloc(dev, sizeof(*vid), GFP_KERNEL); in sti_vid_create()
112 if (!vid) { in sti_vid_create()
117 vid->dev = dev; in sti_vid_create()
118 vid->regs = baseaddr; in sti_vid_create()
119 vid->id = id; in sti_vid_create()
121 sti_vid_init(vid); in sti_vid_create()
123 return vid; in sti_vid_create()