Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_hmc.c
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2013-2015, Intel Corporation | Copyright (c) 2013-2017, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
▲ Show 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | exit: | ||||
return ret_code; | return ret_code; | ||||
} | } | ||||
/** | /** | ||||
* i40e_remove_pd_bp - remove a backing page from a page descriptor | * i40e_remove_pd_bp - remove a backing page from a page descriptor | ||||
* @hw: pointer to our HW structure | * @hw: pointer to our HW structure | ||||
* @hmc_info: pointer to the HMC configuration information structure | * @hmc_info: pointer to the HMC configuration information structure | ||||
* @idx: the page index | * @idx: the page index | ||||
* @is_pf: distinguishes a VF from a PF | |||||
* | * | ||||
* This function: | * This function: | ||||
* 1. Marks the entry in pd tabe (for paged address mode) or in sd table | * 1. Marks the entry in pd tabe (for paged address mode) or in sd table | ||||
* (for direct address mode) invalid. | * (for direct address mode) invalid. | ||||
* 2. Write to register PMPDINV to invalidate the backing page in FV cache | * 2. Write to register PMPDINV to invalidate the backing page in FV cache | ||||
* 3. Decrement the ref count for the pd _entry | * 3. Decrement the ref count for the pd _entry | ||||
* assumptions: | * assumptions: | ||||
* 1. Caller can deallocate the memory used by backing storage after this | * 1. Caller can deallocate the memory used by backing storage after this | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |