Lines Matching refs:reply

102 	ndmp_scsi_close_reply reply;
107 reply.error = NDMP_DEV_NOT_OPEN_ERR;
108 ndmp_send_reply(connection, (void *) &reply,
109 "sending scsi_close reply");
125 reply.error = NDMP_NO_ERR;
126 ndmp_send_reply(connection, (void *) &reply,
127 "sending scsi_close reply");
152 ndmp_scsi_get_state_reply reply;
156 reply.error = NDMP_DEV_NOT_OPEN_ERR;
158 reply.error = NDMP_NO_ERR;
159 reply.target_controller = -1;
160 reply.target_id = -1;
161 reply.target_lun = -1;
163 reply.error = NDMP_NO_ERR;
164 reply.target_controller = 0;
165 reply.target_id = session->ns_scsi.sd_sid;
166 reply.target_lun = session->ns_scsi.sd_lun;
169 ndmp_send_reply(connection, (void *) &reply,
170 "sending scsi_get_state reply");
222 ndmp_scsi_reset_device_reply reply;
230 reply.error = NDMP_DEV_NOT_OPEN_ERR;
232 reply.error = NDMP_NO_ERR;
239 reply.error = NDMP_IO_ERR;
243 ndmp_send_reply(connection, (void *) &reply,
244 "sending scsi_reset_device reply");
266 ndmp_scsi_reset_bus_reply reply;
269 reply.error = NDMP_NOT_SUPPORTED_ERR;
271 ndmp_send_reply(connection, (void *) &reply,
272 "sending scsi_reset_bus reply");
292 ndmp_execute_cdb_reply reply;
297 (void) memset((void *) &reply, 0, sizeof (reply));
300 reply.error = NDMP_DEV_NOT_OPEN_ERR;
301 ndmp_send_reply(connection, (void *) &reply,
302 "sending scsi_execute_cdb reply");
380 * Send a reply for SCSI open command
392 ndmp_scsi_open_reply reply;
394 reply.error = err;
395 ndmp_send_reply(connection, (void *) &reply, "sending scsi_open reply");
505 ndmp_scsi_set_target_reply reply;
509 reply.error = NDMP_NO_ERR;
512 reply.error = NDMP_DEV_NOT_OPEN_ERR;
517 reply.error = NDMP_NO_DEVICE_ERR;
525 reply.error = NDMP_ILLEGAL_ARGS_ERR;
529 if (reply.error != NDMP_NO_ERR) {
530 ndmp_send_reply(connection, (void *) &reply,
531 "sending scsi_set_target reply");
549 reply.error = NDMP_DEVICE_BUSY_ERR;
552 reply.error = NDMP_NO_MEM_ERR;
555 reply.error = NDMP_IO_ERR;
559 if (reply.error == NDMP_NO_ERR) {
566 ndmp_send_reply(connection, (void *) &reply,
567 "sending scsi_set_target reply");