Lines Matching defs:pref
85 struct nouveau_bufref_priv *pref;
89 while ((pref = pctx->free)) {
90 pctx->free = pref->next;
91 free(pref);
103 struct nouveau_bufref_priv *pref;
105 while ((pref = pbin->list)) {
106 DRMLISTDELINIT(&pref->base.thead);
107 pbin->list = pref->next;
108 pref->next = pctx->free;
109 pctx->free = pref;
122 struct nouveau_bufref_priv *pref = pctx->free;
124 if (!pref)
125 pref = malloc(sizeof(*pref));
127 pctx->free = pref->next;
129 if (pref) {
130 pref->base.bo = bo;
131 pref->base.flags = flags;
132 pref->base.packet = 0;
134 DRMLISTADDTAIL(&pref->base.thead, &bctx->pending);
135 pref->bufctx = bctx;
136 pref->next = pbin->list;
137 pbin->list = pref;
140 return &pref->base;