• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/nes/

Lines Matching refs:nespd

59 	struct nes_pd *nespd = to_nespd(ibpd);
118 set_wqe_32bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_LEN_HIGH_PD_IDX, (nespd->pd_id & 0x00007fff));
282 static int alloc_fast_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,
336 cpu_to_le32(nespd->pd_id & 0x00007fff);
379 struct nes_pd *nespd = to_nespd(ibpd);
424 ret = alloc_fast_reg_mr(nesdev, nespd, stag, max_page_list_len);
777 struct nes_pd *nespd;
796 nespd = kzalloc(sizeof (struct nes_pd), GFP_KERNEL);
797 if (!nespd) {
803 nespd, nesvnic->nesibdev->ibdev.name);
805 nespd->pd_id = (pd_num << (PAGE_SHIFT-12)) + nesadapter->base_pd;
809 nespd->mmap_db_index = find_next_zero_bit(nesucontext->allocated_doorbells,
812 nespd->mmap_db_index, nespd->pd_id);
813 if (nespd->mmap_db_index >= NES_MAX_USER_DB_REGIONS) {
816 kfree(nespd);
820 uresp.pd_id = nespd->pd_id;
821 uresp.mmap_db_index = nespd->mmap_db_index;
824 kfree(nespd);
828 set_bit(nespd->mmap_db_index, nesucontext->allocated_doorbells);
829 nesucontext->mmap_db_index[nespd->mmap_db_index] = nespd->pd_id;
830 nesucontext->first_free_db = nespd->mmap_db_index + 1;
833 nes_debug(NES_DBG_PD, "PD%u structure located @%p.\n", nespd->pd_id, nespd);
834 return &nespd->ibpd;
844 struct nes_pd *nespd = to_nespd(ibpd);
852 nespd->mmap_db_index);
853 clear_bit(nespd->mmap_db_index, nesucontext->allocated_doorbells);
854 nesucontext->mmap_db_index[nespd->mmap_db_index] = 0;
855 if (nesucontext->first_free_db > nespd->mmap_db_index) {
856 nesucontext->first_free_db = nespd->mmap_db_index;
861 nespd->pd_id, nespd);
863 (nespd->pd_id-nesadapter->base_pd)>>(PAGE_SHIFT-12));
864 kfree(nespd);
1113 struct nes_pd *nespd = to_nespd(ibpd);
1227 nespd->mmap_db_index); */
1269 nesqp->nespd = nespd;
1320 nesqp->nesqp_context->pd_index_wscale |= cpu_to_le32((u32)nesqp->nespd->pd_id << 16);
1927 static int nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,
2041 cpu_to_le32(nespd->pd_id & 0x00007fff);
2099 struct nes_pd *nespd = to_nespd(ib_pd);
2248 ret = nes_reg_mr(nesdev, nespd, stag, region_length, &root_vpbl,
2308 struct nes_pd *nespd = to_nespd(pd);
2531 ret = nes_reg_mr(nesdev, nespd, stag, region->length, &root_vpbl,