Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/cdns3/
Dcore.c280 enum usb_role real_role, current_role; in cdns3_hw_role_switch() local
289 current_role = cdns->role; in cdns3_hw_role_switch()
293 if (current_role == real_role) in cdns3_hw_role_switch()
298 dev_dbg(cdns->dev, "Switching role %d -> %d", current_role, real_role); in cdns3_hw_role_switch()
304 real_role, current_role); in cdns3_hw_role_switch()
305 ret = cdns3_role_start(cdns, current_role); in cdns3_hw_role_switch()
308 current_role); in cdns3_hw_role_switch()
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dcore.c605 enum usb_role current_role = ci_role_to_usb_role(ci); in ci_usb_role_switch_set() local
610 (current_role == role)) in ci_usb_role_switch_set()
616 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
618 else if (current_role == USB_ROLE_HOST) in ci_usb_role_switch_set()