Lines Matching refs:rc

146     int rc;
151 rc = AllocDevicePair(client, name, &ptr, &keybd,
153 if (rc != Success)
160 rc = AllocXTestDevice(client, name, &XTestptr, &XTestkeybd, ptr, keybd);
161 if (rc != Success)
200 return rc;
221 int rc = Success;
227 rc = dixLookupDevice(&ptr, r->deviceid, client, DixDestroyAccess);
228 if (rc != Success)
234 rc = BadDevice;
241 rc = BadDevice;
247 rc = dixLookupDevice(&ptr, ptr->id, client, DixDestroyAccess);
248 if (rc != Success)
251 rc = dixLookupDevice(&keybd, keybd->id, client, DixDestroyAccess);
252 if (rc != Success)
256 rc = dixLookupDevice(&XTestptr, XTestptr->id, client, DixDestroyAccess);
257 if (rc != Success)
261 rc = dixLookupDevice(&XTestkeybd, XTestkeybd->id, client,
263 if (rc != Success)
276 rc = dixLookupDevice(&newptr, r->return_pointer, client, DixAddAccess);
277 if (rc != Success)
283 rc = BadDevice;
287 rc = dixLookupDevice(&newkeybd, r->return_keyboard,
289 if (rc != Success)
295 rc = BadDevice;
343 return rc;
350 int rc;
352 rc = dixLookupDevice(&dev, c->deviceid, client, DixManageAccess);
353 if (rc != Success)
359 rc = BadDevice;
367 rc = BadDevice;
376 return rc;
385 int rc;
387 rc = dixLookupDevice(&dev, c->deviceid, client, DixManageAccess);
388 if (rc != Success)
394 rc = BadDevice;
402 rc = BadDevice;
406 rc = dixLookupDevice(&newmaster, c->new_master, client, DixAddAccess);
407 if (rc != Success)
412 rc = BadDevice;
419 rc = BadDevice;
428 return rc;
441 int rc = Success;
453 return rc;
463 rc = BadLength;
476 rc = BadLength; \
488 rc = BadLength;
493 rc = BadLength;
497 rc = add_master(client, c, flags);
498 if (rc != Success)
508 rc = remove_master(client, r, flags);
509 if (rc != Success)
519 rc = detach_slave(client, c, flags);
520 if (rc != Success)
530 rc = attach_slave(client, c, flags);
531 if (rc != Success)
554 return rc;