Lines Matching refs:buf_size
345 size_t buf_size; in tool_fn_read() local
352 buf_size = min(size, sizeof(buf)); in tool_fn_read()
354 pos = scnprintf(buf, buf_size, "%#llx\n", fn_read(tc->ntb)); in tool_fn_read()
652 size_t buf_size; in tool_mw_trans_read() local
655 buf_size = min_t(size_t, size, 512); in tool_mw_trans_read()
657 buf = kmalloc(buf_size, GFP_KERNEL); in tool_mw_trans_read()
666 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
670 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
675 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
678 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
682 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
686 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
690 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
694 off += scnprintf(buf + off, buf_size - off, in tool_mw_trans_read()
880 size_t buf_size; in tool_peer_mw_trans_read() local
889 buf_size = min_t(size_t, size, 512); in tool_peer_mw_trans_read()
891 buf = kmalloc(buf_size, GFP_KERNEL); in tool_peer_mw_trans_read()
895 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
899 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
904 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
908 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
911 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
914 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
917 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
920 off += scnprintf(buf + off, buf_size - off, in tool_peer_mw_trans_read()
935 size_t buf_size, wsize; in tool_peer_mw_trans_write() local
940 buf_size = min(size, (sizeof(buf) - 1)); in tool_peer_mw_trans_write()
941 if (copy_from_user(buf, ubuf, buf_size)) in tool_peer_mw_trans_write()
944 buf[buf_size] = '\0'; in tool_peer_mw_trans_write()