Lines Matching refs:auxch
37 struct nouveau_i2c_chan *auxch;
40 auxch = nouveau_i2c_find(dev, nv_encoder->dcb->i2c_index);
41 if (!auxch)
44 ret = nouveau_dp_auxch(auxch, 9, address, buf, size);
56 struct nouveau_i2c_chan *auxch;
59 auxch = nouveau_i2c_find(dev, nv_encoder->dcb->i2c_index);
60 if (!auxch)
63 ret = nouveau_dp_auxch(auxch, 8, address, buf, size);
479 nouveau_dp_auxch(struct nouveau_i2c_chan *auxch, int cmd, int addr,
482 struct drm_device *dev = auxch->dev;
484 int ret = 0, i, index = auxch->rd;
488 tmp = nv_rd32(dev, NV50_AUXCH_CTRL(auxch->rd));
489 nv_wr32(dev, NV50_AUXCH_CTRL(auxch->rd), tmp | 0x00100000);
490 tmp = nv_rd32(dev, NV50_AUXCH_CTRL(auxch->rd));
498 tmp = nv_rd32(dev, NV50_AUXCH_STAT(auxch->rd));
543 NV_ERROR(dev, "auxch DEFER too many times, bailing\n");
562 tmp = nv_rd32(dev, NV50_AUXCH_CTRL(auxch->rd));
563 nv_wr32(dev, NV50_AUXCH_CTRL(auxch->rd), tmp & ~0x00100000);
564 tmp = nv_rd32(dev, NV50_AUXCH_CTRL(auxch->rd));
578 struct nouveau_i2c_chan *auxch = (struct nouveau_i2c_chan *)adap;
579 struct drm_device *dev = auxch->dev;
599 ret = nouveau_dp_auxch(auxch, cmd, msg->addr, ptr, cnt);
612 NV_ERROR(dev, "bad auxch reply: 0x%08x\n", ret);