Lines Matching refs:f

37 static inline struct f_obex *func_to_obex(struct usb_function *f)  in func_to_obex()  argument
39 return container_of(f, struct f_obex, port.func); in func_to_obex()
189 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in obex_set_alt() argument
191 struct f_obex *obex = func_to_obex(f); in obex_set_alt()
192 struct usb_composite_dev *cdev = f->config->cdev; in obex_set_alt()
214 if (config_ep_by_speed(cdev->gadget, f, in obex_set_alt()
216 config_ep_by_speed(cdev->gadget, f, in obex_set_alt()
241 static int obex_get_alt(struct usb_function *f, unsigned intf) in obex_get_alt() argument
243 struct f_obex *obex = func_to_obex(f); in obex_get_alt()
248 static void obex_disable(struct usb_function *f) in obex_disable() argument
250 struct f_obex *obex = func_to_obex(f); in obex_disable()
251 struct usb_composite_dev *cdev = f->config->cdev; in obex_disable()
302 static int obex_bind(struct usb_configuration *c, struct usb_function *f) in obex_bind() argument
305 struct f_obex *obex = func_to_obex(f); in obex_bind()
323 status = usb_interface_id(c, f); in obex_bind()
331 status = usb_interface_id(c, f); in obex_bind()
363 status = usb_assign_descriptors(f, fs_function, hs_function, NULL, in obex_bind()
376 ERROR(cdev, "%s/%p: can't bind, err %d\n", f->name, f, status); in obex_bind()
416 static void obex_free_inst(struct usb_function_instance *f) in obex_free_inst() argument
420 opts = container_of(f, struct f_serial_opts, func_inst); in obex_free_inst()
446 static void obex_free(struct usb_function *f) in obex_free() argument
450 obex = func_to_obex(f); in obex_free()
454 static void obex_unbind(struct usb_configuration *c, struct usb_function *f) in obex_unbind() argument
456 usb_free_all_descriptors(f); in obex_unbind()