Lines Matching refs:pbd

104     struct PointerBarrierDevice *pbd = NULL;  in AllocBarrierDevice()  local
106 pbd = malloc(sizeof(struct PointerBarrierDevice)); in AllocBarrierDevice()
107 if (!pbd) in AllocBarrierDevice()
110 pbd->deviceid = -1; /* must be set by caller */ in AllocBarrierDevice()
111 pbd->barrier_event_id = 1; in AllocBarrierDevice()
112 pbd->release_event_id = 0; in AllocBarrierDevice()
113 pbd->hit = FALSE; in AllocBarrierDevice()
114 pbd->seen = FALSE; in AllocBarrierDevice()
115 xorg_list_init(&pbd->entry); in AllocBarrierDevice()
117 return pbd; in AllocBarrierDevice()
122 struct PointerBarrierDevice *pbd = NULL, *tmp = NULL; in FreePointerBarrierClient() local
124 xorg_list_for_each_entry_safe(pbd, tmp, &c->per_device, entry) { in FreePointerBarrierClient()
125 free(pbd); in FreePointerBarrierClient()
132 struct PointerBarrierDevice *pbd = NULL; in GetBarrierDevice() local
134 xorg_list_for_each_entry(pbd, &c->per_device, entry) { in GetBarrierDevice()
135 if (pbd->deviceid == deviceid) in GetBarrierDevice()
139 BUG_WARN(!pbd); in GetBarrierDevice()
140 return pbd; in GetBarrierDevice()
336 struct PointerBarrierDevice *pbd; in barrier_find_nearest() local
339 pbd = GetBarrierDevice(c, dev->id); in barrier_find_nearest()
340 if (pbd->seen) in barrier_find_nearest()
439 struct PointerBarrierDevice *pbd; in input_constrain_cursor() local
447 pbd = GetBarrierDevice(c, master->id); in input_constrain_cursor()
448 new_sequence = !pbd->hit; in input_constrain_cursor()
450 pbd->seen = TRUE; in input_constrain_cursor()
451 pbd->hit = TRUE; in input_constrain_cursor()
453 if (pbd->barrier_event_id == pbd->release_event_id) in input_constrain_cursor()
469 ev.event_id = pbd->barrier_event_id; in input_constrain_cursor()
472 ev.dt = new_sequence ? 0 : ms - pbd->last_timestamp; in input_constrain_cursor()
474 pbd->last_timestamp = ms; in input_constrain_cursor()
484 struct PointerBarrierDevice *pbd; in input_constrain_cursor() local
487 pbd = GetBarrierDevice(c, master->id); in input_constrain_cursor()
488 pbd->seen = FALSE; in input_constrain_cursor()
489 if (!pbd->hit) in input_constrain_cursor()
495 pbd->hit = FALSE; in input_constrain_cursor()
499 if (pbd->barrier_event_id == pbd->release_event_id) in input_constrain_cursor()
503 ev.event_id = pbd->barrier_event_id; in input_constrain_cursor()
506 ev.dt = ms - pbd->last_timestamp; in input_constrain_cursor()
508 pbd->last_timestamp = ms; in input_constrain_cursor()
518 pbd->barrier_event_id++; in input_constrain_cursor()
602 struct PointerBarrierDevice *pbd; in CreatePointerBarrierClient() local
607 pbd = AllocBarrierDevice(); in CreatePointerBarrierClient()
608 if (!pbd) { in CreatePointerBarrierClient()
612 pbd->deviceid = dev->id; in CreatePointerBarrierClient()
615 xorg_list_add(&pbd->entry, &ret->per_device); in CreatePointerBarrierClient()
656 struct PointerBarrierDevice *pbd; in BarrierFreeBarrier() local
681 pbd = GetBarrierDevice(c, dev->id); in BarrierFreeBarrier()
682 if (!pbd->hit) in BarrierFreeBarrier()
686 ev.event_id = pbd->barrier_event_id; in BarrierFreeBarrier()
687 ev.dt = ms - pbd->last_timestamp; in BarrierFreeBarrier()
708 struct PointerBarrierDevice *pbd; in add_master_func() local
715 pbd = AllocBarrierDevice(); in add_master_func()
716 pbd->deviceid = *deviceid; in add_master_func()
719 xorg_list_add(&pbd->entry, &barrier->per_device); in add_master_func()
725 struct PointerBarrierDevice *pbd; in remove_master_func() local
740 pbd = GetBarrierDevice(barrier, *deviceid); in remove_master_func()
742 if (pbd->hit) { in remove_master_func()
754 .dt = ms - pbd->last_timestamp, in remove_master_func()
756 .event_id = pbd->barrier_event_id, in remove_master_func()
764 xorg_list_del(&pbd->entry); in remove_master_func()
766 free(pbd); in remove_master_func()
878 struct PointerBarrierDevice *pbd; in ProcXIBarrierReleasePointer() local
905 pbd = GetBarrierDevice(barrier, dev->id); in ProcXIBarrierReleasePointer()
907 if (pbd->barrier_event_id == event_id) in ProcXIBarrierReleasePointer()
908 pbd->release_event_id = event_id; in ProcXIBarrierReleasePointer()