Lines Matching refs:name
196 char name[5];
242 ffs_sb_create_file(struct super_block *sb, const char *name, void *data,
250 static struct ffs_dev *_ffs_find_dev(const char *name);
1420 const char *name, void *data,
1429 dentry = d_alloc_name(sb->s_root, name);
1645 .name = "functionfs",
1922 sprintf(epfile->name, "ep%02x", ffs->eps_addrmap[i]);
1924 sprintf(epfile->name, "ep%u", i);
1925 epfile->dentry = ffs_sb_create_file(ffs->sb, epfile->name,
2002 __func__, ep->ep->name, ret);
2466 /* property name reported to the host as "WCHAR"s */
3052 /* property name reported to the host as "WCHAR"s */
3054 ext_prop->name = ext_prop_name;
3474 static struct ffs_dev *_ffs_do_find_dev(const char *name)
3478 if (!name)
3482 if (strcmp(dev->name, name) == 0)
3508 static struct ffs_dev *_ffs_find_dev(const char *name)
3516 return _ffs_do_find_dev(name);
3558 static int ffs_set_inst_name(struct usb_function_instance *fi, const char *name)
3560 if (strlen(name) >= sizeof_field(struct ffs_dev, name))
3562 return ffs_name_dev(to_f_fs_opts(fi)->dev, name);
3653 func->function.name = "Function FS Gadget";
3696 int ffs_name_dev(struct ffs_dev *dev, const char *name)
3703 existing = _ffs_do_find_dev(name);
3705 strlcpy(dev->name, name, ARRAY_SIZE(dev->name));