Home
last modified time | relevance | path

Searched refs:num_qps (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.c33 #define CI_TABLE_SIZE(num_qps) ((num_qps) * CI_Q_ADDR_SIZE) argument
202 u16 num_qps) in write_qp_ctxts() argument
204 return (write_sq_ctxts(func_to_io, base_qpn, num_qps) || in write_qp_ctxts()
205 write_rq_ctxts(func_to_io, base_qpn, num_qps)); in write_qp_ctxts()
372 u16 base_qpn, int num_qps, in hinic_io_create_qps() argument
381 func_to_io->qps = devm_kcalloc(&pdev->dev, num_qps, in hinic_io_create_qps()
386 func_to_io->sq_wq = devm_kcalloc(&pdev->dev, num_qps, in hinic_io_create_qps()
393 func_to_io->rq_wq = devm_kcalloc(&pdev->dev, num_qps, in hinic_io_create_qps()
400 func_to_io->sq_db = devm_kcalloc(&pdev->dev, num_qps, in hinic_io_create_qps()
407 ci_addr_base = dma_alloc_coherent(&pdev->dev, CI_TABLE_SIZE(num_qps), in hinic_io_create_qps()
[all …]
Dhinic_hw_dev.c65 nic_cap->num_qps = (num_irqs - (num_aeqs + num_ceqs)) / 2; in parse_capability()
67 if (nic_cap->num_qps > HINIC_Q_CTXT_MAX) in parse_capability()
68 nic_cap->num_qps = HINIC_Q_CTXT_MAX; in parse_capability()
75 if (nic_cap->num_qps > nic_cap->max_qps) in parse_capability()
76 nic_cap->num_qps = nic_cap->max_qps; in parse_capability()
443 int err, num_aeqs, num_ceqs, num_qps; in hinic_hwdev_ifup() local
472 num_qps = nic_cap->num_qps; in hinic_hwdev_ifup()
474 rq_msix_entries = &hwdev->msix_entries[num_aeqs + num_ceqs + num_qps]; in hinic_hwdev_ifup()
476 err = hinic_io_create_qps(func_to_io, base_qpn, num_qps, in hinic_hwdev_ifup()
498 hinic_io_destroy_qps(func_to_io, num_qps); in hinic_hwdev_ifup()
[all …]
Dhinic_main.c114 int i, num_qps = hinic_hwdev_num_qps(nic_dev->hwdev); in gather_nic_stats() local
116 for (i = 0; i < num_qps; i++) in gather_nic_stats()
119 for (i = 0; i < num_qps; i++) in gather_nic_stats()
373 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss()
386 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss()
403 nic_dev->num_qps = hinic_hwdev_num_qps(hwdev); in hinic_enable_rss()
404 nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); in hinic_enable_rss()
406 nic_dev->rss_limit = nic_dev->num_qps; in hinic_enable_rss()
407 nic_dev->num_rss = nic_dev->num_qps; in hinic_enable_rss()
456 netif_set_real_num_tx_queues(netdev, nic_dev->num_qps); in hinic_open()
[all …]
Dhinic_hw_io.h110 u16 base_qpn, int num_qps,
115 int num_qps);
Dhinic_ethtool.c643 if (queue >= nic_dev->num_qps) { in __hinic_get_coalesce()
697 q_id >= nic_dev->num_qps) in set_queue_coalesce()
731 if (queue >= nic_dev->num_qps) { in __set_hw_coal_param()
907 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels()
916 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels()
1109 cmd->data = nic_dev->num_qps; in hinic_get_rxnfc()
1373 for (qid = 0; qid < nic_dev->num_qps; qid++) { in get_drv_queue_stats()
1386 for (qid = 0; qid < nic_dev->num_qps; qid++) { in get_drv_queue_stats()
1455 q_num = nic_dev->num_qps; in hinic_get_sset_count()
1492 for (i = 0; i < nic_dev->num_qps; i++) { in hinic_get_strings()
[all …]
Dhinic_dev.h82 u16 num_qps; member
Dhinic_hw_dev.h35 u16 num_qps; member
/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dgsi.c95 int num_qps = 0; in mlx5_ib_create_gsi() local
101 num_qps = pd->device->attrs.max_pkeys; in mlx5_ib_create_gsi()
103 num_qps = dev->lag_ports; in mlx5_ib_create_gsi()
107 gsi->tx_qps = kcalloc(num_qps, sizeof(*gsi->tx_qps), GFP_KERNEL); in mlx5_ib_create_gsi()
125 gsi->num_qps = num_qps; in mlx5_ib_create_gsi()
142 if (num_qps) { in mlx5_ib_create_gsi()
185 for (qp_index = 0; qp_index < gsi->num_qps; ++qp_index) { in mlx5_ib_destroy_gsi()
340 for (qp_index = 0; qp_index < gsi->num_qps; ++qp_index) in mlx5_ib_gsi_modify_qp()
417 if (!gsi->num_qps) in get_tx_qp()
423 if (qp_index >= gsi->num_qps) in get_tx_qp()
[all …]
/Linux-v6.1/drivers/infiniband/hw/hns/
Dhns_roce_main.c178 props->max_qp = hr_dev->caps.num_qps; in hns_roce_query_device()
365 resp.qp_tab_size = hr_dev->caps.num_qps; in hns_roce_alloc_ucontext()
670 hr_dev->caps.num_qps); in hns_roce_init_hem()
680 hr_dev->caps.num_qps); in hns_roce_init_hem()
692 hr_dev->caps.num_qps); in hns_roce_init_hem()
725 hr_dev->caps.num_qps); in hns_roce_init_hem()
Dhns_roce_hw_v2.c1708 caps->num_qps = round_down(qp_num, HNS_ROCE_QP_BANK_NUM); in load_ext_cfg_caps()
1871 hr_reg_write(req, EXT_CFG_QP_NUM, caps->num_qps); in config_vf_ext_resource()
1872 hr_reg_write(req, EXT_CFG_QP_IDX, vf_id * caps->num_qps); in config_vf_ext_resource()
1919 to_hr_hem_hopnum(caps->qpc_hop_num, caps->num_qps)); in hns_roce_v2_set_bt()
1947 to_hr_hem_hopnum(caps->sccc_hop_num, caps->num_qps)); in hns_roce_v2_set_bt()
1957 caps->num_qps = HNS_ROCE_V2_MAX_QP_NUM; in set_default_caps()
2116 calc_pg_sz(caps->num_qps, caps->qpc_sz, caps->qpc_hop_num, in set_hem_page_size()
2121 calc_pg_sz(caps->num_qps, caps->sccc_sz, caps->sccc_hop_num, in set_hem_page_size()
2304 caps->num_qps = 1 << hr_reg_read(resp_c, PF_CAPS_C_NUM_QPS); in hns_roce_query_pf_caps()
2550 size = hr_dev->caps.num_qps * HNS_ROCE_V2_EXT_LLM_ENTRY_SZ; in alloc_link_table_buf()
[all …]
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.c155 p_rdma_info->num_qps = num_cons; in qed_rdma_alloc()
157 p_rdma_info->num_qps = num_cons / 2; /* 2 cids per qp */ in qed_rdma_alloc()
414 u32 num_qps; in qed_rdma_init_devinfo() local
454 num_qps = ROCE_MAX_QPS; in qed_rdma_init_devinfo()
455 num_qps = min_t(u64, num_qps, p_hwfn->p_rdma_info->num_qps); in qed_rdma_init_devinfo()
456 dev->max_qp = num_qps; in qed_rdma_init_devinfo()
461 dev->max_cq = num_qps * 2; in qed_rdma_init_devinfo()
490 p_hwfn->p_rdma_info->num_qps; in qed_rdma_init_devinfo()
494 dev->max_ah = p_hwfn->p_rdma_info->num_qps; in qed_rdma_init_devinfo()
Dqed_rdma.h78 u32 num_qps; member
Dqed_cxt.c1967 u32 num_cons, num_qps; in qed_rdma_set_pf_params() local
1979 num_cons = min_t(u32, IWARP_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params()
1983 num_qps = min_t(u32, ROCE_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params()
1984 num_cons = num_qps * 2; /* each QP requires two connections */ in qed_rdma_set_pf_params()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/
Dqp.c421 (dev->caps.num_qps - 1), qp); in mlx4_qp_alloc()
519 radix_tree_delete(&dev->qp_table_tree, qp->qpn & (dev->caps.num_qps - 1)); in mlx4_qp_remove()
570 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_GENERAL, dev->caps.num_qps, in mlx4_create_zones()
800 int last_base = dev->caps.num_qps; in mlx4_init_qp_table()
832 if (reserved_from_bot + reserved_from_top > dev->caps.num_qps) { in mlx4_init_qp_table()
Dprofile.c184 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h61 u16 num_qps; /* number of queue pairs requested by user */ member
Di40e_virtchnl_pf.c320 if (queue_id < vf->ch[i].num_qps) { in i40e_get_real_pf_qid()
327 queue_id -= vf->ch[i].num_qps; in i40e_get_real_pf_qid()
874 qps = vf->ch[i].num_qps; in i40e_map_pf_queues_to_vsi()
922 qps = vf->ch[i].num_qps; in i40e_map_pf_to_vf_queues()
2333 num_qps_all += vf->ch[i].num_qps; in i40e_vc_config_queues_msg()
2388 if (j == (vf->ch[idx].num_qps - 1)) { in i40e_vc_config_queues_msg()
2405 vsi->num_queue_pairs = vf->ch[i].num_qps; in i40e_vc_config_queues_msg()
3972 vf->ch[i].num_qps = tci->list[i].count; in i40e_vc_add_qch_msg()
/Linux-v6.1/drivers/infiniband/hw/mthca/
Dmthca_qp.c245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event()
771 ((qp->qpn & (dev->limits.num_qps - 1)) * MTHCA_RDB_ENTRY_SIZE << in __mthca_modify_qp()
1330 qp->qpn & (dev->limits.num_qps - 1), qp); in mthca_alloc_qp()
1462 qp->qpn & (dev->limits.num_qps - 1)); in mthca_free_qp()
2273 dev->limits.num_qps, in mthca_init_qp_table()
2281 dev->limits.num_qps); in mthca_init_qp_table()
2302 mthca_array_cleanup(&dev->qp_table.qp, dev->limits.num_qps); in mthca_init_qp_table()
2315 mthca_array_cleanup(&dev->qp_table.qp, dev->limits.num_qps); in mthca_cleanup_qp_table()
Dmthca_main.c445 mdev->limits.num_qps, in mthca_init_icm()
456 mdev->limits.num_qps, in mthca_init_icm()
467 mdev->limits.num_qps << in mthca_init_icm()
Dmthca_profile.c173 dev->limits.num_qps = profile[i].num; in mthca_make_profile()
Dmthca_provider.c90 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device()
297 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext()
Dmthca_dev.h143 int num_qps; member
/Linux-v6.1/include/linux/mlx4/
Dqp.h491 return radix_tree_lookup(&dev->qp_table_tree, qpn & (dev->caps.num_qps - 1)); in __mlx4_qp_lookup()
/Linux-v6.1/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c228 if (!atomic_add_unless(&dev->num_qps, 1, dev->dsr->caps.max_qp)) in pvrdma_create_qp()
426 atomic_dec(&dev->num_qps); in pvrdma_create_qp()
448 atomic_dec(&dev->num_qps); in _pvrdma_free_qp()
Dpvrdma.h241 atomic_t num_qps; member

12