• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/sysfs/

Lines Matching defs:attr_sd

51 	struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
52 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr;
53 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
56 /* need attr_sd for attr, its parent for kobj */
57 if (!sysfs_get_active(attr_sd))
64 sysfs_put_active(attr_sd);
121 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
122 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr;
123 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
126 /* need attr_sd for attr, its parent for kobj */
127 if (!sysfs_get_active(attr_sd))
134 sysfs_put_active(attr_sd);
180 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
185 if (!sysfs_get_active(attr_sd))
190 sysfs_put_active(attr_sd);
197 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
202 if (!sysfs_get_active(attr_sd))
207 sysfs_put_active(attr_sd);
214 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
220 if (!sysfs_get_active(attr_sd))
225 sysfs_put_active(attr_sd);
233 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
242 if (!sysfs_get_active(attr_sd))
247 sysfs_put_active(attr_sd);
256 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
262 if (!sysfs_get_active(attr_sd))
267 sysfs_put_active(attr_sd);
276 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
282 if (!sysfs_get_active(attr_sd))
287 sysfs_put_active(attr_sd);
296 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
302 if (!sysfs_get_active(attr_sd))
307 sysfs_put_active(attr_sd);
316 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
322 if (!sysfs_get_active(attr_sd))
327 sysfs_put_active(attr_sd);
348 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
349 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr;
350 struct kobject *kobj = attr_sd->s_parent->s_dir.kobj;
355 /* need attr_sd for attr, its parent for kobj */
357 if (!sysfs_get_active(attr_sd))
385 sysfs_put_active(attr_sd);
394 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
395 struct bin_attribute *attr = attr_sd->s_bin_attr.bin_attr;
400 if (!sysfs_get_active(attr_sd))
423 hlist_add_head(&bb->list, &attr_sd->s_bin_attr.buffers);
427 sysfs_put_active(attr_sd);
431 sysfs_put_active(attr_sd);
459 void unmap_bin_file(struct sysfs_dirent *attr_sd)
464 if (sysfs_type(attr_sd) != SYSFS_KOBJ_BIN_ATTR)
469 hlist_for_each_entry(bb, tmp, &attr_sd->s_bin_attr.buffers, list) {