Lines Matching defs:resp
3920 struct hwrm_func_qstats_ext_output *resp = bp->hwrm_cmd_resp_addr;
3937 hw_masks = &resp->rx_ucast_pkts;
4450 struct hwrm_err_output *resp = bp->hwrm_cmd_resp_addr;
4471 resp = bp->hwrm_cmd_kong_resp_addr;
4474 memset(resp, 0, PAGE_SIZE);
4567 len = le16_to_cpu(resp->resp_len);
4568 valid = ((u8 *)resp) + len - 1;
4579 len = le16_to_cpu(resp->resp_len);
4600 /* Last byte of resp contains valid bit */
4601 valid = ((u8 *)resp) + len - 1;
4626 rc = le16_to_cpu(resp->error_code);
4629 le16_to_cpu(resp->req_type),
4630 le16_to_cpu(resp->seq_id), rc);
4669 struct hwrm_func_drv_rgtr_output *resp = bp->hwrm_cmd_resp_addr;
4749 if (resp->flags &
4801 struct hwrm_tunnel_dst_port_alloc_output *resp = bp->hwrm_cmd_resp_addr;
4819 le16_to_cpu(resp->tunnel_dst_port_id);
4822 bp->nge_fw_dst_port_id = le16_to_cpu(resp->tunnel_dst_port_id);
4881 struct hwrm_cfa_ntuple_filter_alloc_output *resp;
4939 resp = bnxt_get_hwrm_resp_addr(bp, &req);
4940 fltr->filter_id = resp->ntuple_filter_id;
4952 struct hwrm_cfa_l2_filter_alloc_output *resp = bp->hwrm_cmd_resp_addr;
4976 resp->l2_filter_id;
5311 struct hwrm_vnic_rss_cos_lb_ctx_alloc_output *resp =
5321 le16_to_cpu(resp->rss_cos_lb_ctx_id);
5434 struct hwrm_vnic_alloc_output *resp = bp->hwrm_cmd_resp_addr;
5462 vnic->fw_vnic_id = le32_to_cpu(resp->vnic_id);
5469 struct hwrm_vnic_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
5482 u32 flags = le32_to_cpu(resp->flags);
5498 bp->max_tpa_v2 = le16_to_cpu(resp->max_aggs_supported);
5521 struct hwrm_ring_grp_alloc_output *resp =
5538 le32_to_cpu(resp->ring_group_id);
5573 struct hwrm_ring_alloc_output *resp = bp->hwrm_cmd_resp_addr;
5669 err = le16_to_cpu(resp->error_code);
5670 ring_id = le16_to_cpu(resp->ring_id);
5876 struct hwrm_ring_free_output *resp = bp->hwrm_cmd_resp_addr;
5888 error_code = le16_to_cpu(resp->error_code);
6005 struct hwrm_func_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
6022 hw_resc->resv_tx_rings = le16_to_cpu(resp->alloc_tx_rings);
6026 hw_resc->resv_rx_rings = le16_to_cpu(resp->alloc_rx_rings);
6028 le32_to_cpu(resp->alloc_hw_ring_grps);
6029 hw_resc->resv_vnics = le16_to_cpu(resp->alloc_vnics);
6030 cp = le16_to_cpu(resp->alloc_cmpl_rings);
6031 stats = le16_to_cpu(resp->alloc_stat_ctx);
6046 hw_resc->resv_irqs = le16_to_cpu(resp->alloc_msix);
6059 struct hwrm_func_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
6070 *tx_rings = le16_to_cpu(resp->alloc_tx_rings);
6473 struct hwrm_ring_aggint_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
6495 coal_cap->cmpl_params = le32_to_cpu(resp->cmpl_params);
6496 coal_cap->nq_params = le32_to_cpu(resp->nq_params);
6498 le16_to_cpu(resp->num_cmpl_dma_aggr_max);
6500 le16_to_cpu(resp->num_cmpl_dma_aggr_during_int_max);
6502 le16_to_cpu(resp->cmpl_aggr_dma_tmr_max);
6504 le16_to_cpu(resp->cmpl_aggr_dma_tmr_during_int_max);
6506 le16_to_cpu(resp->int_lat_tmr_min_max);
6508 le16_to_cpu(resp->int_lat_tmr_max_max);
6510 le16_to_cpu(resp->num_cmpl_aggr_int_max);
6511 coal_cap->timer_units = le16_to_cpu(resp->timer_units);
6731 struct hwrm_stat_ctx_alloc_output *resp = bp->hwrm_cmd_resp_addr;
6753 cpr->hw_stats_ctx_id = le32_to_cpu(resp->stat_ctx_id);
6764 struct hwrm_func_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
6780 vf->vlan = le16_to_cpu(resp->vlan) & VLAN_VID_MASK;
6782 bp->pf.registered_vfs = le16_to_cpu(resp->registered_vfs);
6785 flags = le16_to_cpu(resp->flags);
6797 switch (resp->port_partition_type) {
6801 bp->port_partition_type = resp->port_partition_type;
6805 resp->evb_mode == FUNC_QCFG_RESP_EVB_MODE_VEB)
6807 else if (resp->evb_mode == FUNC_QCFG_RESP_EVB_MODE_VEPA)
6812 bp->max_mtu = le16_to_cpu(resp->max_mtu_configured);
6825 bp->db_size = PAGE_ALIGN(le16_to_cpu(resp->l2_doorbell_bar_size_kb) *
6839 struct hwrm_func_backing_store_qcaps_output *resp =
6859 ctx->qp_max_entries = le32_to_cpu(resp->qp_max_entries);
6860 ctx->qp_min_qp1_entries = le16_to_cpu(resp->qp_min_qp1_entries);
6861 ctx->qp_max_l2_entries = le16_to_cpu(resp->qp_max_l2_entries);
6862 ctx->qp_entry_size = le16_to_cpu(resp->qp_entry_size);
6863 ctx->srq_max_l2_entries = le16_to_cpu(resp->srq_max_l2_entries);
6864 ctx->srq_max_entries = le32_to_cpu(resp->srq_max_entries);
6865 ctx->srq_entry_size = le16_to_cpu(resp->srq_entry_size);
6866 ctx->cq_max_l2_entries = le16_to_cpu(resp->cq_max_l2_entries);
6867 ctx->cq_max_entries = le32_to_cpu(resp->cq_max_entries);
6868 ctx->cq_entry_size = le16_to_cpu(resp->cq_entry_size);
6870 le16_to_cpu(resp->vnic_max_vnic_entries);
6872 le16_to_cpu(resp->vnic_max_ring_table_entries);
6873 ctx->vnic_entry_size = le16_to_cpu(resp->vnic_entry_size);
6874 ctx->stat_max_entries = le32_to_cpu(resp->stat_max_entries);
6875 ctx->stat_entry_size = le16_to_cpu(resp->stat_entry_size);
6876 ctx->tqm_entry_size = le16_to_cpu(resp->tqm_entry_size);
6878 le32_to_cpu(resp->tqm_min_entries_per_ring);
6880 le32_to_cpu(resp->tqm_max_entries_per_ring);
6881 ctx->tqm_entries_multiple = resp->tqm_entries_multiple;
6884 ctx->mrav_max_entries = le32_to_cpu(resp->mrav_max_entries);
6885 ctx->mrav_entry_size = le16_to_cpu(resp->mrav_entry_size);
6887 le16_to_cpu(resp->mrav_num_entries_units);
6888 ctx->tim_entry_size = le16_to_cpu(resp->tim_entry_size);
6889 ctx->tim_max_entries = le32_to_cpu(resp->tim_max_entries);
6890 ctx->ctx_kind_initializer = resp->ctx_kind_initializer;
6891 ctx->tqm_fp_rings_count = resp->tqm_fp_rings_count;
7293 struct hwrm_func_resource_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
7307 hw_resc->max_tx_sch_inputs = le16_to_cpu(resp->max_tx_scheduler_inputs);
7311 hw_resc->min_rsscos_ctxs = le16_to_cpu(resp->min_rsscos_ctx);
7312 hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx);
7313 hw_resc->min_cp_rings = le16_to_cpu(resp->min_cmpl_rings);
7314 hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings);
7315 hw_resc->min_tx_rings = le16_to_cpu(resp->min_tx_rings);
7316 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings);
7317 hw_resc->min_rx_rings = le16_to_cpu(resp->min_rx_rings);
7318 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings);
7319 hw_resc->min_hw_ring_grps = le16_to_cpu(resp->min_hw_ring_grps);
7320 hw_resc->max_hw_ring_grps = le16_to_cpu(resp->max_hw_ring_grps);
7321 hw_resc->min_l2_ctxs = le16_to_cpu(resp->min_l2_ctxs);
7322 hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs);
7323 hw_resc->min_vnics = le16_to_cpu(resp->min_vnics);
7324 hw_resc->max_vnics = le16_to_cpu(resp->max_vnics);
7325 hw_resc->min_stat_ctxs = le16_to_cpu(resp->min_stat_ctx);
7326 hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx);
7329 u16 max_msix = le16_to_cpu(resp->max_msix);
7339 le16_to_cpu(resp->vf_reservation_strategy);
7352 struct hwrm_func_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
7364 flags = le32_to_cpu(resp->flags);
7382 flags_ext = le32_to_cpu(resp->flags_ext);
7391 hw_resc->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx);
7392 hw_resc->max_cp_rings = le16_to_cpu(resp->max_cmpl_rings);
7393 hw_resc->max_tx_rings = le16_to_cpu(resp->max_tx_rings);
7394 hw_resc->max_rx_rings = le16_to_cpu(resp->max_rx_rings);
7395 hw_resc->max_hw_ring_grps = le32_to_cpu(resp->max_hw_ring_grps);
7398 hw_resc->max_l2_ctxs = le16_to_cpu(resp->max_l2_ctxs);
7399 hw_resc->max_vnics = le16_to_cpu(resp->max_vnics);
7400 hw_resc->max_stat_ctxs = le16_to_cpu(resp->max_stat_ctx);
7405 pf->fw_fid = le16_to_cpu(resp->fid);
7406 pf->port_id = le16_to_cpu(resp->port_id);
7407 memcpy(pf->mac_addr, resp->mac_address, ETH_ALEN);
7408 pf->first_vf_id = le16_to_cpu(resp->first_vf_id);
7409 pf->max_vfs = le16_to_cpu(resp->max_vfs);
7410 pf->max_encap_records = le32_to_cpu(resp->max_encap_records);
7411 pf->max_decap_records = le32_to_cpu(resp->max_decap_records);
7412 pf->max_tx_em_flows = le32_to_cpu(resp->max_tx_em_flows);
7413 pf->max_tx_wm_flows = le32_to_cpu(resp->max_tx_wm_flows);
7414 pf->max_rx_em_flows = le32_to_cpu(resp->max_rx_em_flows);
7415 pf->max_rx_wm_flows = le32_to_cpu(resp->max_rx_wm_flows);
7423 vf->fw_fid = le16_to_cpu(resp->fid);
7424 memcpy(vf->mac_addr, resp->mac_address, ETH_ALEN);
7461 struct hwrm_cfa_adv_flow_mgnt_qcaps_output *resp;
7468 resp = bp->hwrm_cmd_resp_addr;
7476 flags = le32_to_cpu(resp->flags);
7584 struct hwrm_error_recovery_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
7597 fw_health->flags = le32_to_cpu(resp->flags);
7603 fw_health->polling_dsecs = le32_to_cpu(resp->driver_polling_freq);
7605 le32_to_cpu(resp->master_func_wait_period);
7607 le32_to_cpu(resp->normal_func_wait_period);
7609 le32_to_cpu(resp->master_func_wait_period_after_reset);
7611 le32_to_cpu(resp->max_bailout_time_after_reset);
7613 le32_to_cpu(resp->fw_health_status_reg);
7615 le32_to_cpu(resp->fw_heartbeat_reg);
7617 le32_to_cpu(resp->fw_reset_cnt_reg);
7619 le32_to_cpu(resp->reset_inprogress_reg);
7621 le32_to_cpu(resp->reset_inprogress_reg_mask);
7622 fw_health->fw_reset_seq_cnt = resp->reg_array_cnt;
7629 le32_to_cpu(resp->reset_reg[i]);
7631 le32_to_cpu(resp->reset_reg_val[i]);
7633 resp->delay_after_reset[i];
7668 struct hwrm_queue_qportcfg_output *resp = bp->hwrm_cmd_resp_addr;
7679 if (!resp->max_configurable_queues) {
7683 bp->max_tc = resp->max_configurable_queues;
7684 bp->max_lltc = resp->max_configurable_lossless_queues;
7689 qptr = &resp->queue_id0;
7702 if (resp->queue_cfg_info & QUEUE_QPORTCFG_RESP_QUEUE_CFG_INFO_ASYM_CFG)
7730 struct hwrm_ver_get_output *resp = bp->hwrm_cmd_resp_addr;
7741 memcpy(&bp->ver_resp, resp, sizeof(struct hwrm_ver_get_output));
7743 bp->hwrm_spec_code = resp->hwrm_intf_maj_8b << 16 |
7744 resp->hwrm_intf_min_8b << 8 |
7745 resp->hwrm_intf_upd_8b;
7746 if (resp->hwrm_intf_maj_8b < 1) {
7748 resp->hwrm_intf_maj_8b, resp->hwrm_intf_min_8b,
7749 resp->hwrm_intf_upd_8b);
7762 resp->hwrm_intf_maj_8b, resp->hwrm_intf_min_8b,
7763 resp->hwrm_intf_upd_8b);
7765 fw_maj = le16_to_cpu(resp->hwrm_fw_major);
7767 fw_min = le16_to_cpu(resp->hwrm_fw_minor);
7768 fw_bld = le16_to_cpu(resp->hwrm_fw_build);
7769 fw_rsv = le16_to_cpu(resp->hwrm_fw_patch);
7772 fw_maj = resp->hwrm_fw_maj_8b;
7773 fw_min = resp->hwrm_fw_min_8b;
7774 fw_bld = resp->hwrm_fw_bld_8b;
7775 fw_rsv = resp->hwrm_fw_rsvd_8b;
7782 if (strlen(resp->active_pkg_name)) {
7787 resp->active_pkg_name);
7791 bp->hwrm_cmd_timeout = le16_to_cpu(resp->def_req_timeout);
7795 if (resp->hwrm_intf_maj_8b >= 1) {
7796 bp->hwrm_max_req_len = le16_to_cpu(resp->max_req_win_len);
7797 bp->hwrm_max_ext_req_len = le16_to_cpu(resp->max_ext_req_len);
7802 bp->chip_num = le16_to_cpu(resp->chip_num);
7803 bp->chip_rev = resp->chip_rev;
7804 if (bp->chip_num == CHIP_NUM_58700 && !resp->chip_rev &&
7805 !resp->chip_metal)
7808 dev_caps_cfg = le32_to_cpu(resp->dev_caps_cfg);
7959 struct hwrm_port_qstats_ext_output *resp = bp->hwrm_cmd_resp_addr;
7984 bp->fw_rx_stats_ext_size = le16_to_cpu(resp->rx_stat_size) / 8;
7986 le16_to_cpu(resp->tx_stat_size) / 8 : 0;
9058 static bool bnxt_phy_qcaps_no_speed(struct hwrm_port_phy_qcaps_output *resp)
9060 if (!resp->supported_speeds_auto_mode &&
9061 !resp->supported_speeds_force_mode &&
9062 !resp->supported_pam4_speeds_auto_mode &&
9063 !resp->supported_pam4_speeds_force_mode)
9072 struct hwrm_port_phy_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
9089 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_EEE_SUPPORTED) {
9091 u16 fw_speeds = le16_to_cpu(resp->supported_speeds_eee_mode);
9095 bp->lpi_tmr_lo = le32_to_cpu(resp->tx_lpi_timer_low) &
9097 bp->lpi_tmr_hi = le32_to_cpu(resp->valid_tx_lpi_timer_high) &
9100 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_EXTERNAL_LPBK_SUPPORTED) {
9104 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_AUTONEG_LPBK_SUPPORTED) {
9108 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_SHARED_PHY_CFG_SUPPORTED) {
9112 if (resp->flags & PORT_PHY_QCAPS_RESP_FLAGS_CUMULATIVE_COUNTERS_ON_RESET)
9116 if (bnxt_phy_qcaps_no_speed(resp)) {
9127 if (resp->supported_speeds_auto_mode)
9129 le16_to_cpu(resp->supported_speeds_auto_mode);
9130 if (resp->supported_pam4_speeds_auto_mode)
9132 le16_to_cpu(resp->supported_pam4_speeds_auto_mode);
9134 bp->port_count = resp->port_cnt;
9153 struct hwrm_port_phy_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
9166 memcpy(&link_info->phy_qcfg_resp, resp, sizeof(*resp));
9167 link_info->phy_link_status = resp->link;
9168 link_info->duplex = resp->duplex_cfg;
9170 link_info->duplex = resp->duplex_state;
9171 link_info->pause = resp->pause;
9172 link_info->auto_mode = resp->auto_mode;
9173 link_info->auto_pause_setting = resp->auto_pause;
9174 link_info->lp_pause = resp->link_partner_adv_pause;
9175 link_info->force_pause_setting = resp->force_pause;
9176 link_info->duplex_setting = resp->duplex_cfg;
9178 link_info->link_speed = le16_to_cpu(resp->link_speed);
9181 link_info->force_link_speed = le16_to_cpu(resp->force_link_speed);
9183 le16_to_cpu(resp->force_pam4_link_speed);
9184 link_info->support_speeds = le16_to_cpu(resp->support_speeds);
9185 link_info->support_pam4_speeds = le16_to_cpu(resp->support_pam4_speeds);
9186 link_info->auto_link_speeds = le16_to_cpu(resp->auto_link_speed_mask);
9188 le16_to_cpu(resp->auto_pam4_link_speed_mask);
9190 le16_to_cpu(resp->link_partner_adv_speeds);
9192 resp->link_partner_pam4_adv_speeds;
9193 link_info->preemphasis = le32_to_cpu(resp->preemphasis);
9194 link_info->phy_ver[0] = resp->phy_maj;
9195 link_info->phy_ver[1] = resp->phy_min;
9196 link_info->phy_ver[2] = resp->phy_bld;
9197 link_info->media_type = resp->media_type;
9198 link_info->phy_type = resp->phy_type;
9199 link_info->transceiver = resp->xcvr_pkg_type;
9200 link_info->phy_addr = resp->eee_config_phy_addr &
9202 link_info->module_status = resp->module_status;
9209 if (resp->eee_config_phy_addr &
9213 resp->link_partner_adv_eee_link_speed_mask);
9220 if (resp->eee_config_phy_addr &
9224 fw_speeds = le16_to_cpu(resp->adv_eee_link_speed_mask);
9228 if (resp->eee_config_phy_addr &
9233 tmr = resp->xcvr_identifier_type_tx_lpi_timer;
9242 link_info->fec_cfg = le16_to_cpu(resp->fec_cfg);
9243 link_info->active_fec_sig_mode = resp->active_fec_signal_mode;
9283 struct hwrm_port_phy_qcfg_output *resp = &link_info->phy_qcfg_resp;
9298 resp->phy_vendor_partnumber);
9452 struct hwrm_func_drv_if_change_output *resp = bp->hwrm_cmd_resp_addr;
9468 flags = le32_to_cpu(resp->flags);
9529 struct hwrm_port_led_qcaps_output *resp = bp->hwrm_cmd_resp_addr;
9546 if (resp->num_leds > 0 && resp->num_leds < BNXT_MAX_LED) {
9549 bp->num_leds = resp->num_leds;
9550 memcpy(bp->leds, &resp->led0_id, sizeof(bp->leds[0]) *
9570 struct hwrm_wol_filter_alloc_output *resp = bp->hwrm_cmd_resp_addr;
9581 bp->wol_filter_id = resp->wol_filter_id;
9600 struct hwrm_wol_filter_qcfg_output *resp = bp->hwrm_cmd_resp_addr;
9610 next_handle = le16_to_cpu(resp->next_handle);
9612 if (resp->wol_type ==
9615 bp->wol_filter_id = resp->wol_filter_id;
9641 struct hwrm_temp_monitor_query_output *resp;
9646 resp = bp->hwrm_cmd_resp_addr;
9651 len = sprintf(buf, "%u\n", resp->temp * 1000); /* display millidegree */
10086 struct hwrm_port_phy_mdio_read_output *resp = bp->hwrm_cmd_resp_addr;
10107 *val = le16_to_cpu(resp->reg_data);
10613 struct hwrm_dbg_read_direct_output *resp = bp->hwrm_cmd_resp_addr;
10629 if (rc || resp->error_code) {
10645 struct hwrm_dbg_ring_info_get_output *resp = bp->hwrm_cmd_resp_addr;
10655 *prod = le32_to_cpu(resp->producer_index);
10656 *cons = le32_to_cpu(resp->consumer_index);