Lines Matching refs:chan

391 	struct nv10_gr_chan *chan[32];  member
406 nv10_gr_priv(struct nv10_gr_chan *chan) in nv10_gr_priv() argument
408 return (void *)nv_object(chan)->engine; in nv10_gr_priv()
481 struct nv10_gr_chan *chan = (void *)object->parent; in nv17_gr_mthd_lma_window() local
482 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv17_gr_mthd_lma_window()
483 struct pipe_state *pipe = &chan->pipe_state; in nv17_gr_mthd_lma_window()
489 chan->lma_window[(mthd - 0x1638) / 4] = data; in nv17_gr_mthd_lma_window()
499 PIPE_RESTORE(priv, chan->lma_window, 0x6790); in nv17_gr_mthd_lma_window()
558 struct nv10_gr_chan *chan = (void *)object->parent; in nv17_gr_mthd_lma_enable() local
559 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv17_gr_mthd_lma_enable()
608 struct nv10_gr_chan *chan = NULL; in nv10_gr_channel() local
611 if (chid < ARRAY_SIZE(priv->chan)) in nv10_gr_channel()
612 chan = priv->chan[chid]; in nv10_gr_channel()
614 return chan; in nv10_gr_channel()
618 nv10_gr_save_pipe(struct nv10_gr_chan *chan) in nv10_gr_save_pipe() argument
620 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_save_pipe()
621 struct pipe_state *pipe = &chan->pipe_state; in nv10_gr_save_pipe()
636 nv10_gr_load_pipe(struct nv10_gr_chan *chan) in nv10_gr_load_pipe() argument
638 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_load_pipe()
639 struct pipe_state *pipe = &chan->pipe_state; in nv10_gr_load_pipe()
686 nv10_gr_create_pipe(struct nv10_gr_chan *chan) in nv10_gr_create_pipe() argument
688 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_create_pipe()
689 struct pipe_state *pipe_state = &chan->pipe_state; in nv10_gr_create_pipe()
865 nv10_gr_load_dma_vtxbuf(struct nv10_gr_chan *chan, int chid, u32 inst) in nv10_gr_load_dma_vtxbuf() argument
867 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_load_dma_vtxbuf()
935 nv10_gr_load_context(struct nv10_gr_chan *chan, int chid) in nv10_gr_load_context() argument
937 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_load_context()
942 nv_wr32(priv, nv10_gr_ctx_regs[i], chan->nv10[i]); in nv10_gr_load_context()
947 nv_wr32(priv, nv17_gr_ctx_regs[i], chan->nv17[i]); in nv10_gr_load_context()
950 nv10_gr_load_pipe(chan); in nv10_gr_load_context()
953 nv10_gr_load_dma_vtxbuf(chan, chid, inst); in nv10_gr_load_context()
962 nv10_gr_unload_context(struct nv10_gr_chan *chan) in nv10_gr_unload_context() argument
964 struct nv10_gr_priv *priv = nv10_gr_priv(chan); in nv10_gr_unload_context()
968 chan->nv10[i] = nv_rd32(priv, nv10_gr_ctx_regs[i]); in nv10_gr_unload_context()
973 chan->nv17[i] = nv_rd32(priv, nv17_gr_ctx_regs[i]); in nv10_gr_unload_context()
976 nv10_gr_save_pipe(chan); in nv10_gr_unload_context()
1001 next = priv->chan[chid]; in nv10_gr_context_switch()
1011 chan->nv10[offset] = val; \
1017 chan->nv17[offset] = val; \
1027 struct nv10_gr_chan *chan; in nv10_gr_context_ctor() local
1031 ret = nvkm_object_create(parent, engine, oclass, 0, &chan); in nv10_gr_context_ctor()
1032 *pobject = nv_object(chan); in nv10_gr_context_ctor()
1037 if (priv->chan[fifo->chid]) { in nv10_gr_context_ctor()
1038 *pobject = nv_object(priv->chan[fifo->chid]); in nv10_gr_context_ctor()
1041 nvkm_object_destroy(&chan->base); in nv10_gr_context_ctor()
1063 NV_WRITE_CTX(NV10_PGRAPH_CTX_USER, chan->chid << 24); in nv10_gr_context_ctor()
1065 nv10_gr_create_pipe(chan); in nv10_gr_context_ctor()
1067 priv->chan[fifo->chid] = chan; in nv10_gr_context_ctor()
1068 chan->chid = fifo->chid; in nv10_gr_context_ctor()
1077 struct nv10_gr_chan *chan = (void *)object; in nv10_gr_context_dtor() local
1081 priv->chan[chan->chid] = NULL; in nv10_gr_context_dtor()
1084 nvkm_object_destroy(&chan->base); in nv10_gr_context_dtor()
1091 struct nv10_gr_chan *chan = (void *)object; in nv10_gr_context_fini() local
1096 if (nv10_gr_channel(priv) == chan) in nv10_gr_context_fini()
1097 nv10_gr_unload_context(chan); in nv10_gr_context_fini()
1101 return nvkm_object_fini(&chan->base, suspend); in nv10_gr_context_fini()
1155 struct nv10_gr_chan *chan = NULL; in nv10_gr_intr() local
1171 chan = priv->chan[chid]; in nv10_gr_intr()
1172 if (chan) in nv10_gr_intr()
1173 namedb = (void *)nv_pclass(nv_object(chan), NV_NAMEDB_CLASS); in nv10_gr_intr()
1177 if (chan && (nsource & NV03_PGRAPH_NSOURCE_ILLEGAL_MTHD)) { in nv10_gr_intr()
1204 chid, nvkm_client_name(chan), subc, class, mthd, in nv10_gr_intr()