Lines Matching refs:einj
139 ACPI_TABLE_EINJ *einj = sc->sc_tab.einj;
154 if (einj->Header.Length < sizeof(*einj)) {
157 einj->Header.Length, sizeof(*einj));
160 if (einj->HeaderLength <
161 sizeof(*einj) - offsetof(ACPI_TABLE_EINJ, HeaderLength)) {
164 einj->HeaderLength,
165 sizeof(*einj) - offsetof(ACPI_TABLE_EINJ, HeaderLength));
168 nentries = einj->Entries;
169 maxnentries = (einj->Header.Length - sizeof(*einj))/sizeof(*entry);
176 if (nentries*sizeof(*entry) < einj->Header.Length - sizeof(*einj)) {
179 einj->Header.Length - nentries*sizeof(*entry));
183 * Create sysctl hw.acpi.apei.einj for all EINJ-related knobs.
187 CTLTYPE_NODE, "einj",
193 " hw.acpi.apei.einj: %d\n", error);
209 entry = (ACPI_EINJ_ENTRY *)(einj + 1);
212 entry = (ACPI_EINJ_ENTRY *)(einj + 1);
218 entry = (ACPI_EINJ_ENTRY *)(einj + 1);
226 * Create sysctl hw.acpi.apei.einj.action for individual actions.
237 " hw.acpi.apei.einj.action: %d\n", error);
254 entry = (ACPI_EINJ_ENTRY *)(einj + 1);
281 " sysctl hw.acpi.apei.einj.action.%s: %d\n",
299 " sysctl hw.acpi.apei.einj.trigger: %d\n",
354 " sysctl hw.acpi.apei.einj.types: %d\n",
675 * Handle sysctl queries under hw.acpi.apei.einj.action.*.
709 if (sc->sc_tab.einj == NULL) {
769 * Handle sysctl hw.acpi.apei.einj.trigger.
802 if (sc->sc_tab.einj == NULL) {
839 * Handle sysctl hw.acpi.apei.einj.types.
867 if (sc->sc_tab.einj == NULL) {