Home
last modified time | relevance | path

Searched refs:iobj (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
H A Dnv50.c173 iobj->bar = bar; in nv50_instobj_kmap()
176 if (!iobj->map) { in nv50_instobj_kmap()
204 if (likely(iobj->lru.next) && iobj->map) { in nv50_instobj_release()
227 return iobj->map; in nv50_instobj_acquire()
236 return iobj->map; in nv50_instobj_acquire()
241 if (!iobj->map) in nv50_instobj_acquire()
243 map = iobj->map; in nv50_instobj_acquire()
326 map = iobj->map; in nv50_instobj_dtor()
327 bar = iobj->bar; in nv50_instobj_dtor()
339 return iobj; in nv50_instobj_dtor()
[all …]
H A Dbase.c47 kvfree(iobj->suspend); in nvkm_instobj_load()
48 iobj->suspend = NULL; in nvkm_instobj_load()
60 if (!iobj->suspend) in nvkm_instobj_save()
77 list_del(&iobj->head); in nvkm_instobj_dtor()
86 iobj->suspend = NULL; in nvkm_instobj_ctor()
175 struct nvkm_instobj *iobj; in nvkm_instmem_fini() local
203 struct nvkm_instobj *iobj; in nvkm_instmem_init() local
206 if (iobj->suspend) in nvkm_instmem_init()
207 nvkm_instobj_load(iobj); in nvkm_instmem_init()
213 if (iobj->suspend) in nvkm_instmem_init()
[all …]
H A Dnv04.c48 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_wr32() local
102 mutex_lock(&iobj->imem->base.mutex); in nv04_instobj_dtor()
103 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv04_instobj_dtor()
104 mutex_unlock(&iobj->imem->base.mutex); in nv04_instobj_dtor()
105 nvkm_instobj_dtor(&iobj->imem->base, &iobj->base); in nv04_instobj_dtor()
106 return iobj; in nv04_instobj_dtor()
124 struct nv04_instobj *iobj; in nv04_instobj_new() local
127 if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) in nv04_instobj_new()
129 *pmemory = &iobj->base.memory; in nv04_instobj_new()
132 iobj->base.memory.ptrs = &nv04_instobj_ptrs; in nv04_instobj_new()
[all …]
H A Dnv40.c51 iowrite32_native(data, iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_wr32()
58 return ioread32_native(iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_rd32()
77 return iobj->imem->iomem + iobj->node->offset; in nv40_instobj_acquire()
102 mutex_lock(&iobj->imem->base.mutex); in nv40_instobj_dtor()
103 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv40_instobj_dtor()
105 nvkm_instobj_dtor(&iobj->imem->base, &iobj->base); in nv40_instobj_dtor()
106 return iobj; in nv40_instobj_dtor()
124 struct nv40_instobj *iobj; in nv40_instobj_new() local
127 if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) in nv40_instobj_new()
129 *pmemory = &iobj->base.memory; in nv40_instobj_new()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qom-interface.c71 TestIf *iobj = TEST_IF(obj); in test_interface_impl() local
72 TestIfClass *ioc = TEST_IF_GET_CLASS(iobj); in test_interface_impl()
74 g_assert(iobj); in test_interface_impl()