Lines Matching full:dr
28 unsigned int dr; /* data role */ member
252 unsigned int dr = DR_NONE; in extcon_cros_ec_detect_cable() local
276 dr = (role & PD_CTRL_RESP_ROLE_DATA) ? DR_HOST : DR_DEVICE; in extcon_cros_ec_detect_cable()
287 "connected role 0x%x pwr type %d dr %d pr %d pol %d mux %d dp %d hpd %d\n", in extcon_cros_ec_detect_cable()
288 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable()
295 if (dr == DR_DEVICE && in extcon_cros_ec_detect_cable()
297 dr = DR_NONE; in extcon_cros_ec_detect_cable()
299 if (force || info->dr != dr || info->pr != pr || info->dp != dp || in extcon_cros_ec_detect_cable()
305 cros_ec_usb_role_string(dr)); in extcon_cros_ec_detect_cable()
306 info->dr = dr; in extcon_cros_ec_detect_cable()
312 if (dr == DR_DEVICE) in extcon_cros_ec_detect_cable()
314 else if (dr == DR_HOST) in extcon_cros_ec_detect_cable()
454 info->dr = DR_NONE; in extcon_cros_ec_probe()