Searched refs:phys_val (Results 1 – 2 of 2) sorted by relevance
/drivers/vfio/pci/ |
D | vfio_pci_config.c | 192 __le32 phys_val = 0; in vfio_default_config_read() local 195 ret = vfio_user_config_read(pdev, pos, &phys_val, count); in vfio_default_config_read() 199 *val = (phys_val & ~virt) | (*val & virt); in vfio_default_config_read() 233 __le32 phys_val = 0; in vfio_default_config_write() local 236 ret = vfio_user_config_read(pdev, pos, &phys_val, count); in vfio_default_config_write() 240 phys_val &= ~(write & ~virt); in vfio_default_config_write() 241 phys_val |= (val & (write & ~virt)); in vfio_default_config_write() 243 ret = vfio_user_config_write(pdev, pos, phys_val, count); in vfio_default_config_write()
|
/drivers/ps3/ |
D | ps3-lpm.c | 339 u32 phys_val; in ps3_write_ctr() local 344 phys_val = ps3_read_phys_ctr(cpu, phys_ctr); in ps3_write_ctr() 347 val = (val << 16) | (phys_val & 0xffff); in ps3_write_ctr() 349 val = (val & 0xffff) | (phys_val & 0xffff0000); in ps3_write_ctr()
|