/drivers/infiniband/hw/hns/ |
D | hns_roce_pd.c | 38 static int hns_roce_pd_alloc(struct hns_roce_dev *hr_dev, unsigned long *pdn) in hns_roce_pd_alloc() argument 40 return hns_roce_bitmap_alloc(&hr_dev->pd_bitmap, pdn) ? -ENOMEM : 0; in hns_roce_pd_alloc() 43 static void hns_roce_pd_free(struct hns_roce_dev *hr_dev, unsigned long pdn) in hns_roce_pd_free() argument 45 hns_roce_bitmap_free(&hr_dev->pd_bitmap, pdn, BITMAP_NO_RR); in hns_roce_pd_free() 68 ret = hns_roce_pd_alloc(to_hr_dev(ib_dev), &pd->pdn); in hns_roce_alloc_pd() 75 struct hns_roce_ib_alloc_pd_resp uresp = {.pdn = pd->pdn}; in hns_roce_alloc_pd() 78 hns_roce_pd_free(to_hr_dev(ib_dev), pd->pdn); in hns_roce_alloc_pd() 89 hns_roce_pd_free(to_hr_dev(pd->device), to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
|
D | hns_roce_mr.c | 997 ret = hns_roce_mr_alloc(to_hr_dev(pd->device), to_hr_pd(pd)->pdn, 0, in hns_roce_get_dma_mr() 1180 ret = hns_roce_mr_alloc(hr_dev, to_hr_pd(pd)->pdn, virt_addr, length, in hns_roce_reg_user_mr() 1212 u32 pdn, struct ib_udata *udata) in rereg_mr_trans() argument 1253 ret = hr_dev->hw->rereg_write_mtpt(hr_dev, mr, flags, pdn, in rereg_mr_trans() 1294 u32 pdn = 0; in hns_roce_rereg_user_mr() local 1318 pdn = to_hr_pd(pd)->pdn; in hns_roce_rereg_user_mr() 1324 mailbox, pdn, udata); in hns_roce_rereg_user_mr() 1328 ret = hr_dev->hw->rereg_write_mtpt(hr_dev, mr, flags, pdn, in hns_roce_rereg_user_mr() 1403 ret = hns_roce_mr_alloc(hr_dev, to_hr_pd(pd)->pdn, 0, length, in hns_roce_alloc_mr() 1533 mw->pdn = to_hr_pd(ib_pd)->pdn; in hns_roce_alloc_mw()
|
D | hns_roce_srq.c | 80 static int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn, in hns_roce_srq_alloc() argument 133 hr_dev->hw->write_srqc(hr_dev, srq, pdn, xrcd, cqn, mailbox->buf, in hns_roce_srq_alloc() 413 ret = hns_roce_srq_alloc(hr_dev, to_hr_pd(ib_srq->pd)->pdn, cqn, 0, in hns_roce_create_srq()
|
D | hns_roce_device.h | 291 unsigned long pdn; member 373 u32 pdn; member 949 struct hns_roce_mr *mr, int flags, u32 pdn, 983 struct hns_roce_srq *srq, u32 pdn, u16 xrcd, u32 cqn,
|
/drivers/pci/hotplug/ |
D | rpadlpar_core.c | 139 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() local 140 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus() 143 eeh_add_device_tree_early(pdn); in dlpar_pci_add_bus() 146 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); in dlpar_pci_add_bus() 207 struct pci_dn *pdn; in dlpar_remove_phb() local 221 pdn = dn->data; in dlpar_remove_phb() 222 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb() 223 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb() 227 pdn->phb = NULL; in dlpar_remove_phb()
|
D | pnv_php.c | 241 struct pci_dn *pdn; in pnv_php_add_one_pdn() local 243 pdn = pci_add_device_node_info(hose, dn); in pnv_php_add_one_pdn() 244 if (!pdn) in pnv_php_add_one_pdn()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pd.c | 39 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd() argument 48 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd() 53 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd() argument 59 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
|
D | en_common.c | 64 static int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5e_create_mkey() argument 81 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey() 96 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources() 108 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources() 130 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources() 141 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
|
D | mr.c | 149 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn, in mlx5_core_create_psv() argument 160 MLX5_SET(create_psv_in, in, pd, pdn); in mlx5_core_create_psv()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | pd.c | 47 int mlx4_pd_alloc(struct mlx4_dev *dev, u32 *pdn) in mlx4_pd_alloc() argument 51 *pdn = mlx4_bitmap_alloc(&priv->pd_bitmap); in mlx4_pd_alloc() 52 if (*pdn == -1) in mlx4_pd_alloc() 59 void mlx4_pd_free(struct mlx4_dev *dev, u32 pdn) in mlx4_pd_free() argument 61 mlx4_bitmap_free(&mlx4_priv(dev)->pd_bitmap, pdn, MLX4_USE_RR); in mlx4_pd_free()
|
D | srq.c | 162 int mlx4_srq_alloc(struct mlx4_dev *dev, u32 pdn, u32 cqn, u16 xrcd, in mlx4_srq_alloc() argument 198 srq_context->pd = cpu_to_be32(pdn); in mlx4_srq_alloc()
|
/drivers/infiniband/hw/efa/ |
D | efa_com_cmd.h | 89 u16 pdn; member 100 u16 pdn; member 213 u16 pdn; member 217 u16 pdn; member
|
D | efa_verbs.c | 419 static int efa_pd_dealloc(struct efa_dev *dev, u16 pdn) in efa_pd_dealloc() argument 422 .pdn = pdn, in efa_pd_dealloc() 448 pd->pdn = result.pdn; in efa_alloc_pd() 449 resp.pdn = result.pdn; in efa_alloc_pd() 461 ibdev_dbg(&dev->ibdev, "Allocated pd[%d]\n", pd->pdn); in efa_alloc_pd() 466 efa_pd_dealloc(dev, result.pdn); in efa_alloc_pd() 477 ibdev_dbg(&dev->ibdev, "Dealloc pd[%d]\n", pd->pdn); in efa_dealloc_pd() 478 efa_pd_dealloc(dev, pd->pdn); in efa_dealloc_pd() 691 create_qp_params.pd = to_epd(ibpd)->pdn; in efa_create_qp() 1434 params.pd = to_epd(ibpd)->pdn; in efa_reg_mr() [all …]
|
D | efa_com_cmd.c | 308 ah_cmd.pd = params->pdn; in efa_com_create_ah() 337 ah_cmd.pd = params->pdn; in efa_com_destroy_ah() 648 result->pdn = resp.pd; in efa_com_alloc_pd() 662 cmd.pd = params->pdn; in efa_com_dealloc_pd()
|
D | efa.h | 81 u16 pdn; member
|
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_send.c | 45 u32 pdn; member 164 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp() 785 dr_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, struct mlx5_core_mkey *mkey) in dr_create_mkey() argument 798 MLX5_SET(mkc, mkc, pd, pdn); in dr_create_mkey() 806 u32 pdn, void *buf, size_t size) in dr_reg_mr() argument 826 err = dr_create_mkey(mdev, pdn, &mr->mkey); in dr_reg_mr() 869 init_attr.pdn = dmn->pdn; in mlx5dr_send_ring_alloc() 908 dmn->pdn, dmn->send_ring->buf, size); in mlx5dr_send_ring_alloc() 915 dmn->pdn, dmn->send_ring->sync_buff, in mlx5dr_send_ring_alloc()
|
D | dr_domain.c | 60 ret = mlx5_core_alloc_pd(dmn->mdev, &dmn->pdn); in dr_domain_init_resources() 102 mlx5_core_dealloc_pd(dmn->mdev, dmn->pdn); in dr_domain_init_resources() 113 mlx5_core_dealloc_pd(dmn->mdev, dmn->pdn); in dr_domain_uninit_resources()
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 67 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr() 427 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, in mlx4_ib_reg_user_mr() 481 to_mpd(pd)->pdn); in mlx4_ib_rereg_user_mr() 625 err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, in mlx4_ib_alloc_mw() 672 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, in mlx4_ib_alloc_mr() 712 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), in mlx4_ib_fmr_alloc()
|
D | ah.c | 48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_ib_ah() 118 ah->av.eth.port_pd = cpu_to_be32(to_mpd(ib_ah->pd)->pdn | in create_iboe_ah()
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 223 static int mlx5_fpga_conn_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_fpga_conn_create_mkey() argument 240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_fpga_conn_create_mkey() 589 MLX5_SET(qpc, qpc, pd, fdev->conn_res.pdn); in mlx5_fpga_conn_create_qp() 698 MLX5_SET(qpc, qpc, pd, conn->fdev->conn_res.pdn); in mlx5_fpga_conn_init_qp() 1016 err = mlx5_core_alloc_pd(fdev->mdev, &fdev->conn_res.pdn); in mlx5_fpga_conn_device_init() 1021 mlx5_fpga_dbg(fdev, "Allocated PD %u\n", fdev->conn_res.pdn); in mlx5_fpga_conn_device_init() 1023 err = mlx5_fpga_conn_create_mkey(fdev->mdev, fdev->conn_res.pdn, in mlx5_fpga_conn_device_init() 1034 mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); in mlx5_fpga_conn_device_init() 1046 mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); in mlx5_fpga_conn_device_cleanup()
|
D | core.h | 56 u32 pdn; member
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | crypto.c | 50 MLX5_SET(encryption_key_obj, obj, pd, mdev->mlx5e_res.pdn); in mlx5_create_encryption_key()
|
/drivers/infiniband/hw/mlx5/ |
D | cmd.h | 50 void mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid);
|
/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fw_tracer.h | 88 u32 pdn; member
|
D | fw_tracer.c | 199 MLX5_SET(mkc, mkc, pd, tracer->buff.pdn); in mlx5_fw_tracer_create_mkey() 1005 err = mlx5_core_alloc_pd(dev, &tracer->buff.pdn); in mlx5_fw_tracer_init() 1025 mlx5_core_dealloc_pd(dev, tracer->buff.pdn); in mlx5_fw_tracer_init() 1045 mlx5_core_dealloc_pd(tracer->dev, tracer->buff.pdn); in mlx5_fw_tracer_cleanup()
|