• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/ocs_fc/

Lines Matching defs:mbxdata

5107 	uint8_t *mbxdata;
5116 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
5117 if (mbxdata == NULL) {
5125 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5132 if (sli_cmd_common_write_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE, noc, last,
5134 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_fw_write, cb_arg);
5139 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5255 uint8_t *mbxdata;
5257 /* mbxdata holds the header of the command */
5258 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
5259 if (mbxdata == NULL) {
5268 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5280 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5285 if (sli_cmd_common_read_transceiver_data(&hw->sli, mbxdata, SLI4_BMBX_SIZE, page,
5287 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_sfp, cb_arg);
5295 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5315 uint8_t *mbxdata;
5317 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
5318 if (mbxdata == NULL) {
5326 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5333 if (sli_cmd_dump_type4(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
5335 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_temp, cb_arg);
5340 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5419 uint8_t *mbxdata;
5421 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
5422 if (mbxdata == NULL) {
5430 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5437 if (sli_cmd_read_link_stats(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
5441 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_link_stat, cb_arg);
5446 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5555 uint8_t *mbxdata;
5557 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO);
5558 if (mbxdata == NULL) {
5566 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5574 if (sli_cmd_read_status(&hw->sli, mbxdata, SLI4_BMBX_SIZE, cc)) {
5575 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_host_stat, cb_arg);
5580 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5935 uint8_t *mbxdata;
5947 /* mbxdata holds the header of the command */
5948 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
5949 if (mbxdata == NULL) {
5958 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5965 if (sli_cmd_common_set_reconfig_link_id(&hw->sli, mbxdata, SLI4_BMBX_SIZE, NULL, 0, config_id)) {
5966 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_set_active_link_config_cb, cb_arg);
5971 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5975 ocs_hw_set_active_link_config_cb(hw, 0, mbxdata, cb_arg);
5976 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
5980 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6130 uint8_t *mbxdata;
6134 /* mbxdata holds the header of the command */
6135 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
6136 if (mbxdata == NULL) {
6145 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6156 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6161 if (sli_cmd_common_get_reconfig_link_info(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->dma_cmd)) {
6162 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_get_active_link_config_cb, cb_arg);
6167 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6172 ocs_hw_get_active_link_config_cb(hw, 0, mbxdata, cb_arg);
6173 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6178 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6656 uint8_t *mbxdata;
6659 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
6660 if (mbxdata == NULL) {
6669 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6679 if (sli_cmd_dmtf_exec_clp_cmd(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
6681 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_dmtf_clp_cb, cb_arg);
6686 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE);
6687 ocs_hw_dmtf_clp_cb(hw, 0, mbxdata, cb_arg);
6698 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6704 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6953 uint8_t *mbxdata;
6972 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
6973 if (mbxdata == NULL) {
6981 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
6987 cb_arg->mbox_cmd = mbxdata;
6989 if (sli_cmd_common_read_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
6991 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_cb_dump_get, cb_arg);
6993 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE);
6994 rc = ocs_hw_cb_dump_get(hw, 0, mbxdata, cb_arg);
7000 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7064 uint8_t *mbxdata;
7073 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7074 if (mbxdata == NULL) {
7082 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7088 cb_arg->mbox_cmd = mbxdata;
7090 if (sli_cmd_common_delete_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
7092 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_cb_dump_clear, cb_arg);
7094 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE);
7095 rc = ocs_hw_cb_dump_clear(hw, 0, mbxdata, cb_arg);
7101 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7202 uint8_t *mbxdata;
7211 /* mbxdata holds the header of the command */
7212 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7213 if (mbxdata == NULL) {
7222 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7233 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7238 if (sli_cmd_common_get_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->payload)) {
7239 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_port_protocol_cb, cb_arg);
7244 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7331 uint8_t *mbxdata;
7351 /* mbxdata holds the header of the command */
7352 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7353 if (mbxdata == NULL) {
7362 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7375 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7380 sli_cmd_common_set_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE,
7448 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_port_protocol_cb2, new_cb_arg);
7458 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7495 uint8_t *mbxdata;
7504 /* mbxdata holds the header of the command */
7505 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7506 if (mbxdata == NULL) {
7515 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7527 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7532 if (sli_cmd_common_get_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->payload)) {
7533 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_port_protocol_cb1, cb_arg);
7538 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7630 uint8_t *mbxdata;
7639 /* mbxdata holds the header of the command */
7640 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7641 if (mbxdata == NULL) {
7650 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7660 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7665 if (sli_cmd_common_get_profile_list(&hw->sli, mbxdata, SLI4_BMBX_SIZE, 0, &cb_arg->payload)) {
7666 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_profile_list_cb, cb_arg);
7671 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7739 uint8_t *mbxdata;
7748 /* mbxdata holds the header of the command */
7749 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7750 if (mbxdata == NULL) {
7759 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7766 if (sli_cmd_common_get_active_profile(&hw->sli, mbxdata, SLI4_BMBX_SIZE)) {
7767 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_active_profile_cb, cb_arg);
7772 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7836 uint8_t *mbxdata;
7840 /* mbxdata holds the header of the command */
7841 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7842 if (mbxdata == NULL) {
7851 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7858 if (sli_cmd_read_nvparms(&hw->sli, mbxdata, SLI4_BMBX_SIZE)) {
7859 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_nvparms_cb, cb_arg);
7864 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7934 uint8_t *mbxdata;
7938 /* mbxdata holds the header of the command */
7939 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
7940 if (mbxdata == NULL) {
7949 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
7956 if (sli_cmd_write_nvparms(&hw->sli, mbxdata, SLI4_BMBX_SIZE, wwpn, wwnn, hard_alpa, preferred_d_id)) {
7957 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_nvparms_cb, cb_arg);
7962 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
8098 uint8_t *mbxdata;
8107 /* mbxdata holds the header of the command */
8108 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT);
8109 if (mbxdata == NULL) {
8118 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);
8125 if (sli_cmd_common_set_active_profile(&hw->sli, mbxdata, SLI4_BMBX_SIZE, 0, profile_id)) {
8126 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_active_profile_cb, cb_arg);
8131 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE);