Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/usnic/
A Dusnic_vnic.c268 ret->vnic = vnic; in usnic_vnic_get_resources()
279 struct usnic_vnic *vnic = chunk->vnic; in usnic_vnic_put_resources() local
327 res->vnic = vnic; in usnic_vnic_alloc_res_chunk()
333 chunk->vnic = vnic; in usnic_vnic_alloc_res_chunk()
361 vnic->bar[i].vaddr = pci_iomap(pdev, i, vnic->bar[i].len); in usnic_vnic_discover_resources()
371 vnic->vdev = vnic_dev_register(NULL, pdev, pdev, vnic->bar, in usnic_vnic_discover_resources()
449 vnic = kzalloc(sizeof(*vnic), GFP_KERNEL); in usnic_vnic_alloc()
450 if (!vnic) in usnic_vnic_alloc()
464 return vnic; in usnic_vnic_alloc()
467 kfree(vnic); in usnic_vnic_alloc()
[all …]
A 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);
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,
115 void usnic_vnic_free(struct usnic_vnic *vnic);
[all …]
A 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()
179 struct usnic_vnic *vnic; in find_free_vf_and_create_qp_grp() local
200 vnic = vf->vnic; in find_free_vf_and_create_qp_grp()
201 if (!usnic_vnic_check_room(vnic, res_spec)) { in find_free_vf_and_create_qp_grp()
205 vnic))); in find_free_vf_and_create_qp_grp()
224 vnic = vf->vnic; in find_free_vf_and_create_qp_grp()
226 usnic_vnic_check_room(vnic, res_spec) == 0) { in find_free_vf_and_create_qp_grp()
686 if (usnic_vnic_get_index(vf->vnic) == vfid) { in usnic_ib_mmap()
[all …]
A 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()
558 vf->vnic = usnic_vnic_alloc(pdev); in usnic_ib_pci_probe()
559 if (IS_ERR_OR_NULL(vf->vnic)) { in usnic_ib_pci_probe()
560 err = vf->vnic ? PTR_ERR(vf->vnic) : -ENOMEM; in usnic_ib_pci_probe()
566 pf = usnic_ib_discover_pf(vf->vnic); in usnic_ib_pci_probe()
585 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
597 usnic_vnic_free(vf->vnic); in usnic_ib_pci_probe()
619 usnic_vnic_free(vf->vnic); in usnic_ib_pci_remove()
A 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()
689 qp_grp->res_chunk_list = alloc_res_chunk_list(vf->vnic, res_spec, in usnic_ib_qp_grp_create()
A Dusnic_ib.h94 struct usnic_vnic *vnic; member
A Dusnic_ib_sysfs.c221 usnic_vnic_get_index(qp_grp->vf->vnic)); in summary_show()
/linux/drivers/net/ethernet/broadcom/bnx2x/
A 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()
336 u32 vnic; in bnx2x_init_max() local
355 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_max()
358 input_data->vnic_max_rate[vnic]; in bnx2x_init_max()
400 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) in bnx2x_init_min()
406 for (vnic = 0; vnic < BNX2X_PORT2_MODE_NUM_VNICS; vnic++) { in bnx2x_init_min()
428 u32 vnic, cos; in bnx2x_init_fw_wrr() local
[all …]
/linux/drivers/infiniband/hw/hfi1/
A 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/drivers/net/ethernet/netronome/nfp/abm/
A 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()
A 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()
A Dmain.h208 struct nfp_net *vnic; member
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt.c3861 vnic->mc_list, vnic->mc_list_mapping); in bnxt_free_vnic_attributes()
3873 vnic->flags = 0; in bnxt_free_vnic_attributes()
3901 vnic->mc_list = in bnxt_alloc_vnic_attributes()
3945 vnic->rss_hash_key = ((void *)vnic->rss_table) + size; in bnxt_alloc_vnic_attributes()
3946 vnic->rss_hash_key_dma_addr = vnic->rss_table_dma_addr + size; in bnxt_alloc_vnic_attributes()
5061 vnic->rss_table[i] = cpu_to_le16(vnic->fw_grp_ids[j]); in __bnxt_fill_hw_rss_tbl()
6166 vnic); in bnxt_hwrm_reserve_rings()
6169 vnic); in bnxt_hwrm_reserve_rings()
6249 vnic = rx + 1; in bnxt_need_reserve_rings()
6280 vnic = rx + 1; in __bnxt_reserve_rings()
[all …]
A Dbnxt_ethtool.c1284 struct bnxt_vnic_info *vnic; in bnxt_get_rxfh() local
1293 vnic = &bp->vnic_info[0]; in bnxt_get_rxfh()
1300 if (key && vnic->rss_hash_key) in bnxt_get_rxfh()
1301 memcpy(key, vnic->rss_hash_key, HW_HASH_KEY_SIZE); in bnxt_get_rxfh()
/linux/drivers/net/ethernet/cavium/thunder/
A Dnic_main.c475 u32 vnic, bgx, lmac, chan; in nic_config_cpi() local
480 vnic = cfg->vf_id; 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()
623 pqs_vnic = nic->pqs_vf[vnic]; in nic_tx_channel_cfg()
625 pqs_vnic = vnic; in nic_tx_channel_cfg()
642 if (nic->vf_sqs[pqs_vnic][svf] == vnic) in nic_tx_channel_cfg()
650 tl4 = (vnic * MAX_QUEUES_PER_QSET); in nic_tx_channel_cfg()
[all …]
A Dq_struct.h680 u64 vnic:7; member
682 u64 vnic:7;
/linux/drivers/net/ethernet/netronome/nfp/
A 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()
A Dnfp_port.h86 u8 __iomem *vnic; member
/linux/drivers/net/ethernet/netronome/nfp/flower/
A 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()
A 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/drivers/staging/unisys/include/
A Diochannel.h555 struct iochannel_vnic vnic; member
/linux/drivers/scsi/snic/
A Dsnic_fwint.h390 u8 vnic; /* vnic id */ member
/linux/drivers/staging/unisys/visornic/
A Dvisornic_main.c1801 channel_offset = offsetof(struct visor_io_channel, vnic.macaddr); in visornic_probe()
1830 channel_offset = offsetof(struct visor_io_channel, vnic.num_rcv_bufs); in visornic_probe()
1878 channel_offset = offsetof(struct visor_io_channel, vnic.mtu); in visornic_probe()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_stats.h436 struct mlx5e_vnic_env_stats vnic; member
A Den_stats.c612 data[idx++] = MLX5E_READ_CTR64_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
616 data[idx++] = MLX5E_READ_CTR32_BE(priv->stats.vnic.query_vnic_env_out, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
623 u32 *out = (u32 *)priv->stats.vnic.query_vnic_env_out; in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()

Completed in 83 milliseconds

12