Lines Matching refs:i2c_read

401 		buf[idx] = (req->u.i2c_read.port_number & 0xf) << 4;  in drm_dp_encode_sideband_req()
402 buf[idx] |= (req->u.i2c_read.num_transactions & 0x3); in drm_dp_encode_sideband_req()
404 for (i = 0; i < (req->u.i2c_read.num_transactions & 0x3); i++) { in drm_dp_encode_sideband_req()
405 buf[idx] = req->u.i2c_read.transactions[i].i2c_dev_id & 0x7f; in drm_dp_encode_sideband_req()
407 buf[idx] = req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
409 …memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes… in drm_dp_encode_sideband_req()
410 idx += req->u.i2c_read.transactions[i].num_bytes; in drm_dp_encode_sideband_req()
412 buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 4; in drm_dp_encode_sideband_req()
413 buf[idx] |= (req->u.i2c_read.transactions[i].i2c_transaction_delay & 0xf); in drm_dp_encode_sideband_req()
416 buf[idx] = (req->u.i2c_read.read_i2c_device_id) & 0x7f; in drm_dp_encode_sideband_req()
418 buf[idx] = (req->u.i2c_read.num_bytes_read); in drm_dp_encode_sideband_req()
528 struct drm_dp_remote_i2c_read *r = &req->u.i2c_read; in drm_dp_decode_sideband_req()
645 req->u.i2c_read.port_number, in drm_dp_dump_sideband_msg_req_body()
646 req->u.i2c_read.num_transactions, in drm_dp_dump_sideband_msg_req_body()
647 req->u.i2c_read.read_i2c_device_id, in drm_dp_dump_sideband_msg_req_body()
648 req->u.i2c_read.num_bytes_read); in drm_dp_dump_sideband_msg_req_body()
651 for (i = 0; i < req->u.i2c_read.num_transactions; i++) { in drm_dp_dump_sideband_msg_req_body()
653 &req->u.i2c_read.transactions[i]; in drm_dp_dump_sideband_msg_req_body()
714 for (i = 0; i < req.u.i2c_read.num_transactions; i++) in drm_dp_mst_dump_sideband_msg_tx()
715 kfree(req.u.i2c_read.transactions[i].bytes); in drm_dp_mst_dump_sideband_msg_tx()
5522 msg.u.i2c_read.num_transactions = num - 1; in drm_dp_mst_i2c_read()
5523 msg.u.i2c_read.port_number = port->port_num; in drm_dp_mst_i2c_read()
5525 msg.u.i2c_read.transactions[i].i2c_dev_id = msgs[i].addr; in drm_dp_mst_i2c_read()
5526 msg.u.i2c_read.transactions[i].num_bytes = msgs[i].len; in drm_dp_mst_i2c_read()
5527 msg.u.i2c_read.transactions[i].bytes = msgs[i].buf; in drm_dp_mst_i2c_read()
5528 msg.u.i2c_read.transactions[i].no_stop_bit = !(msgs[i].flags & I2C_M_STOP); in drm_dp_mst_i2c_read()
5530 msg.u.i2c_read.read_i2c_device_id = msgs[num - 1].addr; in drm_dp_mst_i2c_read()
5531 msg.u.i2c_read.num_bytes_read = msgs[num - 1].len; in drm_dp_mst_i2c_read()