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