Home
last modified time | relevance | path

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

/drivers/usb/musb/
Dmediatek.c122 enum usb_role new_role; in mtk_otg_switch_set() local
131 new_role = USB_ROLE_HOST; in mtk_otg_switch_set()
142 new_role = USB_ROLE_DEVICE; in mtk_otg_switch_set()
152 new_role = USB_ROLE_NONE; in mtk_otg_switch_set()
164 glue->role = new_role; in mtk_otg_switch_set()
274 enum usb_role new_role; in mtk_musb_set_mode() local
279 new_role = USB_ROLE_HOST; in mtk_musb_set_mode()
283 new_role = USB_ROLE_DEVICE; in mtk_musb_set_mode()
287 new_role = USB_ROLE_NONE; in mtk_musb_set_mode()
302 mtk_otg_switch_set(glue, new_role); in mtk_musb_set_mode()
/drivers/block/drbd/
Ddrbd_nl.c615 drbd_set_role(struct drbd_device *const device, enum drbd_role new_role, int force) in drbd_set_role() argument
626 if (new_role == R_PRIMARY) { in drbd_set_role()
640 val.i = 0; val.role = new_role; in drbd_set_role()
718 if (new_role == R_SECONDARY) { in drbd_set_role()
752 set_disk_ro(device->vdisk, new_role == R_SECONDARY); in drbd_set_role()
Ddrbd_int.h1481 enum drbd_role new_role,