i40e_hmc.c (ac83ea833d494a651c3fa807c90675b724a78c19) i40e_hmc.c (ceebc2f348c028b21bf9bcc99f7a3c4b0cb7d926)
1/******************************************************************************
2
1/******************************************************************************
2
3 Copyright (c) 2013-2015, Intel Corporation
3 Copyright (c) 2013-2017, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 194 unchanged lines hidden (view full) ---

206 return ret_code;
207}
208
209/**
210 * i40e_remove_pd_bp - remove a backing page from a page descriptor
211 * @hw: pointer to our HW structure
212 * @hmc_info: pointer to the HMC configuration information structure
213 * @idx: the page index
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 194 unchanged lines hidden (view full) ---

206 return ret_code;
207}
208
209/**
210 * i40e_remove_pd_bp - remove a backing page from a page descriptor
211 * @hw: pointer to our HW structure
212 * @hmc_info: pointer to the HMC configuration information structure
213 * @idx: the page index
214 * @is_pf: distinguishes a VF from a PF
215 *
216 * This function:
217 * 1. Marks the entry in pd tabe (for paged address mode) or in sd table
218 * (for direct address mode) invalid.
219 * 2. Write to register PMPDINV to invalidate the backing page in FV cache
220 * 3. Decrement the ref count for the pd _entry
221 * assumptions:
222 * 1. Caller can deallocate the memory used by backing storage after this

--- 149 unchanged lines hidden ---
214 *
215 * This function:
216 * 1. Marks the entry in pd tabe (for paged address mode) or in sd table
217 * (for direct address mode) invalid.
218 * 2. Write to register PMPDINV to invalidate the backing page in FV cache
219 * 3. Decrement the ref count for the pd _entry
220 * assumptions:
221 * 1. Caller can deallocate the memory used by backing storage after this

--- 149 unchanged lines hidden ---