Lines Matching refs:ssd130x_state
451 struct ssd130x_plane_state *ssd130x_state, in ssd130x_update_rect() argument
456 u8 *buf = ssd130x_state->buffer; in ssd130x_update_rect()
457 u8 *data_array = ssd130x_state->data_array; in ssd130x_update_rect()
554 struct ssd130x_plane_state *ssd130x_state) in ssd130x_clear_screen() argument
558 u8 *data_array = ssd130x_state->data_array; in ssd130x_clear_screen()
604 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(state); in ssd130x_fb_blit_rect() local
605 u8 *buf = ssd130x_state->buffer; in ssd130x_fb_blit_rect()
625 ssd130x_update_rect(ssd130x, ssd130x_state, rect); in ssd130x_fb_blit_rect()
636 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(plane_state); in ssd130x_primary_plane_helper_atomic_check() local
653 ssd130x_state->buffer = kcalloc(pitch, ssd130x->height, GFP_KERNEL); in ssd130x_primary_plane_helper_atomic_check()
654 if (!ssd130x_state->buffer) in ssd130x_primary_plane_helper_atomic_check()
657 ssd130x_state->data_array = kcalloc(ssd130x->width, pages, GFP_KERNEL); in ssd130x_primary_plane_helper_atomic_check()
658 if (!ssd130x_state->data_array) { in ssd130x_primary_plane_helper_atomic_check()
659 kfree(ssd130x_state->buffer); in ssd130x_primary_plane_helper_atomic_check()
661 ssd130x_state->buffer = NULL; in ssd130x_primary_plane_helper_atomic_check()
701 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(plane->state); in ssd130x_primary_plane_helper_atomic_disable() local
707 ssd130x_clear_screen(ssd130x, ssd130x_state); in ssd130x_primary_plane_helper_atomic_disable()
715 struct ssd130x_plane_state *ssd130x_state; in ssd130x_primary_plane_reset() local
719 ssd130x_state = kzalloc(sizeof(*ssd130x_state), GFP_KERNEL); in ssd130x_primary_plane_reset()
720 if (!ssd130x_state) in ssd130x_primary_plane_reset()
723 __drm_gem_reset_shadow_plane(plane, &ssd130x_state->base); in ssd130x_primary_plane_reset()
730 struct ssd130x_plane_state *ssd130x_state; in ssd130x_primary_plane_duplicate_state() local
736 ssd130x_state = kmemdup(old_ssd130x_state, sizeof(*ssd130x_state), GFP_KERNEL); in ssd130x_primary_plane_duplicate_state()
737 if (!ssd130x_state) in ssd130x_primary_plane_duplicate_state()
741 ssd130x_state->buffer = NULL; in ssd130x_primary_plane_duplicate_state()
742 ssd130x_state->data_array = NULL; in ssd130x_primary_plane_duplicate_state()
744 new_shadow_plane_state = &ssd130x_state->base; in ssd130x_primary_plane_duplicate_state()
754 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(state); in ssd130x_primary_plane_destroy_state() local
756 kfree(ssd130x_state->data_array); in ssd130x_primary_plane_destroy_state()
757 kfree(ssd130x_state->buffer); in ssd130x_primary_plane_destroy_state()
759 __drm_gem_destroy_shadow_plane_state(&ssd130x_state->base); in ssd130x_primary_plane_destroy_state()
761 kfree(ssd130x_state); in ssd130x_primary_plane_destroy_state()