Lines Matching refs:method
203 acpi_system76_ctrl_map(struct acpi_system76_softc *sc, int method) in acpi_system76_ctrl_map() argument
206 switch (method) { in acpi_system76_ctrl_map()
222 acpi_system76_update(struct acpi_system76_softc *sc, int method, bool set) in acpi_system76_update() argument
233 if ((ctrl = acpi_system76_ctrl_map(sc, method)) == NULL) in acpi_system76_update()
236 switch (method) { in acpi_system76_update()
240 Arg[0].Integer.Value = method == S76_CTRL_BCTH ? 1 : 0; in acpi_system76_update()
251 s76_sysctl_table[method].set_method, &Args, &Buf); in acpi_system76_update()
254 s76_sysctl_table[method].get_method, &Args, &Buf); in acpi_system76_update()
263 status = acpi_SetInteger(sc->handle, s76_sysctl_table[method].set_method, in acpi_system76_update()
266 status = acpi_GetInteger(sc->handle, s76_sysctl_table[method].get_method, in acpi_system76_update()
273 s76_sysctl_table[method].name); in acpi_system76_update()
284 int method; in acpi_system76_notify_update() local
291 for (method = 1; method < S76_CTRL_MAX; method++) { in acpi_system76_notify_update()
292 if (method == S76_CTRL_BCTL || in acpi_system76_notify_update()
293 method == S76_CTRL_BCTH) in acpi_system76_notify_update()
295 acpi_system76_update(sc, method, false); in acpi_system76_notify_update()
307 int method; in acpi_system76_check() local
312 for (method = 1; method < S76_CTRL_MAX; method++) { in acpi_system76_check()
313 if ((ctrl = acpi_system76_ctrl_map(sc, method)) == NULL) in acpi_system76_check()
317 if (method == S76_CTRL_BCTL || in acpi_system76_check()
318 method == S76_CTRL_BCTH) { in acpi_system76_check()
320 acpi_system76_update(sc, method, false); in acpi_system76_check()
325 s76_sysctl_table[method].get_method, &ctrl->val))) { in acpi_system76_check()
328 s76_sysctl_table[method].desc); in acpi_system76_check()
331 acpi_system76_update(sc, method, false); in acpi_system76_check()
361 int val, method, error; in acpi_system76_sysctl_handler() local
367 method = oidp->oid_arg2; in acpi_system76_sysctl_handler()
368 if ((ctrl = acpi_system76_ctrl_map(sc, method)) == NULL) in acpi_system76_sysctl_handler()
383 if (method != S76_CTRL_BCTL && method != S76_CTRL_BCTH) in acpi_system76_sysctl_handler()
388 switch (method) { in acpi_system76_sysctl_handler()
417 error = acpi_system76_update(sc, method, update); in acpi_system76_sysctl_handler()
427 uint32_t method; in acpi_system76_init() local
438 for (method = 1; method < S76_CTRL_MAX; method++) { in acpi_system76_init()
439 if ((ctrl = acpi_system76_ctrl_map(sc, method)) == NULL) in acpi_system76_init()
445 if (method == S76_CTRL_KBB) { in acpi_system76_init()
454 SYSCTL_CHILDREN(sc->sysctl_tree), OID_AUTO, s76_sysctl_table[method].name, in acpi_system76_init()
456 sc, method, acpi_system76_sysctl_handler, "IU", s76_sysctl_table[method].desc); in acpi_system76_init()