Lines Matching refs:f_thor
36 static struct f_thor *thor_func;
37 static inline struct f_thor *func_to_thor(struct usb_function *f) in func_to_thor()
39 return container_of(f, struct f_thor, usb_function); in func_to_thor()
749 struct f_thor *f_thor = func_to_thor(f); in thor_func_bind() local
754 thor_func = f_thor; in thor_func_bind()
761 f_thor->dev = dev; in thor_func_bind()
765 debug("f_thor: 0x%p thor: 0x%p\n", f_thor, dev); in thor_func_bind()
862 struct f_thor *f_thor = func_to_thor(f); in thor_unbind() local
863 struct thor_dev *dev = f_thor->dev; in thor_unbind()
873 struct f_thor *f_thor = func_to_thor(f); in thor_func_disable() local
874 struct thor_dev *dev = f_thor->dev; in thor_func_disable()
989 struct f_thor *f_thor; in thor_func_init() local
994 f_thor = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*f_thor)); in thor_func_init()
995 if (!f_thor) in thor_func_init()
998 memset(f_thor, 0, sizeof(*f_thor)); in thor_func_init()
1000 f_thor->usb_function.name = "f_thor"; in thor_func_init()
1001 f_thor->usb_function.bind = thor_func_bind; in thor_func_init()
1002 f_thor->usb_function.unbind = thor_unbind; in thor_func_init()
1003 f_thor->usb_function.setup = thor_func_setup; in thor_func_init()
1004 f_thor->usb_function.set_alt = thor_func_set_alt; in thor_func_init()
1005 f_thor->usb_function.disable = thor_func_disable; in thor_func_init()
1007 status = usb_add_function(c, &f_thor->usb_function); in thor_func_init()
1009 free(f_thor); in thor_func_init()