Lines Matching refs:drck
36 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_type() local
38 return 1 << drck->typeshift; in spapr_drc_type()
43 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_index() local
49 return (drck->typeshift << DRC_INDEX_TYPE_SHIFT) in spapr_drc_index()
55 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_release() local
57 drck->release(drc->dev); in spapr_drc_release()
258 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_name() local
281 return g_strdup_printf("%s%d", drck->drc_name_prefix, drc->id); in spapr_drc_name()
415 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_unplug_request() local
423 if (drc->state != drck->empty_state) { in spapr_drc_unplug_request()
433 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_reset() local
448 drc->state = drck->ready_state; in spapr_drc_reset()
456 drc->state = drck->empty_state; in spapr_drc_reset()
483 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_drc_needed() local
498 return drc->state != drck->ready_state || in spapr_drc_needed()
574 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_dr_connector_instance_init() local
581 drc->state = drck->empty_state; in spapr_dr_connector_instance_init()
661 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_physical_class_init() local
665 drck->dr_entity_sense = physical_entity_sense; in spapr_drc_physical_class_init()
666 drck->isolate = drc_isolate_physical; in spapr_drc_physical_class_init()
667 drck->unisolate = drc_unisolate_physical; in spapr_drc_physical_class_init()
668 drck->ready_state = SPAPR_DRC_STATE_PHYSICAL_CONFIGURED; in spapr_drc_physical_class_init()
669 drck->empty_state = SPAPR_DRC_STATE_PHYSICAL_POWERON; in spapr_drc_physical_class_init()
674 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_logical_class_init() local
676 drck->dr_entity_sense = logical_entity_sense; in spapr_drc_logical_class_init()
677 drck->isolate = drc_isolate_logical; in spapr_drc_logical_class_init()
678 drck->unisolate = drc_unisolate_logical; in spapr_drc_logical_class_init()
679 drck->ready_state = SPAPR_DRC_STATE_LOGICAL_CONFIGURED; in spapr_drc_logical_class_init()
680 drck->empty_state = SPAPR_DRC_STATE_LOGICAL_UNUSABLE; in spapr_drc_logical_class_init()
685 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_cpu_class_init() local
687 drck->typeshift = SPAPR_DR_CONNECTOR_TYPE_SHIFT_CPU; in spapr_drc_cpu_class_init()
688 drck->typename = "CPU"; in spapr_drc_cpu_class_init()
689 drck->drc_name_prefix = "CPU "; in spapr_drc_cpu_class_init()
690 drck->release = spapr_core_release; in spapr_drc_cpu_class_init()
691 drck->dt_populate = spapr_core_dt_populate; in spapr_drc_cpu_class_init()
696 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_pci_class_init() local
698 drck->typeshift = SPAPR_DR_CONNECTOR_TYPE_SHIFT_PCI; in spapr_drc_pci_class_init()
699 drck->typename = "28"; in spapr_drc_pci_class_init()
700 drck->drc_name_prefix = "C"; in spapr_drc_pci_class_init()
701 drck->release = spapr_phb_remove_pci_device_cb; in spapr_drc_pci_class_init()
702 drck->dt_populate = spapr_pci_dt_populate; in spapr_drc_pci_class_init()
707 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_lmb_class_init() local
709 drck->typeshift = SPAPR_DR_CONNECTOR_TYPE_SHIFT_LMB; in spapr_drc_lmb_class_init()
710 drck->typename = "MEM"; in spapr_drc_lmb_class_init()
711 drck->drc_name_prefix = "LMB "; in spapr_drc_lmb_class_init()
712 drck->release = spapr_lmb_release; in spapr_drc_lmb_class_init()
713 drck->dt_populate = spapr_lmb_dt_populate; in spapr_drc_lmb_class_init()
718 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_phb_class_init() local
720 drck->typeshift = SPAPR_DR_CONNECTOR_TYPE_SHIFT_PHB; in spapr_drc_phb_class_init()
721 drck->typename = "PHB"; in spapr_drc_phb_class_init()
722 drck->drc_name_prefix = "PHB "; in spapr_drc_phb_class_init()
723 drck->release = spapr_phb_release; in spapr_drc_phb_class_init()
724 drck->dt_populate = spapr_phb_dt_populate; in spapr_drc_phb_class_init()
729 SpaprDrcClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); in spapr_drc_pmem_class_init() local
731 drck->typeshift = SPAPR_DR_CONNECTOR_TYPE_SHIFT_PMEM; in spapr_drc_pmem_class_init()
732 drck->typename = "PMEM"; in spapr_drc_pmem_class_init()
733 drck->drc_name_prefix = "PMEM "; in spapr_drc_pmem_class_init()
734 drck->release = NULL; in spapr_drc_pmem_class_init()
735 drck->dt_populate = spapr_pmem_dt_populate; in spapr_drc_pmem_class_init()
808 SpaprDrcClass *drck in spapr_drc_by_id() local
811 return spapr_drc_by_index(drck->typeshift << DRC_INDEX_TYPE_SHIFT in spapr_drc_by_id()
869 SpaprDrcClass *drck; in spapr_dt_drc() local
880 drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in spapr_dt_drc()
906 drc_types = g_string_append(drc_types, drck->typename); in spapr_dt_drc()
988 SpaprDrcClass *drck; in rtas_set_isolation_state() local
996 drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in rtas_set_isolation_state()
1000 return drck->isolate(drc); in rtas_set_isolation_state()
1003 return drck->unisolate(drc); in rtas_set_isolation_state()
1095 SpaprDrcClass *drck; in rtas_get_sensor_state() local
1120 drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in rtas_get_sensor_state()
1121 sensor_state = drck->dr_entity_sense(drc); in rtas_get_sensor_state()
1157 SpaprDrcClass *drck; in rtas_ibm_configure_connector() local
1189 drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); in rtas_ibm_configure_connector()
1206 if (drck->dt_populate(drc, spapr, fdt, &drc->fdt_start_offset, in rtas_ibm_configure_connector()
1242 drc->state = drck->ready_state; in rtas_ibm_configure_connector()