/openbmc/qemu/hw/i386/xen/ |
H A D | xen_apic.c | 44 APICCommonState *s = APIC_COMMON(dev); in xen_apic_realize() local 52 static int xen_apic_set_base(APICCommonState *s, uint64_t val) in xen_apic_set_base() 57 static void xen_apic_set_tpr(APICCommonState *s, uint8_t val) in xen_apic_set_tpr() 61 static uint8_t xen_apic_get_tpr(APICCommonState *s) in xen_apic_get_tpr() 66 static void xen_apic_vapic_base_update(APICCommonState *s) in xen_apic_vapic_base_update() 70 static void xen_apic_external_nmi(APICCommonState *s) in xen_apic_external_nmi()
|
/openbmc/linux/kernel/ |
H A D | scs.c | 19 static void __scs_account(void *s, int account) in __scs_account() 34 void *s; in __scs_alloc() local 56 void *s; in scs_alloc() local 73 void scs_free(void *s) in scs_free() 116 void *s; in scs_prepare() local 159 void *s = task_scs(tsk); in scs_release() local
|
/openbmc/qemu/hw/rtc/ |
H A D | allwinner-rtc.c | 124 static bool allwinner_rtc_sun4i_read(AwRtcState *s, uint32_t offset) in allwinner_rtc_sun4i_read() 130 static bool allwinner_rtc_sun4i_write(AwRtcState *s, uint32_t offset, in allwinner_rtc_sun4i_write() 137 static bool allwinner_rtc_sun6i_read(AwRtcState *s, uint32_t offset) in allwinner_rtc_sun6i_read() 153 static bool allwinner_rtc_sun6i_write(AwRtcState *s, uint32_t offset, in allwinner_rtc_sun6i_write() 173 AwRtcState *s = AW_RTC(opaque); in allwinner_rtc_read() local 218 AwRtcState *s = AW_RTC(opaque); in allwinner_rtc_write() local 272 AwRtcState *s = AW_RTC(dev); in allwinner_rtc_reset() local 296 AwRtcState *s = AW_RTC(obj); in allwinner_rtc_init() local 330 AwRtcState *s = AW_RTC(obj); in allwinner_rtc_sun4i_init() local 346 AwRtcState *s = AW_RTC(obj); in allwinner_rtc_sun6i_init() local [all …]
|
/openbmc/qemu/chardev/ |
H A D | char-fe.c | 35 Chardev *s = be->chr; in qemu_chr_fe_write() local 46 Chardev *s = be->chr; in qemu_chr_fe_write_all() local 57 Chardev *s = be->chr; in qemu_chr_fe_read_all() local 100 Chardev *s = be->chr; in qemu_chr_fe_ioctl() local 114 Chardev *s = be->chr; in qemu_chr_fe_get_msgfd() local 127 Chardev *s = be->chr; in qemu_chr_fe_get_msgfds() local 139 Chardev *s = be->chr; in qemu_chr_fe_set_msgfds() local 151 Chardev *s = be->chr; in qemu_chr_fe_accept_input() local 192 bool qemu_chr_fe_init(CharBackend *b, Chardev *s, Error **errp) in qemu_chr_fe_init() 252 Chardev *s; in qemu_chr_fe_set_handlers_full() local [all …]
|
H A D | char-pty.c | 54 static void pty_chr_timer_cancel(PtyChardev *s) in pty_chr_timer_cancel() 66 PtyChardev *s = PTY_CHARDEV(opaque); in pty_chr_timer() local 78 PtyChardev *s = PTY_CHARDEV(chr); in pty_chr_rearm_timer() local 90 PtyChardev *s = PTY_CHARDEV(chr); in pty_chr_update_read_handler() local 110 PtyChardev *s = PTY_CHARDEV(chr); in char_pty_chr_write() local 136 PtyChardev *s = PTY_CHARDEV(chr); in pty_chr_add_watch() local 146 PtyChardev *s = PTY_CHARDEV(opaque); in pty_chr_read_poll() local 155 PtyChardev *s = PTY_CHARDEV(opaque); in pty_chr_read() local 180 PtyChardev *s = PTY_CHARDEV(chr); in pty_chr_state() local 207 PtyChardev *s = PTY_CHARDEV(obj); in char_pty_finalize() local [all …]
|
/openbmc/linux/lib/xz/ |
H A D | xz_dec_bcj.c | 88 static size_t bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_x86() 160 static size_t bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_powerpc() 181 static size_t bcj_ia64(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_ia64() 265 static size_t bcj_arm(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_arm() 288 static size_t bcj_armthumb(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_armthumb() 316 static size_t bcj_sparc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_sparc() 345 static void bcj_apply(struct xz_dec_bcj *s, in bcj_apply() 399 static void bcj_flush(struct xz_dec_bcj *s, struct xz_buf *b) in bcj_flush() 417 XZ_EXTERN enum xz_ret xz_dec_bcj_run(struct xz_dec_bcj *s, in xz_dec_bcj_run() 529 struct xz_dec_bcj *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_bcj_create() local [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | zynq_slcr.c | 276 static void zynq_slcr_compute_clocks_internal(ZynqSLCRState *s, uint64_t ps_clk) in zynq_slcr_compute_clocks_internal() 296 static void zynq_slcr_compute_clocks(ZynqSLCRState *s) in zynq_slcr_compute_clocks() 313 static void zynq_slcr_propagate_clocks(ZynqSLCRState *s) in zynq_slcr_propagate_clocks() 321 ZynqSLCRState *s = (ZynqSLCRState *) opaque; in zynq_slcr_ps_clk_callback() local 329 ZynqSLCRState *s = ZYNQ_SLCR(obj); in zynq_slcr_reset_init() local 425 ZynqSLCRState *s = ZYNQ_SLCR(obj); in zynq_slcr_reset_hold() local 434 ZynqSLCRState *s = ZYNQ_SLCR(obj); in zynq_slcr_reset_exit() local 506 ZynqSLCRState *s = opaque; in zynq_slcr_read() local 522 ZynqSLCRState *s = (ZynqSLCRState *)opaque; in zynq_slcr_write() local 597 ZynqSLCRState *s = ZYNQ_SLCR(dev); in zynq_slcr_realize() local [all …]
|
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
|
/openbmc/qemu/hw/tpm/ |
H A D | tpm_spapr.c | 94 static void tpm_spapr_tpm_send(SpaprTpmState *s) in tpm_spapr_tpm_send() argument 110 static int tpm_spapr_process_cmd(SpaprTpmState *s, uint64_t dataptr) in tpm_spapr_process_cmd() 133 SpaprTpmState *s = VIO_SPAPR_VTPM(dev); in tpm_spapr_do_crq() local 235 SpaprTpmState *s = VIO_SPAPR_VTPM(ti); in tpm_spapr_request_completed() local 274 static int tpm_spapr_do_startup_tpm(SpaprTpmState *s, size_t buffersize) in tpm_spapr_do_startup_tpm() 281 SpaprTpmState *s = VIO_SPAPR_VTPM(dev); in tpm_spapr_get_dt_compatible() local 295 SpaprTpmState *s = VIO_SPAPR_VTPM(dev); in tpm_spapr_reset() local 314 SpaprTpmState *s = VIO_SPAPR_VTPM(ti); in tpm_spapr_get_version() local 327 SpaprTpmState *s = opaque; in tpm_spapr_pre_save() local 339 SpaprTpmState *s = opaque; in tpm_spapr_post_load() local [all …]
|
/openbmc/qemu/net/ |
H A D | vhost-user.c | 36 NetVhostUserState *s = DO_UPCAST(NetVhostUserState, nc, nc); in vhost_user_get_vhost_net() local 43 NetVhostUserState *s = DO_UPCAST(NetVhostUserState, nc, nc); in vhost_user_get_acked_features() local 50 NetVhostUserState *s; in vhost_user_save_acked_features() local 64 NetVhostUserState *s; in vhost_user_stop() local 83 NetVhostUserState *s; in vhost_user_start() local 139 NetVhostUserState *s = DO_UPCAST(NetVhostUserState, nc, nc); in vhost_user_receive() local 162 NetVhostUserState *s = DO_UPCAST(NetVhostUserState, nc, nc); in net_vhost_user_cleanup() local 238 NetVhostUserState *s = opaque; in net_vhost_user_watch() local 251 NetVhostUserState *s; in chr_closed_bh() local 280 NetVhostUserState *s; in net_vhost_user_event() local [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | hpet.c | 89 static uint32_t hpet_in_legacy_mode(HPETState *s) in hpet_in_legacy_mode() argument 104 static uint32_t hpet_enabled(HPETState *s) in hpet_enabled() 151 static uint64_t hpet_get_ticks(HPETState *s) in hpet_get_ticks() 156 static uint64_t hpet_get_ns(HPETState *s, uint64_t tick) in hpet_get_ns() 187 HPETState *s; in update_irq() local 231 HPETState *s = opaque; in hpet_pre_save() local 243 HPETState *s = opaque; in hpet_pre_load() local 252 HPETState *s = opaque; in hpet_validate_num_timers() local 264 HPETState *s = opaque; in hpet_post_load() local 293 HPETState *s = opaque; in hpet_offset_needed() local [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | debugfs.c | 173 struct seq_file *s = file->private_data; in port_regs_write() local 182 struct seq_file *s = file->private_data; in switch_regs_write() local 265 struct seq_file *s = file->private_data; in margining_ber_level_write() local 309 static void ber_level_show(struct seq_file *s, unsigned int val) in ber_level_show() 317 static int margining_ber_level_show(struct seq_file *s, void *not_used) in margining_ber_level_show() 329 static int margining_caps_show(struct seq_file *s, void *not_used) in margining_caps_show() 410 struct seq_file *s = file->private_data; in margining_lanes_write() local 449 static int margining_lanes_show(struct seq_file *s, void *not_used) in margining_lanes_show() 483 struct seq_file *s = file->private_data; in margining_mode_write() local 522 static int margining_mode_show(struct seq_file *s, void *not_used) in margining_mode_show() [all …]
|
/openbmc/qemu/hw/intc/ |
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
|
/openbmc/qemu/hw/audio/ |
H A D | wm8750.c | 70 static inline void wm8750_in_load(WM8750State *s) in wm8750_in_load() argument 79 static inline void wm8750_out_flush(WM8750State *s) in wm8750_out_flush() 90 WM8750State *s = (WM8750State *) opaque; in wm8750_audio_in_cb() local 97 WM8750State *s = (WM8750State *) opaque; in wm8750_audio_out_cb() local 144 static void wm8750_vol_update(WM8750State *s) in wm8750_vol_update() 176 static void wm8750_set_format(WM8750State *s) in wm8750_set_format() 243 static void wm8750_clk_update(WM8750State *s, int ext) in wm8750_clk_update() 266 WM8750State *s = WM8750(i2c); in wm8750_reset() local 310 WM8750State *s = WM8750(i2c); in wm8750_event() local 369 WM8750State *s = WM8750(i2c); in wm8750_tx() local [all …]
|
H A D | via-ac97.c | 41 #define CODEC_REG(s, o) ((s)->codec_regs[(o) / 2]) argument 44 static void codec_volume_set_out(ViaAC97State *s) in codec_volume_set_out() 59 static void codec_reset(ViaAC97State *s) in codec_reset() 84 static uint16_t codec_read(ViaAC97State *s, uint8_t addr) in codec_read() 89 static void codec_write(ViaAC97State *s, uint8_t addr, uint16_t val) in codec_write() 174 ViaAC97State *s = opaque; in out_cb() local 234 static void open_voice_out(ViaAC97State *s) in open_voice_out() 247 ViaAC97State *s = opaque; in sgd_read() local 297 ViaAC97State *s = opaque; in sgd_write() local 419 ViaAC97State *s = VIA_AC97(dev); in via_ac97_reset() local [all …]
|
/openbmc/qemu/hw/gpio/ |
H A D | nrf51_gpio.c | 59 static void update_output_irq(NRF51GPIOState *s, size_t i, in update_output_irq() 75 static void update_state(NRF51GPIOState *s) in update_state() 136 static void reflect_dir_bit_in_cnf(NRF51GPIOState *s) in reflect_dir_bit_in_cnf() 149 NRF51GPIOState *s = NRF51_GPIO(opaque); in nrf51_gpio_read() local 185 NRF51GPIOState *s = NRF51_GPIO(opaque); in nrf51_gpio_write() local 247 NRF51GPIOState *s = NRF51_GPIO(opaque); in nrf51_gpio_set() local 263 NRF51GPIOState *s = NRF51_GPIO(dev); in nrf51_gpio_reset() local 296 NRF51GPIOState *s = NRF51_GPIO(obj); in nrf51_gpio_init() local
|
/openbmc/qemu/hw/pci-host/ |
H A D | aspeed_pcie.c | 67 static void aspeed_pcie_rc_update_irq(AspeedPCIERc *s) in aspeed_pcie_rc_update_irq() 83 AspeedPCIERc *s = ASPEED_PCIE_RC(opaque); in aspeed_pcie_rc_read() local 117 AspeedPCIERc *s = ASPEED_PCIE_RC(opaque); in aspeed_pcie_rc_write() local 156 AspeedPCIERc *s = (AspeedPCIERc *) opaque; in aspeed_pcie_rc_set_irq() local 177 AspeedPCIERc *s = ASPEED_PCIE_RC(dev); in aspeed_pcie_rc_realize() local 214 AspeedPCIERc *s = ASPEED_PCIE_RC(dev); in aspeed_pcie_rc_reset() local 222 AspeedPCIERc *s = ASPEED_PCIE_RC(host_bridge); in aspeed_pcie_rc_root_bus_path() local 230 AspeedPCIERc *s = ASPEED_PCIE_RC(obj); in aspeed_pcie_rc_init() local 327 AspeedPCIECfg *s = ASPEED_PCIE_CFG(opaque); in aspeed_pcie_cfg_read() local 375 static void aspeed_pcie_cfg_translate_write(AspeedPCIECfg *s, uint32_t *addr, in aspeed_pcie_cfg_translate_write() [all …]
|
/openbmc/qemu/include/user/ |
H A D | tswap-target.h | 15 #define tswapl(s) tswap32(s) argument 16 #define bswaptls(s) bswap32s(s) argument 18 #define tswapl(s) tswap64(s) argument 19 #define bswaptls(s) bswap64s(s) argument
|
/openbmc/qemu/hw/net/ |
H A D | ftgmac100.c | 260 static int ftgmac100_max_frame_size(FTGMAC100State *s, uint16_t proto) in ftgmac100_max_frame_size() 267 static void ftgmac100_update_irq(FTGMAC100State *s) in ftgmac100_update_irq() 278 static void phy_update_irq(FTGMAC100State *s) in phy_update_irq() 283 static void phy_update_link(FTGMAC100State *s) in phy_update_link() 301 static void phy_reset(FTGMAC100State *s) in phy_reset() 315 static uint16_t do_phy_read(FTGMAC100State *s, uint8_t reg) in do_phy_read() 382 static void do_phy_write(FTGMAC100State *s, uint8_t reg, uint16_t val) in do_phy_write() 419 static void do_phy_new_ctl(FTGMAC100State *s) in do_phy_new_ctl() 452 static void do_phy_ctl(FTGMAC100State *s) in do_phy_ctl() 500 static int ftgmac100_insert_vlan(FTGMAC100State *s, int frame_size, in ftgmac100_insert_vlan() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | vhost-user-test.c | 203 static void append_vhost_net_opts(TestServer *s, GString *cmd_line, in append_vhost_net_opts() 216 static void append_vhost_gpio_opts(TestServer *s, GString *cmd_line, in append_vhost_gpio_opts() 243 static bool wait_for_fds(TestServer *s) in wait_for_fds() 280 static void read_guest_mem_server(QTestState *qts, TestServer *s) in read_guest_mem_server() 335 TestServer *s = opaque; in chr_read() local 608 TestServer *s = opaque; in chr_event() local 678 static void wait_for_log_fd(TestServer *s) in wait_for_log_fd() 695 static void write_guest_mem(TestServer *s, uint32_t seed) in write_guest_mem() 729 static guint64 get_log_size(TestServer *s) in get_log_size() 765 static void vhost_user_test_cleanup(void *s) in vhost_user_test_cleanup() [all …]
|
/openbmc/qemu/util/ |
H A D | qemu-co-shared-resource.c | 42 SharedResource *s = g_new0(SharedResource, 1); in shres_create() local 51 void shres_destroy(SharedResource *s) in shres_destroy() 59 static bool co_try_get_from_shres_locked(SharedResource *s, uint64_t n) in co_try_get_from_shres_locked() 69 void coroutine_fn co_get_from_shres(SharedResource *s, uint64_t n) in co_get_from_shres() 78 void coroutine_fn co_put_to_shres(SharedResource *s, uint64_t n) in co_put_to_shres()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | cmd_parser.c | 518 #define gmadr_dw_number(s) \ argument 715 static inline u32 *cmd_ptr(struct parser_exec_state *s, int index) in cmd_ptr() 720 static inline u32 cmd_val(struct parser_exec_state *s, int index) in cmd_val() 725 static inline bool is_init_ctx(struct parser_exec_state *s) in is_init_ctx() 730 static void parser_exec_state_dump(struct parser_exec_state *s) in parser_exec_state_dump() 772 static inline void update_ip_va(struct parser_exec_state *s) in update_ip_va() 799 static inline int ip_gma_set(struct parser_exec_state *s, in ip_gma_set() 809 static inline int ip_gma_advance(struct parser_exec_state *s, in ip_gma_advance() 834 static inline int cmd_length(struct parser_exec_state *s) in cmd_length() 840 #define patch_value(s, addr, val) do { \ argument [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | bitmap.c | 20 #define SB_ALLOC_OPTS(s) (REISERFS_SB(s)->s_alloc_options.bits) argument 36 #define concentrating_formatted_nodes(s) test_bit(_ALLOC_concentrating_formatted_nodes, &SB_ALLOC_… argument 37 #define displacing_large_files(s) test_bit(_ALLOC_displacing_large_files, &SB_ALLOC_OPTS(s)) argument 38 #define displacing_new_packing_localities(s) test_bit(_ALLOC_displacing_new_packing_localities, &S… argument 45 #define TEST_OPTION(optname, s) \ argument 48 static inline void get_bit_address(struct super_block *s, in get_bit_address() 62 int is_reusable(struct super_block *s, b_blocknr_t block, int bit_value) in is_reusable() 120 static inline int is_block_in_journal(struct super_block *s, unsigned int bmap, in is_block_in_journal() 147 struct super_block *s = th->t_super; in scan_bitmap_block() local 274 static int bmap_hash_id(struct super_block *s, u32 id) in bmap_hash_id() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | megasas.c | 154 static bool megasas_use_queue64(MegasasState *s) in megasas_use_queue64() 159 static bool megasas_use_msix(MegasasState *s) in megasas_use_msix() 164 static bool megasas_is_jbod(MegasasState *s) in megasas_is_jbod() 169 static void megasas_frame_set_cmd_status(MegasasState *s, in megasas_frame_set_cmd_status() 177 static void megasas_frame_set_scsi_status(MegasasState *s, in megasas_frame_set_scsi_status() 203 static uint64_t megasas_frame_get_context(MegasasState *s, in megasas_frame_get_context() 281 static int megasas_map_sgl(MegasasState *s, MegasasCmd *cmd, union mfi_sgl *sgl) in megasas_map_sgl() 439 static int megasas_next_index(MegasasState *s, int index, int limit) in megasas_next_index() 448 static MegasasCmd *megasas_lookup_frame(MegasasState *s, in megasas_lookup_frame() 468 static void megasas_unmap_frame(MegasasState *s, MegasasCmd *cmd) in megasas_unmap_frame() [all …]
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | i8254.c | 63 static void kvm_pit_update_clock_offset(KVMPITState *s) in kvm_pit_update_clock_offset() argument 89 KVMPITState *s = KVM_PIT(pit); in kvm_pit_get() local 131 KVMPITState *s = KVM_PIT(pit); in kvm_pit_put() local 169 static void kvm_pit_set_gate(PITCommonState *s, PITChannelState *sc, int val) in kvm_pit_set_gate() 194 static void kvm_pit_get_channel_info(PITCommonState *s, PITChannelState *sc, in kvm_pit_get_channel_info() 204 PITCommonState *s = PIT_COMMON(dev); in kvm_pit_reset() local 214 PITChannelState *s = &pit->channels[0]; in kvm_pit_irq_control() local 226 KVMPITState *s = opaque; in kvm_pit_vm_state_change() local 243 KVMPITState *s = KVM_PIT(pit); in kvm_pit_realizefn() local
|