Lines Matching defs:pending
838 * ice_get_pending_updates - Check if the component has a pending update
840 * @pending: on return, bitmap of updates pending
843 * Check if the device has any pending updates on any flash components.
846 * pending with the bitmap of pending updates.
848 int ice_get_pending_updates(struct ice_pf *pf, u8 *pending,
861 * the cached values in hw->dev_caps, because the pending update flag
872 *pending = 0;
875 dev_info(dev, "The fw.mgmt flash component has a pending update\n");
876 *pending |= ICE_AQC_NVM_ACTIV_SEL_NVM;
880 dev_info(dev, "The fw.undi flash component has a pending update\n");
881 *pending |= ICE_AQC_NVM_ACTIV_SEL_OROM;
885 dev_info(dev, "The fw.netlist flash component has a pending update\n");
886 *pending |= ICE_AQC_NVM_ACTIV_SEL_NETLIST;
895 * ice_cancel_pending_update - Cancel any pending update for a component
900 * Cancel any pending update for the specified component. If component is
912 u8 pending;
915 err = ice_get_pending_updates(pf, &pending, extack);
924 pending &= ICE_AQC_NVM_ACTIV_SEL_NVM;
926 pending &= ICE_AQC_NVM_ACTIV_SEL_OROM;
928 pending &= ICE_AQC_NVM_ACTIV_SEL_NETLIST;
933 /* There is no previous pending update, so this request may continue */
934 if (!pending)
937 /* In order to allow overwriting a previous pending update, notify
941 "Canceling previous pending update",
952 pending |= ICE_AQC_NVM_REVERT_LAST_ACTIV;
953 err = ice_switch_flash_banks(pf, pending, NULL, extack);
957 /* Since we've canceled the pending update, we no longer know if EMP