client.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | client.c (59f216cf04d973b4316761cbf3e7cb9556715b7a) |
---|---|
1/* 2 * Copyright 2013 Red Hat Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 18 unchanged lines hidden (view full) --- 27#include <nvif/ioctl.h> 28 29#include <nvif/class.h> 30#include <nvif/if0000.h> 31 32int 33nvif_client_ioctl(struct nvif_client *client, void *data, u32 size) 34{ | 1/* 2 * Copyright 2013 Red Hat Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 18 unchanged lines hidden (view full) --- 27#include <nvif/ioctl.h> 28 29#include <nvif/class.h> 30#include <nvif/if0000.h> 31 32int 33nvif_client_ioctl(struct nvif_client *client, void *data, u32 size) 34{ |
35 return client->driver->ioctl(client->object.priv, client->super, data, size, NULL); | 35 return client->driver->ioctl(client->object.priv, data, size, NULL); |
36} 37 38int 39nvif_client_suspend(struct nvif_client *client) 40{ 41 return client->driver->suspend(client->object.priv); 42} 43 --- 31 unchanged lines hidden (view full) --- 75 NVIF_CLASS_CLIENT, &args, sizeof(args), 76 &client->object); 77 if (ret) 78 return ret; 79 80 client->object.client = client; 81 client->object.handle = ~0; 82 client->route = NVIF_IOCTL_V0_ROUTE_NVIF; | 36} 37 38int 39nvif_client_suspend(struct nvif_client *client) 40{ 41 return client->driver->suspend(client->object.priv); 42} 43 --- 31 unchanged lines hidden (view full) --- 75 NVIF_CLASS_CLIENT, &args, sizeof(args), 76 &client->object); 77 if (ret) 78 return ret; 79 80 client->object.client = client; 81 client->object.handle = ~0; 82 client->route = NVIF_IOCTL_V0_ROUTE_NVIF; |
83 client->super = true; | |
84 client->driver = parent->driver; 85 86 if (ret == 0) { 87 ret = nvif_client_ioctl(client, &nop, sizeof(nop)); 88 client->version = nop.nop.version; 89 } 90 91 if (ret) 92 nvif_client_dtor(client); 93 return ret; 94} | 83 client->driver = parent->driver; 84 85 if (ret == 0) { 86 ret = nvif_client_ioctl(client, &nop, sizeof(nop)); 87 client->version = nop.nop.version; 88 } 89 90 if (ret) 91 nvif_client_dtor(client); 92 return ret; 93} |