Lines Matching refs:object

50 	struct nvkm_fifo_chan_object *object =  in nvkm_fifo_chan_child_fini()  local
51 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_fini()
52 struct nvkm_engine *engine = object->oproxy.object->engine; in nvkm_fifo_chan_child_fini()
53 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_fini()
64 nvif_error(&chan->object, in nvkm_fifo_chan_child_fini()
70 if (engn->object) { in nvkm_fifo_chan_child_fini()
71 ret = nvkm_object_fini(engn->object, suspend); in nvkm_fifo_chan_child_fini()
76 nvif_trace(&chan->object, "detached %s\n", name); in nvkm_fifo_chan_child_fini()
83 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_init() local
84 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_init()
85 struct nvkm_engine *engine = object->oproxy.object->engine; in nvkm_fifo_chan_child_init()
86 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_init()
94 if (engn->object) { in nvkm_fifo_chan_child_init()
95 ret = nvkm_object_init(engn->object); in nvkm_fifo_chan_child_init()
103 nvif_error(&chan->object, in nvkm_fifo_chan_child_init()
109 nvif_trace(&chan->object, "attached %s\n", name); in nvkm_fifo_chan_child_init()
116 struct nvkm_fifo_chan_object *object = in nvkm_fifo_chan_child_del() local
117 container_of(base, typeof(*object), oproxy); in nvkm_fifo_chan_child_del()
118 struct nvkm_engine *engine = object->oproxy.base.engine; in nvkm_fifo_chan_child_del()
119 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_del()
123 chan->func->object_dtor(chan, object->hash); in nvkm_fifo_chan_child_del()
128 nvkm_object_del(&engn->object); in nvkm_fifo_chan_child_del()
148 struct nvkm_fifo_chan_object *object; in nvkm_fifo_chan_child_new() local
151 if (!(object = kzalloc(sizeof(*object), GFP_KERNEL))) in nvkm_fifo_chan_child_new()
153 nvkm_oproxy_ctor(&nvkm_fifo_chan_child_func, oclass, &object->oproxy); in nvkm_fifo_chan_child_new()
154 object->chan = chan; in nvkm_fifo_chan_child_new()
155 *pobject = &object->oproxy.base; in nvkm_fifo_chan_child_new()
168 &engn->object); in nvkm_fifo_chan_child_new()
172 NULL, 0, &engn->object); in nvkm_fifo_chan_child_new()
179 engn->object); in nvkm_fifo_chan_child_new()
189 .object = oclass->object, in nvkm_fifo_chan_child_new()
191 .parent = engn->object ? in nvkm_fifo_chan_child_new()
192 engn->object : in nvkm_fifo_chan_child_new()
195 }, data, size, &object->oproxy.object); in nvkm_fifo_chan_child_new()
200 object->hash = in nvkm_fifo_chan_child_new()
201 chan->func->object_ctor(chan, object->oproxy.object); in nvkm_fifo_chan_child_new()
202 if (object->hash < 0) in nvkm_fifo_chan_child_new()
203 return object->hash; in nvkm_fifo_chan_child_new()
210 nvkm_fifo_chan_child_get(struct nvkm_object *object, int index, in nvkm_fifo_chan_child_get() argument
213 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_child_get()
254 nvkm_fifo_chan_ntfy(struct nvkm_object *object, u32 type, in nvkm_fifo_chan_ntfy() argument
257 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_ntfy()
264 nvkm_fifo_chan_map(struct nvkm_object *object, void *argv, u32 argc, in nvkm_fifo_chan_map() argument
267 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_map()
275 nvkm_fifo_chan_rd32(struct nvkm_object *object, u64 addr, u32 *data) in nvkm_fifo_chan_rd32() argument
277 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_rd32()
290 nvkm_fifo_chan_wr32(struct nvkm_object *object, u64 addr, u32 data) in nvkm_fifo_chan_wr32() argument
292 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_wr32()
305 nvkm_fifo_chan_fini(struct nvkm_object *object, bool suspend) in nvkm_fifo_chan_fini() argument
307 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_fini()
313 nvkm_fifo_chan_init(struct nvkm_object *object) in nvkm_fifo_chan_init() argument
315 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_init()
321 nvkm_fifo_chan_dtor(struct nvkm_object *object) in nvkm_fifo_chan_dtor() argument
323 struct nvkm_fifo_chan *chan = nvkm_fifo_chan(object); in nvkm_fifo_chan_dtor()
373 nvkm_object_ctor(&nvkm_fifo_chan_func, oclass, &chan->object); in nvkm_fifo_chan_ctor()
390 ret = nvkm_object_bind(&dmaobj->object, chan->inst, -16, in nvkm_fifo_chan_ctor()