Lines Matching defs:tmp
226 char *tmp;
229 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL);
230 if (!tmp)
233 ret = qib_qsfp_dump(dd->pport, tmp, PAGE_SIZE);
235 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
236 kfree(tmp);
247 char *tmp;
253 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL);
254 if (!tmp)
257 ret = qib_qsfp_dump(dd->pport + 1, tmp, PAGE_SIZE);
259 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
260 kfree(tmp);
275 char *tmp;
292 tmp = kmalloc(count, GFP_KERNEL);
293 if (!tmp) {
299 if (qib_eeprom_read(dd, pos, tmp, count)) {
305 if (copy_to_user(buf, tmp, count)) {
314 kfree(tmp);
326 char *tmp;
333 tmp = memdup_user(buf, count);
334 if (IS_ERR(tmp))
335 return PTR_ERR(tmp);
338 if (qib_eeprom_write(dd, pos, tmp, count)) {
348 kfree(tmp);
360 struct dentry *dir, *tmp;
374 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp,
381 ret = create_file("counter_names", S_IFREG|S_IRUGO, dir, &tmp,
388 ret = create_file("portcounter_names", S_IFREG|S_IRUGO, dir, &tmp,
400 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
410 ret = create_file(fname, S_IFREG|S_IRUGO, dir, &tmp,
419 ret = create_file("flash", S_IFREG|S_IWUSR|S_IRUGO, dir, &tmp,