Lines Matching refs:server

37 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)  in cifs_dump_detail()  argument
46 server->ops->calc_smb_size(smb)); in cifs_dump_detail()
50 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument
55 if (server == NULL) in cifs_dump_mids()
59 spin_lock(&server->mid_lock); in cifs_dump_mids()
60 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids()
77 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids()
82 spin_unlock(&server->mid_lock); in cifs_dump_mids()
116 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon()
117 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon()
130 struct TCP_Server_Info *server = chan->server; in cifs_dump_channel() local
137 i+1, server->conn_id, in cifs_dump_channel()
138 server->credits, in cifs_dump_channel()
139 server->dialect, in cifs_dump_channel()
140 server->tcpStatus, in cifs_dump_channel()
141 server->reconnect_instance, in cifs_dump_channel()
142 server->srv_count, in cifs_dump_channel()
143 server->sec_mode, in cifs_dump_channel()
144 in_flight(server), in cifs_dump_channel()
145 atomic_read(&server->in_send), in cifs_dump_channel()
146 atomic_read(&server->num_waiters)); in cifs_dump_channel()
172 struct TCP_Server_Info *server; in cifs_debug_files_proc_show() local
186 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_debug_files_proc_show()
187 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_files_proc_show()
218 struct TCP_Server_Info *server; in cifs_debug_data_proc_show() local
272 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_debug_data_proc_show()
274 if (CIFS_SERVER_IS_CHAN(server)) in cifs_debug_data_proc_show()
279 c, server->conn_id); in cifs_debug_data_proc_show()
281 if (server->hostname) in cifs_debug_data_proc_show()
282 seq_printf(m, "Hostname: %s ", server->hostname); in cifs_debug_data_proc_show()
284 if (!server->rdma) in cifs_debug_data_proc_show()
287 if (!server->smbd_conn) { in cifs_debug_data_proc_show()
294 server->smbd_conn->protocol, in cifs_debug_data_proc_show()
295 server->smbd_conn->transport_status); in cifs_debug_data_proc_show()
298 server->smbd_conn->receive_credit_max, in cifs_debug_data_proc_show()
299 server->smbd_conn->send_credit_target, in cifs_debug_data_proc_show()
300 server->smbd_conn->max_send_size); in cifs_debug_data_proc_show()
303 server->smbd_conn->max_fragmented_recv_size, in cifs_debug_data_proc_show()
304 server->smbd_conn->max_fragmented_send_size, in cifs_debug_data_proc_show()
305 server->smbd_conn->max_receive_size); in cifs_debug_data_proc_show()
308 server->smbd_conn->keep_alive_interval, in cifs_debug_data_proc_show()
309 server->smbd_conn->max_readwrite_size, in cifs_debug_data_proc_show()
310 server->smbd_conn->rdma_readwrite_threshold); in cifs_debug_data_proc_show()
313 server->smbd_conn->count_get_receive_buffer, in cifs_debug_data_proc_show()
314 server->smbd_conn->count_put_receive_buffer, in cifs_debug_data_proc_show()
315 server->smbd_conn->count_send_empty); in cifs_debug_data_proc_show()
322 server->smbd_conn->count_reassembly_queue, in cifs_debug_data_proc_show()
323 server->smbd_conn->count_enqueue_reassembly_queue, in cifs_debug_data_proc_show()
324 server->smbd_conn->count_dequeue_reassembly_queue, in cifs_debug_data_proc_show()
325 server->smbd_conn->fragment_reassembly_remaining, in cifs_debug_data_proc_show()
326 server->smbd_conn->reassembly_data_length, in cifs_debug_data_proc_show()
327 server->smbd_conn->reassembly_queue_length); in cifs_debug_data_proc_show()
330 atomic_read(&server->smbd_conn->send_credits), in cifs_debug_data_proc_show()
331 atomic_read(&server->smbd_conn->receive_credits), in cifs_debug_data_proc_show()
332 server->smbd_conn->receive_credit_target); in cifs_debug_data_proc_show()
334 atomic_read(&server->smbd_conn->send_pending)); in cifs_debug_data_proc_show()
337 server->smbd_conn->count_receive_queue, in cifs_debug_data_proc_show()
338 server->smbd_conn->count_empty_packet_queue); in cifs_debug_data_proc_show()
341 server->smbd_conn->responder_resources, in cifs_debug_data_proc_show()
342 server->smbd_conn->max_frmr_depth, in cifs_debug_data_proc_show()
343 server->smbd_conn->mr_type); in cifs_debug_data_proc_show()
345 atomic_read(&server->smbd_conn->mr_ready_count), in cifs_debug_data_proc_show()
346 atomic_read(&server->smbd_conn->mr_used_count)); in cifs_debug_data_proc_show()
350 server->credits, server->dialect); in cifs_debug_data_proc_show()
351 if (server->compress_algorithm == SMB3_COMPRESS_LZNT1) in cifs_debug_data_proc_show()
353 else if (server->compress_algorithm == SMB3_COMPRESS_LZ77) in cifs_debug_data_proc_show()
355 else if (server->compress_algorithm == SMB3_COMPRESS_LZ77_HUFF) in cifs_debug_data_proc_show()
357 if (server->sign) in cifs_debug_data_proc_show()
359 if (server->posix_ext_supported) in cifs_debug_data_proc_show()
361 if (server->nosharesock) in cifs_debug_data_proc_show()
364 if (server->rdma) in cifs_debug_data_proc_show()
368 server->tcpStatus, in cifs_debug_data_proc_show()
369 server->reconnect_instance, in cifs_debug_data_proc_show()
370 server->srv_count, in cifs_debug_data_proc_show()
371 server->sec_mode, in_flight(server)); in cifs_debug_data_proc_show()
374 atomic_read(&server->in_send), in cifs_debug_data_proc_show()
375 atomic_read(&server->num_waiters)); in cifs_debug_data_proc_show()
377 if (server->origin_fullpath) in cifs_debug_data_proc_show()
379 server->origin_fullpath); in cifs_debug_data_proc_show()
380 if (server->leaf_fullpath) in cifs_debug_data_proc_show()
382 server->leaf_fullpath); in cifs_debug_data_proc_show()
387 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_debug_data_proc_show()
410 get_security_type_str(server->ops->select_sectype(server, ses->sectype))); in cifs_debug_data_proc_show()
477 spin_lock(&server->mid_lock); in cifs_debug_data_proc_show()
478 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_debug_data_proc_show()
487 spin_unlock(&server->mid_lock); in cifs_debug_data_proc_show()
506 struct TCP_Server_Info *server; in cifs_stats_proc_write() local
526 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_stats_proc_write()
527 server->max_in_flight = 0; in cifs_stats_proc_write()
530 atomic_set(&server->num_cmds[i], 0); in cifs_stats_proc_write()
531 atomic_set(&server->smb2slowcmd[i], 0); in cifs_stats_proc_write()
532 server->time_per_cmd[i] = 0; in cifs_stats_proc_write()
533 server->slowest_cmd[i] = 0; in cifs_stats_proc_write()
534 server->fastest_cmd[0] = 0; in cifs_stats_proc_write()
537 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_stats_proc_write()
544 if (server->ops->clear_stats) in cifs_stats_proc_write()
545 server->ops->clear_stats(tcon); in cifs_stats_proc_write()
563 struct TCP_Server_Info *server; in cifs_stats_proc_show() local
593 list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { in cifs_stats_proc_show()
594 seq_printf(m, "\nMax requests in flight: %d", server->max_in_flight); in cifs_stats_proc_show()
602 atomic_read(&server->num_cmds[j]), in cifs_stats_proc_show()
603 server->time_per_cmd[j], in cifs_stats_proc_show()
604 server->fastest_cmd[j], in cifs_stats_proc_show()
605 server->slowest_cmd[j]); in cifs_stats_proc_show()
607 if (atomic_read(&server->smb2slowcmd[j])) in cifs_stats_proc_show()
609 atomic_read(&server->smb2slowcmd[j]), in cifs_stats_proc_show()
610 server->hostname, j); in cifs_stats_proc_show()
612 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in cifs_stats_proc_show()
620 if (server->ops->print_stats) in cifs_stats_proc_show()
621 server->ops->print_stats(m, tcon); in cifs_stats_proc_show()