Lines Matching defs:dev
39 int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd)
46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc);
51 err = mthca_mr_alloc_notrans(dev, pd->pd_num,
56 mthca_free(&dev->pd_table.alloc, pd->pd_num);
62 void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd)
65 mthca_free_mr(dev, &pd->ntmr);
66 mthca_free(&dev->pd_table.alloc, pd->pd_num);
69 int mthca_init_pd_table(struct mthca_dev *dev)
71 return mthca_alloc_init(&dev->pd_table.alloc,
72 dev->limits.num_pds,
74 dev->limits.reserved_pds);
77 void mthca_cleanup_pd_table(struct mthca_dev *dev)
80 mthca_alloc_cleanup(&dev->pd_table.alloc);