Lines Matching refs:dd
113 struct ipath_devdata *dd; in atomic_counters_read() local
115 dd = file_inode(file)->i_private; in atomic_counters_read()
116 dd->ipath_f_read_counters(dd, &counters); in atomic_counters_read()
130 struct ipath_devdata *dd; in flash_read() local
156 dd = file_inode(file)->i_private; in flash_read()
157 if (ipath_eeprom_read(dd, pos, tmp, count)) { in flash_read()
158 ipath_dev_err(dd, "failed to read from flash\n"); in flash_read()
181 struct ipath_devdata *dd; in flash_write() local
209 dd = file_inode(file)->i_private; in flash_write()
210 if (ipath_eeprom_write(dd, pos, tmp, count)) { in flash_write()
212 ipath_dev_err(dd, "failed to write to flash\n"); in flash_write()
233 struct ipath_devdata *dd) in create_device_files() argument
239 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in create_device_files()
241 &simple_dir_operations, dd); in create_device_files()
248 &atomic_counters_ops, dd); in create_device_files()
256 &flash_ops, dd); in create_device_files()
298 struct ipath_devdata *dd) in remove_device_files() argument
306 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in remove_device_files()
329 struct ipath_devdata *dd, *tmp; in ipathfs_fill_super() local
346 list_for_each_entry_safe(dd, tmp, &ipath_dev_list, ipath_list) { in ipathfs_fill_super()
348 ret = create_device_files(sb, dd); in ipathfs_fill_super()
376 int ipathfs_add_device(struct ipath_devdata *dd) in ipathfs_add_device() argument
385 ret = create_device_files(ipath_super, dd); in ipathfs_add_device()
391 int ipathfs_remove_device(struct ipath_devdata *dd) in ipathfs_remove_device() argument
400 ret = remove_device_files(ipath_super, dd); in ipathfs_remove_device()