Lines Matching refs:f_thor
37 static struct f_thor *thor_func;
38 static inline struct f_thor *func_to_thor(struct usb_function *f) in func_to_thor()
40 return container_of(f, struct f_thor, usb_function); in func_to_thor()
750 struct f_thor *f_thor = func_to_thor(f); in thor_func_bind() local
755 thor_func = f_thor; in thor_func_bind()
762 f_thor->dev = dev; in thor_func_bind()
766 debug("f_thor: 0x%p thor: 0x%p\n", f_thor, dev); in thor_func_bind()
863 struct f_thor *f_thor = func_to_thor(f); in thor_unbind() local
864 struct thor_dev *dev = f_thor->dev; in thor_unbind()
874 struct f_thor *f_thor = func_to_thor(f); in thor_func_disable() local
875 struct thor_dev *dev = f_thor->dev; in thor_func_disable()
997 struct f_thor *f_thor; in thor_func_init() local
1002 f_thor = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*f_thor)); in thor_func_init()
1003 if (!f_thor) in thor_func_init()
1006 memset(f_thor, 0, sizeof(*f_thor)); in thor_func_init()
1008 f_thor->usb_function.name = "f_thor"; in thor_func_init()
1009 f_thor->usb_function.bind = thor_func_bind; in thor_func_init()
1010 f_thor->usb_function.unbind = thor_unbind; in thor_func_init()
1011 f_thor->usb_function.setup = thor_func_setup; in thor_func_init()
1012 f_thor->usb_function.set_alt = thor_func_set_alt; in thor_func_init()
1013 f_thor->usb_function.disable = thor_func_disable; in thor_func_init()
1015 status = usb_add_function(c, &f_thor->usb_function); in thor_func_init()
1017 free(f_thor); in thor_func_init()