Lines Matching refs:f
59 static inline struct f_gether *func_to_geth(struct usb_function *f) in func_to_geth() argument
61 return container_of(f, struct f_gether, port.func); in func_to_geth()
257 static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in geth_set_alt() argument
259 struct f_gether *geth = func_to_geth(f); in geth_set_alt()
260 struct usb_composite_dev *cdev = f->config->cdev; in geth_set_alt()
271 if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) || in geth_set_alt()
272 config_ep_by_speed(cdev->gadget, f, geth->port.out_ep)) { in geth_set_alt()
282 static void geth_disable(struct usb_function *f) in geth_disable() argument
284 struct f_gether *geth = func_to_geth(f); in geth_disable()
285 struct usb_composite_dev *cdev = f->config->cdev; in geth_disable()
296 geth_bind(struct usb_configuration *c, struct usb_function *f) in geth_bind() argument
299 struct f_gether *geth = func_to_geth(f); in geth_bind()
306 gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); in geth_bind()
334 status = usb_interface_id(c, f); in geth_bind()
364 status = usb_assign_descriptors(f, fs_eth_function, hs_eth_function, in geth_bind()
381 ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); in geth_bind()
421 static void geth_free_inst(struct usb_function_instance *f) in geth_free_inst() argument
425 opts = container_of(f, struct f_gether_opts, func_inst); in geth_free_inst()
455 static void geth_free(struct usb_function *f) in geth_free() argument
459 eth = func_to_geth(f); in geth_free()
463 static void geth_unbind(struct usb_configuration *c, struct usb_function *f) in geth_unbind() argument
466 usb_free_all_descriptors(f); in geth_unbind()