Lines Matching defs:interface

46  * Bit masks for the AMW0 interface
53 * Method IDs for WMID interface
283 /* Each low-level interface must define at least some of the following */
288 /* The capabilities this interface provides */
291 /* Private data for the current interface */
294 /* debugfs entries associated with this interface */
298 /* The static interface pointer, points to the currently detected interface */
299 static struct wmi_interface *interface;
318 if (!interface)
322 interface->capability |= ACER_CAP_MAILLED;
325 interface->capability |= ACER_CAP_BRIGHTNESS;
367 /* The Aspire One has a dummy ACPI-WMI interface - disable it */
637 interface->capability &= ~ACER_CAP_BRIGHTNESS;
686 * acer interface, as there is no native backlight interface.
714 * General interface convenience methods
719 return interface->capability & cap;
723 * AMW0 (V1) interface
888 interface->capability |= ACER_CAP_MAILLED;
930 interface->capability |= ACER_CAP_WIRELESS;
954 interface->capability |= ACER_CAP_WIRELESS;
977 interface->capability |= ACER_CAP_BLUETOOTH;
985 interface->capability |= ACER_CAP_BRIGHTNESS;
1002 * New interface (The WMID interface)
1308 interface->capability |= ACER_CAP_WIRELESS;
1310 interface->capability |= ACER_CAP_THREEG;
1312 interface->capability |= ACER_CAP_BLUETOOTH;
1349 interface->capability |= ACER_CAP_WIRELESS;
1351 interface->capability |= ACER_CAP_THREEG;
1353 interface->capability |= ACER_CAP_BLUETOOTH;
1371 * Generic Device (interface-independent)
1378 switch (interface->type) {
1408 if (interface->capability & cap) {
1409 switch (interface->type) {
1452 * capability isn't available on the given interface
2171 struct acer_data *data = &interface->data;
2192 struct acer_data *data = &interface->data;
2217 struct acer_data *data = &interface->data;
2240 debugfs_remove_recursive(interface->debug.root);
2245 interface->debug.root = debugfs_create_dir("acer-wmi", NULL);
2247 debugfs_create_u32("devices", S_IRUGO, interface->debug.root,
2248 &interface->debug.wmid_devices);
2283 * Detect which ACPI-WMI interface we're using.
2286 interface = &AMW0_V2_interface;
2289 interface = &wmid_interface;
2292 interface = &wmid_v2_interface;
2294 if (interface)
2297 if (wmi_has_guid(WMID_GUID2) && interface) {
2303 interface->capability |= ACER_CAP_BRIGHTNESS;
2304 } else if (!wmi_has_guid(WMID_GUID2) && interface && !has_type_aa && force_caps == -1) {
2310 interface = &AMW0_interface;
2321 if (!interface) {
2322 pr_err("No or unsupported WMI interface, unable to load\n");
2332 interface->capability &= ~ACER_CAP_BRIGHTNESS;
2335 interface->capability |= ACER_CAP_SET_FUNCTION_MODE;
2338 interface->capability = force_caps;
2341 (interface->capability & ACER_CAP_SET_FUNCTION_MODE)) {
2384 interface->debug.wmid_devices = get_wmid_devices();