Lines Matching full:flow

45 	u32 flow;  member
63 struct ipu_flow flow[IPUV3_NUM_FLOWS]; member
81 struct ipu_flow *flow = to_flow(dp); in ipu_dp_set_global_alpha() local
82 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_set_global_alpha()
87 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
92 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
95 reg = readl(flow->base + DP_GRAPH_WIND_CTRL) & 0x00FFFFFFL; in ipu_dp_set_global_alpha()
97 flow->base + DP_GRAPH_WIND_CTRL); in ipu_dp_set_global_alpha()
99 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
100 writel(reg | DP_COM_CONF_GWAM, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
102 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
103 writel(reg & ~DP_COM_CONF_GWAM, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
116 struct ipu_flow *flow = to_flow(dp); in ipu_dp_set_window_pos() local
117 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_set_window_pos()
119 writel((x_pos << 16) | y_pos, flow->base + DP_FG_POS); in ipu_dp_set_window_pos()
127 static void ipu_dp_csc_init(struct ipu_flow *flow, in ipu_dp_csc_init() argument
134 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_csc_init()
138 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_csc_init()
143 writel(0x099 | (0x12d << 16), flow->base + DP_CSC_A_0); in ipu_dp_csc_init()
144 writel(0x03a | (0x3a9 << 16), flow->base + DP_CSC_A_1); in ipu_dp_csc_init()
145 writel(0x356 | (0x100 << 16), flow->base + DP_CSC_A_2); in ipu_dp_csc_init()
146 writel(0x100 | (0x329 << 16), flow->base + DP_CSC_A_3); in ipu_dp_csc_init()
148 flow->base + DP_CSC_0); in ipu_dp_csc_init()
150 flow->base + DP_CSC_1); in ipu_dp_csc_init()
152 writel(0x095 | (0x000 << 16), flow->base + DP_CSC_A_0); in ipu_dp_csc_init()
153 writel(0x0cc | (0x095 << 16), flow->base + DP_CSC_A_1); in ipu_dp_csc_init()
154 writel(0x3ce | (0x398 << 16), flow->base + DP_CSC_A_2); in ipu_dp_csc_init()
155 writel(0x095 | (0x0ff << 16), flow->base + DP_CSC_A_3); in ipu_dp_csc_init()
157 flow->base + DP_CSC_0); in ipu_dp_csc_init()
159 flow->base + DP_CSC_1); in ipu_dp_csc_init()
164 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_csc_init()
171 struct ipu_flow *flow = to_flow(dp); in ipu_dp_setup_channel() local
172 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_setup_channel()
179 flow->out_cs = out; in ipu_dp_setup_channel()
181 if (flow->foreground.in_cs == flow->background.in_cs) { in ipu_dp_setup_channel()
186 ipu_dp_csc_init(flow, flow->foreground.in_cs, flow->out_cs, in ipu_dp_setup_channel()
189 if (flow->foreground.in_cs == IPUV3_COLORSPACE_UNKNOWN || in ipu_dp_setup_channel()
190 flow->foreground.in_cs == flow->out_cs) in ipu_dp_setup_channel()
195 ipu_dp_csc_init(flow, flow->background.in_cs, in ipu_dp_setup_channel()
196 flow->out_cs, DP_COM_CONF_CSC_DEF_BG); in ipu_dp_setup_channel()
198 ipu_dp_csc_init(flow, flow->foreground.in_cs, in ipu_dp_setup_channel()
199 flow->out_cs, DP_COM_CONF_CSC_DEF_FG); in ipu_dp_setup_channel()
229 struct ipu_flow *flow = to_flow(dp); in ipu_dp_enable_channel() local
230 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_enable_channel()
238 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_enable_channel()
240 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_enable_channel()
252 struct ipu_flow *flow = to_flow(dp); in ipu_dp_disable_channel() local
253 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_disable_channel()
263 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_disable_channel()
270 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_disable_channel()
272 writel(0, flow->base + DP_FG_POS); in ipu_dp_disable_channel()
297 struct ipu_dp *ipu_dp_get(struct ipu_soc *ipu, unsigned int flow) in ipu_dp_get() argument
302 if ((flow >> 1) >= IPUV3_NUM_FLOWS) in ipu_dp_get()
305 if (flow & 1) in ipu_dp_get()
306 dp = &priv->flow[flow >> 1].foreground; in ipu_dp_get()
308 dp = &priv->flow[flow >> 1].background; in ipu_dp_get()
345 priv->flow[i].background.in_cs = IPUV3_COLORSPACE_UNKNOWN; in ipu_dp_init()
346 priv->flow[i].foreground.in_cs = IPUV3_COLORSPACE_UNKNOWN; in ipu_dp_init()
347 priv->flow[i].foreground.foreground = true; in ipu_dp_init()
348 priv->flow[i].base = priv->base + ipu_dp_flow_base[i]; in ipu_dp_init()
349 priv->flow[i].priv = priv; in ipu_dp_init()