Lines Matching refs:pcli
45 struct nouveau_client_priv *pcli = nouveau_client(client); in cli_kref_get() local
47 if (pcli->kref_nr > bo->handle) in cli_kref_get()
48 kref = pcli->kref[bo->handle].kref; in cli_kref_get()
55 struct nouveau_client_priv *pcli = nouveau_client(client); in cli_push_get() local
57 if (pcli->kref_nr > bo->handle) in cli_push_get()
58 push = pcli->kref[bo->handle].push; in cli_push_get()
67 struct nouveau_client_priv *pcli = nouveau_client(client); in cli_kref_set() local
68 if (pcli->kref_nr <= bo->handle) { in cli_kref_set()
69 pcli->kref = realloc(pcli->kref, in cli_kref_set()
70 sizeof(*pcli->kref) * bo->handle * 2); in cli_kref_set()
71 while (pcli->kref_nr < bo->handle * 2) { in cli_kref_set()
72 pcli->kref[pcli->kref_nr].kref = NULL; in cli_kref_set()
73 pcli->kref[pcli->kref_nr].push = NULL; in cli_kref_set()
74 pcli->kref_nr++; in cli_kref_set()
77 pcli->kref[bo->handle].kref = kref; in cli_kref_set()
78 pcli->kref[bo->handle].push = push; in cli_kref_set()