Lines Matching refs:port_num
208 buf[idx] = (req->u.port_num.port_number & 0xf) << 4; in drm_dp_encode_sideband_req()
634 static int build_dpcd_write(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_byt… in build_dpcd_write() argument
639 req.u.dpcd_write.port_number = port_num; in build_dpcd_write()
657 static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, int port_num) in build_enum_path_resources() argument
662 req.u.port_num.port_number = port_num; in build_enum_path_resources()
668 static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg, int port_num, in build_allocate_payload() argument
674 req.u.allocate_payload.port_number = port_num; in build_allocate_payload()
977 static struct drm_dp_mst_port *drm_dp_get_port(struct drm_dp_mst_branch *mstb, u8 port_num) in drm_dp_get_port() argument
982 if (port->port_num == port_num) { in drm_dp_get_port()
1008 rad[idx] |= port->port_num << shift; in drm_dp_calculate_rad()
1074 int port_num = (mstb->rad[i / 2] >> shift) & 0xf; in build_mst_prop_path() local
1075 snprintf(temp, sizeof(temp), "-%d", port_num); in build_mst_prop_path()
1098 port->port_num = port_msg->port_number; in drm_dp_add_port()
1146 build_mst_prop_path(mstb, port->port_num, proppath, sizeof(proppath)); in drm_dp_add_port()
1157 if (port->port_num >= DP_MST_LOGICAL_PORT_0) { in drm_dp_add_port()
1220 int port_num = (rad[i / 2] >> shift) & 0xf; in drm_dp_get_mst_branch_device() local
1223 if (port->port_num == port_num) { in drm_dp_get_mst_branch_device()
1342 static int build_dpcd_read(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_byte…
1347 req.u.dpcd_read.port_number = port_num;
1607 len = build_enum_path_resources(txmsg, port->port_num); in drm_dp_send_enum_path_resources()
1616 if (port->port_num != txmsg->reply.u.path_resources.port_number) in drm_dp_send_enum_path_resources()
1641 int *port_num) in drm_dp_get_last_connected_port_and_mstb() argument
1652 *port_num = found_port->port_num; in drm_dp_get_last_connected_port_and_mstb()
1666 int len, ret, port_num; in drm_dp_payload_send_msg() local
1672 port_num = port->port_num; in drm_dp_payload_send_msg()
1675 mstb = drm_dp_get_last_connected_port_and_mstb(mgr, port->parent, &port_num); in drm_dp_payload_send_msg()
1690 len = build_allocate_payload(txmsg, port_num, in drm_dp_payload_send_msg()
1898 len = build_dpcd_read(txmsg, port->port_num, 0, 8);
1926 len = build_dpcd_write(txmsg, port->port_num, offset, size, bytes); in drm_dp_send_dpcd_write()
2390 if (port->port_num >= 8 && !port->cached_edid) { in drm_dp_mst_detect_port()
2725 …seq_printf(m, "%sport: %d: ddps: %d ldps: %d, %p, conn: %p\n", prefix, port->port_num, port->ddps,… in drm_dp_mst_dump_mstb()
2771 seq_printf(m, "vcpi %d: %d %d %d\n", i, port->port_num, port->vcpi.vcpi, port->vcpi.num_slots); in drm_dp_mst_dump_topology()
2985 msg.u.i2c_read.port_number = port->port_num; in drm_dp_mst_i2c_xfer()