Home
last modified time | relevance | path

Searched refs:pdn (Results 1 – 25 of 80) sorted by relevance

1234

/drivers/net/phy/
A Dphy_link_topology.c35 struct phy_device_node *pdn; in phy_link_topo_add_phy() local
46 pdn = kzalloc(sizeof(*pdn), GFP_KERNEL); in phy_link_topo_add_phy()
47 if (!pdn) in phy_link_topo_add_phy()
50 pdn->phy = phy; in phy_link_topo_add_phy()
55 pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus; in phy_link_topo_add_phy()
60 pdn->parent_sfp_bus = pdn->upstream.phydev->sfp_bus; in phy_link_topo_add_phy()
66 pdn->upstream_type = upt; in phy_link_topo_add_phy()
82 kfree(pdn); in phy_link_topo_add_phy()
91 struct phy_device_node *pdn; in phy_link_topo_del_phy() local
96 pdn = xa_erase(&topo->phys, phy->phyindex); in phy_link_topo_del_phy()
[all …]
/drivers/pci/hotplug/
A Drpadlpar_core.c140 struct pci_dn *pdn = PCI_DN(dn); in dlpar_pci_add_bus() local
141 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus()
144 pseries_eeh_init_edev_recursive(pdn); in dlpar_pci_add_bus()
147 dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); in dlpar_pci_add_bus()
208 struct pci_dn *pdn; in dlpar_remove_phb() local
222 pdn = dn->data; in dlpar_remove_phb()
223 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb()
224 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb()
228 pdn->phb = NULL; in dlpar_remove_phb()
A Drpaphp_pci.c76 struct pci_dn *pdn; in __rpaphp_get_sensor_state() local
87 pdn = list_first_entry_or_null(&PCI_DN(phb->dn)->child_list, in __rpaphp_get_sensor_state()
89 if (!pdn) in __rpaphp_get_sensor_state()
92 pe = eeh_dev_to_pe(pdn->edev); in __rpaphp_get_sensor_state()
/drivers/net/ethernet/mellanox/mlx5/core/
A Dpd.c37 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) in mlx5_core_alloc_pd() argument
46 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd()
51 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) in mlx5_core_dealloc_pd() argument
56 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_core_dealloc_pd()
A Den_common.c51 int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) in mlx5e_create_mkey() argument
67 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey()
148 err = mlx5_core_alloc_pd(mdev, &res->pdn); in mlx5e_create_mdev_resources()
160 err = mlx5e_create_mkey(mdev, res->pdn, &res->mkey); in mlx5e_create_mdev_resources()
200 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_create_mdev_resources()
215 mlx5_core_dealloc_pd(mdev, res->pdn); in mlx5e_destroy_mdev_resources()
A Dmr.c92 int mlx5_core_create_psv(struct mlx5_core_dev *dev, u32 pdn, in mlx5_core_create_psv() argument
103 MLX5_SET(create_psv_in, in, pd, pdn); in mlx5_core_create_psv()
/drivers/net/ethernet/mellanox/mlx5/core/diag/
A Drsc_dump.c32 u32 pdn; member
223 static int mlx5_rsc_dump_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_rsc_dump_create_mkey() argument
240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_rsc_dump_create_mkey()
280 err = mlx5_core_alloc_pd(dev, &rsc_dump->pdn); in mlx5_rsc_dump_init()
285 err = mlx5_rsc_dump_create_mkey(dev, rsc_dump->pdn, &rsc_dump->mkey); in mlx5_rsc_dump_init()
300 mlx5_core_dealloc_pd(dev, rsc_dump->pdn); in mlx5_rsc_dump_init()
310 mlx5_core_dealloc_pd(dev, dev->rsc_dump->pdn); in mlx5_rsc_dump_cleanup()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Daso.c178 static int create_aso_sq(struct mlx5_core_dev *mdev, int pdn, in create_aso_sq() argument
242 static int mlx5_aso_create_sq_rdy(struct mlx5_core_dev *mdev, u32 pdn, in mlx5_aso_create_sq_rdy() argument
247 err = create_aso_sq(mdev, pdn, sqc_data, sq); in mlx5_aso_create_sq_rdy()
270 u32 pdn, struct mlx5_aso *sq) in mlx5_aso_create_sq() argument
281 MLX5_SET(wq, wq, pd, pdn); in mlx5_aso_create_sq()
290 err = mlx5_aso_create_sq_rdy(mdev, pdn, sqc_data, sq); in mlx5_aso_create_sq()
308 struct mlx5_aso *mlx5_aso_create(struct mlx5_core_dev *mdev, u32 pdn) in mlx5_aso_create() argument
322 err = mlx5_aso_create_sq(mdev, numa_node, pdn, aso); in mlx5_aso_create()
/drivers/infiniband/hw/hns/
A Dhns_roce_pd.c60 pd->pdn = (unsigned long)id; in hns_roce_alloc_pd()
63 struct hns_roce_ib_alloc_pd_resp resp = {.pdn = pd->pdn}; in hns_roce_alloc_pd()
80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
/drivers/net/ethernet/mellanox/mlx4/
A Dpd.c47 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()
/drivers/vdpa/mlx5/core/
A Dresources.c8 static int alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid) in alloc_pd() argument
21 *pdn = MLX5_GET(alloc_pd_out, out, pd); in alloc_pd()
26 static int dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid) in dealloc_pd() argument
32 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd()
269 err = alloc_pd(mvdev, &res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
297 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_alloc_resources()
316 dealloc_pd(mvdev, res->pdn, res->uid); in mlx5_vdpa_free_resources()
/drivers/infiniband/hw/efa/
A Defa_com_cmd.h98 u16 pdn; member
109 u16 pdn; member
234 u16 pdn; member
238 u16 pdn; member
A Defa_verbs.c419 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()
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()
744 create_qp_params.pd = to_epd(ibqp->pd)->pdn; in efa_create_qp()
1709 params.pd = to_epd(ibpd)->pdn; in efa_register_mr()
2111 .pdn = to_epd(ah->ibah.pd)->pdn, in efa_ah_destroy()
[all …]
/drivers/infiniband/hw/mlx4/
A Dmr.c67 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr()
170 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, in mlx4_ib_reg_user_mr()
221 to_mpd(pd)->pdn); in mlx4_ib_rereg_user_mr()
361 err = mlx4_mw_alloc(dev->dev, to_mpd(ibmw->pd)->pdn, in mlx4_ib_alloc_mw()
401 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, in mlx4_ib_alloc_mr()
A Dah.c48 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/en/tc/
A Dmeter.c39 u32 pdn; member
218 MLX5_SET(flow_meter_aso_obj, obj, meter_aso_access_pd, flow_meters->pdn); in mlx5e_flow_meter_create_aso_obj()
537 err = mlx5_core_alloc_pd(mdev, &flow_meters->pdn); in mlx5e_flow_meters_init()
543 flow_meters->aso = mlx5_aso_create(mdev, flow_meters->pdn); in mlx5e_flow_meters_init()
564 mlx5_core_dealloc_pd(mdev, flow_meters->pdn); in mlx5e_flow_meters_init()
577 mlx5_core_dealloc_pd(flow_meters->mdev, flow_meters->pdn); in mlx5e_flow_meters_cleanup()
/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
A Ddr_send.c53 u32 pdn; member
308 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp()
1153 static int dr_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) in dr_create_mkey() argument
1166 MLX5_SET(mkc, mkc, pd, pdn); in dr_create_mkey()
1174 u32 pdn, void *buf, size_t size) in dr_reg_mr() argument
1194 err = dr_create_mkey(mdev, pdn, &mr->mkey); in dr_reg_mr()
1238 init_attr.pdn = dmn->pdn; in mlx5dr_send_ring_alloc()
1284 dmn->pdn, dmn->send_ring->buf, size); in mlx5dr_send_ring_alloc()
1298 dmn->pdn, dmn->send_ring->sync_buff, in mlx5dr_send_ring_alloc()
/drivers/net/ethernet/mellanox/mlx5/core/fpga/
A Dconn.c223 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()
569 MLX5_SET(qpc, qpc, pd, fdev->conn_res.pdn); in mlx5_fpga_conn_create_qp()
685 MLX5_SET(qpc, qpc, pd, conn->fdev->conn_res.pdn); in mlx5_fpga_conn_init_qp()
968 err = mlx5_core_alloc_pd(fdev->mdev, &fdev->conn_res.pdn); in mlx5_fpga_conn_device_init()
973 mlx5_fpga_dbg(fdev, "Allocated PD %u\n", fdev->conn_res.pdn); in mlx5_fpga_conn_device_init()
975 err = mlx5_fpga_conn_create_mkey(fdev->mdev, fdev->conn_res.pdn, in mlx5_fpga_conn_device_init()
986 mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); in mlx5_fpga_conn_device_init()
998 mlx5_core_dealloc_pd(fdev->mdev, fdev->conn_res.pdn); in mlx5_fpga_conn_device_cleanup()
/drivers/vfio/pci/mlx5/
A Dcmd.c316 static u32 *alloc_mkey_in(u32 npages, u32 pdn) in alloc_mkey_in() argument
338 MLX5_SET(mkc, mkc, pd, pdn); in alloc_mkey_in()
435 buf->mkey_in = alloc_mkey_in(buf->npages, buf->migf->pdn); in mlx5vf_dma_data_buffer()
867 err = mlx5_core_alloc_pd(migf->mvdev->mdev, &migf->pdn); in mlx5vf_cmd_alloc_pd()
877 mlx5_core_dealloc_pd(migf->mvdev->mdev, migf->pdn); in mlx5vf_cmd_dealloc_pd()
1269 MLX5_SET(qpc, qpc, pd, tracker->pdn); in mlx5vf_create_rc_qp()
1412 struct mlx5_vhca_qp *qp, u32 pdn, in mlx5vf_alloc_qp_recv_resources() argument
1425 recv_buf->mkey_in = alloc_mkey_in(npages, pdn); in mlx5vf_alloc_qp_recv_resources()
1473 mlx5_core_dealloc_pd(mdev, tracker->pdn); in _mlx5vf_free_page_tracker_resources()
1536 err = mlx5_core_alloc_pd(mdev, &tracker->pdn); in mlx5vf_start_page_tracker()
[all …]
A Dcmd.h94 u32 pdn; member
157 u32 pdn; member
/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
A Dsend.c736 static int hws_send_ring_create_sq(struct mlx5_core_dev *mdev, u32 pdn, in hws_send_ring_create_sq() argument
816 static int hws_send_ring_create_sq_rdy(struct mlx5_core_dev *mdev, u32 pdn, in hws_send_ring_create_sq_rdy() argument
824 err = hws_send_ring_create_sq(mdev, pdn, sqc_data, queue, sq, cq); in hws_send_ring_create_sq_rdy()
1269 attr.pdn = pd_num; in hws_send_wqe_fw()
1305 u32 pdn; in mlx5hws_send_stes_fw() local
1310 pdn = ctx->pd_num; in mlx5hws_send_stes_fw()
1322 ret = hws_send_wqe_fw(mdev, pdn, send_attr, in mlx5hws_send_stes_fw()
1338 ret = hws_send_wqe_fw(mdev, pdn, send_attr, in mlx5hws_send_stes_fw()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_offload.c92 static void mlx5e_ipsec_packet_setup(void *obj, u32 pdn, in mlx5e_ipsec_packet_setup() argument
113 MLX5_SET(ipsec_obj, obj, ipsec_aso_access_pd, pdn); in mlx5e_ipsec_packet_setup()
182 mlx5e_ipsec_packet_setup(obj, res->pdn, sa_entry); in mlx5_create_ipsec_obj()
538 aso->aso = mlx5_aso_create(mdev, res->pdn); in mlx5e_ipsec_aso_init()
/drivers/infiniband/hw/mlx5/
A Dumr.c434 MLX5_SET(mkc, &wqe.mkey_seg, pd, to_mpd(dev->umrc.pd)->pdn); in mlx5r_umr_revoke_mr()
473 MLX5_SET(mkc, &wqe.mkey_seg, pd, to_mpd(pd)->pdn); in mlx5r_umr_rereg_pd_access()
609 MLX5_SET(mkc, mkey_seg, pd, to_mpd(mr->ibmr.pd)->pdn); in mlx5r_umr_set_update_xlt_mkey_seg()
682 MLX5_SET(mkc, &wqe->mkey_seg, pd, dev->ddr.pdn); in _mlx5r_umr_init_wqe()
952 MLX5_SET(mkc, &wqe.mkey_seg, pd, dev->ddr.pdn); in mlx5r_umr_update_mr_page_shift()
954 MLX5_SET(mkc, &wqe.mkey_seg, pd, to_mpd(mr->ibmr.pd)->pdn); in mlx5r_umr_update_mr_page_shift()
A Dstd_types.c26 &mpd->pdn, sizeof(mpd->pdn)); in UVERBS_HANDLER()
/drivers/infiniband/hw/erdma/
A Derdma_verbs.c56 FIELD_PREP(ERDMA_CMD_CREATE_QP_PD_MASK, pd->pdn); in create_qp_cmd()
163 req.cfg1 = FIELD_PREP(ERDMA_CMD_REGMR_PD_MASK, pd->pdn) | in regmr_cmd()
435 int pdn; in erdma_alloc_pd() local
437 pdn = erdma_alloc_idx(&dev->res_cb[ERDMA_RES_TYPE_PD]); in erdma_alloc_pd()
438 if (pdn < 0) in erdma_alloc_pd()
439 return pdn; in erdma_alloc_pd()
441 pd->pdn = pdn; in erdma_alloc_pd()
451 erdma_free_idx(&dev->res_cb[ERDMA_RES_TYPE_PD], pd->pdn); in erdma_dealloc_pd()
2222 req.pdn = pd->pdn; in erdma_create_ah()
2247 req.pdn = pd->pdn; in erdma_destroy_ah()

Completed in 64 milliseconds

1234