Lines Matching refs:gadget_info
37 struct gadget_info { struct
64 static inline struct gadget_info *to_gadget_info(struct config_item *item) in to_gadget_info() argument
66 return container_of(to_config_group(item), struct gadget_info, group); in to_gadget_info()
84 static inline struct gadget_info *cfg_to_gadget_info(struct config_usb_cfg *cfg) in cfg_to_gadget_info()
86 return container_of(cfg->c.cdev, struct gadget_info, cdev); in cfg_to_gadget_info()
241 struct gadget_info *gi = to_gadget_info(item); in gadget_dev_desc_UDC_show()
253 static int unregister_gadget(struct gadget_info *gi) in unregister_gadget()
271 struct gadget_info *gi = to_gadget_info(item); in gadget_dev_desc_UDC_store()
322 struct gadget_info *gi = to_gadget_info(item); in gadget_dev_desc_max_speed_store()
399 struct gadget_info *gi = to_gadget_info(item); in gadget_info_attr_release()
428 struct gadget_info *gi = cfg_to_gadget_info(cfg); in config_usb_cfg_link()
485 struct gadget_info *gi = cfg_to_gadget_info(cfg); in config_usb_cfg_unlink()
602 struct gadget_info *gi; in function_make()
639 gi = container_of(group, struct gadget_info, functions_group); in function_make()
652 struct gadget_info *gi; in function_drop()
654 gi = container_of(group, struct gadget_info, functions_group); in function_drop()
696 struct gadget_info *gi; in config_desc_make()
703 gi = container_of(group, struct gadget_info, configs_group); in config_desc_make()
909 struct gadget_info *gi; in gadget_language_make()
925 gi = container_of(group, struct gadget_info, strings_group); in gadget_language_make()
963 static inline struct gadget_info *webusb_item_to_gadget_info( in webusb_item_to_gadget_info()
967 struct gadget_info, webusb_group); in webusb_item_to_gadget_info()
979 struct gadget_info *gi = webusb_item_to_gadget_info(item); in webusb_use_store()
1003 struct gadget_info *gi = webusb_item_to_gadget_info(item); in webusb_bcdVersion_store()
1031 struct gadget_info *gi = webusb_item_to_gadget_info(item); in webusb_bVendorCode_store()
1054 struct gadget_info *gi = webusb_item_to_gadget_info(item); in webusb_landingPage_store()
1108 static inline struct gadget_info *os_desc_item_to_gadget_info( in os_desc_item_to_gadget_info()
1112 struct gadget_info, os_desc_group); in os_desc_item_to_gadget_info()
1124 struct gadget_info *gi = os_desc_item_to_gadget_info(item); in os_desc_use_store()
1148 struct gadget_info *gi = os_desc_item_to_gadget_info(item); in os_desc_b_vendor_code_store()
1165 struct gadget_info *gi = os_desc_item_to_gadget_info(item); in os_desc_qw_sign_show()
1178 struct gadget_info *gi = os_desc_item_to_gadget_info(item); in os_desc_qw_sign_store()
1210 struct gadget_info *gi = os_desc_item_to_gadget_info(os_desc_ci); in os_desc_link()
1244 struct gadget_info *gi = os_desc_item_to_gadget_info(os_desc_ci); in os_desc_unlink()
1569 static void purge_configs_funcs(struct gadget_info *gi) in purge_configs_funcs()
1599 configfs_attach_gadget_strings(struct gadget_info *gi) in configfs_attach_gadget_strings()
1676 struct gadget_info *gi = container_of(composite, in configfs_composite_bind()
1677 struct gadget_info, composite); in configfs_composite_bind()
1818 struct gadget_info *gi; in configfs_composite_unbind()
1824 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_unbind()
1846 struct gadget_info *gi; in configfs_composite_setup()
1854 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_setup()
1870 struct gadget_info *gi; in configfs_composite_disconnect()
1877 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_disconnect()
1892 struct gadget_info *gi; in configfs_composite_reset()
1899 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_reset()
1914 struct gadget_info *gi; in configfs_composite_suspend()
1921 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_suspend()
1936 struct gadget_info *gi; in configfs_composite_resume()
1943 gi = container_of(cdev, struct gadget_info, cdev); in configfs_composite_resume()
1977 struct gadget_info *gi; in gadgets_make()
2070 struct gadget_info *gi = to_gadget_info(item); in unregister_gadget_item()