Lines Matching refs:upd
68 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_reset() local
74 slot = &upd->slots[id]; in atmel_hlcdc_layer_update_reset()
89 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_apply() local
98 if (upd->pending < 0 || upd->pending > 1) in atmel_hlcdc_layer_update_apply()
101 slot = &upd->slots[upd->pending]; in atmel_hlcdc_layer_update_apply()
172 atmel_hlcdc_layer_update_reset(layer, upd->pending); in atmel_hlcdc_layer_update_apply()
174 upd->pending = -1; in atmel_hlcdc_layer_update_apply()
304 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_disable() local
336 if (upd->pending >= 0) { in atmel_hlcdc_layer_disable()
337 atmel_hlcdc_layer_update_reset(layer, upd->pending); in atmel_hlcdc_layer_disable()
338 upd->pending = -1; in atmel_hlcdc_layer_disable()
349 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_start() local
368 upd->next = upd->pending ? 0 : 1; in atmel_hlcdc_layer_update_start()
370 slot = &upd->slots[upd->next]; in atmel_hlcdc_layer_update_start()
395 if (upd->pending >= 0) { in atmel_hlcdc_layer_update_start()
397 upd->slots[upd->pending].configs, in atmel_hlcdc_layer_update_start()
400 upd->slots[upd->pending].updated_configs, in atmel_hlcdc_layer_update_start()
404 slot->fb_flip->fb = upd->slots[upd->pending].fb_flip->fb; in atmel_hlcdc_layer_update_start()
405 if (upd->slots[upd->pending].fb_flip->fb) { in atmel_hlcdc_layer_update_start()
407 upd->slots[upd->pending].fb_flip->fb; in atmel_hlcdc_layer_update_start()
409 upd->slots[upd->pending].fb_flip->ngems; in atmel_hlcdc_layer_update_start()
416 upd->slots[upd->next].configs, in atmel_hlcdc_layer_update_start()
427 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_rollback() local
429 atmel_hlcdc_layer_update_reset(layer, upd->next); in atmel_hlcdc_layer_update_rollback()
430 upd->next = -1; in atmel_hlcdc_layer_update_rollback()
437 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_set_fb() local
445 if (upd->next < 0 || upd->next > 1) in atmel_hlcdc_layer_update_set_fb()
454 slot = &upd->slots[upd->next]; in atmel_hlcdc_layer_update_set_fb()
480 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_cfg() local
483 if (upd->next < 0 || upd->next > 1) in atmel_hlcdc_layer_update_cfg()
489 slot = &upd->slots[upd->next]; in atmel_hlcdc_layer_update_cfg()
498 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_commit() local
502 if (upd->next < 0 || upd->next > 1) in atmel_hlcdc_layer_update_commit()
505 slot = &upd->slots[upd->next]; in atmel_hlcdc_layer_update_commit()
512 if (upd->pending >= 0) in atmel_hlcdc_layer_update_commit()
513 atmel_hlcdc_layer_update_reset(layer, upd->pending); in atmel_hlcdc_layer_update_commit()
515 upd->pending = upd->next; in atmel_hlcdc_layer_update_commit()
516 upd->next = -1; in atmel_hlcdc_layer_update_commit()
524 upd->next = -1; in atmel_hlcdc_layer_update_commit()
571 struct atmel_hlcdc_layer_update *upd = &layer->update; in atmel_hlcdc_layer_update_init() local
588 upd->slots[i].updated_configs = buffer; in atmel_hlcdc_layer_update_init()
590 upd->slots[i].configs = buffer; in atmel_hlcdc_layer_update_init()
594 upd->pending = -1; in atmel_hlcdc_layer_update_init()
595 upd->next = -1; in atmel_hlcdc_layer_update_init()