| /openbmc/qemu/hw/nvram/ |
| H A D | xlnx-zynqmp-efuse.c | 259 #define EFUSE_CACHE_FLD(s, reg, field) \ argument 264 #define EFUSE_CACHE_BIT(s, reg, field) \ argument 272 static void update_tbit_status(XlnxZynqMPEFuse *s) in update_tbit_status() 285 static void cache_sync_u32(XlnxZynqMPEFuse *s, unsigned int r_start, in cache_sync_u32() 312 static void zynqmp_efuse_sync_cache(XlnxZynqMPEFuse *s, unsigned int bit) in zynqmp_efuse_sync_cache() 356 static void zynqmp_efuse_update_irq(XlnxZynqMPEFuse *s) in zynqmp_efuse_update_irq() 364 XlnxZynqMPEFuse *s = XLNX_ZYNQMP_EFUSE(reg->opaque); in zynqmp_efuse_isr_postw() local 370 XlnxZynqMPEFuse *s = XLNX_ZYNQMP_EFUSE(reg->opaque); in zynqmp_efuse_ier_prew() local 380 XlnxZynqMPEFuse *s = XLNX_ZYNQMP_EFUSE(reg->opaque); in zynqmp_efuse_idr_prew() local 390 XlnxZynqMPEFuse *s = XLNX_ZYNQMP_EFUSE(reg->opaque); in zynqmp_efuse_pgm_addr_postw() local [all …]
|
| /openbmc/qemu/hw/scsi/ |
| H A D | scsi-disk.c | 145 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_init_iovec() local 175 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); in scsi_disk_emulate_save_request() local 207 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); in scsi_disk_emulate_load_request() local 224 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_handle_rw_error() local 347 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_aio_complete() local 410 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_dma_complete() local 448 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_read_complete() local 466 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_do_read() local 499 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_do_read_cb() local 516 SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); in scsi_read_data() local [all …]
|
| /openbmc/qemu/hw/rtc/ |
| H A D | ls7a_rtc.c | 100 static bool toy_enabled(LS7ARtcState *s) in toy_enabled() argument 106 static bool rtc_enabled(LS7ARtcState *s) in rtc_enabled() 125 static void toymatch_val_to_time(LS7ARtcState *s, uint64_t val, struct tm *tm) in toymatch_val_to_time() 136 static void toymatch_write(LS7ARtcState *s, uint64_t val, int num) in toymatch_write() 152 static void rtcmatch_write(LS7ARtcState *s, uint64_t val, int num) in rtcmatch_write() 165 static void ls7a_toy_stop(LS7ARtcState *s) in ls7a_toy_stop() 175 static void ls7a_rtc_stop(LS7ARtcState *s) in ls7a_rtc_stop() 185 static void ls7a_toy_start(LS7ARtcState *s) in ls7a_toy_start() 201 static void ls7a_rtc_start(LS7ARtcState *s) in ls7a_rtc_start() 215 LS7ARtcState *s = LS7A_RTC(opaque); in ls7a_rtc_read() local [all …]
|
| /openbmc/qemu/net/ |
| H A D | af-xdp.c | 66 static void af_xdp_update_fd_handler(AFXDPState *s) in af_xdp_update_fd_handler() 75 static void af_xdp_read_poll(AFXDPState *s, bool enable) in af_xdp_read_poll() 84 static void af_xdp_write_poll(AFXDPState *s, bool enable) in af_xdp_write_poll() 94 AFXDPState *s = DO_UPCAST(AFXDPState, nc, nc); in af_xdp_poll() local 103 static void af_xdp_complete_tx(AFXDPState *s) in af_xdp_complete_tx() 128 AFXDPState *s = opaque; in af_xdp_writable() local 148 AFXDPState *s = DO_UPCAST(AFXDPState, nc, nc); in af_xdp_receive() local 193 AFXDPState *s = DO_UPCAST(AFXDPState, nc, nc); in af_xdp_send_completed() local 198 static void af_xdp_fq_refill(AFXDPState *s, uint32_t n) in af_xdp_fq_refill() 225 AFXDPState *s = opaque; in af_xdp_send() local [all …]
|
| /openbmc/qemu/hw/misc/ |
| H A D | led.c | 38 void led_set_intensity(LEDState *s, unsigned intensity_percent) in led_set_intensity() 51 unsigned led_get_intensity(LEDState *s) in led_get_intensity() 56 void led_set_state(LEDState *s, bool is_emitting) in led_set_state() 63 LEDState *s = LED(opaque); in led_set_state_gpio_handler() local 71 LEDState *s = LED(dev); in led_reset() local 88 LEDState *s = LED(dev); in led_realize() local
|
| H A D | imx6_src.c | 77 IMX6SRCState *s = IMX6_SRC(dev); in imx6_src_reset() local 92 IMX6SRCState *s = (IMX6SRCState *)opaque; in imx6_src_read() local 114 IMX6SRCState *s; member 121 IMX6SRCState *s = ri->s; in imx6_clear_reset_bit() local 132 IMX6SRCState *s, in imx6_defer_clear_reset_bit() 153 IMX6SRCState *s = (IMX6SRCState *)opaque; in imx6_src_write() local 269 IMX6SRCState *s = IMX6_SRC(dev); in imx6_src_realize() local
|
| H A D | imx7_src.c | 95 IMX7SRCState *s = IMX7_SRC(dev); in imx7_src_reset() local 108 IMX7SRCState *s = (IMX7SRCState *)opaque; in imx7_src_read() local 130 IMX7SRCState *s; member 137 IMX7SRCState *s = ri->s; in imx7_clear_reset_bit() local 149 IMX7SRCState *s, in imx7_defer_clear_reset_bit() 170 IMX7SRCState *s = (IMX7SRCState *)opaque; in imx7_src_write() local 247 IMX7SRCState *s = IMX7_SRC(dev); in imx7_src_realize() local
|
| H A D | aspeed_peci.c | 34 static void aspeed_peci_raise_interrupt(AspeedPECIState *s, uint32_t status) in aspeed_peci_raise_interrupt() 47 AspeedPECIState *s = ASPEED_PECI(opaque); in aspeed_peci_read() local 65 AspeedPECIState *s = ASPEED_PECI(opaque); in aspeed_peci_write() local 117 AspeedPECIState *s = ASPEED_PECI(dev); in aspeed_peci_realize() local 128 AspeedPECIState *s = ASPEED_PECI(dev); in aspeed_peci_reset() local
|
| /openbmc/qemu/hw/i2c/ |
| H A D | mpc_i2c.c | 88 static bool mpc_i2c_is_enabled(MPCI2CState *s) in mpc_i2c_is_enabled() argument 93 static bool mpc_i2c_is_master(MPCI2CState *s) in mpc_i2c_is_master() 98 static bool mpc_i2c_direction_is_tx(MPCI2CState *s) in mpc_i2c_direction_is_tx() 103 static bool mpc_i2c_irq_pending(MPCI2CState *s) in mpc_i2c_irq_pending() 108 static bool mpc_i2c_irq_is_enabled(MPCI2CState *s) in mpc_i2c_irq_is_enabled() 125 static void mpc_i2c_irq(MPCI2CState *s) in mpc_i2c_irq() 141 static void mpc_i2c_soft_reset(MPCI2CState *s) in mpc_i2c_soft_reset() 149 static void mpc_i2c_address_send(MPCI2CState *s) in mpc_i2c_address_send() 163 static void mpc_i2c_data_send(MPCI2CState *s) in mpc_i2c_data_send() 177 static void mpc_i2c_data_recive(MPCI2CState *s) in mpc_i2c_data_recive() [all …]
|
| /openbmc/qemu/hw/char/ |
| H A D | sh_serial.c | 81 static void sh_serial_clear_fifo(SHSerialState *s) in sh_serial_clear_fifo() argument 92 SHSerialState *s = opaque; in sh_serial_write() local 211 SHSerialState *s = opaque; in sh_serial_read() local 317 static int sh_serial_can_receive(SHSerialState *s) in sh_serial_can_receive() 322 static void sh_serial_receive_break(SHSerialState *s) in sh_serial_receive_break() 331 SHSerialState *s = opaque; in sh_serial_can_receive1() local 337 SHSerialState *s = opaque; in sh_serial_timeout_int() local 347 SHSerialState *s = opaque; in sh_serial_receive1() local 375 SHSerialState *s = opaque; in sh_serial_event() local 389 SHSerialState *s = SH_SERIAL(dev); in sh_serial_reset() local [all …]
|
| /openbmc/qemu/hw/intc/ |
| H A D | loongarch_extioi.c | 19 static int extioi_get_index_from_archid(LoongArchExtIOICommonState *s, in extioi_get_index_from_archid() 37 static void extioi_update_irq(LoongArchExtIOICommonState *s, int irq, int level) in extioi_update_irq() 72 LoongArchExtIOICommonState *s = LOONGARCH_EXTIOI_COMMON(opaque); in extioi_setirq() local 85 LoongArchExtIOICommonState *s = LOONGARCH_EXTIOI_COMMON(opaque); in extioi_readw() local 124 static inline void extioi_enable_irq(LoongArchExtIOICommonState *s, int index,\ in extioi_enable_irq() 143 static inline void extioi_update_sw_coremap(LoongArchExtIOICommonState *s, in extioi_update_sw_coremap() 185 static inline void extioi_update_sw_ipmap(LoongArchExtIOICommonState *s, in extioi_update_sw_ipmap() 209 LoongArchExtIOICommonState *s = LOONGARCH_EXTIOI_COMMON(opaque); in extioi_writew() local 289 LoongArchExtIOICommonState *s = LOONGARCH_EXTIOI_COMMON(opaque); in extioi_virt_readw() local 309 LoongArchExtIOICommonState *s = LOONGARCH_EXTIOI_COMMON(opaque); in extioi_virt_writew() local [all …]
|
| H A D | i8259_common.c | 36 void pic_reset_common(PICCommonState *s) in pic_reset_common() 58 PICCommonState *s = opaque; in pic_dispatch_pre_save() local 70 PICCommonState *s = opaque; in pic_dispatch_post_load() local 81 PICCommonState *s = PIC_COMMON(dev); in pic_common_realize() local 121 PICCommonState *s = PIC_COMMON(obj); in pic_get_statistics() local 136 PICCommonState *s = PIC_COMMON(obj); in pic_print_info() local 149 PICCommonState *s = PIC_COMMON(opaque); in ltim_state_needed() local
|
| H A D | ioapic.c | 91 static void ioapic_service(IOAPICCommonState *s) in ioapic_service() 148 IOAPICCommonState *s = opaque; in delayed_ioapic_service_cb() local 155 IOAPICCommonState *s = opaque; in ioapic_set_irq() local 192 static void ioapic_update_kvm_routes(IOAPICCommonState *s) in ioapic_update_kvm_routes() 217 IOAPICCommonState *s = (IOAPICCommonState *)private; in ioapic_iec_notifier() local 225 IOAPICCommonState *s; in ioapic_eoi_broadcast() local 298 IOAPICCommonState *s = opaque; in ioapic_mem_read() local 371 IOAPICCommonState *s = opaque; in ioapic_mem_write() local 432 IOAPICCommonState *s = container_of(notifier, IOAPICCommonState, in ioapic_machine_done_notify() local 451 IOAPICCommonState *s = IOAPIC_COMMON(dev); in ioapic_realize() local [all …]
|
| H A D | xlnx-pmu-iomod-intc.c | 335 static void xlnx_pmu_io_irq_update(XlnxPMUIOIntc *s) in xlnx_pmu_io_irq_update() 349 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(reg->opaque); in xlnx_pmu_io_irq_enable_postw() local 356 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(reg->opaque); in xlnx_pmu_io_irq_ack_postw() local 431 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(opaque); in irq_handler() local 457 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(dev); in xlnx_pmu_io_intc_reset() local 485 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(dev); in xlnx_pmu_io_intc_realize() local 503 XlnxPMUIOIntc *s = XLNX_PMU_IO_INTC(obj); in xlnx_pmu_io_intc_init() local
|
| /openbmc/qemu/hw/pci-host/ |
| H A D | sabre.c | 63 static inline void sabre_set_request(SabreState *s, unsigned int irq_num) in sabre_set_request() 70 static inline void sabre_check_irqs(SabreState *s) in sabre_check_irqs() 101 static inline void sabre_clear_request(SabreState *s, unsigned int irq_num) in sabre_clear_request() 122 SabreState *s = opaque; in sabre_config_write() local 200 SabreState *s = opaque; in sabre_config_read() local 252 SabreState *s = opaque; in sabre_pci_config_write() local 263 SabreState *s = opaque; in sabre_pci_config_read() local 303 SabreState *s = opaque; in pci_sabre_set_irq() local 334 SabreState *s = SABRE(d); in sabre_reset() local 372 SabreState *s = SABRE(dev); in sabre_realize() local [all …]
|
| H A D | dino.c | 31 static void gsc_to_pci_forwarding(DinoState *s) in gsc_to_pci_forwarding() 97 DinoState *s = opaque; in dino_chip_read_with_attrs() local 190 DinoState *s = opaque; in dino_chip_write_with_attrs() local 309 PCIHostState *s = opaque; in dino_config_data_read() local 316 PCIHostState *s = opaque; in dino_config_data_write() local 328 DinoState *s = opaque; in dino_config_addr_read() local 335 PCIHostState *s = opaque; in dino_config_addr_write() local 352 DinoState *s = opaque; in dino_pcihost_set_iommu() local 379 DinoState *s = opaque; in dino_set_irq() local 407 DinoState *s = DINO_PCI_HOST_BRIDGE(dev); in dino_pcihost_reset() local [all …]
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | translate.h | 198 static inline int negate(DisasContext *s, int x) in negate() 203 static inline int plus_1(DisasContext *s, int x) in plus_1() 208 static inline int plus_2(DisasContext *s, int x) in plus_2() 213 static inline int plus_8(DisasContext *s, int x) in plus_8() 218 static inline int plus_12(DisasContext *s, int x) in plus_12() 223 static inline int times_2(DisasContext *s, int x) in times_2() 228 static inline int times_4(DisasContext *s, int x) in times_4() 233 static inline int times_8(DisasContext *s, int x) in times_8() 238 static inline int times_2_plus_1(DisasContext *s, int x) in times_2_plus_1() 243 static inline int rsub_64(DisasContext *s, int x) in rsub_64() [all …]
|
| H A D | translate-sve.c | 45 static int tszimm_esz(DisasContext *s, int x) in tszimm_esz() 51 static int tszimm_shr(DisasContext *s, int x) in tszimm_shr() 66 static int tszimm_shl(DisasContext *s, int x) in tszimm_shl() 77 static inline int expand_imm_sh8s(DisasContext *s, int x) in expand_imm_sh8s() 82 static inline int expand_imm_sh8u(DisasContext *s, int x) in expand_imm_sh8u() 90 static inline int msz_dtype(DisasContext *s, int msz) in msz_dtype() 107 static bool gen_gvec_ool_zz(DisasContext *s, gen_helper_gvec_2 *fn, in gen_gvec_ool_zz() 122 static bool gen_gvec_fpst_zz(DisasContext *s, gen_helper_gvec_2_ptr *fn, in gen_gvec_fpst_zz() 140 static bool gen_gvec_fpst_ah_arg_zz(DisasContext *s, gen_helper_gvec_2_ptr *fn, in gen_gvec_fpst_ah_arg_zz() 148 static bool gen_gvec_ool_zzz(DisasContext *s, gen_helper_gvec_3 *fn, in gen_gvec_ool_zzz() [all …]
|
| /openbmc/qemu/hw/ssi/ |
| H A D | sifive_spi.c | 62 static void sifive_spi_txfifo_reset(SiFiveSPIState *s) in sifive_spi_txfifo_reset() 70 static void sifive_spi_rxfifo_reset(SiFiveSPIState *s) in sifive_spi_rxfifo_reset() 78 static void sifive_spi_update_cs(SiFiveSPIState *s) in sifive_spi_update_cs() 89 static void sifive_spi_update_irq(SiFiveSPIState *s) in sifive_spi_update_irq() 111 SiFiveSPIState *s = SIFIVE_SPI(d); in sifive_spi_reset() local 130 static void sifive_spi_flush_txfifo(SiFiveSPIState *s) in sifive_spi_flush_txfifo() 182 SiFiveSPIState *s = opaque; in sifive_spi_read() local 220 SiFiveSPIState *s = opaque; in sifive_spi_write() local 312 SiFiveSPIState *s = SIFIVE_SPI(dev); in sifive_spi_realize() local
|
| /openbmc/qemu/hw/remote/ |
| H A D | machine.c | 31 RemoteMachineState *s = REMOTE_MACHINE(machine); in remote_machine_init() local 75 RemoteMachineState *s = REMOTE_MACHINE(obj); in remote_machine_get_vfio_user() local 82 RemoteMachineState *s = REMOTE_MACHINE(obj); in remote_machine_set_vfio_user() local 94 RemoteMachineState *s = REMOTE_MACHINE(obj); in remote_machine_get_auto_shutdown() local 102 RemoteMachineState *s = REMOTE_MACHINE(obj); in remote_machine_set_auto_shutdown() local 109 RemoteMachineState *s = REMOTE_MACHINE(obj); in remote_machine_instance_init() local
|
| /openbmc/qemu/hw/usb/ |
| H A D | hcd-dwc3.c | 350 static void reset_csr(USBDWC3 * s) in reset_csr() 387 USBDWC3 *s = USB_DWC3(reg->opaque); in usb_dwc3_gctl_postw() local 396 USBDWC3 *s = USB_DWC3(reg->opaque); in usb_dwc3_guid_postw() local 573 USBDWC3 *s = USB_DWC3(dev); in usb_dwc3_reset() local 602 USBDWC3 *s = USB_DWC3(dev); in usb_dwc3_realize() local 632 USBDWC3 *s = USB_DWC3(obj); in usb_dwc3_init() local
|
| /openbmc/qemu/hw/ide/ |
| H A D | macio.c | 63 IDEState *s = ide_bus_active_if(&m->bus); in pmac_ide_atapi_transfer_cb() local 136 IDEState *s = ide_bus_active_if(&m->bus); in pmac_ide_transfer_cb() local 216 IDEState *s = ide_bus_active_if(&m->bus); in pmac_ide_transfer() local 247 IDEState *s = ide_bus_active_if(&m->bus); in pmac_ide_flush() local 384 static void ide_dbdma_start(const IDEDMA *dma, IDEState *s, in ide_dbdma_start() 414 MACIOIDEState *s = MACIO_IDE(dev); in macio_ide_realizefn() local 426 MACIOIDEState *s = opaque; in pmac_ide_irq() local 446 MACIOIDEState *s = MACIO_IDE(obj); in macio_ide_initfn() local 491 void macio_ide_init_drives(MACIOIDEState *s, DriveInfo **hd_table) in macio_ide_init_drives() 502 void macio_ide_register_dma(MACIOIDEState *s) in macio_ide_register_dma()
|
| /openbmc/qemu/hw/dma/ |
| H A D | sparc32_dma.c | 77 DMADeviceState *s = opaque; in ledma_memory_read() local 98 DMADeviceState *s = opaque; in ledma_memory_write() local 129 DMADeviceState *s = opaque; in dma_set_irq() local 149 DMADeviceState *s = opaque; in espdma_memory_read() local 160 DMADeviceState *s = opaque; in espdma_memory_write() local 172 DMADeviceState *s = opaque; in dma_mem_read() local 183 DMADeviceState *s = opaque; in dma_mem_write() local 242 DMADeviceState *s = SPARC32_DMA_DEVICE(d); in sparc32_dma_device_reset() local 261 DMADeviceState *s = SPARC32_DMA_DEVICE(obj); in sparc32_dma_device_init() local 296 DMADeviceState *s = SPARC32_DMA_DEVICE(obj); in sparc32_espdma_device_init() local [all …]
|
| /openbmc/qemu/hw/sensor/ |
| H A D | lsm303dlhc_mag.c | 87 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_get_x() local 98 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_get_y() local 109 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_get_z() local 120 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_set_x() local 143 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_set_y() local 166 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_set_z() local 193 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_get_temperature() local 209 LSM303DLHCMagState *s = LSM303DLHC_MAG(obj); in lsm303dlhc_mag_set_temperature() local 230 static void lsm303dlhc_mag_read(LSM303DLHCMagState *s) in lsm303dlhc_mag_read() 252 static void lsm303dlhc_mag_finish(LSM303DLHCMagState *s) in lsm303dlhc_mag_finish() [all …]
|
| /openbmc/qemu/hw/audio/ |
| H A D | sb16.c | 172 static void speaker (SB16State *s, int on) in speaker() 178 static void control (SB16State *s, int hold) in control() 199 SB16State *s = opaque; in aux_timer() local 207 static void continue_dma8 (SB16State *s) in continue_dma8() 249 static void dma_cmd8 (SB16State *s, int mask, int dma_len) in dma_cmd8() 301 static void dma_cmd (SB16State *s, uint8_t cmd, uint8_t d0, int dma_len) in dma_cmd() 396 static inline void dsp_out_data (SB16State *s, uint8_t val) in dsp_out_data() 404 static inline uint8_t dsp_get_data (SB16State *s) in dsp_get_data() 415 static void command (SB16State *s, uint8_t cmd) in command() 673 static uint16_t dsp_get_lohi (SB16State *s) in dsp_get_lohi() [all …]
|