Lines Matching refs:kind
30 kfree(mmu->kind); in nvif_mmu_dtor()
52 mmu->kind = NULL; in nvif_mmu_ctor()
76 mmu->kind = kmalloc_array(mmu->kind_nr, sizeof(*mmu->kind), in nvif_mmu_ctor()
78 if (!mmu->kind && mmu->kind_nr) in nvif_mmu_ctor()
105 if (args.kind ) mmu->type[i].type |= NVIF_MEM_KIND; in nvif_mmu_ctor()
113 struct nvif_mmu_kind_v0 *kind; in nvif_mmu_ctor() local
114 size_t argc = struct_size(kind, data, mmu->kind_nr); in nvif_mmu_ctor()
116 if (ret = -ENOMEM, !(kind = kmalloc(argc, GFP_KERNEL))) in nvif_mmu_ctor()
118 kind->version = 0; in nvif_mmu_ctor()
119 kind->count = mmu->kind_nr; in nvif_mmu_ctor()
122 kind, argc); in nvif_mmu_ctor()
124 memcpy(mmu->kind, kind->data, kind->count); in nvif_mmu_ctor()
125 mmu->kind_inv = kind->kind_inv; in nvif_mmu_ctor()
126 kfree(kind); in nvif_mmu_ctor()