Lines Matching refs:connection

52 static void tape_open_send_reply(ndmp_connection_t *connection, int err);
56 static void common_tape_open(ndmp_connection_t *connection, char *devname,
58 static void common_tape_close(ndmp_connection_t *connection);
102 * connection (input) - connection handle.
109 ndmpd_tape_open_v2(ndmp_connection_t *connection, void *body)
112 ndmpd_session_t *session = ndmp_get_client_data(connection);
157 tape_open_send_reply(connection, err);
161 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) {
175 tape_open_send_reply(connection, err);
188 tape_open_send_reply(connection, NDMP_NO_TAPE_LOADED_ERR);
213 tape_open_send_reply(connection, err);
225 tape_open_send_reply(connection, NDMP_NO_ERR);
235 * connection (input) - connection handle.
243 ndmpd_tape_close_v2(ndmp_connection_t *connection, void *body)
246 ndmpd_session_t *session = ndmp_get_client_data(connection);
251 ndmp_send_reply(connection, (void *) &reply,
255 common_tape_close(connection);
266 * connection (input) - connection handle.
274 ndmpd_tape_get_state_v2(ndmp_connection_t *connection, void *body)
278 ndmpd_session_t *session = ndmp_get_client_data(connection);
286 ndmp_send_reply(connection, (void *) &reply,
295 ndmp_send_reply(connection, (void *)&reply,
307 ndmp_send_reply(connection, (void *)&reply,
332 ndmp_send_reply(connection, (void *) &reply,
343 * connection (input) - connection handle.
350 ndmpd_tape_mtio_v2(ndmp_connection_t *connection, void *body)
354 ndmpd_session_t *session = ndmp_get_client_data(connection);
366 ndmp_send_reply(connection, (void *) &reply,
440 ndmp_send_reply(connection, (void *)&reply,
454 ndmp_send_reply(connection, (void *)&reply,
466 ndmp_send_reply(connection, (void *) &reply, "sending tape_mtio reply");
485 * connection (input) - connection handle.
492 ndmpd_tape_read_v2(ndmp_connection_t *connection, void *body)
496 ndmpd_session_t *session = ndmp_get_client_data(connection);
504 ndmp_send_reply(connection, (void *)&reply,
510 ndmp_send_reply(connection, (void *)&reply,
516 ndmp_send_reply(connection, (void *)&reply,
523 ndmp_send_reply(connection, (void *) &reply, "sending tape_read reply");
534 * connection (input) - connection handle.
541 ndmpd_tape_execute_cdb_v2(ndmp_connection_t *connection, void *body)
545 ndmpd_session_t *session = ndmp_get_client_data(connection);
554 ndmp_send_reply(connection, (void *) &reply,
576 * connection (input) - connection handle.
583 ndmpd_tape_open_v3(ndmp_connection_t *connection, void *body)
587 common_tape_open(connection, request->device, request->mode);
598 * connection (input) - connection handle.
606 ndmpd_tape_get_state_v3(ndmp_connection_t *connection, void *body)
609 ndmpd_session_t *session = ndmp_get_client_data(connection);
617 ndmp_send_reply(connection, (void *) &reply,
627 ndmp_send_reply(connection, (void *)&reply,
640 ndmp_send_reply(connection, (void *)&reply,
673 ndmp_send_reply(connection, (void *) &reply,
756 * connection (input) - connection handle.
759 void ndmpd_tape_write_v3(ndmp_connection_t *connection, void *body) {
762 ndmp_get_client_data(connection); ssize_t n;
769 ndmp_send_reply(connection, (void *) &reply,
776 ndmp_send_reply(connection, (void *) &reply,
782 ndmp_send_reply(connection, (void *) &reply,
796 ndmp_send_reply(connection, (void *) &reply,
820 ndmp_send_reply(connection, (void *) &reply,
841 * connection (input) - connection handle.
845 ndmpd_tape_read_v3(ndmp_connection_t *connection, void *body)
849 ndmpd_session_t *session = ndmp_get_client_data(connection);
858 ndmp_send_reply(connection, (void *) &reply,
864 ndmp_send_reply(connection, (void *) &reply,
878 ndmp_send_reply(connection, (void *) &reply,
885 ndmp_send_reply(connection, (void *) &reply,
936 ndmp_send_reply(connection, (void *) &reply, "sending tape_read reply");
954 * connection (input) - connection handle.
962 ndmpd_tape_get_state_v4(ndmp_connection_t *connection, void *body)
965 ndmpd_session_t *session = ndmp_get_client_data(connection);
973 ndmp_send_reply(connection, (void *) &reply,
988 ndmp_send_reply(connection, (void *)&reply,
1001 ndmp_send_reply(connection, (void *)&reply,
1030 ndmp_send_reply(connection, (void *) &reply,
1039 * connection (input) - connection handle.
1047 ndmpd_tape_close_v4(ndmp_connection_t *connection, void *body)
1050 ndmpd_session_t *session = ndmp_get_client_data(connection);
1055 ndmp_send_reply(connection, (void *) &reply,
1068 ndmp_send_reply(connection, (void *) &reply,
1073 common_tape_close(connection);
1088 * connection (input) - connection handle.
1095 tape_open_send_reply(ndmp_connection_t *connection, int err)
1100 ndmp_send_reply(connection, (void *) &reply, "sending tape_open reply");
1194 * connection (input) - connection handle.
1202 common_tape_open(ndmp_connection_t *connection, char *devname, int ndmpmode)
1204 ndmpd_session_t *session = ndmp_get_client_data(connection);
1242 tape_open_send_reply(connection, err);
1253 tape_open_send_reply(connection, NDMP_NO_TAPE_LOADED_ERR);
1291 tape_open_send_reply(connection, err);
1295 switch (ndmp_open_list_add(connection,
1310 tape_open_send_reply(connection, err);
1322 tape_open_send_reply(connection, NDMP_NO_ERR);
1332 * connection (input) - connection handle.
1338 common_tape_close(ndmp_connection_t *connection)
1340 ndmpd_session_t *session = ndmp_get_client_data(connection);
1354 ndmp_send_reply(connection, (void *) &reply,