Lines Matching refs:bytes

69 				   u8 *src, unsigned int bytes)  in vgpu_pci_cfg_mem_write()  argument
75 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write()
92 if (i < bytes) in vgpu_pci_cfg_mem_write()
93 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
107 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument
109 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read()
112 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read()
115 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read()
176 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument
183 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write()
207 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_rom_bar_write() argument
216 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_rom_bar_write()
221 void *p_data, unsigned int bytes) in emulate_pci_bar_write() argument
298 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_write() argument
302 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_write()
305 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_write()
310 if (WARN_ON(bytes > 2)) in intel_vgpu_emulate_cfg_write()
312 return emulate_pci_command_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
319 return emulate_pci_rom_bar_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
324 return emulate_pci_bar_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
342 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
345 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()