Lines Matching refs:pos
206 int pos = 0; in il_dbgfs_tx_stats_read() local
215 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read()
217 pos += in il_dbgfs_tx_stats_read()
218 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
221 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read()
223 pos += in il_dbgfs_tx_stats_read()
224 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read()
227 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read()
228 pos += in il_dbgfs_tx_stats_read()
229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
231 pos += in il_dbgfs_tx_stats_read()
232 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_tx_stats_read()
234 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_stats_read()
267 int pos = 0; in il_dbgfs_rx_stats_read() local
276 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_rx_stats_read()
278 pos += in il_dbgfs_rx_stats_read()
279 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_rx_stats_read()
282 pos += scnprintf(buf + pos, bufsz - pos, "Control:\n"); in il_dbgfs_rx_stats_read()
284 pos += in il_dbgfs_rx_stats_read()
285 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_rx_stats_read()
288 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_rx_stats_read()
289 pos += in il_dbgfs_rx_stats_read()
290 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_rx_stats_read()
292 pos += in il_dbgfs_rx_stats_read()
293 scnprintf(buf + pos, bufsz - pos, "\tbytes: %llu\n", in il_dbgfs_rx_stats_read()
296 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_stats_read()
312 int pos = 0; in il_dbgfs_sram_read() local
328 pos += in il_dbgfs_sram_read()
329 scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in il_dbgfs_sram_read()
331 pos += in il_dbgfs_sram_read()
332 scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in il_dbgfs_sram_read()
353 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_sram_read()
354 pos += scnprintf(buf + pos, bufsz - pos, "0x%08x ", val); in il_dbgfs_sram_read()
356 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_sram_read()
358 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sram_read()
396 int i, j, pos = 0; in il_dbgfs_stations_read() local
405 pos += in il_dbgfs_stations_read()
406 scnprintf(buf + pos, bufsz - pos, "num of stations: %d\n\n", in il_dbgfs_stations_read()
413 pos += in il_dbgfs_stations_read()
414 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_stations_read()
418 pos += in il_dbgfs_stations_read()
419 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_stations_read()
421 pos += in il_dbgfs_stations_read()
422 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_stations_read()
426 pos += in il_dbgfs_stations_read()
427 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_stations_read()
438 pos += in il_dbgfs_stations_read()
439 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_stations_read()
441 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_stations_read()
444 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_stations_read()
447 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_stations_read()
458 int pos = 0, ofs = 0, buf_size = 0; in il_dbgfs_nvm_read() local
483 pos += in il_dbgfs_nvm_read()
484 scnprintf(buf + pos, buf_size - pos, "EEPROM " "version: 0x%x\n", in il_dbgfs_nvm_read()
487 pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x %16ph\n", in il_dbgfs_nvm_read()
491 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_nvm_read()
503 int pos = 0, i, bufsz = PAGE_SIZE; in il_dbgfs_channels_read() local
520 pos += in il_dbgfs_channels_read()
521 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_channels_read()
526 pos += in il_dbgfs_channels_read()
527 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_channels_read()
547 pos += in il_dbgfs_channels_read()
548 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_channels_read()
553 pos += in il_dbgfs_channels_read()
554 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_channels_read()
570 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_channels_read()
582 int pos = 0; in il_dbgfs_status_read() local
585 pos += in il_dbgfs_status_read()
586 scnprintf(buf + pos, bufsz - pos, "S_HCMD_ACTIVE:\t %d\n", in il_dbgfs_status_read()
588 pos += in il_dbgfs_status_read()
589 scnprintf(buf + pos, bufsz - pos, "S_INT_ENABLED:\t %d\n", in il_dbgfs_status_read()
591 pos += in il_dbgfs_status_read()
592 scnprintf(buf + pos, bufsz - pos, "S_RFKILL:\t %d\n", in il_dbgfs_status_read()
594 pos += in il_dbgfs_status_read()
595 scnprintf(buf + pos, bufsz - pos, "S_CT_KILL:\t\t %d\n", in il_dbgfs_status_read()
597 pos += in il_dbgfs_status_read()
598 scnprintf(buf + pos, bufsz - pos, "S_INIT:\t\t %d\n", in il_dbgfs_status_read()
600 pos += in il_dbgfs_status_read()
601 scnprintf(buf + pos, bufsz - pos, "S_ALIVE:\t\t %d\n", in il_dbgfs_status_read()
603 pos += in il_dbgfs_status_read()
604 scnprintf(buf + pos, bufsz - pos, "S_READY:\t\t %d\n", in il_dbgfs_status_read()
606 pos += in il_dbgfs_status_read()
607 scnprintf(buf + pos, bufsz - pos, "S_TEMPERATURE:\t %d\n", in il_dbgfs_status_read()
609 pos += in il_dbgfs_status_read()
610 scnprintf(buf + pos, bufsz - pos, "S_GEO_CONFIGURED:\t %d\n", in il_dbgfs_status_read()
612 pos += in il_dbgfs_status_read()
613 scnprintf(buf + pos, bufsz - pos, "S_EXIT_PENDING:\t %d\n", in il_dbgfs_status_read()
615 pos += in il_dbgfs_status_read()
616 scnprintf(buf + pos, bufsz - pos, "S_STATS:\t %d\n", in il_dbgfs_status_read()
618 pos += in il_dbgfs_status_read()
619 scnprintf(buf + pos, bufsz - pos, "S_SCANNING:\t %d\n", in il_dbgfs_status_read()
621 pos += in il_dbgfs_status_read()
622 scnprintf(buf + pos, bufsz - pos, "S_SCAN_ABORTING:\t %d\n", in il_dbgfs_status_read()
624 pos += in il_dbgfs_status_read()
625 scnprintf(buf + pos, bufsz - pos, "S_SCAN_HW:\t\t %d\n", in il_dbgfs_status_read()
627 pos += in il_dbgfs_status_read()
628 scnprintf(buf + pos, bufsz - pos, "S_POWER_PMI:\t %d\n", in il_dbgfs_status_read()
630 pos += in il_dbgfs_status_read()
631 scnprintf(buf + pos, bufsz - pos, "S_FW_ERROR:\t %d\n", in il_dbgfs_status_read()
633 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_status_read()
642 int pos = 0; in il_dbgfs_interrupt_read() local
654 pos += in il_dbgfs_interrupt_read()
655 scnprintf(buf + pos, bufsz - pos, "Interrupt Statistics Report:\n"); in il_dbgfs_interrupt_read()
657 pos += in il_dbgfs_interrupt_read()
658 scnprintf(buf + pos, bufsz - pos, "HW Error:\t\t\t %u\n", in il_dbgfs_interrupt_read()
660 pos += in il_dbgfs_interrupt_read()
661 scnprintf(buf + pos, bufsz - pos, "SW Error:\t\t\t %u\n", in il_dbgfs_interrupt_read()
664 pos += in il_dbgfs_interrupt_read()
665 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_interrupt_read()
670 pos += in il_dbgfs_interrupt_read()
671 scnprintf(buf + pos, bufsz - pos, "Frame transmitted:\t\t %u\n", in il_dbgfs_interrupt_read()
673 pos += in il_dbgfs_interrupt_read()
674 scnprintf(buf + pos, bufsz - pos, "Alive interrupt:\t\t %u\n", in il_dbgfs_interrupt_read()
677 pos += in il_dbgfs_interrupt_read()
678 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_interrupt_read()
682 pos += in il_dbgfs_interrupt_read()
683 scnprintf(buf + pos, bufsz - pos, "CT KILL:\t\t\t %u\n", in il_dbgfs_interrupt_read()
686 pos += in il_dbgfs_interrupt_read()
687 scnprintf(buf + pos, bufsz - pos, "Wakeup Interrupt:\t\t %u\n", in il_dbgfs_interrupt_read()
690 pos += in il_dbgfs_interrupt_read()
691 scnprintf(buf + pos, bufsz - pos, "Rx command responses:\t\t %u\n", in il_dbgfs_interrupt_read()
695 pos += in il_dbgfs_interrupt_read()
696 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_interrupt_read()
702 pos += in il_dbgfs_interrupt_read()
703 scnprintf(buf + pos, bufsz - pos, "Tx/FH interrupt:\t\t %u\n", in il_dbgfs_interrupt_read()
706 pos += in il_dbgfs_interrupt_read()
707 scnprintf(buf + pos, bufsz - pos, "Unexpected INTA:\t\t %u\n", in il_dbgfs_interrupt_read()
710 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_interrupt_read()
741 int pos = 0, i; in il_dbgfs_qos_read() local
746 pos += in il_dbgfs_qos_read()
747 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_qos_read()
749 pos += in il_dbgfs_qos_read()
750 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_qos_read()
758 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_qos_read()
793 int pos = 0; in il_dbgfs_disable_ht40_read() local
796 pos += in il_dbgfs_disable_ht40_read()
797 scnprintf(buf + pos, bufsz - pos, "11n 40MHz Mode: %s\n", in il_dbgfs_disable_ht40_read()
799 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_disable_ht40_read()
820 int pos = 0; in il_dbgfs_tx_queue_read() local
837 pos += in il_dbgfs_tx_queue_read()
838 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_tx_queue_read()
848 pos += in il_dbgfs_tx_queue_read()
849 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_tx_queue_read()
853 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_tx_queue_read()
866 int pos = 0; in il_dbgfs_rx_queue_read() local
869 pos += scnprintf(buf + pos, bufsz - pos, "read: %u\n", rxq->read); in il_dbgfs_rx_queue_read()
870 pos += scnprintf(buf + pos, bufsz - pos, "write: %u\n", rxq->write); in il_dbgfs_rx_queue_read()
871 pos += in il_dbgfs_rx_queue_read()
872 scnprintf(buf + pos, bufsz - pos, "free_count: %u\n", in il_dbgfs_rx_queue_read()
875 pos += in il_dbgfs_rx_queue_read()
876 scnprintf(buf + pos, bufsz - pos, "closed_rb_num: %u\n", in il_dbgfs_rx_queue_read()
880 pos += in il_dbgfs_rx_queue_read()
881 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_rx_queue_read()
884 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_rx_queue_read()
920 int pos = 0; in il_dbgfs_sensitivity_read() local
934 pos += in il_dbgfs_sensitivity_read()
935 scnprintf(buf + pos, bufsz - pos, "auto_corr_ofdm:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
937 pos += in il_dbgfs_sensitivity_read()
938 scnprintf(buf + pos, bufsz - pos, "auto_corr_ofdm_mrc:\t\t %u\n", in il_dbgfs_sensitivity_read()
940 pos += in il_dbgfs_sensitivity_read()
941 scnprintf(buf + pos, bufsz - pos, "auto_corr_ofdm_x1:\t\t %u\n", in il_dbgfs_sensitivity_read()
943 pos += in il_dbgfs_sensitivity_read()
944 scnprintf(buf + pos, bufsz - pos, "auto_corr_ofdm_mrc_x1:\t\t %u\n", in il_dbgfs_sensitivity_read()
946 pos += in il_dbgfs_sensitivity_read()
947 scnprintf(buf + pos, bufsz - pos, "auto_corr_cck:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
949 pos += in il_dbgfs_sensitivity_read()
950 scnprintf(buf + pos, bufsz - pos, "auto_corr_cck_mrc:\t\t %u\n", in il_dbgfs_sensitivity_read()
952 pos += in il_dbgfs_sensitivity_read()
953 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_sensitivity_read()
956 pos += in il_dbgfs_sensitivity_read()
957 scnprintf(buf + pos, bufsz - pos, "last_fa_cnt_ofdm:\t\t %u\n", in il_dbgfs_sensitivity_read()
959 pos += in il_dbgfs_sensitivity_read()
960 scnprintf(buf + pos, bufsz - pos, "last_bad_plcp_cnt_cck:\t\t %u\n", in il_dbgfs_sensitivity_read()
962 pos += in il_dbgfs_sensitivity_read()
963 scnprintf(buf + pos, bufsz - pos, "last_fa_cnt_cck:\t\t %u\n", in il_dbgfs_sensitivity_read()
965 pos += in il_dbgfs_sensitivity_read()
966 scnprintf(buf + pos, bufsz - pos, "nrg_curr_state:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
968 pos += in il_dbgfs_sensitivity_read()
969 scnprintf(buf + pos, bufsz - pos, "nrg_prev_state:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
971 pos += scnprintf(buf + pos, bufsz - pos, "nrg_value:\t\t\t"); in il_dbgfs_sensitivity_read()
973 pos += in il_dbgfs_sensitivity_read()
974 scnprintf(buf + pos, bufsz - pos, " %u", in il_dbgfs_sensitivity_read()
977 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_sensitivity_read()
978 pos += scnprintf(buf + pos, bufsz - pos, "nrg_silence_rssi:\t\t"); in il_dbgfs_sensitivity_read()
980 pos += in il_dbgfs_sensitivity_read()
981 scnprintf(buf + pos, bufsz - pos, " %u", in il_dbgfs_sensitivity_read()
984 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_sensitivity_read()
985 pos += in il_dbgfs_sensitivity_read()
986 scnprintf(buf + pos, bufsz - pos, "nrg_silence_ref:\t\t %u\n", in il_dbgfs_sensitivity_read()
988 pos += in il_dbgfs_sensitivity_read()
989 scnprintf(buf + pos, bufsz - pos, "nrg_energy_idx:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
991 pos += in il_dbgfs_sensitivity_read()
992 scnprintf(buf + pos, bufsz - pos, "nrg_silence_idx:\t\t %u\n", in il_dbgfs_sensitivity_read()
994 pos += in il_dbgfs_sensitivity_read()
995 scnprintf(buf + pos, bufsz - pos, "nrg_th_cck:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
997 pos += in il_dbgfs_sensitivity_read()
998 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_sensitivity_read()
1001 pos += in il_dbgfs_sensitivity_read()
1002 scnprintf(buf + pos, bufsz - pos, "num_in_cck_no_fa:\t\t %u\n", in il_dbgfs_sensitivity_read()
1004 pos += in il_dbgfs_sensitivity_read()
1005 scnprintf(buf + pos, bufsz - pos, "nrg_th_ofdm:\t\t\t %u\n", in il_dbgfs_sensitivity_read()
1008 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_sensitivity_read()
1019 int pos = 0; in il_dbgfs_chain_noise_read() local
1033 pos += in il_dbgfs_chain_noise_read()
1034 scnprintf(buf + pos, bufsz - pos, "active_chains:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1036 pos += in il_dbgfs_chain_noise_read()
1037 scnprintf(buf + pos, bufsz - pos, "chain_noise_a:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1039 pos += in il_dbgfs_chain_noise_read()
1040 scnprintf(buf + pos, bufsz - pos, "chain_noise_b:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1042 pos += in il_dbgfs_chain_noise_read()
1043 scnprintf(buf + pos, bufsz - pos, "chain_noise_c:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1045 pos += in il_dbgfs_chain_noise_read()
1046 scnprintf(buf + pos, bufsz - pos, "chain_signal_a:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1048 pos += in il_dbgfs_chain_noise_read()
1049 scnprintf(buf + pos, bufsz - pos, "chain_signal_b:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1051 pos += in il_dbgfs_chain_noise_read()
1052 scnprintf(buf + pos, bufsz - pos, "chain_signal_c:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1054 pos += in il_dbgfs_chain_noise_read()
1055 scnprintf(buf + pos, bufsz - pos, "beacon_count:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1058 pos += scnprintf(buf + pos, bufsz - pos, "disconn_array:\t\t\t"); in il_dbgfs_chain_noise_read()
1060 pos += in il_dbgfs_chain_noise_read()
1061 scnprintf(buf + pos, bufsz - pos, " %u", in il_dbgfs_chain_noise_read()
1064 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_chain_noise_read()
1065 pos += scnprintf(buf + pos, bufsz - pos, "delta_gain_code:\t\t"); in il_dbgfs_chain_noise_read()
1067 pos += in il_dbgfs_chain_noise_read()
1068 scnprintf(buf + pos, bufsz - pos, " %u", in il_dbgfs_chain_noise_read()
1071 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in il_dbgfs_chain_noise_read()
1072 pos += in il_dbgfs_chain_noise_read()
1073 scnprintf(buf + pos, bufsz - pos, "radio_write:\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1075 pos += in il_dbgfs_chain_noise_read()
1076 scnprintf(buf + pos, bufsz - pos, "state:\t\t\t\t %u\n", in il_dbgfs_chain_noise_read()
1079 ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_chain_noise_read()
1090 int pos = 0; in il_dbgfs_power_save_status_read() local
1097 pos += scnprintf(buf + pos, bufsz - pos, "Power Save Status: "); in il_dbgfs_power_save_status_read()
1098 pos += in il_dbgfs_power_save_status_read()
1099 scnprintf(buf + pos, bufsz - pos, "%s\n", in il_dbgfs_power_save_status_read()
1105 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_power_save_status_read()
1166 int pos = 0; in il_dbgfs_fh_reg_read() local
1170 ret = pos = il->ops->dump_fh(il, &buf, true); in il_dbgfs_fh_reg_read()
1174 pos); in il_dbgfs_fh_reg_read()
1188 int pos = 0; in il_dbgfs_missed_beacon_read() local
1192 pos += in il_dbgfs_missed_beacon_read()
1193 scnprintf(buf + pos, bufsz - pos, "%d\n", in il_dbgfs_missed_beacon_read()
1196 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_missed_beacon_read()
1230 int pos = 0; in il_dbgfs_force_reset_read() local
1237 pos += in il_dbgfs_force_reset_read()
1238 scnprintf(buf + pos, bufsz - pos, "\tnumber of reset request: %d\n", in il_dbgfs_force_reset_read()
1240 pos += in il_dbgfs_force_reset_read()
1241 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_force_reset_read()
1244 pos += in il_dbgfs_force_reset_read()
1245 scnprintf(buf + pos, bufsz - pos, in il_dbgfs_force_reset_read()
1248 pos += in il_dbgfs_force_reset_read()
1249 scnprintf(buf + pos, bufsz - pos, "\treset duration: %lu\n", in il_dbgfs_force_reset_read()
1252 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in il_dbgfs_force_reset_read()