Lines Matching +full:cmd +full:- +full:cnt +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0
39 static union acpi_object *adxl_dsm(int cmd, union acpi_object argv[]) in adxl_dsm() argument
44 cmd, argv, ACPI_TYPE_PACKAGE); in adxl_dsm()
46 pr_info("DSM call failed for cmd=%d\n", cmd); in adxl_dsm()
50 if (obj->package.count != 2) { in adxl_dsm()
51 pr_info("Bad pkg count %d\n", obj->package.count); in adxl_dsm()
55 o = obj->package.elements; in adxl_dsm()
56 if (o->type != ACPI_TYPE_INTEGER) { in adxl_dsm()
57 pr_info("Bad 1st element type %d\n", o->type); in adxl_dsm()
60 if (o->integer.value) { in adxl_dsm()
61 pr_info("Bad ret val %llu\n", o->integer.value); in adxl_dsm()
65 o = obj->package.elements + 1; in adxl_dsm()
66 if (o->type != ACPI_TYPE_PACKAGE) { in adxl_dsm()
67 pr_info("Bad 2nd element type %d\n", o->type); in adxl_dsm()
78 * adxl_get_component_names - get list of memory component names
93 * adxl_decode - ask BIOS to decode a system address to memory address
99 * each component name returned by adxl_get_component_names().
101 * mirror channel number for a non-mirrored address) are set to ~0ull.
106 int i, cnt; in adxl_decode() local
109 return -EOPNOTSUPP; in adxl_decode()
119 return -EINVAL; in adxl_decode()
121 r = results->package.elements + 1; in adxl_decode()
122 cnt = r->package.count; in adxl_decode()
123 if (cnt != adxl_count) { in adxl_decode()
125 return -EINVAL; in adxl_decode()
127 r = r->package.elements; in adxl_decode()
129 for (i = 0; i < cnt; i++) in adxl_decode()
148 return -ENODEV; in adxl_init()
153 return -ENODEV; in adxl_init()
160 return -ENODEV; in adxl_init()
166 return -ENODEV; in adxl_init()
169 p = params->package.elements + 1; in adxl_init()
170 adxl_count = p->package.count; in adxl_init()
174 return -ENODEV; in adxl_init()
176 p = p->package.elements; in adxl_init()
184 return -ENOMEM; in adxl_init()