Lines Matching refs:len

25 	unsigned int len = 0;  in read_file_tgt_int_stats()  local
40 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
44 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
48 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
52 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
56 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
60 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_int_stats()
64 if (len > sizeof(buf)) in read_file_tgt_int_stats()
65 len = sizeof(buf); in read_file_tgt_int_stats()
67 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_int_stats()
83 unsigned int len = 0; in read_file_tgt_tx_stats() local
98 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
102 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
106 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
110 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
114 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
118 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
122 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
126 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
130 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_tx_stats()
134 if (len > sizeof(buf)) in read_file_tgt_tx_stats()
135 len = sizeof(buf); in read_file_tgt_tx_stats()
137 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_tx_stats()
153 unsigned int len = 0; in read_file_tgt_rx_stats() local
168 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_rx_stats()
172 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_rx_stats()
176 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_tgt_rx_stats()
180 if (len > sizeof(buf)) in read_file_tgt_rx_stats()
181 len = sizeof(buf); in read_file_tgt_rx_stats()
183 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_tgt_rx_stats()
198 unsigned int len = 0; in read_file_xmit() local
200 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
203 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
206 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
209 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
212 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
215 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
219 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
222 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
225 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
228 len += scnprintf(buf + len, sizeof(buf) - len, in read_file_xmit()
232 if (len > sizeof(buf)) in read_file_xmit()
233 len = sizeof(buf); in read_file_xmit()
235 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_xmit()
256 unsigned int len = 0, size = 1500; in read_file_skb_rx() local
263 len += scnprintf(buf + len, size - len, in read_file_skb_rx()
266 len += scnprintf(buf + len, size - len, in read_file_skb_rx()
269 len += scnprintf(buf + len, size - len, in read_file_skb_rx()
273 if (len > size) in read_file_skb_rx()
274 len = size; in read_file_skb_rx()
276 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_skb_rx()
294 unsigned int len; in read_file_slot() local
297 len = scnprintf(buf, sizeof(buf), in read_file_slot()
303 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_slot()
318 unsigned int len = 0; in read_file_queue() local
320 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
323 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
326 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
329 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
332 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
335 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
338 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
342 len += scnprintf(buf + len, sizeof(buf) - len, "%20s : %10u\n", in read_file_queue()
346 if (len > sizeof(buf)) in read_file_queue()
347 len = sizeof(buf); in read_file_queue()
349 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_queue()
366 unsigned int len; in read_file_debug() local
368 len = sprintf(buf, "0x%08x\n", common->debug_mask); in read_file_debug()
369 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_debug()