Lines Matching refs:req
41 struct hwrm_func_cfg_input req = {0}; in bnxt_set_vf_spoofchk() local
66 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_CFG, -1, -1); in bnxt_set_vf_spoofchk()
67 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_spoofchk()
68 req.flags = cpu_to_le32(func_flags); in bnxt_set_vf_spoofchk()
69 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_spoofchk()
112 struct hwrm_func_cfg_input req = {0}; in bnxt_set_vf_mac() local
130 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_CFG, -1, -1); in bnxt_set_vf_mac()
131 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_mac()
132 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_mac()
133 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_DFLT_MAC_ADDR); in bnxt_set_vf_mac()
134 memcpy(req.dflt_mac_addr, mac, ETH_ALEN); in bnxt_set_vf_mac()
135 return hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_mac()
140 struct hwrm_func_cfg_input req = {0}; in bnxt_set_vf_vlan() local
161 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_CFG, -1, -1); in bnxt_set_vf_vlan()
162 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_vlan()
163 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_vlan()
164 req.dflt_vlan = cpu_to_le16(vlan_tag); in bnxt_set_vf_vlan()
165 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_DFLT_VLAN); in bnxt_set_vf_vlan()
166 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_vlan()
175 struct hwrm_func_cfg_input req = {0}; in bnxt_set_vf_bw() local
200 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_CFG, -1, -1); in bnxt_set_vf_bw()
201 req.vf_id = cpu_to_le16(vf->fw_fid); in bnxt_set_vf_bw()
202 req.flags = cpu_to_le32(vf->func_flags); in bnxt_set_vf_bw()
203 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_MAX_BW); in bnxt_set_vf_bw()
204 req.max_bw = cpu_to_le32(max_tx_rate); in bnxt_set_vf_bw()
205 req.enables |= cpu_to_le32(FUNC_CFG_REQ_ENABLES_MIN_BW); in bnxt_set_vf_bw()
206 req.min_bw = cpu_to_le32(min_tx_rate); in bnxt_set_vf_bw()
207 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_bw()
265 struct hwrm_func_vf_resc_free_input req = {0}; in bnxt_hwrm_func_vf_resource_free() local
267 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_VF_RESC_FREE, -1, -1); in bnxt_hwrm_func_vf_resource_free()
271 req.vf_id = cpu_to_le16(i); in bnxt_hwrm_func_vf_resource_free()
272 rc = _hwrm_send_message(bp, &req, sizeof(req), in bnxt_hwrm_func_vf_resource_free()
350 struct hwrm_func_buf_rgtr_input req = {0}; in bnxt_hwrm_func_buf_rgtr() local
352 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_BUF_RGTR, -1, -1); in bnxt_hwrm_func_buf_rgtr()
354 req.req_buf_num_pages = cpu_to_le16(bp->pf.hwrm_cmd_req_pages); in bnxt_hwrm_func_buf_rgtr()
355 req.req_buf_page_size = cpu_to_le16(BNXT_PAGE_SHIFT); in bnxt_hwrm_func_buf_rgtr()
356 req.req_buf_len = cpu_to_le16(BNXT_HWRM_REQ_MAX_SIZE); in bnxt_hwrm_func_buf_rgtr()
357 req.req_buf_page_addr0 = cpu_to_le64(bp->pf.hwrm_cmd_req_dma_addr[0]); in bnxt_hwrm_func_buf_rgtr()
358 req.req_buf_page_addr1 = cpu_to_le64(bp->pf.hwrm_cmd_req_dma_addr[1]); in bnxt_hwrm_func_buf_rgtr()
359 req.req_buf_page_addr2 = cpu_to_le64(bp->pf.hwrm_cmd_req_dma_addr[2]); in bnxt_hwrm_func_buf_rgtr()
360 req.req_buf_page_addr3 = cpu_to_le64(bp->pf.hwrm_cmd_req_dma_addr[3]); in bnxt_hwrm_func_buf_rgtr()
362 return hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_func_buf_rgtr()
370 struct hwrm_func_cfg_input req = {0}; in bnxt_hwrm_func_cfg() local
373 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_CFG, -1, -1); in bnxt_hwrm_func_cfg()
394 req.enables = cpu_to_le32(FUNC_CFG_REQ_ENABLES_MTU | in bnxt_hwrm_func_cfg()
405 req.mru = cpu_to_le16(mtu); in bnxt_hwrm_func_cfg()
406 req.mtu = cpu_to_le16(mtu); in bnxt_hwrm_func_cfg()
408 req.num_rsscos_ctxs = cpu_to_le16(1); in bnxt_hwrm_func_cfg()
409 req.num_cmpl_rings = cpu_to_le16(vf_cp_rings); in bnxt_hwrm_func_cfg()
410 req.num_tx_rings = cpu_to_le16(vf_tx_rings); in bnxt_hwrm_func_cfg()
411 req.num_rx_rings = cpu_to_le16(vf_rx_rings); in bnxt_hwrm_func_cfg()
412 req.num_l2_ctxs = cpu_to_le16(4); in bnxt_hwrm_func_cfg()
415 req.num_vnics = cpu_to_le16(vf_vnics); in bnxt_hwrm_func_cfg()
417 req.num_stat_ctxs = cpu_to_le16(vf_stat_ctx); in bnxt_hwrm_func_cfg()
421 req.vf_id = cpu_to_le16(pf->first_vf_id + i); in bnxt_hwrm_func_cfg()
422 rc = _hwrm_send_message(bp, &req, sizeof(req), in bnxt_hwrm_func_cfg()
427 bp->pf.vf[i].fw_fid = le16_to_cpu(req.vf_id); in bnxt_hwrm_func_cfg()
591 struct hwrm_fwd_resp_input req = {0}; in bnxt_hwrm_fwd_resp() local
594 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FWD_RESP, -1, -1); in bnxt_hwrm_fwd_resp()
597 req.target_id = cpu_to_le16(vf->fw_fid); in bnxt_hwrm_fwd_resp()
598 req.encap_resp_len = cpu_to_le16(msg_size); in bnxt_hwrm_fwd_resp()
599 req.encap_resp_addr = encap_resp_addr; in bnxt_hwrm_fwd_resp()
600 req.encap_resp_cmpl_ring = encap_resp_cpr; in bnxt_hwrm_fwd_resp()
601 memcpy(req.encap_resp, encap_resp, msg_size); in bnxt_hwrm_fwd_resp()
604 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_fwd_resp()
626 struct hwrm_reject_fwd_resp_input req = {0}; in bnxt_hwrm_fwd_err_resp() local
629 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_REJECT_FWD_RESP, -1, -1); in bnxt_hwrm_fwd_err_resp()
631 req.target_id = cpu_to_le16(vf->fw_fid); in bnxt_hwrm_fwd_err_resp()
632 memcpy(req.encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_fwd_err_resp()
635 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_fwd_err_resp()
657 struct hwrm_exec_fwd_resp_input req = {0}; in bnxt_hwrm_exec_fwd_resp() local
660 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_EXEC_FWD_RESP, -1, -1); in bnxt_hwrm_exec_fwd_resp()
662 req.target_id = cpu_to_le16(vf->fw_fid); in bnxt_hwrm_exec_fwd_resp()
663 memcpy(req.encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_exec_fwd_resp()
666 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_exec_fwd_resp()
687 struct hwrm_cfa_l2_filter_alloc_input *req = in bnxt_vf_validate_set_mac() local
691 ether_addr_equal((const u8 *)req->l2_addr, vf->mac_addr)) in bnxt_vf_validate_set_mac()
794 struct hwrm_func_qcaps_input req = {0}; in bnxt_update_vf_mac() local
797 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FUNC_QCAPS, -1, -1); in bnxt_update_vf_mac()
798 req.fid = cpu_to_le16(0xffff); in bnxt_update_vf_mac()
801 if (_hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT)) in bnxt_update_vf_mac()