Home
last modified time | relevance | path

Searched refs:role_idx (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/platform/chrome/
H A Dcros_usbpd_logger.c86 int role_idx, type_idx; in cros_usbpd_print_log_entry() local
105 role_idx = r->data & CHARGE_FLAGS_ROLE_MASK; in cros_usbpd_print_log_entry()
106 role = role_idx < ARRAY_SIZE(role_names) ? in cros_usbpd_print_log_entry()
107 role_names[role_idx] : "Unknown"; in cros_usbpd_print_log_entry()
115 if (role_idx == USB_PD_PORT_POWER_DISCONNECTED || in cros_usbpd_print_log_entry()
116 role_idx == USB_PD_PORT_POWER_SOURCE) { in cros_usbpd_print_log_entry()