Lines Matching refs:dma_cmd
100 static ocs_hw_rtn_e ocs_hw_exec_dmtf_clp_cmd(ocs_hw_t *hw, ocs_dma_t *dma_cmd, ocs_dma_t *dma_resp,…
5805 ocs_dma_t dma_cmd; member
5873 if (ocs_dma_alloc(hw->os, &cb_arg->dma_cmd, ocs_strlen(cmd)+1, 4096)) { in ocs_hw_set_linkcfg_lancer()
5878 ocs_memset(cb_arg->dma_cmd.virt, 0, ocs_strlen(cmd)+1); in ocs_hw_set_linkcfg_lancer()
5879 ocs_memcpy(cb_arg->dma_cmd.virt, cmd, ocs_strlen(cmd)); in ocs_hw_set_linkcfg_lancer()
5884 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_set_linkcfg_lancer()
5892 rc = ocs_hw_exec_dmtf_clp_cmd(hw, &cb_arg->dma_cmd, &cb_arg->dma_resp, in ocs_hw_set_linkcfg_lancer()
5901 (char *)cb_arg->dma_cmd.virt); in ocs_hw_set_linkcfg_lancer()
5903 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_set_linkcfg_lancer()
6063 if (ocs_dma_alloc(hw->os, &cb_arg->dma_cmd, ocs_strlen(cmd)+1, 4096)) { in ocs_hw_get_linkcfg_lancer()
6070 ocs_memset(cb_arg->dma_cmd.virt, 0, ocs_strlen(cmd)+1); in ocs_hw_get_linkcfg_lancer()
6071 ocs_memcpy(cb_arg->dma_cmd.virt, cmd, ocs_strlen(cmd)); in ocs_hw_get_linkcfg_lancer()
6076 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_get_linkcfg_lancer()
6084 rc = ocs_hw_exec_dmtf_clp_cmd(hw, &cb_arg->dma_cmd, &cb_arg->dma_resp, in ocs_hw_get_linkcfg_lancer()
6093 (char *)cb_arg->dma_cmd.virt); in ocs_hw_get_linkcfg_lancer()
6095 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_get_linkcfg_lancer()
6116 sli4_res_common_get_reconfig_link_info_t *rsp = cb_arg->dma_cmd.virt; in ocs_hw_get_active_link_config_cb()
6133 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_get_active_link_config_cb()
6175 if (ocs_dma_alloc(hw->os, &cb_arg->dma_cmd, sizeof(sli4_res_common_get_reconfig_link_info_t), 4)) { in ocs_hw_get_linkcfg_skyhawk()
6182 if (sli_cmd_common_get_reconfig_link_info(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->dma_cmd)) { in ocs_hw_get_linkcfg_skyhawk()
6189 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_get_linkcfg_skyhawk()
6195 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_get_linkcfg_skyhawk()
6499 ocs_dma_free(hw->os, &cb_arg->dma_cmd); in ocs_hw_linkcfg_dmtf_clp_cb()
6612 ocs_dma_t dma_cmd; in ocs_hw_set_eth_license() local
6623 if (ocs_dma_alloc(hw->os, &dma_cmd, ocs_strlen(cmd)+1, 4096)) { in ocs_hw_set_eth_license()
6627 ocs_memset(dma_cmd.virt, 0, ocs_strlen(cmd)+1); in ocs_hw_set_eth_license()
6628 ocs_memcpy(dma_cmd.virt, cmd, ocs_strlen(cmd)); in ocs_hw_set_eth_license()
6633 ocs_dma_free(hw->os, &dma_cmd); in ocs_hw_set_eth_license()
6638 if (ocs_hw_exec_dmtf_clp_cmd(hw, &dma_cmd, &dma_resp, OCS_CMD_POLL, NULL, NULL)) { in ocs_hw_set_eth_license()
6639 ocs_log_err(hw->os, "CLP cmd=\"%s\" failed\n", (char *)dma_cmd.virt); in ocs_hw_set_eth_license()
6643 ocs_dma_free(hw->os, &dma_cmd); in ocs_hw_set_eth_license()
6673 ocs_hw_exec_dmtf_clp_cmd(ocs_hw_t *hw, ocs_dma_t *dma_cmd, ocs_dma_t *dma_resp, uint32_t opts, ocs_… in ocs_hw_exec_dmtf_clp_cmd() argument
6701 dma_cmd, dma_resp)) { in ocs_hw_exec_dmtf_clp_cmd()