Lines Matching refs:connection

53 static void scsi_open_send_reply(ndmp_connection_t *connection, int err);
54 static void common_open(ndmp_connection_t *connection, char *devname);
55 static void common_set_target(ndmp_connection_t *connection, char *device,
78 ndmpd_scsi_open_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_open_v2() argument
82 common_open(connection, request->device.name); in ndmpd_scsi_open_v2()
100 ndmpd_scsi_close_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_close_v2() argument
103 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_close_v2()
108 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_close_v2()
126 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_close_v2()
150 ndmpd_scsi_get_state_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_get_state_v2() argument
153 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_get_state_v2()
169 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_get_state_v2()
194 ndmpd_scsi_set_target_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_set_target_v2() argument
200 common_set_target(connection, request->device.name, in ndmpd_scsi_set_target_v2()
220 ndmpd_scsi_reset_device_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_reset_device_v2() argument
225 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_reset_device_v2()
243 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_reset_device_v2()
264 ndmpd_scsi_reset_bus_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_reset_bus_v2() argument
271 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_reset_bus_v2()
289 ndmpd_scsi_execute_cdb_v2(ndmp_connection_t *connection, void *body) in ndmpd_scsi_execute_cdb_v2() argument
293 ndmpd_session_t *session = ndmp_get_client_data(connection); in ndmpd_scsi_execute_cdb_v2()
301 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_execute_cdb_v2()
329 ndmpd_scsi_open_v3(ndmp_connection_t *connection, void *body) in ndmpd_scsi_open_v3() argument
333 common_open(connection, request->device); in ndmpd_scsi_open_v3()
352 ndmpd_scsi_set_target_v3(ndmp_connection_t *connection, void *body) in ndmpd_scsi_set_target_v3() argument
358 common_set_target(connection, request->device, in ndmpd_scsi_set_target_v3()
390 scsi_open_send_reply(ndmp_connection_t *connection, int err) in scsi_open_send_reply() argument
395 ndmp_send_reply(connection, (void *) &reply, "sending scsi_open reply"); in scsi_open_send_reply()
412 common_open(ndmp_connection_t *connection, char *devname) in common_open() argument
414 ndmpd_session_t *session = ndmp_get_client_data(connection); in common_open()
446 scsi_open_send_reply(connection, err); in common_open()
450 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) { in common_open()
464 scsi_open_send_reply(connection, err); in common_open()
480 scsi_open_send_reply(connection, err); in common_open()
502 common_set_target(ndmp_connection_t *connection, char *device, in common_set_target() argument
506 ndmpd_session_t *session = ndmp_get_client_data(connection); in common_set_target()
530 ndmp_send_reply(connection, (void *) &reply, in common_set_target()
541 switch (ndmp_open_list_add(connection, in common_set_target()
566 ndmp_send_reply(connection, (void *) &reply, in common_set_target()