Lines Matching defs:rad
178 drm_dp_mst_rad_to_str(const u8 rad[8], u8 lct, char *out, size_t len)
185 unpacked_rad[i] = rad[i / 2] >> 4;
187 unpacked_rad[i] = rad[i / 2] & BIT_MASK(4);
190 /* TODO: Eventually add something to printk so we can format the rad
281 buf[idx++] = hdr->rad[i];
318 hdr->rad[i] = buf[idx++];
698 drm_dp_mst_rad_to_str(txmsg->dst->rad, txmsg->dst->lct, buf,
1321 static struct drm_dp_mst_branch *drm_dp_add_mst_branch_device(u8 lct, u8 *rad)
1331 memcpy(mstb->rad, rad, lct / 2);
2024 u8 *rad)
2031 memcpy(rad, port->parent->rad, idx + 1);
2034 rad[0] = 0;
2036 rad[idx] |= port->port_num << shift;
2062 u8 rad[8], lct;
2100 lct = drm_dp_calculate_rad(port, rad);
2101 mstb = drm_dp_add_mst_branch_device(lct, rad);
2211 int port_num = (mstb->rad[i / 2] >> shift) & 0xf;
2544 u8 lct, u8 *rad)
2559 int port_num = (rad[i / 2] >> shift) & 0xf;
2566 "failed to lookup MSTB with lct %d, rad %02x\n",
2567 lct, rad[0]);
2787 memcpy(hdr->rad, mstb->rad, hdr->lct / 2);
2957 drm_dp_mst_rad_to_str(mstb->rad, mstb->lct, buf, sizeof(buf));
3836 *mstb = drm_dp_get_mst_branch_device(mgr, hdr.lct, hdr.rad);
3897 drm_dp_mst_rad_to_str(mstb->rad, mstb->lct, rad_str, sizeof(rad_str));
3899 "Got unexpected MST reply, mstb: %p seqno: %d lct: %d rad: %s rx_req_type: %s (%02x) != tx_req_type: %s (%02x)\n",
3932 mstb, hdr->seqno, hdr->lct, hdr->rad[0], msg->msg[0]);
3992 mstb = drm_dp_get_mst_branch_device(mgr, hdr->lct, hdr->rad);