Lines Matching defs:protocol
28 /* Change USB protocol when there is a protocol change */
29 static int otg_set_protocol(struct otg_fsm *fsm, int protocol)
33 if (fsm->protocol != protocol) {
34 VDBG("Changing role fsm->protocol= %d; new protocol= %d\n",
35 fsm->protocol, protocol);
36 /* stop old protocol */
37 if (fsm->protocol == PROTO_HOST)
39 else if (fsm->protocol == PROTO_GADGET)
44 /* start new protocol */
45 if (protocol == PROTO_HOST)
47 else if (protocol == PROTO_GADGET)
52 fsm->protocol = protocol;