• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/bnxt/

Lines Matching refs:resp

119 	struct hwrm_err_output *resp = (void *)softc->hwrm_cmd_resp.idi_vaddr;
130 memset(resp, 0, PAGE_SIZE);
176 if (resp->resp_len && resp->resp_len <= 4096)
187 /* Last byte of resp contains the valid key */
188 valid = (uint8_t *)resp + resp->resp_len - 1;
204 err = le16toh(resp->error_code);
234 struct hwrm_queue_qportcfg_output *resp =
247 if (!resp->max_configurable_queues) {
251 softc->max_tc = resp->max_configurable_queues;
255 qptr = &resp->queue_id0;
271 struct hwrm_ver_get_output *resp =
292 resp->hwrm_intf_maj, resp->hwrm_intf_min, resp->hwrm_intf_upd);
293 softc->ver_info->hwrm_if_major = resp->hwrm_intf_maj;
294 softc->ver_info->hwrm_if_minor = resp->hwrm_intf_min;
295 softc->ver_info->hwrm_if_update = resp->hwrm_intf_upd;
297 resp->hwrm_fw_maj, resp->hwrm_fw_min, resp->hwrm_fw_bld);
300 strlcpy(softc->ver_info->hwrm_fw_name, resp->hwrm_fw_name,
303 if (resp->mgmt_fw_maj == 0 && resp->mgmt_fw_min == 0 &&
304 resp->mgmt_fw_bld == 0) {
310 "%d.%d.%d", resp->mgmt_fw_maj, resp->mgmt_fw_min,
311 resp->mgmt_fw_bld);
312 strlcpy(softc->ver_info->mgmt_fw_name, resp->mgmt_fw_name,
315 if (resp->netctrl_fw_maj == 0 && resp->netctrl_fw_min == 0 &&
316 resp->netctrl_fw_bld == 0) {
324 "%d.%d.%d", resp->netctrl_fw_maj, resp->netctrl_fw_min,
325 resp->netctrl_fw_bld);
326 strlcpy(softc->ver_info->netctrl_fw_name, resp->netctrl_fw_name,
329 if (resp->roce_fw_maj == 0 && resp->roce_fw_min == 0 &&
330 resp->roce_fw_bld == 0) {
336 "%d.%d.%d", resp->roce_fw_maj, resp->roce_fw_min,
337 resp->roce_fw_bld);
338 strlcpy(softc->ver_info->roce_fw_name, resp->roce_fw_name,
341 softc->ver_info->chip_num = le16toh(resp->chip_num);
342 softc->ver_info->chip_rev = resp->chip_rev;
343 softc->ver_info->chip_metal = resp->chip_metal;
344 softc->ver_info->chip_bond_id = resp->chip_bond_id;
345 softc->ver_info->chip_type = resp->chip_platform_type;
347 if (resp->max_req_win_len)
348 softc->hwrm_max_req_len = le16toh(resp->max_req_win_len);
349 if (resp->def_req_timeout)
350 softc->hwrm_cmd_timeo = le16toh(resp->def_req_timeout);
352 dev_caps_cfg = le32toh(resp->dev_caps_cfg);
421 struct hwrm_func_qcaps_output *resp =
433 if (resp->flags &
437 func->fw_fid = le16toh(resp->fid);
438 memcpy(func->mac_addr, resp->mac_address, ETHER_ADDR_LEN);
439 func->max_rsscos_ctxs = le16toh(resp->max_rsscos_ctx);
440 func->max_cp_rings = le16toh(resp->max_cmpl_rings);
441 func->max_tx_rings = le16toh(resp->max_tx_rings);
442 func->max_rx_rings = le16toh(resp->max_rx_rings);
443 func->max_hw_ring_grps = le32toh(resp->max_hw_ring_grps);
446 func->max_l2_ctxs = le16toh(resp->max_l2_ctxs);
447 func->max_vnics = le16toh(resp->max_vnics);
448 func->max_stat_ctxs = le16toh(resp->max_stat_ctx);
452 pf->port_id = le16toh(resp->port_id);
453 pf->first_vf_id = le16toh(resp->first_vf_id);
454 pf->max_vfs = le16toh(resp->max_vfs);
455 pf->max_encap_records = le32toh(resp->max_encap_records);
456 pf->max_decap_records = le32toh(resp->max_decap_records);
457 pf->max_tx_em_flows = le32toh(resp->max_tx_em_flows);
458 pf->max_tx_wm_flows = le32toh(resp->max_tx_wm_flows);
459 pf->max_rx_em_flows = le32toh(resp->max_rx_em_flows);
460 pf->max_rx_wm_flows = le32toh(resp->max_rx_wm_flows);
476 struct hwrm_func_qcfg_output *resp =
488 fn_qcfg->alloc_completion_rings = le16toh(resp->alloc_cmpl_rings);
489 fn_qcfg->alloc_tx_rings = le16toh(resp->alloc_tx_rings);
490 fn_qcfg->alloc_rx_rings = le16toh(resp->alloc_rx_rings);
491 fn_qcfg->alloc_vnics = le16toh(resp->alloc_vnics);
662 struct hwrm_vnic_alloc_output *resp =
682 vnic->id = le32toh(resp->vnic_id);
693 struct hwrm_vnic_rss_cos_lb_ctx_alloc_output *resp =
710 *ctx_id = le32toh(resp->rss_cos_lb_ctx_id);
721 struct hwrm_ring_grp_alloc_output *resp;
730 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr;
742 grp->grp_id = le32toh(resp->ring_group_id);
758 struct hwrm_ring_alloc_output *resp;
767 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr;
797 ring->phys_id = le16toh(resp->ring_id);
809 struct hwrm_stat_ctx_alloc_output *resp;
819 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr;
830 cpr->stats_ctx_id = le32toh(resp->stat_ctx_id);
913 struct hwrm_cfa_l2_filter_alloc_output *resp;
923 resp = (void *)softc->hwrm_cmd_resp.idi_vaddr;
941 vnic->filter_id = le64toh(resp->l2_filter_id);
942 vnic->flow_id = le64toh(resp->flow_id);
1056 struct hwrm_nvm_find_dir_entry_output *resp =
1083 *item_length = le32toh(resp->dir_item_length);
1085 *data_length = le32toh(resp->dir_data_length);
1087 *fw_ver = le32toh(resp->fw_ver);
1088 *ordinal = le16toh(resp->dir_ordinal);
1090 *index = le16toh(resp->dir_idx);
1177 struct hwrm_fw_reset_output *resp =
1191 *selfreset = resp->selfrst_status;
1202 struct hwrm_fw_qstatus_output *resp =
1215 *selfreset = resp->selfrst_status;
1229 struct hwrm_nvm_write_output *resp =
1277 *item_length = le32toh(resp->dir_item_length);
1279 *index = le16toh(resp->dir_idx);
1312 struct hwrm_nvm_get_dir_info_output *resp =
1328 *entries = le32toh(resp->entries);
1330 *entry_length = le32toh(resp->entry_length);
1388 struct hwrm_nvm_get_dev_info_output *resp =
1404 *mfg_id = le16toh(resp->manufacturer_id);
1406 *device_id = le16toh(resp->device_id);
1408 *sector_size = le32toh(resp->sector_size);
1410 *nvram_size = le32toh(resp->nvram_size);
1412 *reserved_size = le32toh(resp->reserved_size);
1414 *available_size = le32toh(resp->available_size);
1427 struct hwrm_nvm_install_update_output *resp =
1444 *installed_items = le32toh(resp->installed_items);
1446 *result = resp->result;
1448 *problem_item = resp->problem_item;
1450 *reset_required = resp->reset_required;
1486 struct hwrm_fw_get_time_output *resp =
1498 *year = le16toh(resp->year);
1500 *month = resp->month;
1502 *day = resp->day;
1504 *hour = resp->hour;
1506 *minute = resp->minute;
1508 *second = resp->second;
1510 *millisecond = le16toh(resp->millisecond);
1512 *zone = le16toh(resp->zone);
1544 struct hwrm_port_phy_qcfg_output *resp =
1555 link_info->phy_link_status = resp->link;
1556 link_info->duplex = resp->duplex_cfg;
1557 link_info->auto_mode = resp->auto_mode;
1577 if ((resp->auto_mode) &&
1578 (resp->auto_pause & BNXT_AUTO_PAUSE_AUTONEG_PAUSE)) {
1583 if (resp->auto_pause & BNXT_PAUSE_TX)
1585 if (resp->auto_pause & BNXT_PAUSE_RX)
1588 if (resp->force_pause & BNXT_PAUSE_TX)
1590 if (resp->force_pause & BNXT_PAUSE_RX)
1594 link_info->duplex_setting = resp->duplex_cfg;
1596 link_info->link_speed = le16toh(resp->link_speed);
1599 link_info->force_link_speed = le16toh(resp->force_link_speed);
1600 link_info->auto_link_speed = le16toh(resp->auto_link_speed);
1601 link_info->support_speeds = le16toh(resp->support_speeds);
1602 link_info->auto_link_speeds = le16toh(resp->auto_link_speed_mask);
1603 link_info->preemphasis = le32toh(resp->preemphasis);
1604 link_info->phy_ver[0] = resp->phy_maj;
1605 link_info->phy_ver[1] = resp->phy_min;
1606 link_info->phy_ver[2] = resp->phy_bld;
1610 strlcpy(softc->ver_info->phy_vendor, resp->phy_vendor_name,
1612 strlcpy(softc->ver_info->phy_partnumber, resp->phy_vendor_partnumber,
1614 link_info->media_type = resp->media_type;
1615 link_info->phy_type = resp->phy_type;
1616 link_info->transceiver = resp->xcvr_pkg_type;
1617 link_info->phy_addr = resp->eee_config_phy_addr &
1629 struct hwrm_wol_filter_qcfg_output *resp =
1639 next_handle = le16toh(resp->next_handle);
1641 if (resp->wol_type ==
1644 softc->wol_filter_id = resp->wol_filter_id;
1655 struct hwrm_wol_filter_alloc_output *resp =
1667 softc->wol_filter_id = resp->wol_filter_id;