Lines Matching full:save

20  * pci_vc_save_restore_dwords - Save or restore a series of dwords
23 * @buf: buffer to save to or restore from
24 * @dwords: number of dwords to save/restore
25 * @save: whether to save or restore
28 u32 *buf, int dwords, bool save) in pci_vc_save_restore_dwords() argument
33 if (save) in pci_vc_save_restore_dwords()
172 * pci_vc_do_save_buffer - Size, save, or restore VC state
175 * @save_state: buffer for save/restore
176 * @save: if provided a buffer, this indicates what to do with it
178 * Walking Virtual Channel config space to size, save, or restore it
181 * @save_state, return the size of the necessary save buffer. When called
182 * with a non-NULL @save_state, @save determines whether we save to the
187 bool save) in pci_vc_do_save_buffer() argument
194 /* Sanity check buffer size for save/restore */ in pci_vc_do_save_buffer()
196 pci_vc_do_save_buffer(dev, pos, NULL, save)) { in pci_vc_do_save_buffer()
197 pci_err(dev, "VC save buffer size does not match @0x%x\n", pos); in pci_vc_do_save_buffer()
212 * therefore save/restore it first, as only VC0 should be enabled in pci_vc_do_save_buffer()
216 if (save) in pci_vc_do_save_buffer()
228 * in Port VC Capability Register 2 then save/restore it next. in pci_vc_do_save_buffer()
254 size / 4, save); in pci_vc_do_save_buffer()
259 if (!save) in pci_vc_do_save_buffer()
301 size / 4, save); in pci_vc_do_save_buffer()
311 if (save) in pci_vc_do_save_buffer()
347 * pci_save_vc_state - Save VC state to pre-allocate save buffer
351 * save it to the pre-allocated save buffer.
374 pci_err(dev, "%s save unsuccessful %s\n", in pci_save_vc_state()
384 * pci_restore_vc_state - Restore VC state from save buffer
408 * pci_allocate_vc_save_buffers - Allocate save buffers for VC caps
412 * it, and allocate a buffer for save/restore.
426 pci_err(dev, "unable to preallocate %s save buffer\n", in pci_allocate_vc_save_buffers()