Home
last modified time | relevance | path

Searched refs:schid (Results 1 – 24 of 24) sorted by relevance

/qemu/pc-bios/s390-ccw/
H A Ddasd-ipl.c76 static int run_dynamic_ccw_program(SubChannelId schid, uint16_t cutype, in run_dynamic_ccw_program() argument
88 rc = do_cio(schid, cutype, cpa, CCW_FMT0); in run_dynamic_ccw_program()
114 static int run_readipl(SubChannelId schid, uint16_t cutype) in run_readipl() argument
116 return do_cio(schid, cutype, 0x00, CCW_FMT0); in run_readipl()
182 static int run_ipl1(SubChannelId schid, uint16_t cutype) in run_ipl1() argument
186 return do_cio(schid, cutype, startAddr, CCW_FMT0); in run_ipl1()
189 static int run_ipl2(SubChannelId schid, uint16_t cutype, uint32_t addr) in run_ipl2() argument
191 return run_dynamic_ccw_program(schid, cutype, addr); in run_ipl2()
198 int dasd_ipl(SubChannelId schid, uint16_t cutype) in dasd_ipl() argument
205 if (run_readipl(schid, cutype)) { in dasd_ipl()
[all …]
H A Dcio.c23 static int __do_cio(SubChannelId schid, uint32_t ccw_addr, int fmt, Irb *irb);
42 void enable_subchannel(SubChannelId schid) in enable_subchannel() argument
46 stsch_err(schid, &schib); in enable_subchannel()
48 msch(schid, &schib); in enable_subchannel()
51 uint16_t cu_type(SubChannelId schid) in cu_type() argument
61 if (do_cio(schid, CU_TYPE_UNKNOWN, ptr2u32(&sense_id_ccw), CCW_FMT1)) { in cu_type()
69 int basic_sense(SubChannelId schid, uint16_t cutype, void *sense_data, in basic_sense() argument
79 return __do_cio(schid, ptr2u32(&senseCcw), CCW_FMT1, &irb); in basic_sense()
310 static int __do_cio(SubChannelId schid, uint32_t ccw_addr, int fmt, Irb *irb) in __do_cio() argument
332 rc = ssch(schid, &orb); in __do_cio()
[all …]
H A Dcio.h162 struct subchannel_id schid; member
367 void enable_subchannel(SubChannelId schid);
368 uint16_t cu_type(SubChannelId schid);
369 int basic_sense(SubChannelId schid, uint16_t cutype, void *sense_data,
371 int do_cio(SubChannelId schid, uint16_t cutype, uint32_t ccw_addr, int fmt);
377 static inline int stsch_err(struct subchannel_id schid, struct schib *addr) in stsch_err() argument
379 register struct subchannel_id reg1 asm ("1") = schid; in stsch_err()
393 static inline int msch(struct subchannel_id schid, struct schib *addr) in msch() argument
395 register struct subchannel_id reg1 asm ("1") = schid; in msch()
408 static inline int msch_err(struct subchannel_id schid, struct schib *addr) in msch_err() argument
[all …]
H A Dvirtio.c32 .schid = { .one = 1 },
65 static long virtio_notify(SubChannelId schid, int vq_idx, long cookie) in virtio_notify() argument
67 return kvm_hypercall(KVM_S390_VIRTIO_CCW_NOTIFY, *(u32 *)&schid, in virtio_notify()
75 int drain_irqs(SubChannelId schid) in drain_irqs() argument
82 if (tsch(schid, &irb)) { in drain_irqs()
106 return do_cio(vdev->schid, vdev->senseid.cu_type, ptr2u32(&ccw), CCW_FMT1); in run_ccw()
137 vr->cookie = virtio_notify(vr->schid, vr->id, vr->cookie); in vring_notify()
214 if (drain_irqs(vr->schid)) { in virtio_run()
234 if (!virtio_is_supported(vdev->schid)) { in virtio_setup_ccw()
319 vdev->vrings[i].schid = vdev->schid; in virtio_setup_ccw()
[all …]
H A Dvirtio-blkdev.c45 if (drain_irqs(vr->schid)) { in virtio_blk_read_many()
225 int virtio_blk_setup_device(SubChannelId schid) in virtio_blk_setup_device() argument
230 vdev->schid = schid; in virtio_blk_setup_device()
H A Dvirtio.h106 SubChannelId schid; member
240 SubChannelId schid; member
272 int drain_irqs(SubChannelId schid);
H A Ds390-ccw.h72 bool virtio_is_supported(SubChannelId schid);
73 int virtio_blk_setup_device(SubChannelId schid);
H A Ddasd-ipl.h14 int dasd_ipl(SubChannelId schid, uint16_t cutype);
H A Dvirtio-scsi.c479 int virtio_scsi_setup_device(SubChannelId schid) in virtio_scsi_setup_device() argument
483 vdev->schid = schid; in virtio_scsi_setup_device()
H A Dvirtio-scsi.h72 int virtio_scsi_setup_device(SubChannelId schid);
H A Dvirtio-net.c91 if (drain_irqs(txvq->schid)) { in send()
/qemu/target/s390x/
H A Dioinst.c41 int *schid) in ioinst_disassemble_sch_ident() argument
57 *schid = IOINST_SCHID_NR(value); in ioinst_disassemble_sch_ident()
63 int cssid, ssid, schid, m; in ioinst_handle_xsch() local
66 if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { in ioinst_handle_xsch()
70 trace_ioinst_sch_id("xsch", cssid, ssid, schid); in ioinst_handle_xsch()
71 sch = css_find_subch(m, cssid, ssid, schid); in ioinst_handle_xsch()
81 int cssid, ssid, schid, m; in ioinst_handle_csch() local
84 if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { in ioinst_handle_csch()
88 trace_ioinst_sch_id("csch", cssid, ssid, schid); in ioinst_handle_csch()
89 sch = css_find_subch(m, cssid, ssid, schid); in ioinst_handle_csch()
[all …]
H A Dtrace-events5 ioinst_sch_id(const char *insn, int cssid, int ssid, int schid) "IOINST: %s (%x.%x.%04x)"
/qemu/hw/s390x/
H A Dcss.c360 s->migrated_schid = s->schid; in subch_dev_pre_save()
371 if (s->migrated_schid != s->schid) { in subch_dev_post_load()
372 if (css_find_subch(true, s->cssid, s->ssid, s->schid) == s) { in subch_dev_post_load()
378 css_subch_assign(s->cssid, s->ssid, s->schid, s->devno, NULL); in subch_dev_post_load()
381 s->schid = s->migrated_schid; in subch_dev_post_load()
382 css_subch_assign(s->cssid, s->ssid, s->schid, s->devno, s); in subch_dev_post_load()
583 trace_css_io_interrupt(sch->cssid, sch->ssid, sch->schid, in css_inject_io_interrupt()
586 sch->schid, in css_inject_io_interrupt()
608 trace_css_io_interrupt(sch->cssid, sch->ssid, sch->schid, in css_conditional_io_interrupt()
616 sch->schid, in css_conditional_io_interrupt()
[all …]
H A Ds390-hypercall.c35 int cssid, ssid, schid, m; in handle_virtio_ccw_notify() local
38 if (ioinst_disassemble_sch_ident(subch_id, &m, &cssid, &ssid, &schid)) { in handle_virtio_ccw_notify()
41 sch = css_find_subch(m, cssid, ssid, schid); in handle_virtio_ccw_notify()
H A Dtrace-events8 css_assign_subch(const char *do_assign, uint8_t cssid, uint8_t ssid, uint16_t schid, uint16_t devno…
9 css_io_interrupt(int cssid, int ssid, int schid, uint32_t intparm, uint8_t isc, const char *conditi…
14 virtio_ccw_interpret_ccw(int cssid, int ssid, int schid, int cmd_code) "VIRTIO-CCW: %x.%x.%04x: int…
15 virtio_ccw_new_device(int cssid, int ssid, int schid, int devno, const char *devno_mode) "VIRTIO-CC…
H A Ds390-ccw.c143 css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, in s390_ccw_realize()
148 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in s390_ccw_realize()
162 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in s390_ccw_unrealize()
H A Dvirtio-ccw.c157 uint32_t sch_id = (css_build_subchannel_id(sch) << 16) | sch->schid; in virtio_ccw_ioeventfd_assign()
335 trace_virtio_ccw_interpret_ccw(sch->cssid, sch->ssid, sch->schid, in virtio_ccw_cb()
768 sch->cssid, sch->ssid, sch->schid, sch->devno, in virtio_ccw_device_realize()
792 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in virtio_ccw_device_realize()
808 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in virtio_ccw_device_unrealize()
839 __func__, sch->cssid, sch->ssid, sch->schid); in virtio_set_ind_atomic()
1196 css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, in virtio_ccw_device_plugged()
H A Dcss-bridge.c54 css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, 1, 0); in ccw_device_unplug()
H A Dccw-device.c34 dev->subch_id.devid = sch->schid; in ccw_device_refill_ids()
H A D3270-ccw.c148 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in emulated_ccw_3270_realize()
/qemu/include/hw/s390x/
H A Dcss.h126 uint16_t schid; member
197 uint16_t schid);
200 void css_subch_assign(uint8_t cssid, uint8_t ssid, uint16_t schid,
214 void css_generate_sch_crws(uint8_t cssid, uint8_t ssid, uint16_t schid,
242 uint16_t schid);
246 bool css_schid_final(int m, uint8_t cssid, uint8_t ssid, uint16_t schid);
H A Dioinst.h256 int *schid);
/qemu/linux-headers/asm-s390/
H A Dkvm.h116 #define KVM_S390_INT_IO(ai,cssid,ssid,schid) \ argument
117 (((schid)) | \