Lines Matching defs:buf

352 	char *buf;
363 buf = kmalloc(out_count, GFP_KERNEL);
364 if (!buf)
369 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
372 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
375 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
378 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
381 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
388 out_offset += scnprintf(buf + out_offset,
395 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
401 out_offset += scnprintf(buf + out_offset,
407 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
410 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
416 out_offset += scnprintf(buf + out_offset,
422 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
426 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
432 out_offset += scnprintf(buf + out_offset,
438 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
441 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
444 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
447 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
450 out_offset += scnprintf(buf + out_offset, out_count - out_offset,
458 out_offset += scnprintf(buf + out_offset,
467 ret = simple_read_from_buffer(ubuf, count, offp, buf, out_offset);
468 kfree(buf);
511 * @buf: (pointer to) buffer to write the value
515 void format_value_ccm(unsigned int val, u8 *buf, u8 len)
520 memset(buf, 0, len);
524 buf[len - i - 1] = (val >> (8 * i)) & 0xff;