Lines Matching refs:odvp
62 int *odvp; member
71 int odvp; member
359 return sprintf(buf, "%d\n", odvp_attr->priv->odvp[odvp_attr->odvp]); in odvp_show()
374 kfree(priv->odvp); in cleanup_odvp()
380 struct acpi_buffer odvp = { ACPI_ALLOCATE_BUFFER, NULL }; in evaluate_odvp() local
385 status = acpi_evaluate_object(priv->adev->handle, "ODVP", NULL, &odvp); in evaluate_odvp()
391 obj = odvp.pointer; in evaluate_odvp()
397 if (priv->odvp == NULL) { in evaluate_odvp()
399 priv->odvp = kmalloc_array(priv->odvp_count, sizeof(int), in evaluate_odvp()
401 if (!priv->odvp) { in evaluate_odvp()
416 struct odvp_attr *odvp = &priv->odvp_attrs[i]; in evaluate_odvp() local
418 sysfs_attr_init(&odvp->attr.attr); in evaluate_odvp()
419 odvp->priv = priv; in evaluate_odvp()
420 odvp->odvp = i; in evaluate_odvp()
421 odvp->attr.attr.name = kasprintf(GFP_KERNEL, in evaluate_odvp()
424 if (!odvp->attr.attr.name) { in evaluate_odvp()
428 odvp->attr.attr.mode = 0444; in evaluate_odvp()
429 odvp->attr.show = odvp_show; in evaluate_odvp()
430 odvp->attr.store = NULL; in evaluate_odvp()
432 &odvp->attr.attr); in evaluate_odvp()
440 priv->odvp[i] = obj->package.elements[i].integer.value; in evaluate_odvp()