Lines Matching refs:resp
146 struct hwrm_err_output *resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in _hwrm_send_message() local
156 memset(resp, 0, PAGE_SIZE); in _hwrm_send_message()
216 if (resp->resp_len && resp->resp_len <= 4096) in _hwrm_send_message()
228 valid = (uint8_t *)resp + resp->resp_len - 1; in _hwrm_send_message()
244 err = le16toh(resp->error_code); in _hwrm_send_message()
275 struct hwrm_queue_qportcfg_output *resp = in bnxt_hwrm_queue_qportcfg() local
290 if (!resp->max_configurable_queues) { in bnxt_hwrm_queue_qportcfg()
295 if (resp->queue_cfg_info & HWRM_QUEUE_QPORTCFG_OUTPUT_QUEUE_CFG_INFO_ASYM_CFG) { in bnxt_hwrm_queue_qportcfg()
303 max_tc = min_t(uint8_t, resp->max_configurable_queues, BNXT_MAX_QUEUE); in bnxt_hwrm_queue_qportcfg()
304 max_lltc = resp->max_configurable_lossless_queues; in bnxt_hwrm_queue_qportcfg()
311 qptr = &resp->queue_id0; in bnxt_hwrm_queue_qportcfg()
394 struct hwrm_func_backing_store_qcaps_v2_output *resp = in bnxt_hwrm_func_backing_store_qcaps_v2() local
419 flags = le32_to_cpu(resp->flags); in bnxt_hwrm_func_backing_store_qcaps_v2()
420 type = le16_to_cpu(resp->next_valid_type); in bnxt_hwrm_func_backing_store_qcaps_v2()
424 ctxm->type = le16_to_cpu(resp->type); in bnxt_hwrm_func_backing_store_qcaps_v2()
427 ctxm->entry_size = le16_to_cpu(resp->entry_size); in bnxt_hwrm_func_backing_store_qcaps_v2()
428 ctxm->instance_bmap = le32_to_cpu(resp->instance_bit_map); in bnxt_hwrm_func_backing_store_qcaps_v2()
429 ctxm->entry_multiple = resp->entry_multiple; in bnxt_hwrm_func_backing_store_qcaps_v2()
430 ctxm->max_entries = le32_to_cpu(resp->max_num_entries); in bnxt_hwrm_func_backing_store_qcaps_v2()
431 ctxm->min_entries = le32_to_cpu(resp->min_num_entries); in bnxt_hwrm_func_backing_store_qcaps_v2()
432 init_val = resp->ctx_init_value; in bnxt_hwrm_func_backing_store_qcaps_v2()
433 init_off = resp->ctx_init_offset; in bnxt_hwrm_func_backing_store_qcaps_v2()
436 ctxm->split_entry_cnt = min_t(u8, resp->subtype_valid_cnt, in bnxt_hwrm_func_backing_store_qcaps_v2()
438 for (i = 0, p = &resp->split_entry_0; i < ctxm->split_entry_cnt; in bnxt_hwrm_func_backing_store_qcaps_v2()
452 struct hwrm_func_backing_store_qcaps_output *resp = in bnxt_hwrm_func_backing_store_qcaps() local
485 init_val = resp->ctx_kind_initializer; in bnxt_hwrm_func_backing_store_qcaps()
486 init_mask = le16_to_cpu(resp->ctx_init_mask); in bnxt_hwrm_func_backing_store_qcaps()
489 ctxm->max_entries = le32_to_cpu(resp->qp_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
490 ctxm->qp_qp1_entries = le16_to_cpu(resp->qp_min_qp1_entries); in bnxt_hwrm_func_backing_store_qcaps()
491 ctxm->qp_l2_entries = le16_to_cpu(resp->qp_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
492 ctxm->entry_size = le16_to_cpu(resp->qp_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
493 bnxt_init_ctx_initializer(ctxm, init_val, resp->qp_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
497 ctxm->srq_l2_entries = le16_to_cpu(resp->srq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
498 ctxm->max_entries = le32_to_cpu(resp->srq_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
499 ctxm->entry_size = le16_to_cpu(resp->srq_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
500 bnxt_init_ctx_initializer(ctxm, init_val, resp->srq_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
504 ctxm->cq_l2_entries = le16_to_cpu(resp->cq_max_l2_entries); in bnxt_hwrm_func_backing_store_qcaps()
505 ctxm->max_entries = le32_to_cpu(resp->cq_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
506 ctxm->entry_size = le16_to_cpu(resp->cq_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
507 bnxt_init_ctx_initializer(ctxm, init_val, resp->cq_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
511 ctxm->vnic_entries = le32_to_cpu(resp->vnic_max_vnic_entries); in bnxt_hwrm_func_backing_store_qcaps()
513 le16_to_cpu(resp->vnic_max_ring_table_entries); in bnxt_hwrm_func_backing_store_qcaps()
514 ctxm->entry_size = le16_to_cpu(resp->vnic_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
516 resp->vnic_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
520 ctxm->max_entries = le32_to_cpu(resp->stat_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
521 ctxm->entry_size = le16_to_cpu(resp->stat_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
523 resp->stat_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
527 ctxm->entry_size = le16_to_cpu(resp->tqm_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
528 ctxm->min_entries = le32_to_cpu(resp->tqm_min_entries_per_ring); in bnxt_hwrm_func_backing_store_qcaps()
529 ctxm->max_entries = le32_to_cpu(resp->tqm_max_entries_per_ring); in bnxt_hwrm_func_backing_store_qcaps()
530 ctxm->entry_multiple = resp->tqm_entries_multiple; in bnxt_hwrm_func_backing_store_qcaps()
537 ctxm->max_entries = le32_to_cpu(resp->mrav_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
538 ctxm->entry_size = le16_to_cpu(resp->mrav_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
540 le16_to_cpu(resp->mrav_num_entries_units); in bnxt_hwrm_func_backing_store_qcaps()
542 resp->mrav_init_offset, in bnxt_hwrm_func_backing_store_qcaps()
546 ctxm->entry_size = le16_to_cpu(resp->tim_entry_size); in bnxt_hwrm_func_backing_store_qcaps()
547 ctxm->max_entries = le32_to_cpu(resp->tim_max_entries); in bnxt_hwrm_func_backing_store_qcaps()
549 ctx->tqm_fp_rings_count = resp->tqm_fp_rings_count; in bnxt_hwrm_func_backing_store_qcaps()
556 ctx->tqm_fp_rings_count += resp->tqm_fp_rings_count_ext; in bnxt_hwrm_func_backing_store_qcaps()
722 struct hwrm_func_resource_qcaps_output *resp = in bnxt_hwrm_func_resc_qcaps() local
738 hw_resc->max_tx_sch_inputs = le16toh(resp->max_tx_scheduler_inputs); in bnxt_hwrm_func_resc_qcaps()
742 hw_resc->min_rsscos_ctxs = le16toh(resp->min_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
743 hw_resc->max_rsscos_ctxs = le16toh(resp->max_rsscos_ctx); in bnxt_hwrm_func_resc_qcaps()
744 hw_resc->min_cp_rings = le16toh(resp->min_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
745 hw_resc->max_cp_rings = le16toh(resp->max_cmpl_rings); in bnxt_hwrm_func_resc_qcaps()
746 hw_resc->min_tx_rings = le16toh(resp->min_tx_rings); in bnxt_hwrm_func_resc_qcaps()
747 hw_resc->max_tx_rings = le16toh(resp->max_tx_rings); in bnxt_hwrm_func_resc_qcaps()
748 hw_resc->min_rx_rings = le16toh(resp->min_rx_rings); in bnxt_hwrm_func_resc_qcaps()
749 hw_resc->max_rx_rings = le16toh(resp->max_rx_rings); in bnxt_hwrm_func_resc_qcaps()
750 hw_resc->min_hw_ring_grps = le16toh(resp->min_hw_ring_grps); in bnxt_hwrm_func_resc_qcaps()
751 hw_resc->max_hw_ring_grps = le16toh(resp->max_hw_ring_grps); in bnxt_hwrm_func_resc_qcaps()
752 hw_resc->min_l2_ctxs = le16toh(resp->min_l2_ctxs); in bnxt_hwrm_func_resc_qcaps()
753 hw_resc->max_l2_ctxs = le16toh(resp->max_l2_ctxs); in bnxt_hwrm_func_resc_qcaps()
754 hw_resc->min_vnics = le16toh(resp->min_vnics); in bnxt_hwrm_func_resc_qcaps()
755 hw_resc->max_vnics = le16toh(resp->max_vnics); in bnxt_hwrm_func_resc_qcaps()
756 hw_resc->min_stat_ctxs = le16toh(resp->min_stat_ctx); in bnxt_hwrm_func_resc_qcaps()
757 hw_resc->max_stat_ctxs = le16toh(resp->max_stat_ctx); in bnxt_hwrm_func_resc_qcaps()
760 hw_resc->max_nqs = le16toh(resp->max_msix); in bnxt_hwrm_func_resc_qcaps()
818 void *resp, uint32_t resp_len, uint32_t app_timeout) in bnxt_hwrm_passthrough() argument
840 memcpy(resp, output, resp_len); in bnxt_hwrm_passthrough()
851 struct hwrm_ver_get_output *resp = in bnxt_hwrm_ver_get() local
873 resp->hwrm_intf_maj_8b, resp->hwrm_intf_min_8b, resp->hwrm_intf_upd_8b); in bnxt_hwrm_ver_get()
874 softc->ver_info->hwrm_if_major = resp->hwrm_intf_maj_8b; in bnxt_hwrm_ver_get()
875 softc->ver_info->hwrm_if_minor = resp->hwrm_intf_min_8b; in bnxt_hwrm_ver_get()
876 softc->ver_info->hwrm_if_update = resp->hwrm_intf_upd_8b; in bnxt_hwrm_ver_get()
879 strlcpy(softc->ver_info->hwrm_fw_name, resp->hwrm_fw_name, in bnxt_hwrm_ver_get()
882 softc->hwrm_spec_code = resp->hwrm_intf_maj_8b << 16 | in bnxt_hwrm_ver_get()
883 resp->hwrm_intf_min_8b << 8 | in bnxt_hwrm_ver_get()
884 resp->hwrm_intf_upd_8b; in bnxt_hwrm_ver_get()
885 if (resp->hwrm_intf_maj_8b < 1) { in bnxt_hwrm_ver_get()
887 "than 1.0.0.\n", resp->hwrm_intf_maj_8b, in bnxt_hwrm_ver_get()
888 resp->hwrm_intf_min_8b, resp->hwrm_intf_upd_8b); in bnxt_hwrm_ver_get()
892 if (resp->mgmt_fw_major == 0 && resp->mgmt_fw_minor == 0 && in bnxt_hwrm_ver_get()
893 resp->mgmt_fw_build == 0) { in bnxt_hwrm_ver_get()
899 "%d.%d.%d.%d", resp->mgmt_fw_major, resp->mgmt_fw_minor, in bnxt_hwrm_ver_get()
900 resp->mgmt_fw_build, resp->mgmt_fw_patch); in bnxt_hwrm_ver_get()
901 strlcpy(softc->ver_info->mgmt_fw_name, resp->mgmt_fw_name, in bnxt_hwrm_ver_get()
904 if (resp->netctrl_fw_major == 0 && resp->netctrl_fw_minor == 0 && in bnxt_hwrm_ver_get()
905 resp->netctrl_fw_build == 0) { in bnxt_hwrm_ver_get()
913 "%d.%d.%d.%d", resp->netctrl_fw_major, resp->netctrl_fw_minor, in bnxt_hwrm_ver_get()
914 resp->netctrl_fw_build, resp->netctrl_fw_patch); in bnxt_hwrm_ver_get()
915 strlcpy(softc->ver_info->netctrl_fw_name, resp->netctrl_fw_name, in bnxt_hwrm_ver_get()
918 if (resp->roce_fw_major == 0 && resp->roce_fw_minor == 0 && in bnxt_hwrm_ver_get()
919 resp->roce_fw_build == 0) { in bnxt_hwrm_ver_get()
925 "%d.%d.%d.%d", resp->roce_fw_major, resp->roce_fw_minor, in bnxt_hwrm_ver_get()
926 resp->roce_fw_build, resp->roce_fw_patch); in bnxt_hwrm_ver_get()
927 strlcpy(softc->ver_info->roce_fw_name, resp->roce_fw_name, in bnxt_hwrm_ver_get()
931 fw_maj = le32toh(resp->hwrm_fw_major); in bnxt_hwrm_ver_get()
933 fw_min = le16toh(resp->hwrm_fw_minor); in bnxt_hwrm_ver_get()
934 fw_bld = le16toh(resp->hwrm_fw_build); in bnxt_hwrm_ver_get()
935 fw_rsv = le16toh(resp->hwrm_fw_patch); in bnxt_hwrm_ver_get()
938 fw_maj = resp->hwrm_fw_maj_8b; in bnxt_hwrm_ver_get()
939 fw_min = resp->hwrm_fw_min_8b; in bnxt_hwrm_ver_get()
940 fw_bld = resp->hwrm_fw_bld_8b; in bnxt_hwrm_ver_get()
941 fw_rsv = resp->hwrm_fw_rsvd_8b; in bnxt_hwrm_ver_get()
949 if (strlen(resp->active_pkg_name)) { in bnxt_hwrm_ver_get()
954 resp->active_pkg_name); in bnxt_hwrm_ver_get()
958 softc->ver_info->chip_num = le16toh(resp->chip_num); in bnxt_hwrm_ver_get()
959 softc->ver_info->chip_rev = resp->chip_rev; in bnxt_hwrm_ver_get()
960 softc->ver_info->chip_metal = resp->chip_metal; in bnxt_hwrm_ver_get()
961 softc->ver_info->chip_bond_id = resp->chip_bond_id; in bnxt_hwrm_ver_get()
962 softc->ver_info->chip_type = resp->chip_platform_type; in bnxt_hwrm_ver_get()
964 if (resp->hwrm_intf_maj_8b >= 1) { in bnxt_hwrm_ver_get()
965 softc->hwrm_max_req_len = le16toh(resp->max_req_win_len); in bnxt_hwrm_ver_get()
966 softc->hwrm_max_ext_req_len = le16toh(resp->max_ext_req_len); in bnxt_hwrm_ver_get()
968 softc->hwrm_cmd_timeo = le16toh(resp->def_req_timeout); in bnxt_hwrm_ver_get()
972 dev_caps_cfg = le32toh(resp->dev_caps_cfg); in bnxt_hwrm_ver_get()
1029 struct hwrm_func_drv_rgtr_output *resp = in bnxt_hwrm_func_drv_rgtr() local
1090 if (resp->flags & in bnxt_hwrm_func_drv_rgtr()
1138 struct hwrm_func_qcaps_output *resp = in bnxt_hwrm_func_qcaps() local
1151 flags = htole32(resp->flags); in bnxt_hwrm_func_qcaps()
1188 flags_ext = htole32(resp->flags_ext); in bnxt_hwrm_func_qcaps()
1212 flags_ext2 = htole32(resp->flags_ext2); in bnxt_hwrm_func_qcaps()
1223 func->fw_fid = le16toh(resp->fid); in bnxt_hwrm_func_qcaps()
1224 memcpy(func->mac_addr, resp->mac_address, ETHER_ADDR_LEN); in bnxt_hwrm_func_qcaps()
1225 func->max_rsscos_ctxs = le16toh(resp->max_rsscos_ctx); in bnxt_hwrm_func_qcaps()
1226 func->max_cp_rings = le16toh(resp->max_cmpl_rings); in bnxt_hwrm_func_qcaps()
1227 func->max_tx_rings = le16toh(resp->max_tx_rings); in bnxt_hwrm_func_qcaps()
1228 func->max_rx_rings = le16toh(resp->max_rx_rings); in bnxt_hwrm_func_qcaps()
1229 func->max_hw_ring_grps = le32toh(resp->max_hw_ring_grps); in bnxt_hwrm_func_qcaps()
1232 func->max_l2_ctxs = le16toh(resp->max_l2_ctxs); in bnxt_hwrm_func_qcaps()
1233 func->max_vnics = le16toh(resp->max_vnics); in bnxt_hwrm_func_qcaps()
1234 func->max_stat_ctxs = le16toh(resp->max_stat_ctx); in bnxt_hwrm_func_qcaps()
1238 pf->port_id = le16toh(resp->port_id); in bnxt_hwrm_func_qcaps()
1239 pf->first_vf_id = le16toh(resp->first_vf_id); in bnxt_hwrm_func_qcaps()
1240 pf->max_vfs = le16toh(resp->max_vfs); in bnxt_hwrm_func_qcaps()
1241 pf->max_encap_records = le32toh(resp->max_encap_records); in bnxt_hwrm_func_qcaps()
1242 pf->max_decap_records = le32toh(resp->max_decap_records); in bnxt_hwrm_func_qcaps()
1243 pf->max_tx_em_flows = le32toh(resp->max_tx_em_flows); in bnxt_hwrm_func_qcaps()
1244 pf->max_tx_wm_flows = le32toh(resp->max_tx_wm_flows); in bnxt_hwrm_func_qcaps()
1245 pf->max_rx_em_flows = le32toh(resp->max_rx_em_flows); in bnxt_hwrm_func_qcaps()
1246 pf->max_rx_wm_flows = le32toh(resp->max_rx_wm_flows); in bnxt_hwrm_func_qcaps()
1262 struct hwrm_func_qcfg_output *resp = in bnxt_hwrm_func_qcfg() local
1276 fn_qcfg->alloc_completion_rings = le16toh(resp->alloc_cmpl_rings); in bnxt_hwrm_func_qcfg()
1277 fn_qcfg->alloc_tx_rings = le16toh(resp->alloc_tx_rings); in bnxt_hwrm_func_qcfg()
1278 fn_qcfg->alloc_rx_rings = le16toh(resp->alloc_rx_rings); in bnxt_hwrm_func_qcfg()
1279 fn_qcfg->alloc_vnics = le16toh(resp->alloc_vnics); in bnxt_hwrm_func_qcfg()
1281 switch (resp->port_partition_type) { in bnxt_hwrm_func_qcfg()
1286 softc->port_partition_type = resp->port_partition_type; in bnxt_hwrm_func_qcfg()
1290 flags = le16toh(resp->flags); in bnxt_hwrm_func_qcfg()
1311 softc->legacy_db_size = le16_to_cpu(resp->legacy_l2_db_size_kb) * 1024; in bnxt_hwrm_func_qcfg()
1321 softc->db_size = roundup2(le16_to_cpu(resp->l2_doorbell_bar_size_kb) * in bnxt_hwrm_func_qcfg()
1576 struct hwrm_vnic_alloc_output *resp = in bnxt_hwrm_vnic_alloc() local
1596 vnic->id = le32toh(resp->vnic_id); in bnxt_hwrm_vnic_alloc()
1628 struct hwrm_vnic_rss_cos_lb_ctx_alloc_output *resp = in bnxt_hwrm_vnic_ctx_alloc() local
1645 *ctx_id = le32toh(resp->rss_cos_lb_ctx_id); in bnxt_hwrm_vnic_ctx_alloc()
1656 struct hwrm_ring_grp_alloc_output *resp; in bnxt_hwrm_ring_grp_alloc() local
1668 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_ring_grp_alloc()
1680 grp->grp_id = le32toh(resp->ring_group_id); in bnxt_hwrm_ring_grp_alloc()
1717 struct hwrm_ring_free_output *resp; in bnxt_hwrm_ring_free() local
1724 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_ring_free()
1732 error_code = le16toh(resp->error_code); in bnxt_hwrm_ring_free()
1753 struct hwrm_ring_alloc_output *resp; in bnxt_hwrm_ring_alloc() local
1764 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_ring_alloc()
1838 ring->phys_id = le16toh(resp->ring_id); in bnxt_hwrm_ring_alloc()
1873 struct hwrm_stat_ctx_alloc_output *resp; in bnxt_hwrm_stat_ctx_alloc() local
1883 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_stat_ctx_alloc()
1901 cpr->stats_ctx_id = le32toh(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
1930 struct hwrm_queue_pri2cos_qcfg_output *resp; in bnxt_hwrm_pri2cos_idx() local
1936 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_pri2cos_idx()
1955 pri2cos = &resp->pri0_cos_queue_id; in bnxt_hwrm_pri2cos_idx()
1984 struct hwrm_port_qstats_ext_output *resp; in bnxt_hwrm_port_qstats_ext() local
1989 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_port_qstats_ext()
2002 le16toh(resp->rx_stat_size) / 8; in bnxt_hwrm_port_qstats_ext()
2008 le16toh(resp->tx_stat_size) / 8 : 0; in bnxt_hwrm_port_qstats_ext()
2131 struct hwrm_cfa_l2_filter_alloc_output *resp; in bnxt_hwrm_l2_filter_alloc() local
2142 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_l2_filter_alloc()
2171 *filter_id = le64toh(resp->l2_filter_id); in bnxt_hwrm_l2_filter_alloc()
2337 struct hwrm_nvm_find_dir_entry_output *resp = in bnxt_hwrm_nvm_find_dir_entry() local
2364 *item_length = le32toh(resp->dir_item_length); in bnxt_hwrm_nvm_find_dir_entry()
2366 *data_length = le32toh(resp->dir_data_length); in bnxt_hwrm_nvm_find_dir_entry()
2368 *fw_ver = le32toh(resp->fw_ver); in bnxt_hwrm_nvm_find_dir_entry()
2369 *ordinal = le16toh(resp->dir_ordinal); in bnxt_hwrm_nvm_find_dir_entry()
2371 *index = le16toh(resp->dir_idx); in bnxt_hwrm_nvm_find_dir_entry()
2458 struct hwrm_fw_reset_output *resp = in bnxt_hwrm_fw_reset() local
2472 *selfreset = resp->selfrst_status; in bnxt_hwrm_fw_reset()
2483 struct hwrm_fw_qstatus_output *resp = in bnxt_hwrm_fw_qstatus() local
2496 *selfreset = resp->selfrst_status; in bnxt_hwrm_fw_qstatus()
2510 struct hwrm_nvm_write_output *resp = in bnxt_hwrm_nvm_write() local
2558 *item_length = le32toh(resp->dir_item_length); in bnxt_hwrm_nvm_write()
2560 *index = le16toh(resp->dir_idx); in bnxt_hwrm_nvm_write()
2593 struct hwrm_nvm_get_dir_info_output *resp = in bnxt_hwrm_nvm_get_dir_info() local
2609 *entries = le32toh(resp->entries); in bnxt_hwrm_nvm_get_dir_info()
2611 *entry_length = le32toh(resp->entry_length); in bnxt_hwrm_nvm_get_dir_info()
2669 struct hwrm_nvm_get_dev_info_output *resp = in bnxt_hwrm_nvm_get_dev_info() local
2685 *mfg_id = le16toh(resp->manufacturer_id); in bnxt_hwrm_nvm_get_dev_info()
2687 *device_id = le16toh(resp->device_id); in bnxt_hwrm_nvm_get_dev_info()
2689 *sector_size = le32toh(resp->sector_size); in bnxt_hwrm_nvm_get_dev_info()
2691 *nvram_size = le32toh(resp->nvram_size); in bnxt_hwrm_nvm_get_dev_info()
2693 *reserved_size = le32toh(resp->reserved_size); in bnxt_hwrm_nvm_get_dev_info()
2695 *available_size = le32toh(resp->available_size); in bnxt_hwrm_nvm_get_dev_info()
2708 struct hwrm_nvm_install_update_output *resp = in bnxt_hwrm_nvm_install_update() local
2725 *installed_items = le32toh(resp->installed_items); in bnxt_hwrm_nvm_install_update()
2727 *result = resp->result; in bnxt_hwrm_nvm_install_update()
2729 *problem_item = resp->problem_item; in bnxt_hwrm_nvm_install_update()
2731 *reset_required = resp->reset_required; in bnxt_hwrm_nvm_install_update()
2767 struct hwrm_fw_get_time_output *resp = in bnxt_hwrm_fw_get_time() local
2779 *year = le16toh(resp->year); in bnxt_hwrm_fw_get_time()
2781 *month = resp->month; in bnxt_hwrm_fw_get_time()
2783 *day = resp->day; in bnxt_hwrm_fw_get_time()
2785 *hour = resp->hour; in bnxt_hwrm_fw_get_time()
2787 *minute = resp->minute; in bnxt_hwrm_fw_get_time()
2789 *second = resp->second; in bnxt_hwrm_fw_get_time()
2791 *millisecond = le16toh(resp->millisecond); in bnxt_hwrm_fw_get_time()
2793 *zone = le16toh(resp->zone); in bnxt_hwrm_fw_get_time()
2863 struct hwrm_port_phy_qcfg_output *resp = in bnxt_hwrm_port_phy_qcfg() local
2874 memcpy(&link_info->phy_qcfg_resp, resp, sizeof(*resp)); in bnxt_hwrm_port_phy_qcfg()
2875 link_info->phy_link_status = resp->link; in bnxt_hwrm_port_phy_qcfg()
2876 link_info->duplex = resp->duplex_cfg; in bnxt_hwrm_port_phy_qcfg()
2877 link_info->auto_mode = resp->auto_mode; in bnxt_hwrm_port_phy_qcfg()
2897 if ((resp->auto_mode) && in bnxt_hwrm_port_phy_qcfg()
2898 (resp->auto_pause & BNXT_AUTO_PAUSE_AUTONEG_PAUSE)) { in bnxt_hwrm_port_phy_qcfg()
2903 if (resp->auto_pause & BNXT_PAUSE_TX) in bnxt_hwrm_port_phy_qcfg()
2905 if (resp->auto_pause & BNXT_PAUSE_RX) in bnxt_hwrm_port_phy_qcfg()
2908 if (resp->force_pause & BNXT_PAUSE_TX) in bnxt_hwrm_port_phy_qcfg()
2910 if (resp->force_pause & BNXT_PAUSE_RX) in bnxt_hwrm_port_phy_qcfg()
2914 link_info->duplex_setting = resp->duplex_cfg; in bnxt_hwrm_port_phy_qcfg()
2916 link_info->link_speed = le16toh(resp->link_speed); in bnxt_hwrm_port_phy_qcfg()
2919 link_info->force_link_speed = le16toh(resp->force_link_speed); in bnxt_hwrm_port_phy_qcfg()
2920 link_info->auto_link_speeds = le16toh(resp->auto_link_speed); in bnxt_hwrm_port_phy_qcfg()
2921 link_info->support_speeds = le16toh(resp->support_speeds); in bnxt_hwrm_port_phy_qcfg()
2922 link_info->auto_link_speeds = le16toh(resp->auto_link_speed_mask); in bnxt_hwrm_port_phy_qcfg()
2923 link_info->preemphasis = le32toh(resp->preemphasis); in bnxt_hwrm_port_phy_qcfg()
2924 link_info->phy_ver[0] = resp->phy_maj; in bnxt_hwrm_port_phy_qcfg()
2925 link_info->phy_ver[1] = resp->phy_min; in bnxt_hwrm_port_phy_qcfg()
2926 link_info->phy_ver[2] = resp->phy_bld; in bnxt_hwrm_port_phy_qcfg()
2930 strlcpy(softc->ver_info->phy_vendor, resp->phy_vendor_name, in bnxt_hwrm_port_phy_qcfg()
2932 strlcpy(softc->ver_info->phy_partnumber, resp->phy_vendor_partnumber, in bnxt_hwrm_port_phy_qcfg()
2934 link_info->media_type = resp->media_type; in bnxt_hwrm_port_phy_qcfg()
2935 link_info->phy_type = resp->phy_type; in bnxt_hwrm_port_phy_qcfg()
2936 link_info->transceiver = resp->xcvr_pkg_type; in bnxt_hwrm_port_phy_qcfg()
2937 link_info->phy_addr = resp->eee_config_phy_addr & in bnxt_hwrm_port_phy_qcfg()
2939 link_info->module_status = resp->module_status; in bnxt_hwrm_port_phy_qcfg()
2940 link_info->support_pam4_speeds = le16toh(resp->support_pam4_speeds); in bnxt_hwrm_port_phy_qcfg()
2941 link_info->auto_pam4_link_speeds = le16toh(resp->auto_pam4_link_speed_mask); in bnxt_hwrm_port_phy_qcfg()
2942 link_info->force_pam4_link_speed = le16toh(resp->force_pam4_link_speed); in bnxt_hwrm_port_phy_qcfg()
2945 link_info->active_fec_sig_mode = resp->active_fec_signal_mode; in bnxt_hwrm_port_phy_qcfg()
2947 link_info->support_speeds2 = le16toh(resp->support_speeds2); in bnxt_hwrm_port_phy_qcfg()
2948 link_info->auto_link_speeds2 = le16toh(resp->auto_link_speeds2); in bnxt_hwrm_port_phy_qcfg()
2949 link_info->force_link_speeds2 = le16toh(resp->force_link_speeds2); in bnxt_hwrm_port_phy_qcfg()
2957 bnxt_phy_qcaps_no_speed(struct hwrm_port_phy_qcaps_output *resp) in bnxt_phy_qcaps_no_speed() argument
2959 if (!resp->supported_speeds_auto_mode && in bnxt_phy_qcaps_no_speed()
2960 !resp->supported_speeds_force_mode && in bnxt_phy_qcaps_no_speed()
2961 !resp->supported_pam4_speeds_auto_mode && in bnxt_phy_qcaps_no_speed()
2962 !resp->supported_pam4_speeds_force_mode && in bnxt_phy_qcaps_no_speed()
2963 !resp->supported_speeds2_auto_mode && in bnxt_phy_qcaps_no_speed()
2964 !resp->supported_speeds2_force_mode) in bnxt_phy_qcaps_no_speed()
2973 struct hwrm_port_phy_qcaps_output *resp = in bnxt_hwrm_phy_qcaps() local
2988 softc->phy_flags = resp->flags | (resp->flags2 << 8); in bnxt_hwrm_phy_qcaps()
2989 if (resp->flags & HWRM_PORT_PHY_QCAPS_OUTPUT_FLAGS_EEE_SUPPORTED) { in bnxt_hwrm_phy_qcaps()
2991 softc->lpi_tmr_lo = le32toh(resp->tx_lpi_timer_low) & in bnxt_hwrm_phy_qcaps()
2993 softc->lpi_tmr_hi = le32toh(resp->valid_tx_lpi_timer_high) & in bnxt_hwrm_phy_qcaps()
2998 if (bnxt_phy_qcaps_no_speed(resp)) { in bnxt_hwrm_phy_qcaps()
3010 if (resp->supported_speeds_auto_mode) in bnxt_hwrm_phy_qcaps()
3012 le16toh(resp->supported_speeds_auto_mode); in bnxt_hwrm_phy_qcaps()
3013 if (resp->supported_speeds_force_mode) in bnxt_hwrm_phy_qcaps()
3015 le16toh(resp->supported_speeds_force_mode); in bnxt_hwrm_phy_qcaps()
3016 if (resp->supported_pam4_speeds_auto_mode) in bnxt_hwrm_phy_qcaps()
3018 le16toh(resp->supported_pam4_speeds_auto_mode); in bnxt_hwrm_phy_qcaps()
3019 if (resp->supported_pam4_speeds_force_mode) in bnxt_hwrm_phy_qcaps()
3021 le16toh(resp->supported_pam4_speeds_force_mode); in bnxt_hwrm_phy_qcaps()
3023 if (resp->supported_speeds2_auto_mode) in bnxt_hwrm_phy_qcaps()
3025 le16toh(resp->supported_speeds2_auto_mode); in bnxt_hwrm_phy_qcaps()
3027 if (resp->supported_speeds2_force_mode) in bnxt_hwrm_phy_qcaps()
3029 le16toh(resp->supported_speeds2_force_mode); in bnxt_hwrm_phy_qcaps()
3040 struct hwrm_wol_filter_qcfg_output *resp = in bnxt_hwrm_get_wol_fltrs() local
3050 next_handle = le16toh(resp->next_handle); in bnxt_hwrm_get_wol_fltrs()
3052 if (resp->wol_type == in bnxt_hwrm_get_wol_fltrs()
3055 softc->wol_filter_id = resp->wol_filter_id; in bnxt_hwrm_get_wol_fltrs()
3066 struct hwrm_wol_filter_alloc_output *resp = in bnxt_hwrm_alloc_wol_fltr() local
3078 softc->wol_filter_id = resp->wol_filter_id; in bnxt_hwrm_alloc_wol_fltr()
3177 hwrm_dbg_ring_info_get_output_t *resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in bnxt_hwrm_ring_info_get() local
3186 *prod = resp->producer_index; in bnxt_hwrm_ring_info_get()
3187 *cons = resp->consumer_index; in bnxt_hwrm_ring_info_get()