search for: fw_cfg_reg_dma

Displaying 1 result from an estimated 1 matches for "fw_cfg_reg_dma".

2018 Feb 14
1
[vhost:vhost 22/23] drivers/firmware/qemu_fw_cfg.c:130:36: sparse: incorrect type in initializer (different base types)
...} 128 129 *d = (struct fw_cfg_dma) { > 130 .address = address ? cpu_to_be64(virt_to_phys(address)) : 0, 131 .length = cpu_to_be32(length), 132 .control = cpu_to_be32(control) 133 }; 134 135 dma = virt_to_phys(d); 136 137 iowrite32be((u64)dma >> 32, fw_cfg_reg_dma); 138 iowrite32be(dma, fw_cfg_reg_dma + 4); 139 140 fw_cfg_wait_for_control(d); 141 142 if (be32_to_cpu(READ_ONCE(d->control)) & FW_CFG_DMA_CTL_ERROR) { 143 ret = -EIO; 144 } 145 146 end: 147 kfree(d); 148 149 return ret; 150 } 151 ---...