Lines Matching +full:0 +full:x1d6b
57 #define GFS_VENDOR_ID 0x1d6b /* Linux Foundation */
58 #define GFS_PRODUCT_ID 0x0105 /* FunctionFS Gadget */
84 module_param_array_named(functions, func_names, charp, &func_num, 0);
108 .language = 0x0409, /* en-us */
181 int ret = 0; in gfs_init()
193 f_ffs[0] = kcalloc(func_num * N_CONF, sizeof(*f_ffs), GFP_KERNEL); in gfs_init()
194 if (!f_ffs[0]) { in gfs_init()
199 f_ffs[i] = f_ffs[0] + i * func_num; in gfs_init()
207 for (i = 0; i < func_num; i++) { in gfs_init()
230 return 0; in gfs_init()
232 while (i >= 0) in gfs_init()
236 kfree(f_ffs[0]); in gfs_init()
251 kfree(f_ffs[0]); in gfs_exit()
253 for (i = 0; i < func_num; i++) in gfs_exit()
278 int ret = 0; in functionfs_ready_callback()
281 return 0; in functionfs_ready_callback()
289 if (unlikely(ret < 0)) { in functionfs_ready_callback()
390 if (unlikely(ret < 0)) in gfs_bind()
394 if (gadget_is_otg(cdev->gadget) && !gfs_otg_desc[0]) { in gfs_bind()
401 gfs_otg_desc[0] = usb_desc; in gfs_bind()
405 for (i = 0; i < ARRAY_SIZE(gfs_configurations); ++i) { in gfs_bind()
417 if (unlikely(ret < 0)) in gfs_bind()
421 return 0; in gfs_bind()
425 kfree(gfs_otg_desc[0]); in gfs_bind()
426 gfs_otg_desc[0] = NULL; in gfs_bind()
465 for (i = 0; i < N_CONF * func_num; ++i) in gfs_unbind()
466 usb_put_function(*(f_ffs[0] + i)); in gfs_unbind()
468 kfree(gfs_otg_desc[0]); in gfs_unbind()
469 gfs_otg_desc[0] = NULL; in gfs_unbind()
471 return 0; in gfs_unbind()
495 if (unlikely(ret < 0)) in gfs_do_config()
499 for (i = 0; i < func_num; i++) { in gfs_do_config()
506 if (ret < 0) { in gfs_do_config()
525 return 0; in gfs_do_config()
527 while (--i >= 0) { in gfs_do_config()
539 int status = 0; in eth_bind_config()
547 if (status < 0) in eth_bind_config()
556 if (status < 0) in eth_bind_config()
568 int status = 0; in bind_rndis_config()
575 if (status < 0) in bind_rndis_config()