Home
last modified time | relevance | path

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

12

/qemu/pc-bios/s390-ccw/
H A Ddasd-ipl.c75 static int run_dynamic_ccw_program(SubChannelId schid, uint16_t cutype, in run_dynamic_ccw_program() argument
87 rc = do_cio(schid, cutype, cpa, CCW_FMT0); in run_dynamic_ccw_program()
113 static void run_readipl(SubChannelId schid, uint16_t cutype) in run_readipl() argument
115 if (do_cio(schid, cutype, 0x00, CCW_FMT0)) { in run_readipl()
190 static void run_ipl1(SubChannelId schid, uint16_t cutype) in run_ipl1() argument
194 if (do_cio(schid, cutype, startAddr, CCW_FMT0)) { in run_ipl1()
201 if (run_dynamic_ccw_program(schid, cutype, addr)) { in run_ipl2()
210 void dasd_ipl(SubChannelId schid, uint16_t cutype) in dasd_ipl() argument
217 run_readipl(schid, cutype); in dasd_ipl()
226 run_ipl1(schid, cutype); in dasd_ipl()
[all …]
H A Dcio.c41 void enable_subchannel(SubChannelId schid) in enable_subchannel() argument
45 stsch_err(schid, &schib); in enable_subchannel()
47 msch(schid, &schib); in enable_subchannel()
50 uint16_t cu_type(SubChannelId schid) in cu_type() argument
337 rc = ssch(schid, &orb); in __do_cio()
340 tsch(schid, irb); in __do_cio()
351 rc = tsch(schid, irb); in __do_cio()
382 rc = __do_cio(schid, ccw_addr, fmt, &irb); in do_cio()
410 print_int(" ssid ", schid.ssid); in do_cio()
411 print_int(" cssid ", schid.cssid); in do_cio()
[all …]
H A Dcio.h162 struct subchannel_id schid; member
365 void enable_subchannel(SubChannelId schid);
366 uint16_t cu_type(SubChannelId schid);
377 register struct subchannel_id reg1 asm ("1") = schid; in stsch_err()
393 register struct subchannel_id reg1 asm ("1") = schid; in msch()
408 register struct subchannel_id reg1 asm ("1") = schid; in msch_err()
422 static inline int tsch(struct subchannel_id schid, struct irb *addr) in tsch() argument
424 register struct subchannel_id reg1 asm ("1") = schid; in tsch()
439 register struct subchannel_id reg1 asm("1") = schid; in ssch()
453 static inline int csch(struct subchannel_id schid) in csch() 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()
137 vr->cookie = virtio_notify(vr->schid, vr->id, vr->cookie); in vring_notify()
214 if (drain_irqs(vr->schid)) { in virtio_run()
229 IPL_assert(virtio_is_supported(vdev->schid), "PE"); in virtio_setup_ccw()
296 vdev->vrings[i].schid = vdev->schid; in virtio_setup_ccw()
307 bool virtio_is_supported(SubChannelId schid) in virtio_is_supported() argument
[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
273 int drain_irqs(SubChannelId schid);
H A Ds390-ccw.h66 bool virtio_is_supported(SubChannelId schid);
67 int virtio_blk_setup_device(SubChannelId schid);
H A Ddasd-ipl.h14 void dasd_ipl(SubChannelId schid, uint16_t cutype);
H A Dvirtio-scsi.c434 int virtio_scsi_setup_device(SubChannelId schid) in virtio_scsi_setup_device() argument
438 vdev->schid = schid; in virtio_scsi_setup_device()
H A Dvirtio-scsi.h72 int virtio_scsi_setup_device(SubChannelId schid);
H A Dnetmain.c443 SubChannelId *schid = (SubChannelId *) 184; in write_subsystem_identification() local
446 *schid = net_schid; in write_subsystem_identification()
H A Dvirtio-net.c86 if (drain_irqs(txvq->schid)) { in send()
/qemu/target/s390x/
H A Dioinst.c40 int *schid) in ioinst_disassemble_sch_ident() argument
56 *schid = IOINST_SCHID_NR(value); in ioinst_disassemble_sch_ident()
62 int cssid, ssid, schid, m; in ioinst_handle_xsch() local
70 sch = css_find_subch(m, cssid, ssid, schid); in ioinst_handle_xsch()
80 int cssid, ssid, schid, m; in ioinst_handle_csch() local
98 int cssid, ssid, schid, m; in ioinst_handle_hsch() local
135 int cssid, ssid, schid, m; in ioinst_handle_msch() local
194 int cssid, ssid, schid, m; in ioinst_handle_ssch() local
263 int cssid, ssid, schid, m; in ioinst_handle_stsch() local
337 int cssid, ssid, schid, m; in ioinst_handle_tsch() local
[all …]
H A Dtrace-events9 ioinst_sch_id(const char *insn, int cssid, int ssid, int schid) "IOINST: %s (%x.%x.%04x)"
/qemu/hw/s390x/
H A Dcss.c368 s->migrated_schid = s->schid; in subch_dev_pre_save()
615 sch->schid, in css_inject_io_interrupt()
2154 uint32_t schid; in css_find_free_subch() local
2156 for (schid = 0; schid <= MAX_SCHID; schid++) { in css_find_free_subch()
2158 return schid; in css_find_free_subch()
2178 assert(schid); in css_find_free_subch_for_devno()
2190 *schid = free_schid; in css_find_free_subch_for_devno()
2222 *schid = free_schid; in css_find_free_subch_and_devno()
2282 s_set->sch[schid] = sch; in css_subch_assign()
2542 uint16_t schid = 0; in css_create_sch() local
[all …]
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.c145 css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, in s390_ccw_realize()
150 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in s390_ccw_realize()
165 css_subch_assign(sch->cssid, sch->ssid, sch->schid, sch->devno, NULL); in s390_ccw_unrealize()
H A Dipl.c531 uint16_t schid; in is_virtio_ccw_device_of_type() local
541 for (schid = 0; schid < MAX_SCHID; schid++) { in is_virtio_ccw_device_of_type()
543 sch = css_find_subch(1, cssid, ssid, schid); in is_virtio_ccw_device_of_type()
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 Dccw-device.c30 dev->subch_id.devid = sch->schid; in ccw_device_refill_ids()
H A Dcss-bridge.c54 css_generate_sch_crws(sch->cssid, sch->ssid, sch->schid, 1, 0); in ccw_device_unplug()
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,
243 uint16_t schid);
247 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)) | \

12