Lines Matching refs:bytes
65 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument
71 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write()
88 if (i < bytes) in vgpu_pci_cfg_mem_write()
89 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
99 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument
101 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read()
104 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read()
107 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read()
168 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument
175 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write()
199 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_rom_bar_write() argument
208 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_rom_bar_write()
213 void *p_data, unsigned int bytes) in emulate_pci_bar_write() argument
286 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_write() argument
290 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_write()
293 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_write()
298 if (WARN_ON(bytes > 2)) in intel_vgpu_emulate_cfg_write()
300 return emulate_pci_command_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
307 return emulate_pci_rom_bar_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
312 return emulate_pci_bar_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
330 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()
333 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in intel_vgpu_emulate_cfg_write()