Lines Matching defs:tmp
228 char *tmp;
231 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL);
232 if (!tmp)
235 ret = qib_qsfp_dump(dd->pport, tmp, PAGE_SIZE);
237 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
238 kfree(tmp);
249 char *tmp;
255 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL);
256 if (!tmp)
259 ret = qib_qsfp_dump(dd->pport + 1, tmp, PAGE_SIZE);
261 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
262 kfree(tmp);
277 char *tmp;
294 tmp = kmalloc(count, GFP_KERNEL);
295 if (!tmp) {
301 if (qib_eeprom_read(dd, pos, tmp, count)) {
307 if (copy_to_user(buf, tmp, count)) {
316 kfree(tmp);
328 char *tmp;
335 tmp = memdup_user(buf, count);
336 if (IS_ERR(tmp))
337 return PTR_ERR(tmp);
340 if (qib_eeprom_write(dd, pos, tmp, count)) {
350 kfree(tmp);
362 struct dentry *dir, *tmp;
376 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp,
383 ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp,
390 ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp,
402 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
412 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
421 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp,
432 struct dentry *tmp;
435 tmp = lookup_one_len(name, parent, strlen(name));
437 if (IS_ERR(tmp)) {
438 ret = PTR_ERR(tmp);
442 spin_lock(&tmp->d_lock);
443 if (simple_positive(tmp)) {
444 __d_drop(tmp);
445 spin_unlock(&tmp->d_lock);
446 simple_unlink(d_inode(parent), tmp);
448 spin_unlock(&tmp->d_lock);
450 dput(tmp);