Lines Matching refs:cx

161 static int	acpi_cst_cx_setup(struct acpi_cst_cx *cx);
665 struct acpi_cst_cx *cx = &sc->cst_cx_states[i]; in acpi_cst_cx_probe_cst() local
667 if (cx->type >= ACPI_STATE_C3) { in acpi_cst_cx_probe_cst()
831 struct acpi_cst_cx *cx = &sc->cst_cx_states[i]; in acpi_cst_startup() local
835 if (cx->type >= ACPI_STATE_C3 && !bm_rld_done && in acpi_cst_startup()
842 error = acpi_cst_cx_setup(cx); in acpi_cst_startup()
1328 acpi_cst_c1_halt_enter(const struct acpi_cst_cx *cx __unused) in acpi_cst_c1_halt_enter()
1334 acpi_cst_cx_io_enter(const struct acpi_cst_cx *cx) in acpi_cst_cx_io_enter() argument
1341 bus_space_read_1(cx->btag, cx->bhand, 0); in acpi_cst_cx_io_enter()
1350 acpi_cst_cx_setup(struct acpi_cst_cx *cx) in acpi_cst_cx_setup() argument
1352 cx->flags &= ~ACPI_CST_CX_FLAG_BM_STS; in acpi_cst_cx_setup()
1353 cx->preamble = ACPI_CST_CX_PREAMBLE_NONE; in acpi_cst_cx_setup()
1355 if (cx->type >= ACPI_STATE_C3) { in acpi_cst_cx_setup()
1365 cx->flags |= ACPI_CST_CX_FLAG_BM_STS; in acpi_cst_cx_setup()
1373 cx->preamble = ACPI_CST_CX_PREAMBLE_BM_ARB; in acpi_cst_cx_setup()
1375 cx->preamble = ACPI_CST_CX_PREAMBLE_WBINVD; in acpi_cst_cx_setup()
1377 return acpi_cst_md_cx_setup(cx); in acpi_cst_cx_setup()
1386 struct acpi_cst_cx *cx = &sc->cst_cx_states[i]; in acpi_cst_free_resource() local
1388 if (cx->res != NULL) in acpi_cst_free_resource()
1389 bus_release_resource(sc->cst_dev, cx->res_type, cx->rid, cx->res); in acpi_cst_free_resource()
1390 memset(cx, 0, sizeof(*cx)); in acpi_cst_free_resource()