Home
last modified time | relevance | path

Searched refs:usb_device (Results 1 – 25 of 124) sorted by relevance

12345

/freebsd/sys/dev/usb/
H A Dusb_request.h33 usb_error_t usbd_req_clear_hub_feature(struct usb_device *udev,
35 usb_error_t usbd_req_clear_port_feature(struct usb_device *udev,
37 usb_error_t usbd_req_get_alt_interface_no(struct usb_device *udev,
40 usb_error_t usbd_req_get_config(struct usb_device *udev, struct mtx *mtx,
42 usb_error_t usbd_req_get_descriptor_ptr(struct usb_device *udev,
44 usb_error_t usbd_req_get_config_desc(struct usb_device *udev, struct mtx *mtx,
46 usb_error_t usbd_req_get_config_desc_full(struct usb_device *udev,
49 usb_error_t usbd_req_get_desc(struct usb_device *udev, struct mtx *mtx,
53 usb_error_t usbd_req_get_device_desc(struct usb_device *udev, struct mtx *mtx,
55 usb_error_t usbd_req_get_device_status(struct usb_device *udev,
[all …]
H A Dusb_device.h39 struct usb_device; /* linux compat */
59 struct usb_device *udev;
142 struct usb_device *udev;
189 struct usb_device { struct
217 struct usb_device *parent_hub; argument
218 struct usb_device *parent_hs_hub; /* high-speed parent HUB */ argument
302 struct usb_device *usb_alloc_device(device_t parent_dev, struct usb_bus *bus, argument
303 struct usb_device *parent_hub, uint8_t depth,
307 struct usb_fs_privdata *usb_make_dev(struct usb_device *, const char *,
312 usb_error_t usb_probe_and_attach(struct usb_device *udev,
[all …]
H A Dusb_controller.h60 void (*endpoint_init) (struct usb_device *,
64 void (*get_dma_delay) (struct usb_device *, uint32_t *);
65 void (*device_suspend) (struct usb_device *);
66 void (*device_resume) (struct usb_device *);
109 …void (*get_hw_ep_profile) (struct usb_device *udev, const struct usb_hw_ep_profile **ppf, uint8…
111 void (*set_stall) (struct usb_device *udev, struct usb_endpoint *ep, uint8_t *did_stall);
115 void (*clear_stall) (struct usb_device *udev, struct usb_endpoint *ep);
123 void (*get_power_mode) (struct usb_device *udev, int8_t *pmode);
127 void (*endpoint_uninit) (struct usb_device *, struct usb_endpoint *);
131 usb_error_t (*device_init) (struct usb_device *);
[all …]
H A Dusbdi_util.h42 usb_error_t usbd_do_request_proc(struct usb_device *udev, struct usb_process *pproc,
62 usb_error_t usbd_req_get_report(struct usb_device *udev, struct mtx *mtx,
65 usb_error_t usbd_req_get_report_descriptor(struct usb_device *udev,
68 usb_error_t usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx,
70 usb_error_t usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx,
73 usb_error_t usbd_req_set_config(struct usb_device *udev, struct mtx *mtx,
75 usb_error_t usbd_req_set_alt_interface_no(struct usb_device *udev,
77 usb_error_t usbd_req_set_idle(struct usb_device *udev, struct mtx *mtx,
79 usb_error_t usbd_req_set_protocol(struct usb_device *udev, struct mtx *mtx,
81 usb_error_t usbd_req_set_report(struct usb_device *udev, struct mtx *mtx,
[all …]
H A Dusbdi.h31 struct usb_device;
94 typedef usb_error_t (usb_handle_req_t)(struct usb_device *,
107 typedef void (*usb_dev_configured_t)(void *, struct usb_device *,
184 struct usb_device *linux_udev;
428 struct usb_device *device; /* current device */
561 void *usbd_find_descriptor(struct usb_device *udev, void *id,
565 struct usb_device *udev);
567 struct usb_device *udev);
568 struct usb_interface *usbd_get_iface(struct usb_device *udev,
572 struct usb_endpoint *usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index,
[all …]
H A Dusb_msctest.h43 int usb_iface_is_cdrom(struct usb_device *udev,
45 usb_error_t usb_msc_eject(struct usb_device *udev,
47 usb_error_t usb_msc_auto_quirk(struct usb_device *udev,
49 usb_error_t usb_msc_read_10(struct usb_device *udev,
52 usb_error_t usb_msc_write_10(struct usb_device *udev,
55 usb_error_t usb_msc_read_capacity(struct usb_device *udev,
58 usb_error_t usb_dymo_eject(struct usb_device *udev,
H A Dusb_device.c90 static void usb_init_endpoint(struct usb_device *, uint8_t,
94 static void usb_unconfigure(struct usb_device *, uint8_t);
95 static void usb_detach_device_sub(struct usb_device *, device_t *,
97 static uint8_t usb_probe_and_attach_sub(struct usb_device *,
99 static void usb_init_attach_arg(struct usb_device *,
101 static void usb_suspend_resume_sub(struct usb_device *, device_t,
104 static usb_error_t usb_config_parse(struct usb_device *, uint8_t, uint8_t);
106 static void usb_notify_addq(const char *type, struct usb_device *);
109 static void usb_fifo_free_wrap(struct usb_device *, uint8_t, uint8_t);
110 static void usb_cdev_create(struct usb_device *);
[all …]
H A Dusb_hub.h48 struct usb_device *hubudev; /* the HUB device */
49 usb_error_t (*explore) (struct usb_device *hub);
70 struct usb_device *udev, uint8_t device_index);
71 struct usb_device *usb_bus_port_get_device(struct usb_bus *bus,
78 usb_error_t uhub_query_info(struct usb_device *, uint8_t *, uint8_t *);
79 void uhub_explore_handle_re_enumerate(struct usb_device *);
H A Dusb_request.c138 usbd_get_debug_bits(struct usb_device *udev, struct usb_device_request *req, in usbd_get_debug_bits()
228 struct usb_device *udev; in usb_do_clear_stall_callback()
348 usbd_get_hr_func(struct usb_device *udev) in usbd_get_hr_func()
414 usbd_do_request_flags(struct usb_device *udev, struct mtx *mtx, in usbd_do_request_flags()
751 usbd_do_request_proc(struct usb_device *udev, struct usb_process *pproc, in usbd_do_request_proc()
795 usbd_req_reset_port(struct usb_device *udev, struct mtx *mtx, uint8_t port) in usbd_req_reset_port()
885 usbd_req_warm_reset_port(struct usb_device *udev, struct mtx *mtx, in usbd_req_warm_reset_port()
995 usbd_req_get_desc(struct usb_device *udev, in usbd_req_get_desc()
1109 usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, char *buf, in usbd_req_get_string_any()
1215 usbd_req_get_string_desc(struct usb_device *udev, struct mtx *mtx, void *sdesc, in usbd_req_get_string_desc()
[all …]
H A Dusb_process.h49 struct usb_device;
84 void usb_proc_explore_mwait(struct usb_device *, void *, void *);
85 void *usb_proc_explore_msignal(struct usb_device *, void *, void *);
86 void usb_proc_explore_lock(struct usb_device *);
87 void usb_proc_explore_unlock(struct usb_device *);
H A Dusb_transfer.h78 struct usb_device *udev; /* pointer to USB device */
103 struct usb_device *udev;
137 void usbd_ctrl_transfer_setup(struct usb_device *udev);
138 void usbd_clear_stall_locked(struct usb_device *udev,
140 void usbd_clear_data_toggle(struct usb_device *udev,
147 usb_timeout_t usbd_get_dma_delay(struct usb_device *udev);
H A Dusb_dynamic.h33 struct usb_device;
39 typedef usb_error_t (usb_temp_setup_by_index_t)(struct usb_device *udev,
45 typedef void (usb_temp_unsetup_t)(struct usb_device *udev);
46 typedef void (usb_linux_free_device_t)(struct usb_device *udev);
H A Dusb_hub.c127 static void usb_dev_resume_peer(struct usb_device *udev);
128 static void usb_dev_suspend_peer(struct usb_device *udev);
129 static uint8_t usb_peer_should_wakeup(struct usb_device *udev);
230 struct usb_device *udev = pm->udev; in uhub_reset_tt_proc()
259 uhub_tt_buffer_reset_async_locked(struct usb_device *child, struct usb_endpoint *ep) in uhub_tt_buffer_reset_async_locked()
262 struct usb_device *udev; in uhub_tt_buffer_reset_async_locked()
329 struct usb_device *udev; in uhub_reset_tt_callback()
383 uhub_count_active_host_ports(struct usb_device *udev, enum usb_dev_speed speed) in uhub_count_active_host_ports()
386 struct usb_device *child; in uhub_count_active_host_ports()
414 uhub_explore_handle_re_enumerate(struct usb_device *child) in uhub_explore_handle_re_enumerate()
[all …]
H A Dusb_dynamic.c82 usb_temp_setup_by_index_w(struct usb_device *udev, uint16_t index) in usb_temp_setup_by_index_w()
100 usb_temp_get_desc_w(struct usb_device *udev, struct usb_device_request *req, const void **pPtr, uin… in usb_temp_get_desc_w()
107 usb_temp_unsetup_w(struct usb_device *udev) in usb_temp_unsetup_w()
115 usb_linux_free_device_w(struct usb_device *udev) in usb_linux_free_device_w()
H A Dusb_fdt_support.c54 find_udev_in_children(phandle_t parent, struct usb_device *udev) in find_udev_in_children()
121 usb_fdt_get_node(device_t dev, struct usb_device *udev) in usb_fdt_get_node()
123 struct usb_device *ud; in usb_fdt_get_node()
124 struct usb_device *udev_stack[MAX_UDEV_NEST]; in usb_fdt_get_node()
H A Dusb_handle_request.c72 static uint8_t usb_handle_get_stall(struct usb_device *, uint8_t);
150 struct usb_device *udev = xfer->xroot->udev; in usb_handle_set_config()
191 usb_check_alt_setting(struct usb_device *udev, in usb_check_alt_setting()
223 struct usb_device *udev = xfer->xroot->udev; in usb_handle_iface_request()
386 struct usb_device *udev = xfer->xroot->udev; in usb_handle_set_stall()
404 usb_handle_get_stall(struct usb_device *udev, uint8_t ea_val) in usb_handle_get_stall()
431 struct usb_device *udev; in usb_handle_remote_wakeup()
469 struct usb_device *udev; in usb_handle_request()
H A Dusb_fdt_support.h31 struct usb_device;
44 phandle_t usb_fdt_get_node(device_t dev, struct usb_device* udev);
H A Dusb_util.h31 struct usb_device;
37 int usb_check_request(struct usb_device *, struct usb_device_request *);
H A Dusb_hub_private.h58 struct usb_device *sc_udev; /* USB device */
70 struct usb_device *udev;
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dusb.h41 struct usb_device;
241 struct usb_device *dev; /* (in) pointer to associated device */
282 int usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe);
283 int usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *ep,
286 int usb_set_interface(struct usb_device *dev, uint8_t ifnum,
288 int usb_setup_endpoint(struct usb_device *dev,
291 struct usb_host_endpoint *usb_find_host_endpoint(struct usb_device *dev,
296 struct usb_interface *usb_ifnum_to_if(struct usb_device *dev, uint8_t iface_no);
298 void *usb_buffer_alloc(struct usb_device *dev, usb_size_t size,
302 void usb_buffer_free(struct usb_device *dev, usb_size_t size, void *addr, uint8_t dma_addr);
[all …]
/freebsd/lib/libusb/
H A Dusb.h219 struct usb_device;
227 struct usb_device { struct
228 struct usb_device *next; argument
229 struct usb_device *prev; argument
243 struct usb_device **children; argument
252 struct usb_device *devices;
255 struct usb_device *root_dev;
274 usb_dev_handle *usb_open(struct usb_device *dev);
282 void usb_destroy_configuration(struct usb_device *dev);
302 struct usb_device *usb_device(usb_dev_handle * dev);
H A Dlibusb01.c154 usb_open(struct usb_device *dev) in usb_open()
181 struct usb_device *dev; in usb_close()
200 dev = usb_device(udev); in usb_close()
515 usb_destroy_configuration(struct usb_device *dev) in usb_destroy_configuration()
539 struct usb_device *dev; in usb_fetch_and_parse_descriptors()
551 dev = usb_device(udev); in usb_fetch_and_parse_descriptors()
723 struct usb_device *dev; in usb_set_configuration()
737 dev = usb_device(udev); in usb_set_configuration()
880 struct usb_device *udev; in usb_find_devices()
963 struct usb_device *
[all …]
/freebsd/sys/dev/usb/template/
H A Dusb_template.c99 static usb_error_t usb_hw_ep_resolve(struct usb_device *,
101 static const struct usb_temp_device_desc *usb_temp_get_tdd(struct usb_device *);
102 static void *usb_temp_get_device_desc(struct usb_device *);
103 static void *usb_temp_get_qualifier_desc(struct usb_device *);
104 static void *usb_temp_get_config_desc(struct usb_device *, uint16_t *,
106 static const void *usb_temp_get_string_desc(struct usb_device *, uint16_t,
108 static const void *usb_temp_get_vendor_desc(struct usb_device *,
110 static const void *usb_temp_get_hub_desc(struct usb_device *);
111 static usb_error_t usb_temp_get_desc(struct usb_device *,
113 static usb_error_t usb_temp_setup_by_index(struct usb_device *,
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_usb.c72 struct usb_device *sc_fbsd_udev;
89 static uint16_t usb_max_isoc_frames(struct usb_device *);
94 static int usb_linux_create_usb_device(struct usb_device *, device_t);
95 static void usb_linux_cleanup_interface(struct usb_device *,
381 usb_max_isoc_frames(struct usb_device *dev) in usb_max_isoc_frames()
555 usb_clear_halt(struct usb_device *dev, struct usb_host_endpoint *uhe) in usb_clear_halt()
652 usb_control_msg(struct usb_device *dev, struct usb_host_endpoint *uhe, in usb_control_msg()
743 usb_set_interface(struct usb_device *dev, uint8_t iface_no, uint8_t alt_index) in usb_set_interface()
773 usb_setup_endpoint(struct usb_device *dev, in usb_setup_endpoint()
858 usb_linux_create_usb_device(struct usb_device *udev, device_t dev) in usb_linux_create_usb_device()
[all …]
/freebsd/sys/dev/usb/controller/
H A Dusb_controller.c365 struct usb_device *udev; in usb_bus_explore()
429 struct usb_device *udev; in usb_bus_detach()
463 struct usb_device *udev; in usb_bus_suspend()
520 struct usb_device *udev; in usb_bus_resume()
605 struct usb_device *udev; in usb_bus_shutdown()
703 struct usb_device *child; in usb_bus_attach()
1014 usb_proc_explore_mwait(struct usb_device *udev, void *pm1, void *pm2) in usb_proc_explore_mwait()
1020 usb_proc_explore_msignal(struct usb_device *udev, void *pm1, void *pm2) in usb_proc_explore_msignal()
1026 usb_proc_explore_lock(struct usb_device *udev) in usb_proc_explore_lock()
1032 usb_proc_explore_unlock(struct usb_device *udev) in usb_proc_explore_unlock()

12345