Lines Matching refs:model
87 /* For each model, all features implemented,
99 char *bt_status; /* no model currently supports this__? */
150 } model; /* Models currently supported */
446 * This header is made available to allow proper configuration given model,
526 * of features supported by a given model. For now, 0x0100 or 0x0800
791 if (hotk->model == L3H) {
819 } else if (hotk->model == F3Sa) {
843 if (hotk->model == L2D)
858 if (hotk->model != L3H) {
1204 * Match the model string to the list of supported models. Return END_MODEL if
1205 * no match or model is NULL.
1207 static int asus_model_match(char *model)
1209 if (model == NULL)
1212 if (strncmp(model, "L3D", 3) == 0)
1214 else if (strncmp(model, "L2E", 3) == 0 ||
1215 strncmp(model, "L3H", 3) == 0 || strncmp(model, "L5D", 3) == 0)
1217 else if (strncmp(model, "L3", 2) == 0 || strncmp(model, "L2B", 3) == 0)
1219 else if (strncmp(model, "L8L", 3) == 0)
1221 else if (strncmp(model, "L4R", 3) == 0)
1223 else if (strncmp(model, "M6N", 3) == 0 || strncmp(model, "W3N", 3) == 0)
1225 else if (strncmp(model, "M6R", 3) == 0 || strncmp(model, "A3G", 3) == 0)
1227 else if (strncmp(model, "M2N", 3) == 0 ||
1228 strncmp(model, "M3N", 3) == 0 ||
1229 strncmp(model, "M5N", 3) == 0 ||
1230 strncmp(model, "S1N", 3) == 0 ||
1231 strncmp(model, "S5N", 3) == 0)
1233 else if (strncmp(model, "M1", 2) == 0)
1235 else if (strncmp(model, "M2", 2) == 0 || strncmp(model, "L4E", 3) == 0)
1237 else if (strncmp(model, "L2", 2) == 0)
1239 else if (strncmp(model, "L8", 2) == 0)
1241 else if (strncmp(model, "D1", 2) == 0)
1243 else if (strncmp(model, "A1", 2) == 0)
1245 else if (strncmp(model, "A2", 2) == 0)
1247 else if (strncmp(model, "J1", 2) == 0)
1249 else if (strncmp(model, "L5", 2) == 0)
1251 else if (strncmp(model, "A4G", 3) == 0)
1253 else if (strncmp(model, "W1N", 3) == 0)
1255 else if (strncmp(model, "W3V", 3) == 0)
1257 else if (strncmp(model, "W5A", 3) == 0)
1259 else if (strncmp(model, "R1F", 3) == 0)
1261 else if (strncmp(model, "A4S", 3) == 0)
1263 else if (strncmp(model, "F3Sa", 4) == 0)
1276 union acpi_object *model = NULL;
1307 * Try to match the object returned by INIT to the specific model.
1313 model = buffer.pointer;
1314 switch (model->type) {
1316 string = model->string.pointer;
1319 string = model->buffer.pointer;
1322 kfree(model);
1323 model = NULL;
1327 hotk->model = asus_model_match(string);
1328 if (hotk->model == END_MODEL) { /* match failed */
1331 hotk->model = P30;
1334 hotk->methods = &model_conf[hotk->model];
1335 kfree(model);
1338 hotk->model = M2E;
1339 printk(KERN_NOTICE " unsupported model %s, trying "
1343 kfree(model);
1347 hotk->methods = &model_conf[hotk->model];
1348 printk(KERN_NOTICE " %s model detected, supported\n", string);
1350 /* Sort of per-model blacklist */
1377 kfree(model);