Lines Matching refs:u
62 #define IN in->u.i2c_read in sideband_msg_req_equal()
63 #define OUT out->u.i2c_read in sideband_msg_req_equal()
90 #define IN in->u.dpcd_write in sideband_msg_req_equal()
91 #define OUT out->u.dpcd_write in sideband_msg_req_equal()
102 #define IN in->u.i2c_write in sideband_msg_req_equal()
103 #define OUT out->u.i2c_write in sideband_msg_req_equal()
157 kfree(out->u.dpcd_write.bytes); in sideband_msg_req_encode_decode()
160 for (i = 0; i < out->u.i2c_read.num_transactions; i++) in sideband_msg_req_encode_decode()
161 kfree(out->u.i2c_read.transactions[i].bytes); in sideband_msg_req_encode_decode()
164 kfree(out->u.i2c_write.bytes); in sideband_msg_req_encode_decode()
169 memset(&in->u, 0, sizeof(in->u)); in sideband_msg_req_encode_decode()
186 in.u.port_num.port_number = 5; in igt_dp_mst_sideband_msg_req_decode()
190 in.u.port_num.port_number = 5; in igt_dp_mst_sideband_msg_req_decode()
194 in.u.port_num.port_number = 5; in igt_dp_mst_sideband_msg_req_decode()
198 in.u.allocate_payload.number_sdp_streams = 3; in igt_dp_mst_sideband_msg_req_decode()
199 for (i = 0; i < in.u.allocate_payload.number_sdp_streams; i++) in igt_dp_mst_sideband_msg_req_decode()
200 in.u.allocate_payload.sdp_stream_sink[i] = i + 1; in igt_dp_mst_sideband_msg_req_decode()
202 in.u.allocate_payload.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
204 in.u.allocate_payload.vcpi = 0x7f; in igt_dp_mst_sideband_msg_req_decode()
206 in.u.allocate_payload.pbn = U16_MAX; in igt_dp_mst_sideband_msg_req_decode()
210 in.u.query_payload.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
212 in.u.query_payload.vcpi = 0x7f; in igt_dp_mst_sideband_msg_req_decode()
216 in.u.dpcd_read.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
218 in.u.dpcd_read.dpcd_address = 0xfedcb; in igt_dp_mst_sideband_msg_req_decode()
220 in.u.dpcd_read.num_bytes = U8_MAX; in igt_dp_mst_sideband_msg_req_decode()
224 in.u.dpcd_write.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
226 in.u.dpcd_write.dpcd_address = 0xfedcb; in igt_dp_mst_sideband_msg_req_decode()
228 in.u.dpcd_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
229 in.u.dpcd_write.bytes = data; in igt_dp_mst_sideband_msg_req_decode()
233 in.u.i2c_read.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
235 in.u.i2c_read.read_i2c_device_id = 0x7f; in igt_dp_mst_sideband_msg_req_decode()
237 in.u.i2c_read.num_transactions = 3; in igt_dp_mst_sideband_msg_req_decode()
238 in.u.i2c_read.num_bytes_read = ARRAY_SIZE(data) * 3; in igt_dp_mst_sideband_msg_req_decode()
239 for (i = 0; i < in.u.i2c_read.num_transactions; i++) { in igt_dp_mst_sideband_msg_req_decode()
240 in.u.i2c_read.transactions[i].bytes = data; in igt_dp_mst_sideband_msg_req_decode()
241 in.u.i2c_read.transactions[i].num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
242 in.u.i2c_read.transactions[i].i2c_dev_id = 0x7f & ~i; in igt_dp_mst_sideband_msg_req_decode()
243 in.u.i2c_read.transactions[i].i2c_transaction_delay = 0xf & ~i; in igt_dp_mst_sideband_msg_req_decode()
248 in.u.i2c_write.port_number = 0xf; in igt_dp_mst_sideband_msg_req_decode()
250 in.u.i2c_write.write_i2c_device_id = 0x7f; in igt_dp_mst_sideband_msg_req_decode()
252 in.u.i2c_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
253 in.u.i2c_write.bytes = data; in igt_dp_mst_sideband_msg_req_decode()
257 in.u.enc_status.stream_id = 1; in igt_dp_mst_sideband_msg_req_decode()
259 get_random_bytes(in.u.enc_status.client_id, in igt_dp_mst_sideband_msg_req_decode()
260 sizeof(in.u.enc_status.client_id)); in igt_dp_mst_sideband_msg_req_decode()
262 in.u.enc_status.stream_event = 3; in igt_dp_mst_sideband_msg_req_decode()
264 in.u.enc_status.valid_stream_event = 0; in igt_dp_mst_sideband_msg_req_decode()
266 in.u.enc_status.stream_behavior = 3; in igt_dp_mst_sideband_msg_req_decode()
268 in.u.enc_status.valid_stream_behavior = 1; in igt_dp_mst_sideband_msg_req_decode()