Lines Matching refs:buf_len

305 	unsigned int len = 0, buf_len = 1500;  in read_file_war_stats()  local
308 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_war_stats()
312 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_war_stats()
313 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_war_stats()
315 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_war_stats()
317 len += scnprintf(buf + len, buf_len - len, "%20s %10u\n", in read_file_war_stats()
320 if (WARN_ON(len > buf_len)) in read_file_war_stats()
321 len = buf_len; in read_file_war_stats()
572 unsigned int len = 0, buf_len = 1500; in read_file_tgt_stats() local
581 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_tgt_stats()
593 len += scnprintf(buf + len, buf_len - len, "\n"); in read_file_tgt_stats()
594 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
596 len += scnprintf(buf + len, buf_len - len, "%25s\n\n", in read_file_tgt_stats()
598 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
600 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
602 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
604 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
606 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
609 len += scnprintf(buf + len, buf_len - len, in read_file_tgt_stats()
612 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
614 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
616 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
618 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
620 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
622 len += scnprintf(buf + len, buf_len - len, "%25s %10llu\n\n", in read_file_tgt_stats()
626 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
628 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
631 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
633 len += scnprintf(buf + len, buf_len - len, "%20s %10d\n", in read_file_tgt_stats()
635 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
637 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
639 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
641 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
643 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
645 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
647 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
649 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
651 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
653 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
655 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
657 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
659 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n\n", in read_file_tgt_stats()
662 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
664 len += scnprintf(buf + len, buf_len - len, "%25s\n", in read_file_tgt_stats()
666 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
668 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
670 len += scnprintf(buf + len, buf_len - len, "%20s %10llu\n", in read_file_tgt_stats()
672 len += scnprintf(buf + len, buf_len - len, "%20s %10d\n", in read_file_tgt_stats()
674 len += scnprintf(buf + len, buf_len - len, "%20s %10d\n", in read_file_tgt_stats()
676 len += scnprintf(buf + len, buf_len - len, "%20s %10d\n", in read_file_tgt_stats()
678 len += scnprintf(buf + len, buf_len - len, "%20s %10d\n", in read_file_tgt_stats()
681 if (len > buf_len) in read_file_tgt_stats()
682 len = buf_len; in read_file_tgt_stats()
698 (len += scnprintf(buf + len, buf_len - len, fmt_str, \
711 unsigned int buf_len, len = 0; in read_file_credit_dist_stats() local
714 buf_len = CREDIT_INFO_DISPLAY_STRING_LEN + in read_file_credit_dist_stats()
716 buf = kzalloc(buf_len, GFP_KERNEL); in read_file_credit_dist_stats()
720 len += scnprintf(buf + len, buf_len - len, "%25s%5d\n", in read_file_credit_dist_stats()
723 len += scnprintf(buf + len, buf_len - len, "%25s%5d\n", in read_file_credit_dist_stats()
727 len += scnprintf(buf + len, buf_len - len, in read_file_credit_dist_stats()
743 len += scnprintf(buf + len, buf_len - len, "%12d\n", in read_file_credit_dist_stats()
747 if (len > buf_len) in read_file_credit_dist_stats()
748 len = buf_len; in read_file_credit_dist_stats()
763 unsigned int buf_len, unsigned int len, in print_endpoint_stat() argument
770 len += scnprintf(buf + len, buf_len - len, "%s:", name); in print_endpoint_stat()
774 len += scnprintf(buf + len, buf_len - len, " %u", *counter); in print_endpoint_stat()
776 len += scnprintf(buf + len, buf_len - len, "\n"); in print_endpoint_stat()
788 unsigned int buf_len, len = 0; in ath6kl_endpoint_stats_read() local
791 buf_len = sizeof(struct htc_endpoint_stats) / sizeof(u32) * in ath6kl_endpoint_stats_read()
793 buf = kmalloc(buf_len, GFP_KERNEL); in ath6kl_endpoint_stats_read()
799 len = print_endpoint_stat(target, buf, buf_len, len, \ in ath6kl_endpoint_stats_read()
828 if (len > buf_len) in ath6kl_endpoint_stats_read()
829 len = buf_len; in ath6kl_endpoint_stats_read()
1169 unsigned int len, buf_len; in ath6kl_roam_table_read() local
1196 buf_len = 100 + num_entries * 100; in ath6kl_roam_table_read()
1197 buf = kzalloc(buf_len, GFP_KERNEL); in ath6kl_roam_table_read()
1201 len += scnprintf(buf + len, buf_len - len, in ath6kl_roam_table_read()
1208 len += scnprintf(buf + len, buf_len - len, in ath6kl_roam_table_read()
1215 if (len > buf_len) in ath6kl_roam_table_read()
1216 len = buf_len; in ath6kl_roam_table_read()