Lines Matching defs:root_vpbl
1879 struct nes_root_vpbl *root_vpbl,
1893 leaf_pbl = (u64)root_vpbl->pbl_pbase;
1904 root_vpbl->pbl_vbase[j] = root_vpbl->pbl_vbase[i];
1905 leaf_pbl = le32_to_cpu(root_vpbl->pbl_vbase[j].pa_low) +
1906 (((u64)le32_to_cpu(root_vpbl->pbl_vbase[j].pa_high))
1910 root_vpbl->pbl_vbase[j + k].pa_low =
1912 root_vpbl->pbl_vbase[j + k].pa_high =
1926 u32 stag, u64 region_length, struct nes_root_vpbl *root_vpbl,
1997 if (root_256(nesdev, root_vpbl, &new_root, pbl_count_4k) == 1) {
1999 root_vpbl = &new_root;
2045 set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_PA_LOW_IDX, root_vpbl->pbl_pbase);
2104 struct nes_root_vpbl root_vpbl;
2121 root_vpbl.pbl_vbase = NULL;
2122 root_vpbl.pbl_pbase = 0;
2155 root_vpbl.pbl_vbase = pci_alloc_consistent(nesdev->pcidev, 8192,
2156 &root_vpbl.pbl_pbase);
2158 root_vpbl.pbl_vbase, (unsigned int)root_vpbl.pbl_pbase);
2159 if (!root_vpbl.pbl_vbase) {
2166 root_vpbl.leaf_vpbl = kzalloc(sizeof(*root_vpbl.leaf_vpbl)*1024, GFP_KERNEL);
2167 if (!root_vpbl.leaf_vpbl) {
2168 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2169 root_vpbl.pbl_pbase);
2176 root_vpbl.pbl_vbase[0].pa_low = cpu_to_le32((u32)vpbl.pbl_pbase);
2177 root_vpbl.pbl_vbase[0].pa_high =
2179 root_vpbl.leaf_vpbl[0] = vpbl;
2194 root_vpbl.pbl_vbase[root_pbl_index].pa_low =
2196 root_vpbl.pbl_vbase[root_pbl_index].pa_high =
2198 root_vpbl.leaf_vpbl[root_pbl_index] = vpbl;
2238 root_vpbl.pbl_pbase = vpbl.pbl_pbase;
2246 ret = nes_reg_mr(nesdev, nespd, stag, region_length, &root_vpbl,
2267 pci_free_consistent(nesdev->pcidev, 4096, root_vpbl.leaf_vpbl[i].pbl_vbase,
2268 root_vpbl.leaf_vpbl[i].pbl_pbase);
2270 kfree(root_vpbl.leaf_vpbl);
2271 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2272 root_vpbl.pbl_pbase);
2318 struct nes_root_vpbl root_vpbl;
2359 root_vpbl.pbl_vbase = NULL;
2360 root_vpbl.pbl_pbase = 0;
2423 root_vpbl.pbl_vbase = pci_alloc_consistent(nesdev->pcidev,
2424 8192, &root_vpbl.pbl_pbase);
2426 root_vpbl.pbl_vbase, (unsigned int)root_vpbl.pbl_pbase);
2427 if (!root_vpbl.pbl_vbase) {
2437 root_vpbl.leaf_vpbl = kzalloc(sizeof(*root_vpbl.leaf_vpbl)*1024,
2439 if (!root_vpbl.leaf_vpbl) {
2441 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2442 root_vpbl.pbl_pbase);
2451 root_vpbl.pbl_vbase[0].pa_low =
2453 root_vpbl.pbl_vbase[0].pa_high =
2455 root_vpbl.leaf_vpbl[0] = vpbl;
2469 root_vpbl.pbl_vbase[root_pbl_index].pa_low =
2471 root_vpbl.pbl_vbase[root_pbl_index].pa_high =
2473 root_vpbl.leaf_vpbl[root_pbl_index] = vpbl;
2515 root_vpbl.pbl_pbase = vpbl.pbl_pbase;
2529 ret = nes_reg_mr(nesdev, nespd, stag, region->length, &root_vpbl,
2554 root_vpbl.leaf_vpbl[page_index].pbl_vbase,
2555 root_vpbl.leaf_vpbl[page_index].pbl_pbase);
2557 kfree(root_vpbl.leaf_vpbl);
2558 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2559 root_vpbl.pbl_pbase);