OCS_CMD_POLL
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
if (opts == OCS_CMD_POLL) {
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
if (OCS_CMD_POLL == opts) {
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
if (opts == OCS_CMD_POLL || rc != OCS_HW_RTN_SUCCESS) {
if (cb_arg->opts != OCS_CMD_POLL) {
} else if (opts == OCS_CMD_POLL) {
if (opts == OCS_CMD_POLL || rc != OCS_HW_RTN_SUCCESS) {
if (cb_arg->opts != OCS_CMD_POLL) {
} else if (opts == OCS_CMD_POLL) {
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
if (cb_arg->opts != OCS_CMD_POLL) {
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL,
if (ocs_hw_exec_dmtf_clp_cmd(hw, &dma_cmd, &dma_resp, OCS_CMD_POLL, NULL, NULL)) {
if (opts == OCS_CMD_POLL && rc == OCS_HW_RTN_SUCCESS) {
if (opts == OCS_CMD_POLL || rc != OCS_HW_RTN_SUCCESS) {
if (cb_arg->opts != OCS_CMD_POLL) {
uint32_t opts = (hw->state == OCS_HW_STATE_ACTIVE ? OCS_CMD_NOWAIT : OCS_CMD_POLL);
if (rc == 0 && opts == OCS_CMD_POLL) {
uint32_t opts = (hw->state == OCS_HW_STATE_ACTIVE ? OCS_CMD_NOWAIT : OCS_CMD_POLL);
if (rc == 0 && opts == OCS_CMD_POLL) {
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
rc = ocs_hw_command(hw, buf, OCS_CMD_POLL, NULL, NULL);
ocs_hw_get_linkcfg(hw, OCS_CMD_POLL, ocs_hw_init_linkcfg_cb, hw);
if (ocs_hw_command(hw, cmd, OCS_CMD_POLL, NULL, NULL)) {
ocs_hw_set_persistent_topology(&ocs->hw, topology, OCS_CMD_POLL);