Home
last modified time | relevance | path

Searched refs:vnic (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.1.9/drivers/infiniband/hw/usnic/
Dusnic_vnic.c83 const char *usnic_vnic_pci_name(struct usnic_vnic *vnic) in usnic_vnic_pci_name() argument
85 return pci_name(usnic_vnic_get_pdev(vnic)); in usnic_vnic_pci_name()
88 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, in usnic_vnic_dump() argument
101 bar0 = usnic_vnic_get_bar(vnic, 0); in usnic_vnic_dump()
104 usnic_vnic_get_index(vnic), in usnic_vnic_dump()
116 spin_lock(&vnic->res_lock); in usnic_vnic_dump()
117 for (i = 0; i < ARRAY_SIZE(vnic->chunks); i++) { in usnic_vnic_dump()
118 chunk = &vnic->chunks[i]; in usnic_vnic_dump()
133 spin_unlock(&vnic->res_lock); in usnic_vnic_dump()
198 int usnic_vnic_check_room(struct usnic_vnic *vnic, in usnic_vnic_check_room() argument
[all …]
Dusnic_vnic.h63 struct usnic_vnic *vnic; member
73 struct usnic_vnic *vnic; member
86 const char *usnic_vnic_pci_name(struct usnic_vnic *vnic);
87 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, int buf_sz,
99 int usnic_vnic_check_room(struct usnic_vnic *vnic,
101 int usnic_vnic_res_cnt(struct usnic_vnic *vnic,
103 int usnic_vnic_res_free_cnt(struct usnic_vnic *vnic,
106 usnic_vnic_get_resources(struct usnic_vnic *vnic,
111 struct pci_dev *usnic_vnic_get_pdev(struct usnic_vnic *vnic);
112 struct vnic_dev_bar *usnic_vnic_get_bar(struct usnic_vnic *vnic,
[all …]
Dusnic_ib_verbs.c96 pdev = usnic_vnic_get_pdev(qp_grp->vf->vnic); in usnic_ib_fill_create_qp_resp()
103 bar = usnic_vnic_get_bar(qp_grp->vf->vnic, 0); in usnic_ib_fill_create_qp_resp()
110 resp.vfid = usnic_vnic_get_index(qp_grp->vf->vnic); in usnic_ib_fill_create_qp_resp()
178 struct usnic_vnic *vnic; in find_free_vf_and_create_qp_grp() local
199 vnic = vf->vnic; in find_free_vf_and_create_qp_grp()
200 if (!usnic_vnic_check_room(vnic, res_spec)) { in find_free_vf_and_create_qp_grp()
204 vnic))); in find_free_vf_and_create_qp_grp()
223 vnic = vf->vnic; in find_free_vf_and_create_qp_grp()
225 usnic_vnic_check_room(vnic, res_spec) == 0) { in find_free_vf_and_create_qp_grp()
684 if (usnic_vnic_get_index(vf->vnic) == vfid) { in usnic_ib_mmap()
[all …]
Dusnic_ib_main.c85 usnic_vnic_dump(vf->vnic, buf, buf_sz, vf, in usnic_ib_dump_vf()
483 static struct usnic_ib_dev *usnic_ib_discover_pf(struct usnic_vnic *vnic) in usnic_ib_discover_pf() argument
489 vf_pci = usnic_vnic_get_pdev(vnic); in usnic_ib_discover_pf()
563 vf->vnic = usnic_vnic_alloc(pdev); in usnic_ib_pci_probe()
564 if (IS_ERR_OR_NULL(vf->vnic)) { in usnic_ib_pci_probe()
565 err = vf->vnic ? PTR_ERR(vf->vnic) : -ENOMEM; in usnic_ib_pci_probe()
571 pf = usnic_ib_discover_pf(vf->vnic); in usnic_ib_pci_probe()
590 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
602 usnic_vnic_free(vf->vnic); in usnic_ib_pci_probe()
624 usnic_vnic_free(vf->vnic); in usnic_ib_pci_remove()
Dusnic_ib_qp_grp.c88 usnic_vnic_get_index(qp_grp->vf->vnic), in usnic_ib_qp_grp_dump_rows()
116 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in enable_qp_grp()
157 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in disable_qp_grp()
195 uaction->vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in init_filter_action()
532 alloc_res_chunk_list(struct usnic_vnic *vnic, in alloc_res_chunk_list() argument
555 res_chunk_list[i] = usnic_vnic_get_resources(vnic, res_type, in alloc_res_chunk_list()
562 usnic_vnic_pci_name(vnic), in alloc_res_chunk_list()
594 pdev = usnic_vnic_get_pdev(vf->vnic); in qp_grp_and_vf_bind()
620 pdev = usnic_vnic_get_pdev(qp_grp->vf->vnic); in qp_grp_and_vf_unbind()
688 qp_grp->res_chunk_list = alloc_res_chunk_list(vf->vnic, res_spec, in usnic_ib_qp_grp_create()
Dusnic_ib.h94 struct usnic_vnic *vnic; member
Dusnic_ib_sysfs.c220 usnic_vnic_get_index(qp_grp->vf->vnic)); in summary_show()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_init.h202 #define BNX2X_PF_Q_NUM(q_num, port, vnic)\ argument
203 ((((port) << 1) | (vnic)) * 16 + (q_num))
215 u32 reg_addr, reg_bit_map, vnic; in bnx2x_map_q_cos() local
227 for (vnic = 0; vnic < num_vnics; vnic++) { in bnx2x_map_q_cos()
229 BNX2X_PF_Q_NUM(q_num, BP_PORT(bp), vnic); in bnx2x_map_q_cos()
336 u32 vnic; in bnx2x_init_max() local
337 struct cmng_vnic *vdata = &ram_data->vnic; in bnx2x_init_max()
355 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_max()
357 vdata->vnic_max_rate[vnic].vn_counter.rate = in bnx2x_init_max()
358 input_data->vnic_max_rate[vnic]; in bnx2x_init_max()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dvnic_sdma.c46 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
140 tx = kmem_cache_alloc(dd->vnic.txreq_cache, GFP_ATOMIC); in hfi1_vnic_send_dma()
168 kmem_cache_free(dd->vnic.txreq_cache, tx); in hfi1_vnic_send_dma()
268 dd->vnic.txreq_cache = kmem_cache_create(buf, in hfi1_vnic_txreq_init()
272 if (!dd->vnic.txreq_cache) in hfi1_vnic_txreq_init()
279 kmem_cache_destroy(dd->vnic.txreq_cache); in hfi1_vnic_txreq_deinit()
280 dd->vnic.txreq_cache = NULL; in hfi1_vnic_txreq_deinit()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c93 txqs = alink->vnic->max_rx_rings; in nfp_abm_spawn_repr()
117 port->vnic = alink->vnic->dp.ctrl_bar; in nfp_abm_spawn_repr()
120 SET_NETDEV_DEV(netdev, &alink->vnic->pdev->dev); in nfp_abm_spawn_repr()
124 port, alink->vnic->dp.netdev); in nfp_abm_spawn_repr()
325 alink->vnic = nn; in nfp_abm_vnic_alloc()
327 alink->total_queues = alink->vnic->max_rx_rings; in nfp_abm_vnic_alloc()
391 for (i = 0; i < alink->vnic->dp.num_r_vecs; i++) { in nfp_abm_port_get_stats()
407 return alink->vnic->dp.num_r_vecs * 2; in nfp_abm_port_get_stats_count()
421 for (i = 0; i < alink->vnic->dp.num_r_vecs; i++) { in nfp_abm_port_get_stats_strings()
Dctrl.c181 *val = nn_readq(alink->vnic, in nfp_abm_ctrl_stat_basic()
265 struct nfp_net *nn = alink->vnic; in nfp_abm_ctrl_prio_map_update()
291 struct nfp_net *nn = alink->vnic; in nfp_abm_ctrl_prio_check_params()
309 alink->queue_base = nn_readl(alink->vnic, NFP_NET_CFG_START_RXQ); in nfp_abm_ctrl_read_params()
310 alink->queue_base /= alink->vnic->stride_rx; in nfp_abm_ctrl_read_params()
Dmain.h208 struct nfp_net *vnic; member
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c3865 struct bnxt_vnic_info *vnic = &bp->vnic_info[i]; in bnxt_init_vnics() local
3868 vnic->fw_vnic_id = INVALID_HW_RING_ID; in bnxt_init_vnics()
3870 vnic->fw_rss_cos_lb_ctx[j] = INVALID_HW_RING_ID; in bnxt_init_vnics()
3872 vnic->fw_l2_ctx_id = INVALID_HW_RING_ID; in bnxt_init_vnics()
3876 get_random_bytes(vnic->rss_hash_key, in bnxt_init_vnics()
3879 memcpy(vnic->rss_hash_key, in bnxt_init_vnics()
4046 struct bnxt_vnic_info *vnic; in bnxt_free_vnic_attributes() local
4053 vnic = &bp->vnic_info[i]; in bnxt_free_vnic_attributes()
4055 kfree(vnic->fw_grp_ids); in bnxt_free_vnic_attributes()
4056 vnic->fw_grp_ids = NULL; in bnxt_free_vnic_attributes()
[all …]
Dbnxt_ethtool.c1318 struct bnxt_vnic_info *vnic; in bnxt_get_rxfh() local
1327 vnic = &bp->vnic_info[0]; in bnxt_get_rxfh()
1334 if (key && vnic->rss_hash_key) in bnxt_get_rxfh()
1335 memcpy(key, vnic->rss_hash_key, HW_HASH_KEY_SIZE); in bnxt_get_rxfh()
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/
Dnic_main.c475 u32 vnic, bgx, lmac, chan; in nic_config_cpi() local
480 vnic = cfg->vf_id; in nic_config_cpi()
481 bgx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vnic]); in nic_config_cpi()
482 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[vnic]); in nic_config_cpi()
485 cpi_base = vnic * NIC_MAX_CPI_PER_LMAC; in nic_config_cpi()
486 rssi_base = vnic * hw->rss_ind_tbl_size; in nic_config_cpi()
490 (1ull << 63) | (vnic << 0)); in nic_config_cpi()
524 (vnic << 24) | (padd << 16) | in nic_config_cpi()
532 (vnic << 24) | (rssi_base + rssi)); in nic_config_cpi()
611 static void nic_tx_channel_cfg(struct nicpf *nic, u8 vnic, in nic_tx_channel_cfg() argument
[all …]
Dq_struct.h680 u64 vnic:7; member
682 u64 vnic:7;
Dnicvf_queues.c981 qs_cfg->vnic = qs->vnic_id; in nicvf_qset_config()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c80 stats->tx_packets = readq(port->vnic + NFP_NET_CFG_STATS_RX_FRAMES); in nfp_repr_vnic_get_stats64()
81 stats->tx_bytes = readq(port->vnic + NFP_NET_CFG_STATS_RX_OCTETS); in nfp_repr_vnic_get_stats64()
82 stats->tx_dropped = readq(port->vnic + NFP_NET_CFG_STATS_RX_DISCARDS); in nfp_repr_vnic_get_stats64()
84 stats->rx_packets = readq(port->vnic + NFP_NET_CFG_STATS_TX_FRAMES); in nfp_repr_vnic_get_stats64()
85 stats->rx_bytes = readq(port->vnic + NFP_NET_CFG_STATS_TX_OCTETS); in nfp_repr_vnic_get_stats64()
86 stats->rx_dropped = readq(port->vnic + NFP_NET_CFG_STATS_TX_DISCARDS); in nfp_repr_vnic_get_stats64()
Dnfp_port.h88 u8 __iomem *vnic; member
Dnfp_net_ethtool.c970 data = nfp_vnic_get_hw_stats(data, port->vnic, 0); in nfp_port_get_stats()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.h685 u8 vnic, u8 q) in nfp_flower_cmsg_pcie_port() argument
689 FIELD_PREP(NFP_FLOWER_CMSG_PORT_VNIC, vnic) | in nfp_flower_cmsg_pcie_port()
Dmain.c423 port->vnic = priv->nn->dp.ctrl_bar; in nfp_flower_spawn_vnic_reprs()
427 port->vnic = in nfp_flower_spawn_vnic_reprs()
/linux-6.1.9/drivers/scsi/snic/
Dsnic_fwint.h376 u8 vnic; /* vnic id */ member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.h467 struct mlx5e_vnic_env_stats vnic; member
Den_stats.c690 data[idx++] = MLX5E_READ_CTR64_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
694 data[idx++] = MLX5E_READ_CTR32_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
698 data[idx++] = MLX5E_READ_CTR32_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
706 u32 *out = (u32 *)priv->stats.vnic.query_vnic_env_out; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()

12