Home
last modified time | relevance | path

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

12345678910>>...21

/linux-6.6.21/drivers/usb/core/
Dusb.h14 extern int usb_create_sysfs_dev_files(struct usb_device *dev);
15 extern void usb_remove_sysfs_dev_files(struct usb_device *dev);
21 struct usb_device *udev);
24 extern void usb_enable_endpoint(struct usb_device *dev,
26 extern void usb_enable_interface(struct usb_device *dev,
28 extern void usb_disable_endpoint(struct usb_device *dev, unsigned int epaddr,
30 extern void usb_disable_interface(struct usb_device *dev,
33 extern void usb_disable_device(struct usb_device *dev, int skip_ep0);
34 extern int usb_deauthorize_device(struct usb_device *);
35 extern int usb_authorize_device(struct usb_device *);
[all …]
Dsysfs.c29 struct usb_device *udev; \
55 struct usb_device *udev; in bMaxPower_show()
74 struct usb_device *udev; in configuration_show()
97 struct usb_device *udev = to_usb_device(dev); in bConfigurationValue_store()
128 struct usb_device *udev; \
148 struct usb_device *udev; in speed_show()
183 struct usb_device *udev; in rx_lanes_show()
193 struct usb_device *udev; in tx_lanes_show()
203 struct usb_device *udev; in busnum_show()
213 struct usb_device *udev; in devnum_show()
[all …]
Dhub.h21 struct usb_device *hdev;
99 struct usb_device *child;
126 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
128 extern struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev);
131 extern int usb_clear_port_feature(struct usb_device *hdev,
147 static inline int hub_is_superspeed(struct usb_device *hdev) in hub_is_superspeed()
152 static inline int hub_is_superspeedplus(struct usb_device *hdev) in hub_is_superspeedplus()
Ddriver.c252 struct usb_device *udev = to_usb_device(dev); in usb_probe_device()
305 struct usb_device *udev = to_usb_device(dev); in usb_unbind_device()
322 struct usb_device *udev = interface_to_usbdev(intf); in usb_probe_interface()
433 struct usb_device *udev; in usb_unbind_interface()
638 int usb_match_device(struct usb_device *dev, const struct usb_device_id *id) in usb_match_device()
674 int usb_match_one_id_intf(struct usb_device *dev, in usb_match_one_id_intf()
713 struct usb_device *dev; in usb_match_one_id()
824 const struct usb_device_id *usb_device_match_id(struct usb_device *udev, in usb_device_match_id()
839 bool usb_driver_applicable(struct usb_device *udev, in usb_driver_applicable()
859 struct usb_device *udev; in usb_device_match()
[all …]
Dhub.c127 static int usb_reset_and_verify_device(struct usb_device *udev);
147 struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev) in usb_hub_to_struct_hub()
154 int usb_device_supports_lpm(struct usb_device *udev) in usb_device_supports_lpm()
204 static void usb_set_lpm_mel(struct usb_device *udev, in usb_set_lpm_mel()
251 static void usb_set_lpm_pel(struct usb_device *udev, in usb_set_lpm_pel()
305 static void usb_set_lpm_sel(struct usb_device *udev, in usb_set_lpm_sel()
308 struct usb_device *parent; in usb_set_lpm_sel()
328 static void usb_set_lpm_parameters(struct usb_device *udev) in usb_set_lpm_parameters()
400 static int get_hub_descriptor(struct usb_device *hdev, in get_hub_descriptor()
436 static int clear_hub_feature(struct usb_device *hdev, int feature) in clear_hub_feature()
[all …]
Dgeneric.c56 int usb_choose_configuration(struct usb_device *udev) in usb_choose_configuration()
200 struct usb_device *udev = data; in __check_for_non_generic_match()
211 static bool usb_generic_driver_match(struct usb_device *udev) in usb_generic_driver_match()
226 int usb_generic_driver_probe(struct usb_device *udev) in usb_generic_driver_probe()
253 void usb_generic_driver_disconnect(struct usb_device *udev) in usb_generic_driver_disconnect()
265 int usb_generic_driver_suspend(struct usb_device *udev, pm_message_t msg) in usb_generic_driver_suspend()
293 int usb_generic_driver_resume(struct usb_device *udev, pm_message_t msg) in usb_generic_driver_resume()
Dusb.c348 struct usb_interface *usb_ifnum_to_if(const struct usb_device *dev, in usb_ifnum_to_if()
447 int (*fn)(struct usb_device *, void *);
470 int usb_for_each_dev(void *data, int (*fn)(struct usb_device *, void *)) in usb_for_each_dev() argument
487 struct usb_device *udev; in usb_release_dev()
505 const struct usb_device *usb_dev; in usb_dev_uevent()
588 const struct usb_device *usb_dev; in usb_devnode()
605 static bool usb_dev_authorized(struct usb_device *dev, struct usb_hcd *hcd) in usb_dev_authorized()
643 struct usb_device *usb_alloc_dev(struct usb_device *parent, in usb_alloc_dev()
646 struct usb_device *dev; in usb_alloc_dev()
762 struct usb_device *usb_get_dev(struct usb_device *dev) in usb_get_dev()
[all …]
Dmessage.c28 static void cancel_async_set_config(struct usb_device *udev);
87 static int usb_internal_control_msg(struct usb_device *usb_dev, in usb_internal_control_msg()
137 int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, in usb_control_msg()
199 int usb_control_msg_send(struct usb_device *dev, __u8 endpoint, __u8 request, in usb_control_msg_send()
264 int usb_control_msg_recv(struct usb_device *dev, __u8 endpoint, __u8 request, in usb_control_msg_recv()
325 int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_interrupt_msg()
364 int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, in usb_bulk_msg()
502 int usb_sg_init(struct usb_sg_request *io, struct usb_device *dev, in usb_sg_init()
781 int usb_get_descriptor(struct usb_device *dev, unsigned char type, in usb_get_descriptor()
833 static int usb_get_string(struct usb_device *dev, unsigned short langid, in usb_get_string()
[all …]
Dledtrig-usbport.c25 struct usb_device *hub;
41 struct usb_device *usb_dev) in usbport_trig_usb_dev_observed()
57 static int usbport_trig_usb_dev_check(struct usb_device *usb_dev, void *data) in usbport_trig_usb_dev_check()
130 struct usb_device *usb_dev, int port1) in usbport_trig_port_observed()
184 struct usb_device *usb_dev, in usbport_trig_add_port()
235 static int usbport_trig_add_usb_dev_ports(struct usb_device *usb_dev, in usbport_trig_add_usb_dev_ports()
261 struct usb_device *usb_dev) in usbport_trig_remove_usb_dev_ports()
281 struct usb_device *usb_dev = data; in usbport_trig_notify()
/linux-6.6.21/include/linux/
Dusb.h26 struct usb_device;
476 struct usb_device *root_hub; /* Root hub */
652 struct usb_device { struct
667 struct usb_device *parent; argument
734 #define to_usb_device(__dev) container_of_const(__dev, struct usb_device, dev) argument
736 static inline struct usb_device *__intf_to_usbdev(struct usb_interface *intf) in __intf_to_usbdev()
740 static inline const struct usb_device *__intf_to_usbdev_const(const struct usb_interface *intf) in __intf_to_usbdev_const()
750 extern struct usb_device *usb_get_dev(struct usb_device *dev);
751 extern void usb_put_dev(struct usb_device *dev);
752 extern struct usb_device *usb_hub_find_child(struct usb_device *hdev,
[all …]
/linux-6.6.21/include/linux/usb/
Dhcd.h331 int (*alloc_dev)(struct usb_hcd *, struct usb_device *);
333 void (*free_dev)(struct usb_hcd *, struct usb_device *);
335 int (*alloc_streams)(struct usb_hcd *hcd, struct usb_device *udev,
341 int (*free_streams)(struct usb_hcd *hcd, struct usb_device *udev,
356 int (*add_endpoint)(struct usb_hcd *, struct usb_device *,
359 int (*drop_endpoint)(struct usb_hcd *, struct usb_device *,
366 int (*check_bandwidth)(struct usb_hcd *, struct usb_device *);
374 void (*reset_bandwidth)(struct usb_hcd *, struct usb_device *);
376 int (*address_device)(struct usb_hcd *, struct usb_device *udev);
378 int (*enable_device)(struct usb_hcd *, struct usb_device *udev);
[all …]
Dof.h13 struct usb_device;
20 struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1);
21 bool usb_of_has_combined_node(struct usb_device *udev);
22 struct device_node *usb_of_get_interface_node(struct usb_device *udev,
41 usb_of_get_device_node(struct usb_device *hub, int port1) in usb_of_get_device_node()
45 static inline bool usb_of_has_combined_node(struct usb_device *udev) in usb_of_has_combined_node()
50 usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) in usb_of_get_interface_node()
Donboard_hub.h6 struct usb_device;
10 void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list);
13 static inline void onboard_hub_create_pdevs(struct usb_device *parent_hub, in onboard_hub_create_pdevs()
/linux-6.6.21/drivers/most/
Dmost_usb.c67 struct usb_device *usb_device; member
104 struct usb_device *usb_device; member
139 static inline int drci_rd_reg(struct usb_device *dev, u16 reg, u16 *buf) in drci_rd_reg()
170 static inline int drci_wr_reg(struct usb_device *dev, u16 reg, u16 data) in drci_wr_reg()
183 static inline int start_sync_ep(struct usb_device *usb_dev, u16 ep) in start_sync_ep()
243 dev_warn(&mdev->usb_device->dev, "Channel ID out of range.\n"); in hdm_poison_channel()
287 dev_err(&mdev->usb_device->dev, in hdm_add_padding()
360 dev_warn(&mdev->usb_device->dev, in hdm_write_completion()
397 struct device *dev = &mdev->usb_device->dev; in hdm_read_completion()
479 if (!mdev->usb_device) { in hdm_enqueue()
[all …]
/linux-6.6.21/drivers/usb/misc/
Dlvstest.c40 static struct usb_device *create_lvs_device(struct usb_interface *intf) in create_lvs_device()
42 struct usb_device *udev, *hdev; in create_lvs_device()
74 static void destroy_lvs_device(struct usb_device *udev) in destroy_lvs_device()
76 struct usb_device *hdev = udev->parent; in destroy_lvs_device()
85 static int lvs_rh_clear_port_feature(struct usb_device *hdev, in lvs_rh_clear_port_feature()
93 static int lvs_rh_set_port_feature(struct usb_device *hdev, in lvs_rh_set_port_feature()
105 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store()
107 struct usb_device *udev; in u3_entry_store()
134 struct usb_device *hdev = interface_to_usbdev(intf); in u3_exit_store()
136 struct usb_device *udev; in u3_exit_store()
[all …]
Dezusb.c31 static int ezusb_writememory(struct usb_device *dev, int address, in ezusb_writememory()
42 static int ezusb_set_reset(struct usb_device *dev, unsigned short cpucs_reg, in ezusb_set_reset()
52 int ezusb_fx1_set_reset(struct usb_device *dev, unsigned char reset_bit) in ezusb_fx1_set_reset()
58 static int ezusb_ihex_firmware_download(struct usb_device *dev, in ezusb_ihex_firmware_download()
120 int ezusb_fx1_ihex_firmware_download(struct usb_device *dev, in ezusb_fx1_ihex_firmware_download()
137 int ezusb_fx2_set_reset(struct usb_device *dev, unsigned char reset_bit)
143 int ezusb_fx2_ihex_firmware_download(struct usb_device *dev,
Demi26.c29 static int emi26_writememory( struct usb_device *dev, int address,
32 static int emi26_set_reset(struct usb_device *dev, unsigned char reset_bit);
33 static int emi26_load_firmware (struct usb_device *dev);
38 static int emi26_writememory (struct usb_device *dev, int address, in emi26_writememory()
57 static int emi26_set_reset (struct usb_device *dev, unsigned char reset_bit) in emi26_set_reset()
71 static int emi26_load_firmware (struct usb_device *dev) in emi26_load_firmware()
228 struct usb_device *dev = interface_to_usbdev(intf); in emi26_probe()
Demi62.c38 static int emi62_writememory(struct usb_device *dev, int address,
41 static int emi62_set_reset(struct usb_device *dev, unsigned char reset_bit);
42 static int emi62_load_firmware (struct usb_device *dev);
47 static int emi62_writememory(struct usb_device *dev, int address, in emi62_writememory()
66 static int emi62_set_reset (struct usb_device *dev, unsigned char reset_bit) in emi62_set_reset()
79 static int emi62_load_firmware (struct usb_device *dev) in emi62_load_firmware()
240 struct usb_device *dev = interface_to_usbdev(intf); in emi62_probe()
/linux-6.6.21/drivers/hid/
Dhid-roccat-common.c21 int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, in roccat_common2_receive()
43 int roccat_common2_send(struct usb_device *usb_dev, uint report_id, in roccat_common2_send()
72 static int roccat_common2_receive_control_status(struct usb_device *usb_dev) in roccat_common2_receive_control_status()
107 int roccat_common2_send_with_status(struct usb_device *usb_dev, in roccat_common2_send_with_status()
122 int roccat_common2_device_init_struct(struct usb_device *usb_dev, in roccat_common2_device_init_struct()
136 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in roccat_common2_sysfs_read()
159 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in roccat_common2_sysfs_write()
Dhid-roccat-kone.c53 static int kone_receive(struct usb_device *usb_dev, uint usb_command, in kone_receive()
73 static int kone_send(struct usb_device *usb_dev, uint usb_command, in kone_send()
108 static int kone_check_write(struct usb_device *usb_dev) in kone_check_write()
145 static int kone_get_settings(struct usb_device *usb_dev, in kone_get_settings()
157 static int kone_set_settings(struct usb_device *usb_dev, in kone_set_settings()
175 static int kone_get_profile(struct usb_device *usb_dev, in kone_get_profile()
201 static int kone_set_profile(struct usb_device *usb_dev, in kone_set_profile()
230 static int kone_get_weight(struct usb_device *usb_dev, int *result) in kone_get_weight()
249 static int kone_get_firmware_version(struct usb_device *usb_dev, int *result) in kone_get_firmware_version()
292 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kone_sysfs_write_settings()
[all …]
Dhid-elo.c29 struct usb_device *usbdev;
106 static int elo_smartset_send_get(struct usb_device *dev, u8 command, in elo_smartset_send_get()
127 static int elo_flush_smartset_responses(struct usb_device *dev) in elo_flush_smartset_responses()
138 struct usb_device *dev = priv->usbdev; in elo_work()
189 static bool elo_broken_firmware(struct usb_device *dev) in elo_broken_firmware()
191 struct usb_device *hub = dev->parent; in elo_broken_firmware()
192 struct usb_device *child = NULL; in elo_broken_firmware()
Dhid-roccat-kovaplus.c43 static int kovaplus_send_control(struct usb_device *usb_dev, uint value, in kovaplus_send_control()
64 static int kovaplus_select_profile(struct usb_device *usb_dev, uint number, in kovaplus_select_profile()
70 static int kovaplus_get_profile_settings(struct usb_device *usb_dev, in kovaplus_get_profile_settings()
84 static int kovaplus_get_profile_buttons(struct usb_device *usb_dev, in kovaplus_get_profile_buttons()
99 static int kovaplus_get_actual_profile(struct usb_device *usb_dev) in kovaplus_get_actual_profile()
110 static int kovaplus_set_actual_profile(struct usb_device *usb_dev, in kovaplus_set_actual_profile()
130 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read()
155 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_write()
220 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_settings()
238 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in kovaplus_sysfs_read_profilex_buttons()
[all …]
Dhid-roccat-pyra.c38 static int pyra_send_control(struct usb_device *usb_dev, int value, in pyra_send_control()
56 static int pyra_get_profile_settings(struct usb_device *usb_dev, in pyra_get_profile_settings()
68 static int pyra_get_settings(struct usb_device *usb_dev, in pyra_get_settings()
75 static int pyra_set_settings(struct usb_device *usb_dev, in pyra_set_settings()
89 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read()
114 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_write()
187 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read_profilex_settings()
205 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_read_profilex_buttons()
243 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_write_settings()
295 struct usb_device *usb_dev = interface_to_usbdev(to_usb_interface(dev)); in pyra_sysfs_show_actual_profile()
[all …]
/linux-6.6.21/drivers/usb/serial/
Dssu100.c66 static inline int ssu100_control_msg(struct usb_device *dev, in ssu100_control_msg()
74 static inline int ssu100_setdevice(struct usb_device *dev, u8 *data) in ssu100_setdevice()
82 static inline int ssu100_getdevice(struct usb_device *dev, u8 *data) in ssu100_getdevice()
97 static inline int ssu100_getregister(struct usb_device *dev, in ssu100_getregister()
116 static inline int ssu100_setregister(struct usb_device *dev, in ssu100_setregister()
133 static inline int update_mctrl(struct usb_device *dev, unsigned int set, in update_mctrl()
158 static int ssu100_initdevice(struct usb_device *dev) in ssu100_initdevice()
220 struct usb_device *dev = port->serial->dev; in ssu100_set_termios()
280 struct usb_device *dev = port->serial->dev; in ssu100_open()
351 struct usb_device *dev = port->serial->dev; in ssu100_tiocmget()
[all …]
/linux-6.6.21/include/media/
Dmedia-dev-allocator.h20 struct usb_device;
38 struct media_device *media_device_usb_allocate(struct usb_device *udev,
56 struct usb_device *udev, const char *module_name, in media_device_usb_allocate()

12345678910>>...21