/Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_io.c | 33 #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 382 qps_size = num_qps * sizeof(*func_to_io->qps); in hinic_io_create_qps() 387 wq_size = num_qps * sizeof(*func_to_io->sq_wq); in hinic_io_create_qps() 394 wq_size = num_qps * sizeof(*func_to_io->rq_wq); in hinic_io_create_qps() 401 db_size = num_qps * sizeof(*func_to_io->sq_db); in hinic_io_create_qps() 408 ci_addr_base = dma_alloc_coherent(&pdev->dev, CI_TABLE_SIZE(num_qps), in hinic_io_create_qps() [all …]
|
D | hinic_hw_dev.c | 71 nic_cap->num_qps = (num_irqs - (num_aeqs + num_ceqs)) / 2; in parse_capability() 73 if (nic_cap->num_qps > HINIC_Q_CTXT_MAX) in parse_capability() 74 nic_cap->num_qps = HINIC_Q_CTXT_MAX; in parse_capability() 81 if (nic_cap->num_qps > nic_cap->max_qps) in parse_capability() 82 nic_cap->num_qps = nic_cap->max_qps; in parse_capability() 450 int err, num_aeqs, num_ceqs, num_qps; in hinic_hwdev_ifup() local 479 num_qps = nic_cap->num_qps; in hinic_hwdev_ifup() 481 rq_msix_entries = &hwdev->msix_entries[num_aeqs + num_ceqs + num_qps]; in hinic_hwdev_ifup() 483 err = hinic_io_create_qps(func_to_io, base_qpn, num_qps, in hinic_hwdev_ifup() 505 hinic_io_destroy_qps(func_to_io, num_qps); in hinic_hwdev_ifup() [all …]
|
D | hinic_main.c | 128 int i, num_qps = hinic_hwdev_num_qps(nic_dev->hwdev); in update_nic_stats() local 130 for (i = 0; i < num_qps; i++) in update_nic_stats() 133 for (i = 0; i < num_qps; i++) in update_nic_stats() 389 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss() 402 nic_dev->num_qps = nic_dev->max_qps; in hinic_enable_rss() 419 nic_dev->num_qps = hinic_hwdev_num_qps(hwdev); in hinic_enable_rss() 420 nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); in hinic_enable_rss() 422 nic_dev->rss_limit = nic_dev->num_qps; in hinic_enable_rss() 423 nic_dev->num_rss = nic_dev->num_qps; in hinic_enable_rss() 472 netif_set_real_num_tx_queues(netdev, nic_dev->num_qps); in hinic_open() [all …]
|
D | hinic_hw_io.h | 110 u16 base_qpn, int num_qps, 115 int num_qps);
|
D | hinic_ethtool.c | 642 if (queue >= nic_dev->num_qps) { in __hinic_get_coalesce() 696 q_id >= nic_dev->num_qps) in set_queue_coalesce() 730 if (queue >= nic_dev->num_qps) { in __set_hw_coal_param() 906 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels() 915 nic_dev->hwdev->nic_cap.num_qps = count; in hinic_set_channels() 1108 cmd->data = nic_dev->num_qps; in hinic_get_rxnfc() 1374 for (qid = 0; qid < nic_dev->num_qps; qid++) { in get_drv_queue_stats() 1387 for (qid = 0; qid < nic_dev->num_qps; qid++) { in get_drv_queue_stats() 1456 q_num = nic_dev->num_qps; in hinic_get_sset_count() 1493 for (i = 0; i < nic_dev->num_qps; i++) { in hinic_get_strings() [all …]
|
D | hinic_dev.h | 82 u16 num_qps; member
|
D | hinic_hw_dev.h | 35 u16 num_qps; member
|
/Linux-v5.15/drivers/infiniband/hw/mlx5/ |
D | gsi.c | 95 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 = MLX5_MAX_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-v5.15/drivers/infiniband/hw/hns/ |
D | hns_roce_main.c | 181 props->max_qp = hr_dev->caps.num_qps; in hns_roce_query_device() 305 resp.qp_tab_size = hr_dev->caps.num_qps; in hns_roce_alloc_ucontext() 584 hr_dev->caps.num_qps, 1); in hns_roce_init_hem() 594 hr_dev->caps.num_qps, 1); in hns_roce_init_hem() 606 hr_dev->caps.num_qps, 1); in hns_roce_init_hem() 639 hr_dev->caps.num_qps, 1); in hns_roce_init_hem()
|
D | hns_roce_hw_v2.c | 1673 caps->num_qps = round_down(qp_num, HNS_ROCE_QP_BANK_NUM); in load_ext_cfg_caps() 1837 hr_reg_write(req, EXT_CFG_QP_NUM, caps->num_qps); in config_vf_ext_resource() 1838 hr_reg_write(req, EXT_CFG_QP_IDX, vf_id * caps->num_qps); in config_vf_ext_resource() 1885 to_hr_hem_hopnum(caps->qpc_hop_num, caps->num_qps)); in hns_roce_v2_set_bt() 1913 to_hr_hem_hopnum(caps->sccc_hop_num, caps->num_qps)); in hns_roce_v2_set_bt() 1923 caps->num_qps = HNS_ROCE_V2_MAX_QP_NUM; in set_default_caps() 2083 calc_pg_sz(caps->num_qps, caps->qpc_sz, caps->qpc_hop_num, in set_hem_page_size() 2088 calc_pg_sz(caps->num_qps, caps->sccc_sz, caps->sccc_hop_num, in set_hem_page_size() 2285 caps->num_qps = 1 << roce_get_field(resp_c->ord_num_qps, in hns_roce_query_pf_caps() 2573 size = hr_dev->caps.num_qps * HNS_ROCE_V2_EXT_LLM_ENTRY_SZ; in alloc_link_table_buf() [all …]
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
D | qed_rdma.c | 155 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() 443 u32 num_qps; in qed_rdma_init_devinfo() local 481 num_qps = ROCE_MAX_QPS; in qed_rdma_init_devinfo() 482 num_qps = min_t(u64, num_qps, p_hwfn->p_rdma_info->num_qps); in qed_rdma_init_devinfo() 483 dev->max_qp = num_qps; in qed_rdma_init_devinfo() 488 dev->max_cq = num_qps * 2; in qed_rdma_init_devinfo() 517 p_hwfn->p_rdma_info->num_qps; in qed_rdma_init_devinfo() 521 dev->max_ah = p_hwfn->p_rdma_info->num_qps; in qed_rdma_init_devinfo()
|
D | qed_rdma.h | 78 u32 num_qps; member
|
D | qed_cxt.c | 1981 u32 num_cons, num_qps; in qed_rdma_set_pf_params() local 1993 num_cons = min_t(u32, IWARP_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params() 1997 num_qps = min_t(u32, ROCE_MAX_QPS, p_params->num_qps); in qed_rdma_set_pf_params() 1998 num_cons = num_qps * 2; /* each QP requires two connections */ in qed_rdma_set_pf_params()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | qp.c | 421 (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() 799 int last_base = dev->caps.num_qps; in mlx4_init_qp_table() 831 if (reserved_from_bot + reserved_from_top > dev->caps.num_qps) { in mlx4_init_qp_table()
|
D | profile.c | 184 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 59 u16 num_qps; /* number of queue pairs requested by user */ member
|
D | i40e_virtchnl_pf.c | 314 if (queue_id < vf->ch[i].num_qps) { in i40e_get_real_pf_qid() 321 queue_id -= vf->ch[i].num_qps; in i40e_get_real_pf_qid() 865 qps = vf->ch[i].num_qps; in i40e_map_pf_queues_to_vsi() 913 qps = vf->ch[i].num_qps; in i40e_map_pf_to_vf_queues() 2243 num_qps_all += vf->ch[i].num_qps; in i40e_vc_config_queues_msg() 2298 if (j == (vf->ch[idx].num_qps - 1)) { in i40e_vc_config_queues_msg() 2315 vf->ch[i].num_qps; in i40e_vc_config_queues_msg() 3794 vf->ch[i].num_qps = tci->list[i].count; in i40e_vc_add_qch_msg()
|
/Linux-v5.15/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 245 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()
|
D | mthca_main.c | 445 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()
|
D | mthca_profile.c | 175 dev->limits.num_qps = profile[i].num; in mthca_make_profile()
|
D | mthca_provider.c | 98 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device() 305 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext()
|
D | mthca_dev.h | 143 int num_qps; member
|
/Linux-v5.15/include/linux/mlx4/ |
D | qp.h | 491 return radix_tree_lookup(&dev->qp_table_tree, qpn & (dev->caps.num_qps - 1)); in __mlx4_qp_lookup()
|
/Linux-v5.15/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_qp.c | 228 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()
|
D | pvrdma.h | 241 atomic_t num_qps; member
|