Lines Matching refs:cmds
2515 tlm_commands_t *cmds; /* Commands structure */
2522 cmds = &nlp->nlp_cmds;
2523 lcmd = cmds->tcs_command;
2527 cmds->tcs_reader_count++;
2532 tlm_cmd_signal(cmds->tcs_command, TLM_TAPE_READER);
2535 while (cmds->tcs_reader == TLM_RESTORE_RUN &&
2582 cmds->tcs_reader_count--;
2663 tlm_commands_t *cmds; /* Commands structure */
2670 cmds = &nlp->nlp_cmds;
2671 lcmd = cmds->tcs_command;
2675 cmds->tcs_writer_count++;
2680 tlm_cmd_signal(cmds->tcs_command, TLM_SOCK_WRITER);
2683 while (cmds->tcs_writer != (int)TLM_ABORT &&
2714 if (cmds->tcs_writer == (int)TLM_ABORT)
2715 NDMP_LOG(LOG_DEBUG, "cmds->tcs_writer == (int)TLM_ABORT");
2725 cmds->tcs_writer_count--;
2749 tlm_commands_t *cmds;
2758 cmds = &nlp->nlp_cmds;
2759 (void) memset(cmds, 0, sizeof (*cmds));
2760 cmds->tcs_reader = cmds->tcs_writer = TLM_RESTORE_RUN;
2762 cmds->tcs_command = tlm_create_reader_writer_ipc(FALSE, xfer_size);
2763 if (cmds->tcs_command == NULL)
2766 cmds->tcs_command->tc_reader = TLM_RESTORE_RUN;
2767 cmds->tcs_command->tc_writer = TLM_RESTORE_RUN;
2777 tlm_cmd_wait(cmds->tcs_command, TLM_TAPE_READER);
2786 tlm_cmd_wait(cmds->tcs_command, TLM_SOCK_WRITER);
2793 tlm_release_reader_writer_ipc(cmds->tcs_command);
2885 tlm_commands_t *cmds; /* Commands structure */
2893 cmds = &nlp->nlp_cmds;
2894 lcmd = cmds->tcs_command;
2898 cmds->tcs_reader_count++;
2903 tlm_cmd_signal(cmds->tcs_command, TLM_SOCK_READER);
2906 while (cmds->tcs_reader == TLM_BACKUP_RUN &&
2939 if (cmds->tcs_reader != TLM_BACKUP_RUN)
2940 NDMP_LOG(LOG_DEBUG, "cmds->tcs_reader != TLM_BACKUP_RUN");
2951 cmds->tcs_reader_count--;
3025 tlm_commands_t *cmds;
3033 cmds = &nlp->nlp_cmds;
3034 lcmd = cmds->tcs_command;
3038 cmds->tcs_writer_count++;
3043 tlm_cmd_signal(cmds->tcs_command, TLM_TAPE_WRITER);
3047 while (cmds->tcs_writer != (int)TLM_ABORT &&
3077 if (cmds->tcs_writer == (int)TLM_ABORT)
3078 NDMP_LOG(LOG_DEBUG, "cmds->tcs_writer == TLM_ABORT");
3096 cmds->tcs_writer_count--;
3121 tlm_commands_t *cmds;
3129 cmds = &nlp->nlp_cmds;
3130 (void) memset(cmds, 0, sizeof (*cmds));
3131 cmds->tcs_reader = cmds->tcs_writer = TLM_BACKUP_RUN;
3132 cmds->tcs_command = tlm_create_reader_writer_ipc(TRUE,
3134 if (cmds->tcs_command == NULL)
3137 cmds->tcs_command->tc_reader = TLM_BACKUP_RUN;
3138 cmds->tcs_command->tc_writer = TLM_BACKUP_RUN;
3148 tlm_cmd_wait(cmds->tcs_command, TLM_SOCK_READER);
3157 tlm_cmd_wait(cmds->tcs_command, TLM_TAPE_WRITER);
3164 tlm_release_reader_writer_ipc(cmds->tcs_command);