Lines Matching defs:root_vpbl
1881 struct nes_root_vpbl *root_vpbl,
1895 leaf_pbl = (u64)root_vpbl->pbl_pbase;
1906 root_vpbl->pbl_vbase[j] = root_vpbl->pbl_vbase[i];
1907 leaf_pbl = le32_to_cpu(root_vpbl->pbl_vbase[j].pa_low) +
1908 (((u64)le32_to_cpu(root_vpbl->pbl_vbase[j].pa_high))
1912 root_vpbl->pbl_vbase[j + k].pa_low =
1914 root_vpbl->pbl_vbase[j + k].pa_high =
1928 u32 stag, u64 region_length, struct nes_root_vpbl *root_vpbl,
1999 if (root_256(nesdev, root_vpbl, &new_root, pbl_count_4k) == 1) {
2001 root_vpbl = &new_root;
2047 set_wqe_64bit_value(cqp_wqe->wqe_words, NES_CQP_STAG_WQE_PA_LOW_IDX, root_vpbl->pbl_pbase);
2106 struct nes_root_vpbl root_vpbl;
2123 root_vpbl.pbl_vbase = NULL;
2124 root_vpbl.pbl_pbase = 0;
2157 root_vpbl.pbl_vbase = pci_alloc_consistent(nesdev->pcidev, 8192,
2158 &root_vpbl.pbl_pbase);
2160 root_vpbl.pbl_vbase, (unsigned int)root_vpbl.pbl_pbase);
2161 if (!root_vpbl.pbl_vbase) {
2168 root_vpbl.leaf_vpbl = kzalloc(sizeof(*root_vpbl.leaf_vpbl)*1024, GFP_KERNEL);
2169 if (!root_vpbl.leaf_vpbl) {
2170 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2171 root_vpbl.pbl_pbase);
2178 root_vpbl.pbl_vbase[0].pa_low = cpu_to_le32((u32)vpbl.pbl_pbase);
2179 root_vpbl.pbl_vbase[0].pa_high =
2181 root_vpbl.leaf_vpbl[0] = vpbl;
2196 root_vpbl.pbl_vbase[root_pbl_index].pa_low =
2198 root_vpbl.pbl_vbase[root_pbl_index].pa_high =
2200 root_vpbl.leaf_vpbl[root_pbl_index] = vpbl;
2240 root_vpbl.pbl_pbase = vpbl.pbl_pbase;
2248 ret = nes_reg_mr(nesdev, nespd, stag, region_length, &root_vpbl,
2269 pci_free_consistent(nesdev->pcidev, 4096, root_vpbl.leaf_vpbl[i].pbl_vbase,
2270 root_vpbl.leaf_vpbl[i].pbl_pbase);
2272 kfree(root_vpbl.leaf_vpbl);
2273 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2274 root_vpbl.pbl_pbase);
2320 struct nes_root_vpbl root_vpbl;
2358 root_vpbl.pbl_vbase = NULL;
2359 root_vpbl.pbl_pbase = 0;
2425 root_vpbl.pbl_vbase = pci_alloc_consistent(nesdev->pcidev,
2426 8192, &root_vpbl.pbl_pbase);
2428 root_vpbl.pbl_vbase, (unsigned int)root_vpbl.pbl_pbase);
2429 if (!root_vpbl.pbl_vbase) {
2439 root_vpbl.leaf_vpbl = kzalloc(sizeof(*root_vpbl.leaf_vpbl)*1024,
2441 if (!root_vpbl.leaf_vpbl) {
2443 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2444 root_vpbl.pbl_pbase);
2453 root_vpbl.pbl_vbase[0].pa_low =
2455 root_vpbl.pbl_vbase[0].pa_high =
2457 root_vpbl.leaf_vpbl[0] = vpbl;
2471 root_vpbl.pbl_vbase[root_pbl_index].pa_low =
2473 root_vpbl.pbl_vbase[root_pbl_index].pa_high =
2475 root_vpbl.leaf_vpbl[root_pbl_index] = vpbl;
2517 root_vpbl.pbl_pbase = vpbl.pbl_pbase;
2531 ret = nes_reg_mr(nesdev, nespd, stag, region->length, &root_vpbl,
2556 root_vpbl.leaf_vpbl[page_index].pbl_vbase,
2557 root_vpbl.leaf_vpbl[page_index].pbl_pbase);
2559 kfree(root_vpbl.leaf_vpbl);
2560 pci_free_consistent(nesdev->pcidev, 8192, root_vpbl.pbl_vbase,
2561 root_vpbl.pbl_pbase);