Lines Matching refs:name
194 char name[5];
243 ffs_sb_create_file(struct super_block *sb, const char *name, void *data,
251 static struct ffs_dev *_ffs_find_dev(const char *name);
1400 const char *name, void *data,
1407 dentry = d_alloc_name(sb->s_root, name);
1614 .name = "functionfs",
1867 sprintf(epfile->name, "ep%02x", ffs->eps_addrmap[i]);
1869 sprintf(epfile->name, "ep%u", i);
1870 epfile->dentry = ffs_sb_create_file(ffs->sb, epfile->name,
1945 __func__, ep->ep->name, ret);
2400 /* property name reported to the host as "WCHAR"s */
2982 /* property name reported to the host as "WCHAR"s */
2984 ext_prop->name = ext_prop_name;
3396 static struct ffs_dev *_ffs_do_find_dev(const char *name)
3400 if (!name)
3404 if (strcmp(dev->name, name) == 0)
3430 static struct ffs_dev *_ffs_find_dev(const char *name)
3438 return _ffs_do_find_dev(name);
3480 static int ffs_set_inst_name(struct usb_function_instance *fi, const char *name)
3482 if (strlen(name) >= sizeof_field(struct ffs_dev, name))
3484 return ffs_name_dev(to_f_fs_opts(fi)->dev, name);
3572 func->function.name = "Function FS Gadget";
3615 int ffs_name_dev(struct ffs_dev *dev, const char *name)
3622 existing = _ffs_do_find_dev(name);
3624 strscpy(dev->name, name, ARRAY_SIZE(dev->name));