Lines Matching refs:layer
253 static void mxr_irq_layer_handle(struct mxr_layer *layer) in mxr_irq_layer_handle() argument
255 struct list_head *head = &layer->enq_list; in mxr_irq_layer_handle()
259 if (layer == NULL) in mxr_irq_layer_handle()
262 spin_lock(&layer->enq_slock); in mxr_irq_layer_handle()
263 if (layer->state == MXR_LAYER_IDLE) in mxr_irq_layer_handle()
266 done = layer->shadow_buf; in mxr_irq_layer_handle()
267 layer->shadow_buf = layer->update_buf; in mxr_irq_layer_handle()
270 if (layer->state != MXR_LAYER_STREAMING) in mxr_irq_layer_handle()
271 layer->update_buf = NULL; in mxr_irq_layer_handle()
276 layer->update_buf = next; in mxr_irq_layer_handle()
279 layer->ops.buffer_set(layer, layer->update_buf); in mxr_irq_layer_handle()
281 if (done && done != layer->shadow_buf) in mxr_irq_layer_handle()
285 spin_unlock(&layer->enq_slock); in mxr_irq_layer_handle()
319 mxr_irq_layer_handle(mdev->layer[i]); in mxr_irq_handler()