Lines Matching refs:vdentry
175 struct mlx4_ib_iov_sysfs_attr *vdentry = _dentry; in create_sysfs_entry() local
177 vdentry->ctx = _ctx; in create_sysfs_entry()
178 vdentry->dentry.show = show; in create_sysfs_entry()
179 vdentry->dentry.store = store; in create_sysfs_entry()
180 sysfs_attr_init(&vdentry->dentry.attr); in create_sysfs_entry()
181 vdentry->dentry.attr.name = vdentry->name; in create_sysfs_entry()
182 vdentry->dentry.attr.mode = 0; in create_sysfs_entry()
183 vdentry->kobj = _kobj; in create_sysfs_entry()
184 snprintf(vdentry->name, 15, "%s", _name); in create_sysfs_entry()
186 if (vdentry->dentry.store) in create_sysfs_entry()
187 vdentry->dentry.attr.mode |= S_IWUSR; in create_sysfs_entry()
189 if (vdentry->dentry.show) in create_sysfs_entry()
190 vdentry->dentry.attr.mode |= S_IRUGO; in create_sysfs_entry()
192 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr); in create_sysfs_entry()
194 pr_err("failed to create %s\n", vdentry->dentry.attr.name); in create_sysfs_entry()
195 vdentry->ctx = NULL; in create_sysfs_entry()