Lines Matching refs:cmds
1308 ndmp_stop_local_reader(ndmpd_session_t *session, tlm_commands_t *cmds) in ndmp_stop_local_reader() argument
1314 if (cmds != NULL && cmds->tcs_reader_count > 0) { in ndmp_stop_local_reader()
1317 cmds->tcs_command->tc_reader = TLM_STOP; in ndmp_stop_local_reader()
1359 ndmp_wait_for_reader(tlm_commands_t *cmds) in ndmp_wait_for_reader() argument
1361 if (cmds == NULL) { in ndmp_wait_for_reader()
1365 "reader_count: %d", cmds->tcs_reader_count); in ndmp_wait_for_reader()
1367 while (cmds->tcs_reader_count > 0) in ndmp_wait_for_reader()
1574 tlm_commands_t *cmds; in ndmp_stop_buffer_worker() local
1580 cmds = &nlp->nlp_cmds; in ndmp_stop_buffer_worker()
1581 if (cmds->tcs_command == NULL) { in ndmp_stop_buffer_worker()
1584 cmds->tcs_reader = cmds->tcs_writer = TLM_ABORT; in ndmp_stop_buffer_worker()
1585 cmds->tcs_command->tc_reader = TLM_ABORT; in ndmp_stop_buffer_worker()
1586 cmds->tcs_command->tc_writer = TLM_ABORT; in ndmp_stop_buffer_worker()
1587 while (cmds->tcs_reader_count > 0 || in ndmp_stop_buffer_worker()
1588 cmds->tcs_writer_count > 0) { in ndmp_stop_buffer_worker()
1613 tlm_commands_t *cmds; in ndmp_stop_reader_thread() local
1618 cmds = &nlp->nlp_cmds; in ndmp_stop_reader_thread()
1619 if (cmds->tcs_command == NULL) { in ndmp_stop_reader_thread()
1622 cmds->tcs_reader = TLM_ABORT; in ndmp_stop_reader_thread()
1623 cmds->tcs_command->tc_reader = TLM_ABORT; in ndmp_stop_reader_thread()
1624 while (cmds->tcs_reader_count > 0) { in ndmp_stop_reader_thread()
1649 tlm_commands_t *cmds; in ndmp_stop_writer_thread() local
1654 cmds = &nlp->nlp_cmds; in ndmp_stop_writer_thread()
1655 if (cmds->tcs_command == NULL) { in ndmp_stop_writer_thread()
1659 cmds->tcs_writer = TLM_ABORT; in ndmp_stop_writer_thread()
1660 cmds->tcs_command->tc_writer = TLM_ABORT; in ndmp_stop_writer_thread()
1663 while (cmds->tcs_writer_count > 0) { in ndmp_stop_writer_thread()
1689 tlm_commands_t *cmds; in ndmp_free_reader_writer_ipc() local
1692 cmds = &nlp->nlp_cmds; in ndmp_free_reader_writer_ipc()
1693 if (cmds->tcs_command != NULL) { in ndmp_free_reader_writer_ipc()
1695 cmds->tcs_command->tc_ref); in ndmp_free_reader_writer_ipc()
1696 tlm_release_reader_writer_ipc(cmds->tcs_command); in ndmp_free_reader_writer_ipc()