Home | History | Annotate | Download | only in emul

Lines Matching refs:emul

176 int usb_emul_control(struct udevice *emul, struct usb_device *udev,
180 struct dm_usb_ops *ops = usb_get_emul_ops(emul);
185 plat = dev_get_parent_platdata(emul);
188 debug("%s: dev=%s\n", __func__, emul->name);
196 ret = device_probe(emul);
199 return ops->control(emul, udev, pipe, buffer, length,
205 debug(" ** set address %s %d\n", emul->name,
219 ret = device_probe(emul);
222 return ops->control(emul, udev, pipe, buffer, length,
231 int usb_emul_bulk(struct udevice *emul, struct usb_device *udev,
234 struct dm_usb_ops *ops = usb_get_emul_ops(emul);
240 debug("%s: dev=%s\n", __func__, emul->name);
241 ret = device_probe(emul);
244 return ops->bulk(emul, udev, pipe, buffer, length);
247 int usb_emul_int(struct udevice *emul, struct usb_device *udev,
250 struct dm_usb_ops *ops = usb_get_emul_ops(emul);
254 debug("%s: dev=%s\n", __func__, emul->name);
256 return ops->interrupt(emul, udev, pipe, buffer, length, interval);