Lines Matching refs:sigbus_data

490 	struct wl_shm_sigbus_data *sigbus_data =  in sigbus_handler()  local
494 if (sigbus_data == NULL) { in sigbus_handler()
499 pool = sigbus_data->current_pool; in sigbus_handler()
511 sigbus_data->fallback_mapping_used = 1; in sigbus_handler()
526 struct wl_shm_sigbus_data *sigbus_data = data; in destroy_sigbus_data() local
528 free(sigbus_data); in destroy_sigbus_data()
586 struct wl_shm_sigbus_data *sigbus_data; in wl_shm_buffer_begin_access() local
593 sigbus_data = pthread_getspecific(wl_shm_sigbus_data_key); in wl_shm_buffer_begin_access()
594 if (sigbus_data == NULL) { in wl_shm_buffer_begin_access()
595 sigbus_data = zalloc(sizeof *sigbus_data); in wl_shm_buffer_begin_access()
596 if (sigbus_data == NULL) in wl_shm_buffer_begin_access()
599 pthread_setspecific(wl_shm_sigbus_data_key, sigbus_data); in wl_shm_buffer_begin_access()
602 assert(sigbus_data->current_pool == NULL || in wl_shm_buffer_begin_access()
603 sigbus_data->current_pool == pool); in wl_shm_buffer_begin_access()
605 sigbus_data->current_pool = pool; in wl_shm_buffer_begin_access()
606 sigbus_data->access_count++; in wl_shm_buffer_begin_access()
624 struct wl_shm_sigbus_data *sigbus_data; in wl_shm_buffer_end_access() local
629 sigbus_data = pthread_getspecific(wl_shm_sigbus_data_key); in wl_shm_buffer_end_access()
630 assert(sigbus_data && sigbus_data->access_count >= 1); in wl_shm_buffer_end_access()
632 if (--sigbus_data->access_count == 0) { in wl_shm_buffer_end_access()
633 if (sigbus_data->fallback_mapping_used) { in wl_shm_buffer_end_access()
637 sigbus_data->fallback_mapping_used = 0; in wl_shm_buffer_end_access()
640 sigbus_data->current_pool = NULL; in wl_shm_buffer_end_access()