Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_vnic.c84 const char *usnic_vnic_pci_name(struct usnic_vnic *vnic) in usnic_vnic_pci_name() argument
86 return pci_name(usnic_vnic_get_pdev(vnic)); in usnic_vnic_pci_name()
89 int usnic_vnic_dump(struct usnic_vnic *vnic, char *buf, in usnic_vnic_dump() argument
102 bar0 = usnic_vnic_get_bar(vnic, 0); in usnic_vnic_dump()
105 usnic_vnic_get_index(vnic), in usnic_vnic_dump()
117 spin_lock(&vnic->res_lock); in usnic_vnic_dump()
118 for (i = 0; i < ARRAY_SIZE(vnic->chunks); i++) { in usnic_vnic_dump()
119 chunk = &vnic->chunks[i]; in usnic_vnic_dump()
134 spin_unlock(&vnic->res_lock); in usnic_vnic_dump()
199 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.c97 pdev = usnic_vnic_get_pdev(qp_grp->vf->vnic); in usnic_ib_fill_create_qp_resp()
104 bar = usnic_vnic_get_bar(qp_grp->vf->vnic, 0); in usnic_ib_fill_create_qp_resp()
111 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()
688 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()
502 static struct usnic_ib_dev *usnic_ib_discover_pf(struct usnic_vnic *vnic) in usnic_ib_discover_pf() argument
508 vf_pci = usnic_vnic_get_pdev(vnic); in usnic_ib_discover_pf()
577 vf->vnic = usnic_vnic_alloc(pdev); in usnic_ib_pci_probe()
578 if (IS_ERR_OR_NULL(vf->vnic)) { in usnic_ib_pci_probe()
579 err = vf->vnic ? PTR_ERR(vf->vnic) : -ENOMEM; in usnic_ib_pci_probe()
585 pf = usnic_ib_discover_pf(vf->vnic); in usnic_ib_pci_probe()
604 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
616 usnic_vnic_free(vf->vnic); in usnic_ib_pci_probe()
638 usnic_vnic_free(vf->vnic); in usnic_ib_pci_remove()
Dusnic_ib_qp_grp.c89 usnic_vnic_get_index(qp_grp->vf->vnic), in usnic_ib_qp_grp_dump_rows()
117 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in enable_qp_grp()
158 vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in disable_qp_grp()
196 uaction->vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic); in init_filter_action()
533 alloc_res_chunk_list(struct usnic_vnic *vnic, in alloc_res_chunk_list() argument
556 res_chunk_list[i] = usnic_vnic_get_resources(vnic, res_type, in alloc_res_chunk_list()
563 usnic_vnic_pci_name(vnic), in alloc_res_chunk_list()
595 pdev = usnic_vnic_get_pdev(vf->vnic); in qp_grp_and_vf_bind()
621 pdev = usnic_vnic_get_pdev(qp_grp->vf->vnic); in qp_grp_and_vf_unbind()
694 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.c239 usnic_vnic_get_index(qp_grp->vf->vnic)); in summary_show()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dvnic_sdma.c88 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
183 tx = kmem_cache_alloc(dd->vnic.txreq_cache, GFP_ATOMIC); in hfi1_vnic_send_dma()
211 kmem_cache_free(dd->vnic.txreq_cache, tx); in hfi1_vnic_send_dma()
311 dd->vnic.txreq_cache = kmem_cache_create(buf, in hfi1_vnic_txreq_init()
315 if (!dd->vnic.txreq_cache) in hfi1_vnic_txreq_init()
322 kmem_cache_destroy(dd->vnic.txreq_cache); in hfi1_vnic_txreq_deinit()
323 dd->vnic.txreq_cache = NULL; in hfi1_vnic_txreq_deinit()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c3512 struct bnxt_vnic_info *vnic = &bp->vnic_info[i]; in bnxt_init_vnics() local
3515 vnic->fw_vnic_id = INVALID_HW_RING_ID; in bnxt_init_vnics()
3517 vnic->fw_rss_cos_lb_ctx[j] = INVALID_HW_RING_ID; in bnxt_init_vnics()
3519 vnic->fw_l2_ctx_id = INVALID_HW_RING_ID; in bnxt_init_vnics()
3523 prandom_bytes(vnic->rss_hash_key, in bnxt_init_vnics()
3526 memcpy(vnic->rss_hash_key, in bnxt_init_vnics()
3672 struct bnxt_vnic_info *vnic; in bnxt_free_vnic_attributes() local
3679 vnic = &bp->vnic_info[i]; in bnxt_free_vnic_attributes()
3681 kfree(vnic->fw_grp_ids); in bnxt_free_vnic_attributes()
3682 vnic->fw_grp_ids = NULL; in bnxt_free_vnic_attributes()
[all …]
Dbnxt_ethtool.c1264 struct bnxt_vnic_info *vnic; in bnxt_get_rxfh() local
1273 vnic = &bp->vnic_info[0]; in bnxt_get_rxfh()
1280 if (key && vnic->rss_hash_key) in bnxt_get_rxfh()
1281 memcpy(key, vnic->rss_hash_key, HW_HASH_KEY_SIZE); in bnxt_get_rxfh()
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/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.h86 u8 __iomem *vnic; member
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.h680 u8 vnic, u8 q) in nfp_flower_cmsg_pcie_port() argument
684 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()
/kernel/linux/linux-5.10/drivers/staging/unisys/include/
Diochannel.h555 struct iochannel_vnic vnic; member
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dsnic_fwint.h390 u8 vnic; /* vnic id */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.h404 struct mlx5e_vnic_env_stats vnic; member
Den_stats.c524 data[idx++] = MLX5E_READ_CTR64_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
528 data[idx++] = MLX5E_READ_CTR32_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
535 u32 *out = (u32 *)priv->stats.vnic.query_vnic_env_out; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/kernel/linux/linux-5.10/drivers/staging/unisys/visornic/
Dvisornic_main.c1803 channel_offset = offsetof(struct visor_io_channel, vnic.macaddr); in visornic_probe()
1832 channel_offset = offsetof(struct visor_io_channel, vnic.num_rcv_bufs); in visornic_probe()
1880 channel_offset = offsetof(struct visor_io_channel, vnic.mtu); in visornic_probe()

12