Home
last modified time | relevance | path

Searched refs:USBDevice (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/qemu/include/hw/
H A Dusb.h181 typedef struct USBDevice USBDevice; typedef
215 USBDevice *dev;
227 struct USBDevice { struct
271 OBJECT_DECLARE_TYPE(USBDevice, USBDeviceClass, USB_DEVICE) argument
273 typedef void (*USBDeviceRealize)(USBDevice *dev, Error **errp);
274 typedef void (*USBDeviceUnrealize)(USBDevice *dev);
286 USBDevice *(*find_device)(USBDevice *dev, uint8_t addr);
291 void (*cancel_packet)(USBDevice *dev, USBPacket *p);
296 void (*handle_attach)(USBDevice *dev);
301 void (*handle_reset)(USBDevice *dev);
[all …]
/openbmc/qemu/hw/usb/
H A Dbus.c22 DEFINE_PROP_STRING("port", USBDevice, port_path),
23 DEFINE_PROP_STRING("serial", USBDevice, serial),
24 DEFINE_PROP_BIT("msos-desc", USBDevice, flags,
26 DEFINE_PROP_STRING("pcap", USBDevice, pcap_filename),
57 USBDevice *dev = opaque; in usb_device_post_load()
73 VMSTATE_UINT8(addr, USBDevice),
74 VMSTATE_INT32(state, USBDevice),
75 VMSTATE_INT32(remote_wakeup, USBDevice),
76 VMSTATE_INT32(setup_state, USBDevice),
77 VMSTATE_INT32(setup_len, USBDevice),
[all …]
H A Dcore.c39 USBDevice *udev = port->dev; in usb_pick_speed()
53 USBDevice *dev = port->dev; in usb_attach()
66 USBDevice *dev = port->dev; in usb_detach()
76 USBDevice *dev = port->dev; in usb_port_reset()
84 void usb_device_reset(USBDevice *dev) in usb_device_reset()
97 USBDevice *dev = ep->dev; in usb_wakeup()
129 static void do_token_setup(USBDevice *s, USBPacket *p) in do_token_setup()
181 static void do_token_in(USBDevice *s, USBPacket *p) in do_token_in()
229 static void do_token_out(USBDevice *s, USBPacket *p) in do_token_out()
267 static void do_parameter(USBDevice *s, USBPacket *p) in do_parameter()
[all …]
H A Ddesc.h234 void usb_desc_init(USBDevice *dev);
235 void usb_desc_attach(USBDevice *dev);
236 void usb_desc_set_string(USBDevice *dev, uint8_t index, const char *str);
237 void usb_desc_create_serial(USBDevice *dev);
238 const char *usb_desc_get_string(USBDevice *dev, uint8_t index);
239 int usb_desc_string(USBDevice *dev, int index, uint8_t *dest, size_t len);
240 int usb_desc_get_descriptor(USBDevice *dev, USBPacket *p,
242 int usb_desc_handle_control(USBDevice *dev, USBPacket *p,
H A Ddev-hub.c46 USBDevice dev;
307 static void usb_hub_child_detach(USBPort *port1, USBDevice *child) in usb_hub_child_detach()
342 static USBDevice *usb_hub_find_device(USBDevice *dev, uint8_t addr) in usb_hub_find_device()
346 USBDevice *downstream; in usb_hub_find_device()
362 static void usb_hub_handle_reset(USBDevice *dev) in usb_hub_handle_reset()
403 static void usb_hub_handle_control(USBDevice *dev, USBPacket *p, in usb_hub_handle_control()
458 USBDevice *pdev; in usb_hub_handle_control()
578 static void usb_hub_handle_data(USBDevice *dev, USBPacket *p) in usb_hub_handle_data()
623 static void usb_hub_unrealize(USBDevice *dev) in usb_hub_unrealize()
644 static void usb_hub_realize(USBDevice *dev, Error **errp) in usb_hub_realize()
H A Ddev-smartcard-reader.c289 USBDevice dev;
632 static void ccid_handle_reset(USBDevice *dev) in ccid_handle_reset()
674 static void ccid_handle_control(USBDevice *dev, USBPacket *p, int request, in ccid_handle_control()
1109 static void ccid_handle_data(USBDevice *dev, USBPacket *p) in ccid_handle_data()
1153 static void ccid_unrealize(USBDevice *dev) in ccid_unrealize()
1189 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_send_apdu_to_guest()
1212 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_card_removed()
1223 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_ccid_attach()
1233 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_ccid_detach()
1246 USBDevice *dev = USB_DEVICE(qdev->parent_bus->parent); in ccid_card_card_error()
[all …]
H A Ddev-hid.c40 USBDevice dev;
568 static void usb_hid_handle_reset(USBDevice *dev) in usb_hid_handle_reset()
575 static void usb_hid_handle_control(USBDevice *dev, USBPacket *p, in usb_hid_handle_control()
655 static void usb_hid_handle_data(USBDevice *dev, USBPacket *p) in usb_hid_handle_data()
691 static void usb_hid_unrealize(USBDevice *dev) in usb_hid_unrealize()
698 static void usb_hid_initfn(USBDevice *dev, int kind, in usb_hid_initfn()
728 static void usb_tablet_realize(USBDevice *dev, Error **errp) in usb_tablet_realize()
734 static void usb_mouse_realize(USBDevice *dev, Error **errp) in usb_mouse_realize()
739 static void usb_keyboard_realize(USBDevice *dev, Error **errp) in usb_keyboard_realize()
H A Ddev-serial.c93 USBDevice dev;
192 USBDevice *dev = USB_DEVICE(s); in usb_serial_set_flow_control()
202 USBDevice *dev = USB_DEVICE(s); in usb_serial_set_xonxoff()
221 static void usb_serial_handle_reset(USBDevice *dev) in usb_serial_handle_reset()
259 static void usb_serial_handle_control(USBDevice *dev, USBPacket *p, in usb_serial_handle_control()
479 static void usb_serial_handle_data(USBDevice *dev, USBPacket *p) in usb_serial_handle_data()
586 static void usb_serial_realize(USBDevice *dev, Error **errp) in usb_serial_realize()
617 static USBDevice *usb_braille_init(void) in usb_braille_init()
619 USBDevice *dev; in usb_braille_init()
H A Ddev-wacom.c43 USBDevice dev;
303 static void usb_wacom_handle_reset(USBDevice *dev) in usb_wacom_handle_reset()
316 static void usb_wacom_handle_control(USBDevice *dev, USBPacket *p, in usb_wacom_handle_control()
371 static void usb_wacom_handle_data(USBDevice *dev, USBPacket *p) in usb_wacom_handle_data()
399 static void usb_wacom_unrealize(USBDevice *dev) in usb_wacom_unrealize()
409 static void usb_wacom_realize(USBDevice *dev, Error **errp) in usb_wacom_realize()
H A Du2f.c149 static void u2f_key_handle_reset(USBDevice *dev) in u2f_key_handle_reset()
156 static void u2f_key_handle_control(USBDevice *dev, USBPacket *p, in u2f_key_handle_control()
238 static void u2f_key_handle_data(USBDevice *dev, USBPacket *p) in u2f_key_handle_data()
274 static void u2f_key_unrealize(USBDevice *dev) in u2f_key_unrealize()
284 static void u2f_key_realize(USBDevice *dev, Error **errp) in u2f_key_realize()
H A Dcanokey.c136 static void canokey_handle_reset(USBDevice *dev) in canokey_handle_reset()
148 static void canokey_handle_control(USBDevice *dev, USBPacket *p, in canokey_handle_control()
188 static void canokey_handle_data(USBDevice *dev, USBPacket *p) in canokey_handle_data()
270 static void canokey_realize(USBDevice *base, Error **errp) in canokey_realize()
294 static void canokey_unrealize(USBDevice *base) in canokey_unrealize()
H A Ddev-storage-classic.c30 static void usb_msd_storage_realize(USBDevice *dev, Error **errp) in usb_msd_storage_realize()
90 USBDevice *dev = USB_DEVICE(obj); in usb_msd_get_bootindex()
99 USBDevice *dev = USB_DEVICE(obj); in usb_msd_set_bootindex()
H A Ddesc.c369 static void usb_desc_ep_init(USBDevice *dev) in usb_desc_ep_init()
394 static const USBDescIface *usb_desc_find_interface(USBDevice *dev, in usb_desc_find_interface()
422 static int usb_desc_set_interface(USBDevice *dev, int index, int value) in usb_desc_set_interface()
443 static int usb_desc_set_config(USBDevice *dev, int value) in usb_desc_set_config()
476 static void usb_desc_setdefaults(USBDevice *dev) in usb_desc_setdefaults()
496 void usb_desc_init(USBDevice *dev) in usb_desc_init()
519 void usb_desc_attach(USBDevice *dev) in usb_desc_attach()
524 void usb_desc_set_string(USBDevice *dev, uint8_t index, const char *str) in usb_desc_set_string()
554 void usb_desc_create_serial(USBDevice *dev) in usb_desc_create_serial()
580 const char *usb_desc_get_string(USBDevice *dev, uint8_t index) in usb_desc_get_string()
[all …]
H A Ddev-audio.c41 static void usb_audio_reinit(USBDevice *dev, unsigned channels);
637 USBDevice dev;
814 static void usb_audio_handle_control(USBDevice *dev, USBPacket *p, in usb_audio_handle_control()
874 static void usb_audio_set_interface(USBDevice *dev, int iface, in usb_audio_set_interface()
884 static void usb_audio_handle_reset(USBDevice *dev) in usb_audio_handle_reset()
908 static void usb_audio_handle_data(USBDevice *dev, USBPacket *p) in usb_audio_handle_data()
925 static void usb_audio_unrealize(USBDevice *dev) in usb_audio_unrealize()
940 static void usb_audio_realize(USBDevice *dev, Error **errp) in usb_audio_realize()
964 static void usb_audio_reinit(USBDevice *dev, unsigned channels) in usb_audio_reinit()
H A Dhost-libusb.c83 USBDevice parent_obj;
434 USBDevice *udev = USB_DEVICE(s); in usb_host_req_complete_ctrl()
784 USBDevice *udev = USB_DEVICE(s); in usb_host_speed_compat()
869 USBDevice *udev = USB_DEVICE(s); in usb_host_ep_update()
950 USBDevice *udev = USB_DEVICE(s); in usb_host_open()
1104 USBDevice *udev = USB_DEVICE(s); in usb_host_close()
1181 static void usb_host_realize(USBDevice *udev, Error **errp) in usb_host_realize()
1257 USBDevice *udev = USB_DEVICE(obj); in usb_host_instance_init()
1265 static void usb_host_unrealize(USBDevice *udev) in usb_host_unrealize()
1276 static void usb_host_cancel_packet(USBDevice *udev, USBPacket *p) in usb_host_cancel_packet()
[all …]
H A Dbus-stub.c17 USBDevice *usbdevice_create(const char *driver) in usbdevice_create()
H A Dcombined-packet.c49 void usb_combined_input_packet_complete(USBDevice *dev, USBPacket *p) in usb_combined_input_packet_complete()
103 void usb_combined_packet_cancel(USBDevice *dev, USBPacket *p) in usb_combined_packet_cancel()
H A Ddev-uas.c117 USBDevice dev;
635 static void usb_uas_handle_reset(USBDevice *dev) in usb_uas_handle_reset()
651 static void usb_uas_handle_control(USBDevice *dev, USBPacket *p, in usb_uas_handle_control()
665 static void usb_uas_cancel_io(USBDevice *dev, USBPacket *p) in usb_uas_cancel_io()
817 static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) in usb_uas_handle_data()
920 static void usb_uas_unrealize(USBDevice *dev) in usb_uas_unrealize()
927 static void usb_uas_realize(USBDevice *dev, Error **errp) in usb_uas_realize()
H A Dcanokey.h35 USBDevice dev;
H A Ddev-network.c628 USBDevice dev;
1060 static void usb_net_handle_reset(USBDevice *dev) in usb_net_handle_reset()
1064 static void usb_net_handle_control(USBDevice *dev, USBPacket *p, in usb_net_handle_control()
1241 static void usb_net_handle_data(USBDevice *dev, USBPacket *p) in usb_net_handle_data()
1344 static void usb_net_unrealize(USBDevice *dev) in usb_net_unrealize()
1360 static void usb_net_realize(USBDevice *dev, Error **errp) in usb_net_realize()
1397 USBDevice *dev = USB_DEVICE(obj); in usb_net_instance_init()
H A Ddev-storage.c324 void usb_msd_handle_reset(USBDevice *dev) in usb_msd_handle_reset()
345 static void usb_msd_handle_control(USBDevice *dev, USBPacket *p, in usb_msd_handle_control()
387 static void usb_msd_cancel_io(USBDevice *dev, USBPacket *p) in usb_msd_cancel_io()
399 static void usb_msd_handle_data(USBDevice *dev, USBPacket *p) in usb_msd_handle_data()
H A Du2f.h58 USBDevice dev;
H A Ddev-storage-bot.c27 static void usb_msd_bot_realize(USBDevice *dev, Error **errp) in usb_msd_bot_realize()
H A Dhcd-dwc2.c183 static USBDevice *dwc2_find_device(DWC2State *s, uint8_t addr) in dwc2_find_device()
185 USBDevice *dev; in dwc2_find_device()
223 static void dwc2_handle_packet(DWC2State *s, uint32_t devadr, USBDevice *dev, in dwc2_handle_packet()
479 static void dwc2_child_detach(USBPort *port, USBDevice *child) in dwc2_child_detach()
504 USBDevice *dev; in dwc2_async_packet_complete()
571 USBDevice *dev; in dwc2_work_bh()
613 USBDevice *dev; in dwc2_enable_chan()
876 USBDevice *dev = s->uport.dev; in dwc2_hreg0_write()
/openbmc/qemu/include/hw/usb/
H A Dmsd.h28 USBDevice dev;
55 void usb_msd_handle_reset(USBDevice *dev);

12