Lines Matching refs:f

33 static inline struct f_gser *func_to_gser(struct usb_function *f)  in func_to_gser()  argument
35 return container_of(f, struct f_gser, port.func); in func_to_gser()
146 static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in gser_set_alt() argument
148 struct f_gser *gser = func_to_gser(f); in gser_set_alt()
149 struct usb_composite_dev *cdev = f->config->cdev; in gser_set_alt()
161 if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || in gser_set_alt()
162 config_ep_by_speed(cdev->gadget, f, gser->port.out)) { in gser_set_alt()
172 static void gser_disable(struct usb_function *f) in gser_disable() argument
174 struct f_gser *gser = func_to_gser(f); in gser_disable()
175 struct usb_composite_dev *cdev = f->config->cdev; in gser_disable()
186 static int gser_bind(struct usb_configuration *c, struct usb_function *f) in gser_bind() argument
189 struct f_gser *gser = func_to_gser(f); in gser_bind()
206 status = usb_interface_id(c, f); in gser_bind()
235 status = usb_assign_descriptors(f, gser_fs_function, gser_hs_function, in gser_bind()
247 ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); in gser_bind()
308 static void gser_free_inst(struct usb_function_instance *f) in gser_free_inst() argument
312 opts = container_of(f, struct f_serial_opts, func_inst); in gser_free_inst()
338 static void gser_free(struct usb_function *f) in gser_free() argument
342 serial = func_to_gser(f); in gser_free()
346 static void gser_unbind(struct usb_configuration *c, struct usb_function *f) in gser_unbind() argument
348 struct f_gser *gser = func_to_gser(f); in gser_unbind()
352 usb_free_all_descriptors(f); in gser_unbind()
355 static void gser_resume(struct usb_function *f) in gser_resume() argument
357 struct f_gser *gser = func_to_gser(f); in gser_resume()
362 static void gser_suspend(struct usb_function *f) in gser_suspend() argument
364 struct f_gser *gser = func_to_gser(f); in gser_suspend()