Lines Matching refs:tmp
133 char *tmp; in flash_read() local
150 tmp = kmalloc(count, GFP_KERNEL); in flash_read()
151 if (!tmp) { in flash_read()
157 if (ipath_eeprom_read(dd, pos, tmp, count)) { in flash_read()
163 if (copy_to_user(buf, tmp, count)) { in flash_read()
172 kfree(tmp); in flash_read()
184 char *tmp; in flash_write() local
198 tmp = kmalloc(count, GFP_KERNEL); in flash_write()
199 if (!tmp) { in flash_write()
204 if (copy_from_user(tmp, buf, count)) { in flash_write()
210 if (ipath_eeprom_write(dd, pos, tmp, count)) { in flash_write()
220 kfree(tmp); in flash_write()
235 struct dentry *dir, *tmp; in create_device_files() local
247 ret = create_file("atomic_counters", S_IFREG|S_IRUGO, dir, &tmp, in create_device_files()
255 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp, in create_device_files()
269 struct dentry *tmp; in remove_file() local
272 tmp = lookup_one_len(name, parent, strlen(name)); in remove_file()
274 if (IS_ERR(tmp)) { in remove_file()
275 ret = PTR_ERR(tmp); in remove_file()
279 spin_lock(&tmp->d_lock); in remove_file()
280 if (!d_unhashed(tmp) && d_really_is_positive(tmp)) { in remove_file()
281 dget_dlock(tmp); in remove_file()
282 __d_drop(tmp); in remove_file()
283 spin_unlock(&tmp->d_lock); in remove_file()
284 simple_unlink(d_inode(parent), tmp); in remove_file()
286 spin_unlock(&tmp->d_lock); in remove_file()
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()