Lines Matching refs:cmds

1302  *   cmds (input) - reader/writer command struct
1308 ndmp_stop_local_reader(ndmpd_session_t *session, tlm_commands_t *cmds)
1314 if (cmds != NULL && cmds->tcs_reader_count > 0) {
1317 cmds->tcs_command->tc_reader = TLM_STOP;
1331 * cmds (input) - reader/writer command struct
1359 ndmp_wait_for_reader(tlm_commands_t *cmds)
1361 if (cmds == NULL) {
1362 NDMP_LOG(LOG_DEBUG, "cmds == NULL");
1365 "reader_count: %d", cmds->tcs_reader_count);
1367 while (cmds->tcs_reader_count > 0)
1574 tlm_commands_t *cmds;
1580 cmds = &nlp->nlp_cmds;
1581 if (cmds->tcs_command == NULL) {
1582 NDMP_LOG(LOG_DEBUG, "cmds->tcs_command == NULL");
1584 cmds->tcs_reader = cmds->tcs_writer = TLM_ABORT;
1585 cmds->tcs_command->tc_reader = TLM_ABORT;
1586 cmds->tcs_command->tc_writer = TLM_ABORT;
1587 while (cmds->tcs_reader_count > 0 ||
1588 cmds->tcs_writer_count > 0) {
1613 tlm_commands_t *cmds;
1618 cmds = &nlp->nlp_cmds;
1619 if (cmds->tcs_command == NULL) {
1620 NDMP_LOG(LOG_DEBUG, "cmds->tcs_command == NULL");
1622 cmds->tcs_reader = TLM_ABORT;
1623 cmds->tcs_command->tc_reader = TLM_ABORT;
1624 while (cmds->tcs_reader_count > 0) {
1649 tlm_commands_t *cmds;
1654 cmds = &nlp->nlp_cmds;
1655 if (cmds->tcs_command == NULL) {
1656 NDMP_LOG(LOG_DEBUG, "cmds->tcs_command == NULL");
1659 cmds->tcs_writer = TLM_ABORT;
1660 cmds->tcs_command->tc_writer = TLM_ABORT;
1663 while (cmds->tcs_writer_count > 0) {
1689 tlm_commands_t *cmds;
1692 cmds = &nlp->nlp_cmds;
1693 if (cmds->tcs_command != NULL) {
1694 NDMP_LOG(LOG_DEBUG, "cmds->tcs_command->tc_ref: %d",
1695 cmds->tcs_command->tc_ref);
1696 tlm_release_reader_writer_ipc(cmds->tcs_command);