forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/common/siano/smsdvb-debugfs.c
....@@ -45,88 +45,88 @@
4545
4646 buf = debug_data->stats_data;
4747
48
- n += snprintf(&buf[n], PAGE_SIZE - n,
48
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
4949 "is_rf_locked = %d\n", p->is_rf_locked);
50
- n += snprintf(&buf[n], PAGE_SIZE - n,
50
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
5151 "is_demod_locked = %d\n", p->is_demod_locked);
52
- n += snprintf(&buf[n], PAGE_SIZE - n,
52
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
5353 "is_external_lna_on = %d\n", p->is_external_lna_on);
54
- n += snprintf(&buf[n], PAGE_SIZE - n,
54
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
5555 "SNR = %d\n", p->SNR);
56
- n += snprintf(&buf[n], PAGE_SIZE - n,
56
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
5757 "ber = %d\n", p->ber);
58
- n += snprintf(&buf[n], PAGE_SIZE - n,
58
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
5959 "FIB_CRC = %d\n", p->FIB_CRC);
60
- n += snprintf(&buf[n], PAGE_SIZE - n,
60
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
6161 "ts_per = %d\n", p->ts_per);
62
- n += snprintf(&buf[n], PAGE_SIZE - n,
62
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
6363 "MFER = %d\n", p->MFER);
64
- n += snprintf(&buf[n], PAGE_SIZE - n,
64
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
6565 "RSSI = %d\n", p->RSSI);
66
- n += snprintf(&buf[n], PAGE_SIZE - n,
66
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
6767 "in_band_pwr = %d\n", p->in_band_pwr);
68
- n += snprintf(&buf[n], PAGE_SIZE - n,
68
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
6969 "carrier_offset = %d\n", p->carrier_offset);
70
- n += snprintf(&buf[n], PAGE_SIZE - n,
70
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
7171 "modem_state = %d\n", p->modem_state);
72
- n += snprintf(&buf[n], PAGE_SIZE - n,
72
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
7373 "frequency = %d\n", p->frequency);
74
- n += snprintf(&buf[n], PAGE_SIZE - n,
74
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
7575 "bandwidth = %d\n", p->bandwidth);
76
- n += snprintf(&buf[n], PAGE_SIZE - n,
76
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
7777 "transmission_mode = %d\n", p->transmission_mode);
78
- n += snprintf(&buf[n], PAGE_SIZE - n,
78
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
7979 "modem_state = %d\n", p->modem_state);
80
- n += snprintf(&buf[n], PAGE_SIZE - n,
80
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
8181 "guard_interval = %d\n", p->guard_interval);
82
- n += snprintf(&buf[n], PAGE_SIZE - n,
82
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
8383 "code_rate = %d\n", p->code_rate);
84
- n += snprintf(&buf[n], PAGE_SIZE - n,
84
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
8585 "lp_code_rate = %d\n", p->lp_code_rate);
86
- n += snprintf(&buf[n], PAGE_SIZE - n,
86
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
8787 "hierarchy = %d\n", p->hierarchy);
88
- n += snprintf(&buf[n], PAGE_SIZE - n,
88
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
8989 "constellation = %d\n", p->constellation);
90
- n += snprintf(&buf[n], PAGE_SIZE - n,
90
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
9191 "burst_size = %d\n", p->burst_size);
92
- n += snprintf(&buf[n], PAGE_SIZE - n,
92
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
9393 "burst_duration = %d\n", p->burst_duration);
94
- n += snprintf(&buf[n], PAGE_SIZE - n,
94
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
9595 "burst_cycle_time = %d\n", p->burst_cycle_time);
96
- n += snprintf(&buf[n], PAGE_SIZE - n,
96
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
9797 "calc_burst_cycle_time = %d\n",
9898 p->calc_burst_cycle_time);
99
- n += snprintf(&buf[n], PAGE_SIZE - n,
99
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
100100 "num_of_rows = %d\n", p->num_of_rows);
101
- n += snprintf(&buf[n], PAGE_SIZE - n,
101
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
102102 "num_of_padd_cols = %d\n", p->num_of_padd_cols);
103
- n += snprintf(&buf[n], PAGE_SIZE - n,
103
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
104104 "num_of_punct_cols = %d\n", p->num_of_punct_cols);
105
- n += snprintf(&buf[n], PAGE_SIZE - n,
105
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
106106 "error_ts_packets = %d\n", p->error_ts_packets);
107
- n += snprintf(&buf[n], PAGE_SIZE - n,
107
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
108108 "total_ts_packets = %d\n", p->total_ts_packets);
109
- n += snprintf(&buf[n], PAGE_SIZE - n,
109
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
110110 "num_of_valid_mpe_tlbs = %d\n", p->num_of_valid_mpe_tlbs);
111
- n += snprintf(&buf[n], PAGE_SIZE - n,
111
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
112112 "num_of_invalid_mpe_tlbs = %d\n", p->num_of_invalid_mpe_tlbs);
113
- n += snprintf(&buf[n], PAGE_SIZE - n,
113
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
114114 "num_of_corrected_mpe_tlbs = %d\n", p->num_of_corrected_mpe_tlbs);
115
- n += snprintf(&buf[n], PAGE_SIZE - n,
115
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
116116 "ber_error_count = %d\n", p->ber_error_count);
117
- n += snprintf(&buf[n], PAGE_SIZE - n,
117
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
118118 "ber_bit_count = %d\n", p->ber_bit_count);
119
- n += snprintf(&buf[n], PAGE_SIZE - n,
119
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
120120 "sms_to_host_tx_errors = %d\n", p->sms_to_host_tx_errors);
121
- n += snprintf(&buf[n], PAGE_SIZE - n,
121
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
122122 "pre_ber = %d\n", p->pre_ber);
123
- n += snprintf(&buf[n], PAGE_SIZE - n,
123
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
124124 "cell_id = %d\n", p->cell_id);
125
- n += snprintf(&buf[n], PAGE_SIZE - n,
125
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
126126 "dvbh_srv_ind_hp = %d\n", p->dvbh_srv_ind_hp);
127
- n += snprintf(&buf[n], PAGE_SIZE - n,
127
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
128128 "dvbh_srv_ind_lp = %d\n", p->dvbh_srv_ind_lp);
129
- n += snprintf(&buf[n], PAGE_SIZE - n,
129
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
130130 "num_mpe_received = %d\n", p->num_mpe_received);
131131
132132 debug_data->stats_count = n;
....@@ -148,42 +148,42 @@
148148
149149 buf = debug_data->stats_data;
150150
151
- n += snprintf(&buf[n], PAGE_SIZE - n,
151
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
152152 "statistics_type = %d\t", p->statistics_type);
153
- n += snprintf(&buf[n], PAGE_SIZE - n,
153
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
154154 "full_size = %d\n", p->full_size);
155155
156
- n += snprintf(&buf[n], PAGE_SIZE - n,
156
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
157157 "is_rf_locked = %d\t\t", p->is_rf_locked);
158
- n += snprintf(&buf[n], PAGE_SIZE - n,
158
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
159159 "is_demod_locked = %d\t", p->is_demod_locked);
160
- n += snprintf(&buf[n], PAGE_SIZE - n,
160
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
161161 "is_external_lna_on = %d\n", p->is_external_lna_on);
162
- n += snprintf(&buf[n], PAGE_SIZE - n,
162
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
163163 "SNR = %d dB\t\t", p->SNR);
164
- n += snprintf(&buf[n], PAGE_SIZE - n,
164
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
165165 "RSSI = %d dBm\t\t", p->RSSI);
166
- n += snprintf(&buf[n], PAGE_SIZE - n,
166
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
167167 "in_band_pwr = %d dBm\n", p->in_band_pwr);
168
- n += snprintf(&buf[n], PAGE_SIZE - n,
168
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
169169 "carrier_offset = %d\t", p->carrier_offset);
170
- n += snprintf(&buf[n], PAGE_SIZE - n,
170
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
171171 "bandwidth = %d\t\t", p->bandwidth);
172
- n += snprintf(&buf[n], PAGE_SIZE - n,
172
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
173173 "frequency = %d Hz\n", p->frequency);
174
- n += snprintf(&buf[n], PAGE_SIZE - n,
174
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
175175 "transmission_mode = %d\t", p->transmission_mode);
176
- n += snprintf(&buf[n], PAGE_SIZE - n,
176
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
177177 "modem_state = %d\t\t", p->modem_state);
178
- n += snprintf(&buf[n], PAGE_SIZE - n,
178
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
179179 "guard_interval = %d\n", p->guard_interval);
180
- n += snprintf(&buf[n], PAGE_SIZE - n,
180
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
181181 "system_type = %d\t\t", p->system_type);
182
- n += snprintf(&buf[n], PAGE_SIZE - n,
182
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
183183 "partial_reception = %d\t", p->partial_reception);
184
- n += snprintf(&buf[n], PAGE_SIZE - n,
184
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
185185 "num_of_layers = %d\n", p->num_of_layers);
186
- n += snprintf(&buf[n], PAGE_SIZE - n,
186
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
187187 "sms_to_host_tx_errors = %d\n", p->sms_to_host_tx_errors);
188188
189189 for (i = 0; i < 3; i++) {
....@@ -191,31 +191,34 @@
191191 p->layer_info[i].number_of_segments > 13)
192192 continue;
193193
194
- n += snprintf(&buf[n], PAGE_SIZE - n, "\nLayer %d\n", i);
195
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tcode_rate = %d\t",
194
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\nLayer %d\n", i);
195
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tcode_rate = %d\t",
196196 p->layer_info[i].code_rate);
197
- n += snprintf(&buf[n], PAGE_SIZE - n, "constellation = %d\n",
197
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "constellation = %d\n",
198198 p->layer_info[i].constellation);
199
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tber = %-5d\t",
199
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tber = %-5d\t",
200200 p->layer_info[i].ber);
201
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tber_error_count = %-5d\t",
201
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
202
+ "\tber_error_count = %-5d\t",
202203 p->layer_info[i].ber_error_count);
203
- n += snprintf(&buf[n], PAGE_SIZE - n, "ber_bit_count = %-5d\n",
204
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "ber_bit_count = %-5d\n",
204205 p->layer_info[i].ber_bit_count);
205
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tpre_ber = %-5d\t",
206
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tpre_ber = %-5d\t",
206207 p->layer_info[i].pre_ber);
207
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tts_per = %-5d\n",
208
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tts_per = %-5d\n",
208209 p->layer_info[i].ts_per);
209
- n += snprintf(&buf[n], PAGE_SIZE - n, "\terror_ts_packets = %-5d\t",
210
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
211
+ "\terror_ts_packets = %-5d\t",
210212 p->layer_info[i].error_ts_packets);
211
- n += snprintf(&buf[n], PAGE_SIZE - n, "total_ts_packets = %-5d\t",
213
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
214
+ "total_ts_packets = %-5d\t",
212215 p->layer_info[i].total_ts_packets);
213
- n += snprintf(&buf[n], PAGE_SIZE - n, "ti_ldepth_i = %d\n",
216
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "ti_ldepth_i = %d\n",
214217 p->layer_info[i].ti_ldepth_i);
215
- n += snprintf(&buf[n], PAGE_SIZE - n,
218
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
216219 "\tnumber_of_segments = %d\t",
217220 p->layer_info[i].number_of_segments);
218
- n += snprintf(&buf[n], PAGE_SIZE - n, "tmcc_errors = %d\n",
221
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "tmcc_errors = %d\n",
219222 p->layer_info[i].tmcc_errors);
220223 }
221224
....@@ -238,44 +241,44 @@
238241
239242 buf = debug_data->stats_data;
240243
241
- n += snprintf(&buf[n], PAGE_SIZE - n,
244
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
242245 "statistics_type = %d\t", p->statistics_type);
243
- n += snprintf(&buf[n], PAGE_SIZE - n,
246
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
244247 "full_size = %d\n", p->full_size);
245248
246
- n += snprintf(&buf[n], PAGE_SIZE - n,
249
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
247250 "is_rf_locked = %d\t\t", p->is_rf_locked);
248
- n += snprintf(&buf[n], PAGE_SIZE - n,
251
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
249252 "is_demod_locked = %d\t", p->is_demod_locked);
250
- n += snprintf(&buf[n], PAGE_SIZE - n,
253
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
251254 "is_external_lna_on = %d\n", p->is_external_lna_on);
252
- n += snprintf(&buf[n], PAGE_SIZE - n,
255
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
253256 "SNR = %d dB\t\t", p->SNR);
254
- n += snprintf(&buf[n], PAGE_SIZE - n,
257
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
255258 "RSSI = %d dBm\t\t", p->RSSI);
256
- n += snprintf(&buf[n], PAGE_SIZE - n,
259
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
257260 "in_band_pwr = %d dBm\n", p->in_band_pwr);
258
- n += snprintf(&buf[n], PAGE_SIZE - n,
261
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
259262 "carrier_offset = %d\t", p->carrier_offset);
260
- n += snprintf(&buf[n], PAGE_SIZE - n,
263
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
261264 "bandwidth = %d\t\t", p->bandwidth);
262
- n += snprintf(&buf[n], PAGE_SIZE - n,
265
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
263266 "frequency = %d Hz\n", p->frequency);
264
- n += snprintf(&buf[n], PAGE_SIZE - n,
267
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
265268 "transmission_mode = %d\t", p->transmission_mode);
266
- n += snprintf(&buf[n], PAGE_SIZE - n,
269
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
267270 "modem_state = %d\t\t", p->modem_state);
268
- n += snprintf(&buf[n], PAGE_SIZE - n,
271
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
269272 "guard_interval = %d\n", p->guard_interval);
270
- n += snprintf(&buf[n], PAGE_SIZE - n,
273
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
271274 "system_type = %d\t\t", p->system_type);
272
- n += snprintf(&buf[n], PAGE_SIZE - n,
275
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
273276 "partial_reception = %d\t", p->partial_reception);
274
- n += snprintf(&buf[n], PAGE_SIZE - n,
277
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
275278 "num_of_layers = %d\n", p->num_of_layers);
276
- n += snprintf(&buf[n], PAGE_SIZE - n, "segment_number = %d\t",
279
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "segment_number = %d\t",
277280 p->segment_number);
278
- n += snprintf(&buf[n], PAGE_SIZE - n, "tune_bw = %d\n",
281
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "tune_bw = %d\n",
279282 p->tune_bw);
280283
281284 for (i = 0; i < 3; i++) {
....@@ -283,31 +286,34 @@
283286 p->layer_info[i].number_of_segments > 13)
284287 continue;
285288
286
- n += snprintf(&buf[n], PAGE_SIZE - n, "\nLayer %d\n", i);
287
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tcode_rate = %d\t",
289
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\nLayer %d\n", i);
290
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tcode_rate = %d\t",
288291 p->layer_info[i].code_rate);
289
- n += snprintf(&buf[n], PAGE_SIZE - n, "constellation = %d\n",
292
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "constellation = %d\n",
290293 p->layer_info[i].constellation);
291
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tber = %-5d\t",
294
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tber = %-5d\t",
292295 p->layer_info[i].ber);
293
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tber_error_count = %-5d\t",
296
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
297
+ "\tber_error_count = %-5d\t",
294298 p->layer_info[i].ber_error_count);
295
- n += snprintf(&buf[n], PAGE_SIZE - n, "ber_bit_count = %-5d\n",
299
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "ber_bit_count = %-5d\n",
296300 p->layer_info[i].ber_bit_count);
297
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tpre_ber = %-5d\t",
301
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tpre_ber = %-5d\t",
298302 p->layer_info[i].pre_ber);
299
- n += snprintf(&buf[n], PAGE_SIZE - n, "\tts_per = %-5d\n",
303
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "\tts_per = %-5d\n",
300304 p->layer_info[i].ts_per);
301
- n += snprintf(&buf[n], PAGE_SIZE - n, "\terror_ts_packets = %-5d\t",
305
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
306
+ "\terror_ts_packets = %-5d\t",
302307 p->layer_info[i].error_ts_packets);
303
- n += snprintf(&buf[n], PAGE_SIZE - n, "total_ts_packets = %-5d\t",
308
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
309
+ "total_ts_packets = %-5d\t",
304310 p->layer_info[i].total_ts_packets);
305
- n += snprintf(&buf[n], PAGE_SIZE - n, "ti_ldepth_i = %d\n",
311
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "ti_ldepth_i = %d\n",
306312 p->layer_info[i].ti_ldepth_i);
307
- n += snprintf(&buf[n], PAGE_SIZE - n,
313
+ n += scnprintf(&buf[n], PAGE_SIZE - n,
308314 "\tnumber_of_segments = %d\t",
309315 p->layer_info[i].number_of_segments);
310
- n += snprintf(&buf[n], PAGE_SIZE - n, "tmcc_errors = %d\n",
316
+ n += scnprintf(&buf[n], PAGE_SIZE - n, "tmcc_errors = %d\n",
311317 p->layer_info[i].tmcc_errors);
312318 }
313319