Lines Matching refs:tags
39 struct nvkm_tags *tags = *ptags;
40 if (tags) {
42 if (refcount_dec_and_test(&tags->refcount)) {
43 nvkm_mm_free(&fb->tags, &tags->mn);
44 kfree(memory->tags);
45 memory->tags = NULL;
58 struct nvkm_tags *tags;
61 if ((tags = memory->tags)) {
66 if (tags->mn && tags->mn->length != nr) {
71 refcount_inc(&tags->refcount);
73 *ptags = tags;
77 if (!(tags = kmalloc(sizeof(*tags), GFP_KERNEL))) {
82 if (!nvkm_mm_head(&fb->tags, 0, 1, nr, nr, 1, &tags->mn)) {
84 clr(device, tags->mn->offset, tags->mn->length);
95 tags->mn = NULL;
98 refcount_set(&tags->refcount, 1);
99 *ptags = memory->tags = tags;