Lines Matching refs:save
22 * @buf: buffer to save to or restore from
23 * @dwords: number of dwords to save/restore
24 * @save: whether to save or restore
27 u32 *buf, int dwords, bool save)
32 if (save)
171 * pci_vc_do_save_buffer - Size, save, or restore VC state
174 * @save_state: buffer for save/restore
175 * @save: if provided a buffer, this indicates what to do with it
177 * Walking Virtual Channel config space to size, save, or restore it
180 * @save_state, return the size of the necessary save buffer. When called
181 * with a non-NULL @save_state, @save determines whether we save to the
186 bool save)
193 /* Sanity check buffer size for save/restore */
195 pci_vc_do_save_buffer(dev, pos, NULL, save)) {
196 pci_err(dev, "VC save buffer size does not match @0x%x\n", pos);
211 * therefore save/restore it first, as only VC0 should be enabled
215 if (save)
227 * in Port VC Capability Register 2 then save/restore it next.
253 size / 4, save);
258 if (!save)
300 size / 4, save);
310 if (save)
346 * pci_save_vc_state - Save VC state to pre-allocate save buffer
350 * save it to the pre-allocated save buffer.
373 pci_err(dev, "%s save unsuccessful %s\n",
383 * pci_restore_vc_state - Restore VC state from save buffer
407 * pci_allocate_vc_save_buffers - Allocate save buffers for VC caps
411 * it, and allocate a buffer for save/restore.
425 pci_err(dev, "unable to preallocate %s save buffer\n",