Lines Matching refs:dentry
50 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
75 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
116 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
143 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
159 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
176 vdentry->dentry.show = show;
177 vdentry->dentry.store = store;
178 sysfs_attr_init(&vdentry->dentry.attr);
179 vdentry->dentry.attr.name = vdentry->name;
180 vdentry->dentry.attr.mode = 0;
184 if (vdentry->dentry.store)
185 vdentry->dentry.attr.mode |= S_IWUSR;
187 if (vdentry->dentry.show)
188 vdentry->dentry.attr.mode |= S_IRUGO;
190 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr);
192 pr_err("failed to create %s\n", vdentry->dentry.attr.name);