Lines Matching refs:stuff
47 if (rep.majorVersion > stuff->majorVersion ||
48 rep.minorVersion > stuff->minorVersion) {
49 rep.majorVersion = stuff->majorVersion;
50 rep.minorVersion = stuff->minorVersion;
97 ret = dixLookupWindow(&window, stuff->window, client, DixWriteAccess);
100 ret = dixLookupResourceByType((void **) &pixmap, stuff->pixmap, RT_PIXMAP, client, DixReadAccess);
107 VERIFY_REGION_OR_NONE(valid, stuff->valid, client, DixReadAccess);
108 VERIFY_REGION_OR_NONE(update, stuff->update, client, DixReadAccess);
110 VERIFY_CRTC_OR_NONE(target_crtc, stuff->target_crtc, client, DixReadAccess);
112 VERIFY_FENCE_OR_NONE(wait_fence, stuff->wait_fence, client, DixReadAccess);
113 VERIFY_FENCE_OR_NONE(idle_fence, stuff->idle_fence, client, DixWriteAccess);
115 if (stuff->options & ~(PresentAllOptions)) {
116 client->errorValue = stuff->options;
123 if (stuff->divisor == 0) {
124 if (stuff->remainder != 0) {
125 client->errorValue = (CARD32) stuff->remainder;
129 if (stuff->remainder >= stuff->divisor) {
130 client->errorValue = (CARD32) stuff->remainder;
141 ret = present_create_notifies(client, nnotifies, (xPresentNotify *) (stuff + 1), ¬ifies);
146 ret = present_pixmap(window, pixmap, stuff->serial, valid, update,
147 stuff->x_off, stuff->y_off, target_crtc,
148 wait_fence, idle_fence, stuff->options,
149 stuff->target_msc, stuff->divisor, stuff->remainder, notifies, nnotifies);
163 rc = dixLookupWindow(&window, stuff->window, client, DixReadAccess);
170 if (stuff->divisor == 0) {
171 if (stuff->remainder != 0) {
172 client->errorValue = (CARD32) stuff->remainder;
176 if (stuff->remainder >= stuff->divisor) {
177 client->errorValue = (CARD32) stuff->remainder;
182 return present_notify_msc(window, stuff->serial,
183 stuff->target_msc, stuff->divisor, stuff->remainder);
195 rc = dixLookupWindow(&window, stuff->window, client, DixGetAttrAccess);
199 if (stuff->eventMask & ~PresentAllEvents) {
200 client->errorValue = stuff->eventMask;
203 return present_select_input(client, stuff->eid, window, stuff->eventMask);
220 r = dixLookupWindow(&window, stuff->target, client, DixGetAttrAccess);
226 VERIFY_RR_CRTC(stuff->target, crtc, DixGetAttrAccess);
255 if (stuff->data >= PresentNumberRequests || !proc_present_vector[stuff->data])
257 return (*proc_present_vector[stuff->data]) (client);
266 swaps(&stuff->length);
267 swapl(&stuff->majorVersion);
268 swapl(&stuff->minorVersion);
269 return (*proc_present_vector[stuff->presentReqType]) (client);
278 swaps(&stuff->length);
279 swapl(&stuff->window);
280 swapl(&stuff->pixmap);
281 swapl(&stuff->valid);
282 swapl(&stuff->update);
283 swaps(&stuff->x_off);
284 swaps(&stuff->y_off);
285 swapll(&stuff->target_msc);
286 swapll(&stuff->divisor);
287 swapll(&stuff->remainder);
288 swapl(&stuff->idle_fence);
289 return (*proc_present_vector[stuff->presentReqType]) (client);
298 swaps(&stuff->length);
299 swapl(&stuff->window);
300 swapll(&stuff->target_msc);
301 swapll(&stuff->divisor);
302 swapll(&stuff->remainder);
303 return (*proc_present_vector[stuff->presentReqType]) (client);
312 swaps(&stuff->length);
313 swapl(&stuff->window);
314 swapl(&stuff->eventMask);
315 return (*proc_present_vector[stuff->presentReqType]) (client);
323 swaps(&stuff->length);
324 swapl(&stuff->target);
325 return (*proc_present_vector[stuff->presentReqType]) (client);
340 if (stuff->data >= PresentNumberRequests || !sproc_present_vector[stuff->data])
342 return (*sproc_present_vector[stuff->data]) (client);