Lines Matching refs:f

41 static inline struct f_obex *func_to_obex(struct usb_function *f)  in func_to_obex()  argument
43 return container_of(f, struct f_obex, port.func); in func_to_obex()
193 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in obex_set_alt() argument
195 struct f_obex *obex = func_to_obex(f); in obex_set_alt()
196 struct usb_composite_dev *cdev = f->config->cdev; in obex_set_alt()
218 if (config_ep_by_speed(cdev->gadget, f, in obex_set_alt()
220 config_ep_by_speed(cdev->gadget, f, in obex_set_alt()
245 static int obex_get_alt(struct usb_function *f, unsigned intf) in obex_get_alt() argument
247 struct f_obex *obex = func_to_obex(f); in obex_get_alt()
252 static void obex_disable(struct usb_function *f) in obex_disable() argument
254 struct f_obex *obex = func_to_obex(f); in obex_disable()
255 struct usb_composite_dev *cdev = f->config->cdev; in obex_disable()
306 static int obex_bind(struct usb_configuration *c, struct usb_function *f) in obex_bind() argument
309 struct f_obex *obex = func_to_obex(f); in obex_bind()
327 status = usb_interface_id(c, f); in obex_bind()
335 status = usb_interface_id(c, f); in obex_bind()
367 status = usb_assign_descriptors(f, fs_function, hs_function, NULL); in obex_bind()
379 ERROR(cdev, "%s/%p: can't bind, err %d\n", f->name, f, status); in obex_bind()
419 static void obex_free_inst(struct usb_function_instance *f) in obex_free_inst() argument
423 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
449 static void obex_free(struct usb_function *f) in obex_free() argument
453 obex = func_to_obex(f); in obex_free()
457 static void obex_unbind(struct usb_configuration *c, struct usb_function *f) in obex_unbind() argument
459 usb_free_all_descriptors(f); in obex_unbind()