• Home
  • Raw
  • Download

Lines Matching refs:rsp

292 			      struct nix_lf_alloc_rsp *rsp, bool loop)  in nix_interface_init()  argument
323 rsp->tx_link = cgx_id * hw->lmac_per_cgx + lmac_id; in nix_interface_init()
371 rsp->tx_link = hw->cgx_links + lbkid; in nix_interface_init()
412 rsp->tx_link = hw->cgx_links + hw->lbk_links; in nix_interface_init()
468 struct msg_rsp *rsp) in rvu_mbox_handler_nix_bp_disable() argument
569 struct nix_bp_cfg_rsp *rsp) in rvu_mbox_handler_nix_bp_enable() argument
611 rsp->chan_bpid[chan] = ((req->chan_base + chan) & 0x7F) << 10 | in rvu_mbox_handler_nix_bp_enable()
616 rsp->chan_cnt = req->chan_cnt; in rvu_mbox_handler_nix_bp_enable()
853 struct nix_aq_enq_rsp *rsp) in rvu_nix_blk_aq_enq_inst() argument
881 if (!((!rsp && req->ctype == NIX_AQ_CTYPE_MCE) || in rvu_nix_blk_aq_enq_inst()
919 if (rsp) in rvu_nix_blk_aq_enq_inst()
1060 if (rsp) { in rvu_nix_blk_aq_enq_inst()
1064 memcpy(&rsp->rq, ctx, in rvu_nix_blk_aq_enq_inst()
1067 memcpy(&rsp->sq, ctx, in rvu_nix_blk_aq_enq_inst()
1070 memcpy(&rsp->cq, ctx, in rvu_nix_blk_aq_enq_inst()
1073 memcpy(&rsp->rss, ctx, in rvu_nix_blk_aq_enq_inst()
1076 memcpy(&rsp->mce, ctx, in rvu_nix_blk_aq_enq_inst()
1079 memcpy(&rsp->prof, ctx, in rvu_nix_blk_aq_enq_inst()
1146 struct nix_aq_enq_rsp *rsp) in rvu_nix_aq_enq_inst() argument
1161 err = rvu_nix_blk_aq_enq_inst(rvu, nix_hw, req, rsp); in rvu_nix_aq_enq_inst()
1277 struct nix_aq_enq_rsp *rsp) in rvu_mbox_handler_nix_aq_enq() argument
1281 err = rvu_nix_aq_enq_inst(rvu, req, rsp); in rvu_mbox_handler_nix_aq_enq()
1290 struct nix_aq_enq_rsp *rsp) in rvu_mbox_handler_nix_aq_enq() argument
1292 return rvu_nix_aq_enq_inst(rvu, req, rsp); in rvu_mbox_handler_nix_aq_enq()
1298 struct nix_cn10k_aq_enq_rsp *rsp) in rvu_mbox_handler_nix_cn10k_aq_enq() argument
1301 (struct nix_aq_enq_rsp *)rsp); in rvu_mbox_handler_nix_cn10k_aq_enq()
1306 struct msg_rsp *rsp) in rvu_mbox_handler_nix_hwctx_disable() argument
1313 struct nix_lf_alloc_rsp *rsp) in rvu_mbox_handler_nix_lf_alloc() argument
1494 err = nix_interface_init(rvu, pcifunc, intf, nixlf, rsp, in rvu_mbox_handler_nix_lf_alloc()
1515 ether_addr_copy(rsp->mac_addr, pfvf->mac_addr); in rvu_mbox_handler_nix_lf_alloc()
1519 rsp->sqb_size = (cfg >> 34) & 0xFFFF; in rvu_mbox_handler_nix_lf_alloc()
1520 rsp->rx_chan_base = pfvf->rx_chan_base; in rvu_mbox_handler_nix_lf_alloc()
1521 rsp->tx_chan_base = pfvf->tx_chan_base; in rvu_mbox_handler_nix_lf_alloc()
1522 rsp->rx_chan_cnt = pfvf->rx_chan_cnt; in rvu_mbox_handler_nix_lf_alloc()
1523 rsp->tx_chan_cnt = pfvf->tx_chan_cnt; in rvu_mbox_handler_nix_lf_alloc()
1524 rsp->lso_tsov4_idx = NIX_LSO_FORMAT_IDX_TSOV4; in rvu_mbox_handler_nix_lf_alloc()
1525 rsp->lso_tsov6_idx = NIX_LSO_FORMAT_IDX_TSOV6; in rvu_mbox_handler_nix_lf_alloc()
1528 rsp->lf_rx_stats = ((cfg >> 32) & 0xFF); in rvu_mbox_handler_nix_lf_alloc()
1529 rsp->lf_tx_stats = ((cfg >> 24) & 0xFF); in rvu_mbox_handler_nix_lf_alloc()
1532 rsp->qints = ((cfg >> 12) & 0xFFF); in rvu_mbox_handler_nix_lf_alloc()
1533 rsp->cints = ((cfg >> 24) & 0xFFF); in rvu_mbox_handler_nix_lf_alloc()
1534 rsp->cgx_links = hw->cgx_links; in rvu_mbox_handler_nix_lf_alloc()
1535 rsp->lbk_links = hw->lbk_links; in rvu_mbox_handler_nix_lf_alloc()
1536 rsp->sdp_links = hw->sdp_links; in rvu_mbox_handler_nix_lf_alloc()
1542 struct msg_rsp *rsp) in rvu_mbox_handler_nix_lf_free() argument
1586 struct nix_mark_format_cfg_rsp *rsp) in rvu_mbox_handler_nix_mark_format_cfg() argument
1615 rsp->mark_format_idx = rc; in rvu_mbox_handler_nix_mark_format_cfg()
1910 struct nix_txsch_alloc_rsp *rsp, in nix_txsch_alloc() argument
1914 u16 pcifunc = rsp->hdr.pcifunc; in nix_txsch_alloc()
1922 if (rsp->schq_contig[lvl]) { in nix_txsch_alloc()
1923 rsp->schq_contig[lvl] = 1; in nix_txsch_alloc()
1924 rsp->schq_contig_list[lvl][0] = start; in nix_txsch_alloc()
1928 if (rsp->schq_contig[lvl]) in nix_txsch_alloc()
1929 rsp->schq[lvl] = 0; in nix_txsch_alloc()
1931 if (rsp->schq[lvl]) { in nix_txsch_alloc()
1932 rsp->schq[lvl] = 1; in nix_txsch_alloc()
1933 rsp->schq_list[lvl][0] = start; in nix_txsch_alloc()
1945 rsp->schq_contig[lvl] = 0; in nix_txsch_alloc()
1946 rsp->schq[lvl] = 0; in nix_txsch_alloc()
1950 if (rsp->schq_contig[lvl]) { in nix_txsch_alloc()
1951 rsp->schq_contig[lvl] = 1; in nix_txsch_alloc()
1953 rsp->schq_contig_list[lvl][0] = schq; in nix_txsch_alloc()
1954 rsp->schq[lvl] = 0; in nix_txsch_alloc()
1955 } else if (rsp->schq[lvl]) { in nix_txsch_alloc()
1956 rsp->schq[lvl] = 1; in nix_txsch_alloc()
1958 rsp->schq_list[lvl][0] = schq; in nix_txsch_alloc()
1964 if (rsp->schq_contig[lvl]) { in nix_txsch_alloc()
1967 rsp->schq_contig[lvl], 0); in nix_txsch_alloc()
1969 rsp->schq_contig[lvl] = 0; in nix_txsch_alloc()
1970 for (idx = 0; idx < rsp->schq_contig[lvl]; idx++) { in nix_txsch_alloc()
1972 rsp->schq_contig_list[lvl][idx] = schq; in nix_txsch_alloc()
1978 if (rsp->schq[lvl]) { in nix_txsch_alloc()
1983 rsp->schq_list[lvl][idx++] = schq; in nix_txsch_alloc()
1985 if (idx == rsp->schq[lvl]) in nix_txsch_alloc()
1989 rsp->schq[lvl] = idx; in nix_txsch_alloc()
1995 struct nix_txsch_alloc_rsp *rsp) in rvu_mbox_handler_nix_txsch_alloc() argument
2034 rsp->schq[lvl] = req->schq[lvl]; in rvu_mbox_handler_nix_txsch_alloc()
2035 rsp->schq_contig[lvl] = req->schq_contig[lvl]; in rvu_mbox_handler_nix_txsch_alloc()
2049 nix_txsch_alloc(rvu, txsch, rsp, lvl, start, end); in rvu_mbox_handler_nix_txsch_alloc()
2053 schq = rsp->schq_contig_list[lvl][idx]; in rvu_mbox_handler_nix_txsch_alloc()
2062 schq = rsp->schq_list[lvl][idx]; in rvu_mbox_handler_nix_txsch_alloc()
2071 rsp->aggr_level = hw->cap.nix_tx_aggr_lvl; in rvu_mbox_handler_nix_txsch_alloc()
2072 rsp->aggr_lvl_rr_prio = TXSCH_TL1_DFLT_RR_PRIO; in rvu_mbox_handler_nix_txsch_alloc()
2073 rsp->link_cfg_lvl = rvu_read64(rvu, blkaddr, in rvu_mbox_handler_nix_txsch_alloc()
2274 struct msg_rsp *rsp) in rvu_mbox_handler_nix_txsch_free() argument
2396 struct nix_txschq_config *rsp) in nix_txschq_cfg_read() argument
2409 rsp->regval[idx] = rvu_read64(rvu, blkaddr, reg); in nix_txschq_cfg_read()
2411 rsp->lvl = req->lvl; in nix_txschq_cfg_read()
2412 rsp->num_regs = req->num_regs; in nix_txschq_cfg_read()
2447 struct nix_txschq_config *rsp) in rvu_mbox_handler_nix_txschq_cfg() argument
2471 return nix_txschq_cfg_read(rvu, nix_hw, blkaddr, req, rsp); in rvu_mbox_handler_nix_txschq_cfg()
2694 struct nix_vtag_config_rsp *rsp) in nix_tx_vtag_cfg() argument
2705 rsp->vtag0_idx = in nix_tx_vtag_cfg()
2709 if (rsp->vtag0_idx < 0) in nix_tx_vtag_cfg()
2712 vlan->entry2pfvf_map[rsp->vtag0_idx] = pcifunc; in nix_tx_vtag_cfg()
2716 rsp->vtag1_idx = in nix_tx_vtag_cfg()
2720 if (rsp->vtag1_idx < 0) in nix_tx_vtag_cfg()
2723 vlan->entry2pfvf_map[rsp->vtag1_idx] = pcifunc; in nix_tx_vtag_cfg()
2730 nix_tx_vtag_free(rvu, blkaddr, pcifunc, rsp->vtag0_idx); in nix_tx_vtag_cfg()
2737 struct nix_vtag_config_rsp *rsp) in rvu_mbox_handler_nix_vtag_cfg() argument
2758 return nix_tx_vtag_cfg(rvu, blkaddr, req, rsp); in rvu_mbox_handler_nix_vtag_cfg()
3239 struct nix_hw_info *rsp) in rvu_mbox_handler_nix_get_hw_info() argument
3250 rvu_get_lbk_link_max_frs(rvu, &rsp->max_mtu); in rvu_mbox_handler_nix_get_hw_info()
3252 rvu_get_lmac_link_max_frs(rvu, &rsp->max_mtu); in rvu_mbox_handler_nix_get_hw_info()
3254 rsp->min_mtu = NIC_HW_MIN_FRS; in rvu_mbox_handler_nix_get_hw_info()
3258 rsp->rpm_dwrr_mtu = 1; in rvu_mbox_handler_nix_get_hw_info()
3259 rsp->sdp_dwrr_mtu = 1; in rvu_mbox_handler_nix_get_hw_info()
3264 rsp->rpm_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
3267 rsp->sdp_dwrr_mtu = convert_dwrr_mtu_to_bytes(dwrr_mtu); in rvu_mbox_handler_nix_get_hw_info()
3273 struct msg_rsp *rsp) in rvu_mbox_handler_nix_stats_rst() argument
3609 struct nix_rss_flowkey_cfg_rsp *rsp) in rvu_mbox_handler_nix_rss_flowkey_cfg() argument
3632 rsp->alg_idx = alg_idx; in rvu_mbox_handler_nix_rss_flowkey_cfg()
3709 struct msg_rsp *rsp) in rvu_mbox_handler_nix_set_mac_addr() argument
3745 struct nix_get_mac_addr_rsp *rsp) in rvu_mbox_handler_nix_get_mac_addr() argument
3755 ether_addr_copy(rsp->mac_addr, pfvf->mac_addr); in rvu_mbox_handler_nix_get_mac_addr()
3761 struct msg_rsp *rsp) in rvu_mbox_handler_nix_set_rx_mode() argument
3881 struct msg_rsp *rsp) in rvu_mbox_handler_nix_set_hw_frs() argument
3947 struct msg_rsp *rsp) in rvu_mbox_handler_nix_set_rx_cfg() argument
4412 struct msg_rsp *rsp) in rvu_mbox_handler_nix_lf_start_rx() argument
4435 struct msg_rsp *rsp) in rvu_mbox_handler_nix_lf_stop_rx() argument
4560 struct msg_rsp *rsp) in rvu_mbox_handler_nix_lf_ptp_tx_enable() argument
4566 struct msg_rsp *rsp) in rvu_mbox_handler_nix_lf_ptp_tx_disable() argument
4573 struct nix_lso_format_cfg_rsp *rsp) in rvu_mbox_handler_nix_lso_format_cfg() argument
4605 rsp->lso_format_idx = idx; in rvu_mbox_handler_nix_lso_format_cfg()
4612 rsp->lso_format_idx = nix_hw->lso.in_use++; in rvu_mbox_handler_nix_lso_format_cfg()
4616 NIX_AF_LSO_FORMATX_FIELDX(rsp->lso_format_idx, f), in rvu_mbox_handler_nix_lso_format_cfg()
4854 struct nix_bandprof_alloc_rsp *rsp) in rvu_mbox_handler_nix_bandprof_alloc() argument
4884 rsp->prof_count[layer]++; in rvu_mbox_handler_nix_bandprof_alloc()
4885 rsp->prof_idx[layer][idx] = prof; in rvu_mbox_handler_nix_bandprof_alloc()
4933 struct msg_rsp *rsp) in rvu_mbox_handler_nix_bandprof_free() argument
5220 struct nix_bandprof_get_hwinfo_rsp *rsp) in rvu_mbox_handler_nix_bandprof_get_hwinfo() argument
5241 rsp->prof_count[layer] = rvu_rsrc_free_count(&ipolicer->band_prof); in rvu_mbox_handler_nix_bandprof_get_hwinfo()
5247 rsp->policer_timeunit = (tu + 1) * 100; in rvu_mbox_handler_nix_bandprof_get_hwinfo()