Lines Matching refs:args

32 	struct nvif_outp_dp_mst_vcpi_v0 args;  in nvif_outp_dp_mst_vcpi()  local
35 args.version = 0; in nvif_outp_dp_mst_vcpi()
36 args.head = head; in nvif_outp_dp_mst_vcpi()
37 args.start_slot = start_slot; in nvif_outp_dp_mst_vcpi()
38 args.num_slots = num_slots; in nvif_outp_dp_mst_vcpi()
39 args.pbn = pbn; in nvif_outp_dp_mst_vcpi()
40 args.aligned_pbn = aligned_pbn; in nvif_outp_dp_mst_vcpi()
42 ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_MST_VCPI, &args, sizeof(args)); in nvif_outp_dp_mst_vcpi()
45 args.head, args.start_slot, args.num_slots, args.pbn, args.aligned_pbn); in nvif_outp_dp_mst_vcpi()
60 struct nvif_outp_dp_aux_pwr_v0 args; in nvif_outp_dp_aux_pwr() local
63 args.version = 0; in nvif_outp_dp_aux_pwr()
64 args.state = enable; in nvif_outp_dp_aux_pwr()
66 ret = nvif_object_mthd(&outp->object, NVIF_OUTP_V0_DP_AUX_PWR, &args, sizeof(args)); in nvif_outp_dp_aux_pwr()
67 NVIF_ERRON(ret, &outp->object, "[DP_AUX_PWR state:%d]", args.state); in nvif_outp_dp_aux_pwr()
77 } args; in nvif_outp_hda_eld() local
80 if (WARN_ON(size > ARRAY_SIZE(args.data))) in nvif_outp_hda_eld()
83 args.mthd.version = 0; in nvif_outp_hda_eld()
84 args.mthd.head = head; in nvif_outp_hda_eld()
86 memcpy(args.data, data, size); in nvif_outp_hda_eld()
87 ret = nvif_mthd(&outp->object, NVIF_OUTP_V0_HDA_ELD, &args, sizeof(args.mthd) + size); in nvif_outp_hda_eld()
93 nvif_outp_infoframe(struct nvif_outp *outp, u8 type, struct nvif_outp_infoframe_v0 *args, u32 size) in nvif_outp_infoframe() argument
97 args->type = type; in nvif_outp_infoframe()
99 ret = nvif_mthd(&outp->object, NVIF_OUTP_V0_INFOFRAME, args, sizeof(*args) + size); in nvif_outp_infoframe()
113 nvif_outp_acquire(struct nvif_outp *outp, u8 proto, struct nvif_outp_acquire_v0 *args) in nvif_outp_acquire() argument
117 args->version = 0; in nvif_outp_acquire()
118 args->proto = proto; in nvif_outp_acquire()
120 ret = nvif_mthd(&outp->object, NVIF_OUTP_V0_ACQUIRE, args, sizeof(*args)); in nvif_outp_acquire()
124 outp->or.id = args->or; in nvif_outp_acquire()
125 outp->or.link = args->link; in nvif_outp_acquire()
133 struct nvif_outp_acquire_v0 args; in nvif_outp_acquire_dp() local
136 args.dp.link_nr = link_nr; in nvif_outp_acquire_dp()
137 args.dp.link_bw = link_bw; in nvif_outp_acquire_dp()
138 args.dp.hda = hda; in nvif_outp_acquire_dp()
139 args.dp.mst = mst; in nvif_outp_acquire_dp()
140 memcpy(args.dp.dpcd, dpcd, sizeof(args.dp.dpcd)); in nvif_outp_acquire_dp()
142 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_DP, &args); in nvif_outp_acquire_dp()
145 args.dp.link_nr, args.dp.link_bw, args.dp.hda, args.dp.mst, args.or, args.link); in nvif_outp_acquire_dp()
152 struct nvif_outp_acquire_v0 args; in nvif_outp_acquire_lvds() local
155 args.lvds.dual = dual; in nvif_outp_acquire_lvds()
156 args.lvds.bpc8 = bpc8; in nvif_outp_acquire_lvds()
158 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_LVDS, &args); in nvif_outp_acquire_lvds()
161 args.lvds.dual, args.lvds.bpc8, args.or, args.link); in nvif_outp_acquire_lvds()
169 struct nvif_outp_acquire_v0 args; in nvif_outp_acquire_tmds() local
172 args.tmds.head = head; in nvif_outp_acquire_tmds()
173 args.tmds.hdmi = hdmi; in nvif_outp_acquire_tmds()
174 args.tmds.hdmi_max_ac_packet = max_ac_packet; in nvif_outp_acquire_tmds()
175 args.tmds.hdmi_rekey = rekey; in nvif_outp_acquire_tmds()
176 args.tmds.hdmi_scdc = scdc; in nvif_outp_acquire_tmds()
177 args.tmds.hdmi_hda = hda; in nvif_outp_acquire_tmds()
179 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_TMDS, &args); in nvif_outp_acquire_tmds()
182 " or:%d link:%d", args.tmds.head, args.tmds.hdmi, args.tmds.hdmi_max_ac_packet, in nvif_outp_acquire_tmds()
183 args.tmds.hdmi_rekey, args.tmds.hdmi_scdc, args.tmds.hdmi_hda, in nvif_outp_acquire_tmds()
184 args.or, args.link); in nvif_outp_acquire_tmds()
191 struct nvif_outp_acquire_v0 args; in nvif_outp_acquire_rgb_crt() local
194 ret = nvif_outp_acquire(outp, NVIF_OUTP_ACQUIRE_V0_RGB_CRT, &args); in nvif_outp_acquire_rgb_crt()
195 NVIF_ERRON(ret, &outp->object, "[ACQUIRE proto:RGB_CRT] or:%d", args.or); in nvif_outp_acquire_rgb_crt()
202 struct nvif_outp_load_detect_v0 args; in nvif_outp_load_detect() local
205 args.version = 0; in nvif_outp_load_detect()
206 args.data = loadval; in nvif_outp_load_detect()
208 ret = nvif_mthd(&outp->object, NVIF_OUTP_V0_LOAD_DETECT, &args, sizeof(args)); in nvif_outp_load_detect()
209 NVIF_ERRON(ret, &outp->object, "[LOAD_DETECT data:%08x] load:%02x", args.data, args.load); in nvif_outp_load_detect()
210 return ret < 0 ? ret : args.load; in nvif_outp_load_detect()
222 struct nvif_outp_v0 args; in nvif_outp_ctor() local
225 args.version = 0; in nvif_outp_ctor()
226 args.id = id; in nvif_outp_ctor()
229 &args, sizeof(args), &outp->object); in nvif_outp_ctor()