outp.c (3147ce0d07aaacac4a67a30767a7480596de16e2) outp.c (e206cae1e534b7f9944de6d55fd39e9d6b5cf548)
1/*
2 * Copyright 2021 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 33 unchanged lines hidden (view full) ---

42 ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_MST_VCPI, &args, sizeof(args));
43 NVIF_ERRON(ret, &outp->object,
44 "[DP_MST_VCPI head:%d start_slot:%02x num_slots:%02x pbn:%04x aligned_pbn:%04x]",
45 args.head, args.start_slot, args.num_slots, args.pbn, args.aligned_pbn);
46 return ret;
47}
48
49int
1/*
2 * Copyright 2021 Red Hat Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the

--- 33 unchanged lines hidden (view full) ---

42 ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_MST_VCPI, &args, sizeof(args));
43 NVIF_ERRON(ret, &outp->object,
44 "[DP_MST_VCPI head:%d start_slot:%02x num_slots:%02x pbn:%04x aligned_pbn:%04x]",
45 args.head, args.start_slot, args.num_slots, args.pbn, args.aligned_pbn);
46 return ret;
47}
48
49int
50nvif_outp_dp_sst(struct nvif_outp *outp, int head, u32 watermark, u32 hblanksym, u32 vblanksym)
51{
52 struct nvif_outp_dp_sst_v0 args;
53 int ret;
54
55 args.version = 0;
56 args.head = head;
57 args.watermark = watermark;
58 args.hblanksym = hblanksym;
59 args.vblanksym = vblanksym;
60 ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_SST, &args, sizeof(args));
61 NVIF_ERRON(ret, &outp->object,
62 "[DP_SST head:%d watermark:%d hblanksym:%d vblanksym:%d]",
63 args.head, args.watermark, args.hblanksym, args.vblanksym);
64 return ret;
65}
66
67int
50nvif_outp_dp_drive(struct nvif_outp *outp, u8 link_nr, u8 pe[4], u8 vs[4])
51{
52 struct nvif_outp_dp_drive_v0 args;
53 int ret;
54
55 args.version = 0;
56 args.lanes = link_nr;
57 memcpy(args.pe, pe, sizeof(args.pe));

--- 412 unchanged lines hidden ---
68nvif_outp_dp_drive(struct nvif_outp *outp, u8 link_nr, u8 pe[4], u8 vs[4])
69{
70 struct nvif_outp_dp_drive_v0 args;
71 int ret;
72
73 args.version = 0;
74 args.lanes = link_nr;
75 memcpy(args.pe, pe, sizeof(args.pe));

--- 412 unchanged lines hidden ---