Lines Matching refs:tmp
227 char *tmp; in qsfp_1_read() local
230 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_1_read()
231 if (!tmp) in qsfp_1_read()
234 ret = qib_qsfp_dump(dd->pport, tmp, PAGE_SIZE); in qsfp_1_read()
236 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret); in qsfp_1_read()
237 kfree(tmp); in qsfp_1_read()
248 char *tmp; in qsfp_2_read() local
254 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_2_read()
255 if (!tmp) in qsfp_2_read()
258 ret = qib_qsfp_dump(dd->pport + 1, tmp, PAGE_SIZE); in qsfp_2_read()
260 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret); in qsfp_2_read()
261 kfree(tmp); in qsfp_2_read()
276 char *tmp; in flash_read() local
293 tmp = kmalloc(count, GFP_KERNEL); in flash_read()
294 if (!tmp) { in flash_read()
300 if (qib_eeprom_read(dd, pos, tmp, count)) { in flash_read()
306 if (copy_to_user(buf, tmp, count)) { in flash_read()
315 kfree(tmp); in flash_read()
327 char *tmp; in flash_write() local
341 tmp = kmalloc(count, GFP_KERNEL); in flash_write()
342 if (!tmp) { in flash_write()
347 if (copy_from_user(tmp, buf, count)) { in flash_write()
353 if (qib_eeprom_write(dd, pos, tmp, count)) { in flash_write()
363 kfree(tmp); in flash_write()
377 struct dentry *dir, *tmp; in add_cntr_files() local
391 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
398 ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
405 ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
417 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
427 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp, in add_cntr_files()
436 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp, in add_cntr_files()
447 struct dentry *tmp; in remove_file() local
450 tmp = lookup_one_len(name, parent, strlen(name)); in remove_file()
452 if (IS_ERR(tmp)) { in remove_file()
453 ret = PTR_ERR(tmp); in remove_file()
457 spin_lock(&tmp->d_lock); in remove_file()
458 if (simple_positive(tmp)) { in remove_file()
459 __d_drop(tmp); in remove_file()
460 spin_unlock(&tmp->d_lock); in remove_file()
461 simple_unlink(d_inode(parent), tmp); in remove_file()
463 spin_unlock(&tmp->d_lock); in remove_file()
465 dput(tmp); in remove_file()
527 struct qib_devdata *dd, *tmp; in qibfs_fill_super() local
545 list_for_each_entry_safe(dd, tmp, &qib_dev_list, list) { in qibfs_fill_super()