Lines Matching refs:sclp
28 static SCLPDevice *sclp; in get_sclp_device() local
30 if (!sclp) { in get_sclp_device()
31 sclp = S390_CCW_MACHINE(qdev_get_machine())->sclp; in get_sclp_device()
33 return sclp; in get_sclp_device()
107 static void read_SCP_info(SCLPDevice *sclp, SCCB *sccb) in read_SCP_info() argument
156 rnsize = 1 << (sclp->increment_size - 20); in read_SCP_info()
165 rnmax = machine->ram_size >> sclp->increment_size; in read_SCP_info()
180 static void sclp_read_cpu_info(SCLPDevice *sclp, SCCB *sccb) in sclp_read_cpu_info() argument
208 static void sclp_configure_io_adapter(SCLPDevice *sclp, SCCB *sccb, in sclp_configure_io_adapter() argument
237 static void sclp_execute(SCLPDevice *sclp, SCCB *sccb, uint32_t code) in sclp_execute() argument
239 SCLPDeviceClass *sclp_c = SCLP_GET_CLASS(sclp); in sclp_execute()
240 SCLPEventFacility *ef = sclp->event_facility; in sclp_execute()
246 sclp_c->read_SCP_info(sclp, sccb); in sclp_execute()
249 sclp_c->read_cpu_info(sclp, sccb); in sclp_execute()
252 sclp_configure_io_adapter(sclp, sccb, true); in sclp_execute()
255 sclp_configure_io_adapter(sclp, sccb, false); in sclp_execute()
271 SCLPDevice *sclp = get_sclp_device(); in sclp_service_call_protected() local
272 SCLPDeviceClass *sclp_c = SCLP_GET_CLASS(sclp); in sclp_service_call_protected()
287 sclp_c->execute(sclp, work_sccb, code); in sclp_service_call_protected()
291 sclp_c->service_interrupt(sclp, SCLP_PV_DUMMY_ADDR); in sclp_service_call_protected()
298 SCLPDevice *sclp = get_sclp_device(); in sclp_service_call() local
299 SCLPDeviceClass *sclp_c = SCLP_GET_CLASS(sclp); in sclp_service_call()
341 sclp_c->execute(sclp, work_sccb, code); in sclp_service_call()
346 sclp_c->service_interrupt(sclp, sccb); in sclp_service_call()
351 static void service_interrupt(SCLPDevice *sclp, uint32_t sccb) in service_interrupt() argument
353 SCLPEventFacility *ef = sclp->event_facility; in service_interrupt()
370 SCLPDevice *sclp = get_sclp_device(); in sclp_service_interrupt() local
371 SCLPDeviceClass *sclp_c = SCLP_GET_CLASS(sclp); in sclp_service_interrupt()
373 sclp_c->service_interrupt(sclp, sccb); in sclp_service_interrupt()
380 SCLPDevice *sclp = SCLP(dev); in sclp_realize() local
389 if (!sysbus_realize(SYS_BUS_DEVICE(sclp->event_facility), errp)) { in sclp_realize()
402 static void sclp_memory_init(SCLPDevice *sclp) in sclp_memory_init() argument
418 sclp->increment_size = increment_size; in sclp_memory_init()
423 SCLPDevice *sclp = SCLP(obj); in sclp_init() local
429 sclp->event_facility = EVENT_FACILITY(new); in sclp_init()
431 sclp_memory_init(sclp); in sclp_init()