Lines Matching refs:len

151 		     const void *buf, size_t len)  in ath6kl_dbg_dump()  argument
157 print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); in ath6kl_dbg_dump()
162 buf, len); in ath6kl_dbg_dump()
305 unsigned int len = 0, buf_len = 1500; in read_file_war_stats() local
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()
323 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_war_stats()
336 void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len) in ath6kl_debug_fwlog_event() argument
342 if (WARN_ON(len > ATH6KL_FWLOG_PAYLOAD_SIZE)) in ath6kl_debug_fwlog_event()
353 slot->length = cpu_to_le32(len); in ath6kl_debug_fwlog_event()
354 memcpy(slot->payload, buf, len); in ath6kl_debug_fwlog_event()
357 memset(slot->payload + len, 0, ATH6KL_FWLOG_PAYLOAD_SIZE - len); in ath6kl_debug_fwlog_event()
404 size_t len = 0; in ath6kl_fwlog_read() local
417 if (skb->len > count - len) { in ath6kl_fwlog_read()
424 memcpy(buf + len, skb->data, skb->len); in ath6kl_fwlog_read()
425 len += skb->len; in ath6kl_fwlog_read()
434 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_read()
457 size_t len = 0, not_copied; in ath6kl_fwlog_block_read() local
484 if (skb->len > count - len) { in ath6kl_fwlog_block_read()
491 memcpy(buf + len, skb->data, skb->len); in ath6kl_fwlog_block_read()
492 len += skb->len; in ath6kl_fwlog_block_read()
501 not_copied = copy_to_user(user_buf, buf, len); in ath6kl_fwlog_block_read()
507 *ppos = *ppos + len; in ath6kl_fwlog_block_read()
509 ret_cnt = len; in ath6kl_fwlog_block_read()
530 int len; in ath6kl_fwlog_mask_read() local
532 len = snprintf(buf, sizeof(buf), "0x%x\n", ar->debug.fwlog_mask); in ath6kl_fwlog_mask_read()
534 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_fwlog_mask_read()
572 unsigned int len = 0, buf_len = 1500; in read_file_tgt_stats() local
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()
684 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, 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
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()
750 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, 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()
778 return len; in print_endpoint_stat()
788 unsigned int buf_len, len = 0; in ath6kl_endpoint_stats_read() local
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()
831 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_endpoint_stats_read()
897 unsigned int len = 0; in ath6kl_regread_read() local
900 len += scnprintf(buf + len, sizeof(buf) - len, "0x%x\n", in ath6kl_regread_read()
903 len += scnprintf(buf + len, sizeof(buf) - len, in ath6kl_regread_read()
906 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_regread_read()
943 unsigned int len = 0, n_reg; in ath6kl_regdump_open() local
971 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
977 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
987 len += scnprintf(buf + len, reg_len - len, in ath6kl_regdump_open()
1050 unsigned int len; in ath6kl_lrssi_roam_read() local
1052 len = snprintf(buf, sizeof(buf), "%u\n", ar->lrssi_roam_threshold); in ath6kl_lrssi_roam_read()
1054 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_lrssi_roam_read()
1071 unsigned int len = 0; in ath6kl_regwrite_read() local
1073 len = scnprintf(buf, sizeof(buf), "Addr: 0x%x Val: 0x%x\n", in ath6kl_regwrite_read()
1076 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_regwrite_read()
1086 unsigned int len = 0; in ath6kl_regwrite_write() local
1089 len = min(count, sizeof(buf) - 1); in ath6kl_regwrite_write()
1090 if (copy_from_user(buf, user_buf, len)) in ath6kl_regwrite_write()
1093 buf[len] = '\0'; in ath6kl_regwrite_write()
1128 size_t len) in ath6kl_debug_roam_tbl_event() argument
1133 if (len < sizeof(*tbl)) in ath6kl_debug_roam_tbl_event()
1138 if (struct_size(tbl, info, num_entries) > len) in ath6kl_debug_roam_tbl_event()
1142 ar->debug.roam_tbl_len < (unsigned int) len) { in ath6kl_debug_roam_tbl_event()
1144 ar->debug.roam_tbl = kmalloc(len, GFP_ATOMIC); in ath6kl_debug_roam_tbl_event()
1149 memcpy(ar->debug.roam_tbl, buf, len); in ath6kl_debug_roam_tbl_event()
1150 ar->debug.roam_tbl_len = len; in ath6kl_debug_roam_tbl_event()
1169 unsigned int len, buf_len; in ath6kl_roam_table_read() local
1200 len = 0; 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()
1218 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_roam_table_read()
1238 size_t len; in ath6kl_force_roam_write() local
1241 len = min(count, sizeof(buf) - 1); in ath6kl_force_roam_write()
1242 if (copy_from_user(buf, user_buf, len)) in ath6kl_force_roam_write()
1244 buf[len] = '\0'; in ath6kl_force_roam_write()
1270 size_t len; in ath6kl_roam_mode_write() local
1273 len = min(count, sizeof(buf) - 1); in ath6kl_roam_mode_write()
1274 if (copy_from_user(buf, user_buf, len)) in ath6kl_roam_mode_write()
1276 buf[len] = '\0'; in ath6kl_roam_mode_write()
1277 if (len > 0 && buf[len - 1] == '\n') in ath6kl_roam_mode_write()
1278 buf[len - 1] = '\0'; in ath6kl_roam_mode_write()
1313 int len; in ath6kl_keepalive_read() local
1315 len = snprintf(buf, sizeof(buf), "%u\n", ar->debug.keepalive); in ath6kl_keepalive_read()
1317 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_keepalive_read()
1358 int len; in ath6kl_disconnect_timeout_read() local
1360 len = snprintf(buf, sizeof(buf), "%u\n", ar->debug.disc_timeout); in ath6kl_disconnect_timeout_read()
1362 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_disconnect_timeout_read()
1399 ssize_t len; in ath6kl_create_qos_write() local
1409 len = min(count, sizeof(buf) - 1); in ath6kl_create_qos_write()
1410 if (copy_from_user(buf, user_buf, len)) in ath6kl_create_qos_write()
1412 buf[len] = '\0'; in ath6kl_create_qos_write()
1577 ssize_t len; in ath6kl_delete_qos_write() local
1586 len = min(count, sizeof(buf) - 1); in ath6kl_delete_qos_write()
1587 if (copy_from_user(buf, user_buf, len)) in ath6kl_delete_qos_write()
1589 buf[len] = '\0'; in ath6kl_delete_qos_write()
1625 ssize_t len; in ath6kl_bgscan_int_write() local
1631 len = min(count, sizeof(buf) - 1); in ath6kl_bgscan_int_write()
1632 if (copy_from_user(buf, user_buf, len)) in ath6kl_bgscan_int_write()
1635 buf[len] = '\0'; in ath6kl_bgscan_int_write()
1665 ssize_t len; in ath6kl_listen_int_write() local
1671 len = min(count, sizeof(buf) - 1); in ath6kl_listen_int_write()
1672 if (copy_from_user(buf, user_buf, len)) in ath6kl_listen_int_write()
1675 buf[len] = '\0'; in ath6kl_listen_int_write()
1696 int len; in ath6kl_listen_int_read() local
1702 len = scnprintf(buf, sizeof(buf), "%u\n", vif->listen_intvl_t); in ath6kl_listen_int_read()
1704 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath6kl_listen_int_read()
1721 unsigned int len = 0; in ath6kl_power_params_write() local
1726 len = min(count, sizeof(buf) - 1); in ath6kl_power_params_write()
1727 if (copy_from_user(buf, user_buf, len)) in ath6kl_power_params_write()
1729 buf[len] = '\0'; in ath6kl_power_params_write()