Lines Matching defs:dpmsg
904 anxdp_dp_aux_transfer(struct drm_dp_aux *dpaux, struct drm_dp_aux_msg *dpmsg)
916 val = AUX_LENGTH(dpmsg->size);
917 if ((dpmsg->request & DP_AUX_I2C_MOT) != 0)
920 switch (dpmsg->request & ~DP_AUX_I2C_MOT) {
936 AUX_ADDR_7_0(dpmsg->address));
938 AUX_ADDR_15_8(dpmsg->address));
940 AUX_ADDR_19_16(dpmsg->address));
942 if (!(dpmsg->request & DP_AUX_I2C_READ)) {
943 for (i = 0; i < dpmsg->size; i++) {
946 ((const uint8_t *)(dpmsg->buffer))[i]);
953 AUX_EN | ((dpmsg->size == 0) ? ADDR_ONLY : 0));
996 if ((dpmsg->request & DP_AUX_I2C_READ)) {
997 for (i = 0; i < dpmsg->size; i++) {
1000 ((uint8_t *)(dpmsg->buffer))[i] = val & 0xffU;
1007 dpmsg->reply = DP_AUX_NATIVE_REPLY_DEFER;
1009 dpmsg->reply = DP_AUX_I2C_REPLY_DEFER;
1010 else if ((dpmsg->request & ~DP_AUX_I2C_MOT) == DP_AUX_I2C_WRITE ||
1011 (dpmsg->request & ~DP_AUX_I2C_MOT) == DP_AUX_I2C_READ)
1012 dpmsg->reply = DP_AUX_I2C_REPLY_ACK;
1013 else if ((dpmsg->request & ~DP_AUX_I2C_MOT) == DP_AUX_NATIVE_WRITE ||
1014 (dpmsg->request & ~DP_AUX_I2C_MOT) == DP_AUX_NATIVE_READ)
1015 dpmsg->reply = DP_AUX_NATIVE_REPLY_ACK;