chipset_dev 99 drivers/visorbus/visorchipset.c static struct visorchipset_device *chipset_dev; chipset_dev 116 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 134 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 151 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 171 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 188 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 205 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 221 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 238 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 254 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 272 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 306 drivers/visorbus/visorchipset.c return visorchannel_signalinsert(chipset_dev->controlvm_channel, chipset_dev 351 drivers/visorbus/visorchipset.c return visorchannel_signalinsert(chipset_dev->controlvm_channel, chipset_dev 367 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 372 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 377 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 381 drivers/visorbus/visorchipset.c err = visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 386 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 393 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 397 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 403 drivers/visorbus/visorchipset.c err = visorchannel_write(chipset_dev->controlvm_channel, chipset_dev 407 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 413 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 443 drivers/visorbus/visorchipset.c return visorchannel_signalinsert(chipset_dev->controlvm_channel, chipset_dev 458 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 629 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 649 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 655 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 662 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 682 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 778 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, "failed: %d\n", err); chipset_dev 1056 drivers/visorbus/visorchipset.c return kobject_uevent_env(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1116 drivers/visorbus/visorchipset.c res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, KOBJ_ONLINE); chipset_dev 1136 drivers/visorbus/visorchipset.c res = kobject_uevent_env(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1152 drivers/visorbus/visorchipset.c int res = kobject_uevent(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1226 drivers/visorbus/visorchipset.c if (visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 1230 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1235 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, "invalid count\n"); chipset_dev 1239 drivers/visorbus/visorchipset.c if (visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 1243 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1248 drivers/visorbus/visorchipset.c if (visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 1252 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1257 drivers/visorbus/visorchipset.c if (visorchannel_read(chipset_dev->controlvm_channel, chipset_dev 1262 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1268 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1275 drivers/visorbus/visorchipset.c dev_err(&chipset_dev->acpi_device->dev, chipset_dev 1308 drivers/visorbus/visorchipset.c chipset_dev->controlvm_payload_bytes_buffered -= ctx->param_bytes; chipset_dev 1323 drivers/visorbus/visorchipset.c if ((chipset_dev->controlvm_payload_bytes_buffered + bytes) > chipset_dev 1341 drivers/visorbus/visorchipset.c chipset_dev->controlvm_payload_bytes_buffered += ctx->param_bytes; chipset_dev 1387 drivers/visorbus/visorchipset.c err = visorchannel_signalinsert(chipset_dev->controlvm_channel, chipset_dev 1461 drivers/visorbus/visorchipset.c int err = visorchannel_signalremove(chipset_dev->controlvm_channel, chipset_dev 1507 drivers/visorbus/visorchipset.c err = visorchannel_signalremove(chipset_dev->controlvm_channel, chipset_dev 1513 drivers/visorbus/visorchipset.c if (chipset_dev->controlvm_pending_msg_valid) { chipset_dev 1518 drivers/visorbus/visorchipset.c inmsg = chipset_dev->controlvm_pending_msg; chipset_dev 1519 drivers/visorbus/visorchipset.c chipset_dev->controlvm_pending_msg_valid = false; chipset_dev 1525 drivers/visorbus/visorchipset.c chipset_dev->most_recent_message_jiffies = jiffies; chipset_dev 1528 drivers/visorbus/visorchipset.c (chipset_dev->controlvm_channel)); chipset_dev 1530 drivers/visorbus/visorchipset.c chipset_dev->controlvm_pending_msg = inmsg; chipset_dev 1531 drivers/visorbus/visorchipset.c chipset_dev->controlvm_pending_msg_valid = true; chipset_dev 1546 drivers/visorbus/visorchipset.c if (time_after(jiffies, chipset_dev->most_recent_message_jiffies + chipset_dev 1552 drivers/visorbus/visorchipset.c if (chipset_dev->poll_jiffies != POLLJIFFIES_CONTROLVM_SLOW) chipset_dev 1553 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies = POLLJIFFIES_CONTROLVM_SLOW; chipset_dev 1555 drivers/visorbus/visorchipset.c if (chipset_dev->poll_jiffies != POLLJIFFIES_CONTROLVM_FAST) chipset_dev 1556 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies = POLLJIFFIES_CONTROLVM_FAST; chipset_dev 1558 drivers/visorbus/visorchipset.c schedule_delayed_work(&chipset_dev->periodic_controlvm_work, chipset_dev 1559 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies); chipset_dev 1567 drivers/visorbus/visorchipset.c chipset_dev = kzalloc(sizeof(*chipset_dev), GFP_KERNEL); chipset_dev 1568 drivers/visorbus/visorchipset.c if (!chipset_dev) chipset_dev 1570 drivers/visorbus/visorchipset.c err = controlvm_channel_create(chipset_dev); chipset_dev 1573 drivers/visorbus/visorchipset.c acpi_device->driver_data = chipset_dev; chipset_dev 1574 drivers/visorbus/visorchipset.c chipset_dev->acpi_device = acpi_device; chipset_dev 1575 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies = POLLJIFFIES_CONTROLVM_FAST; chipset_dev 1576 drivers/visorbus/visorchipset.c err = sysfs_create_groups(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1580 drivers/visorbus/visorchipset.c controlvm_channel = chipset_dev->controlvm_channel; chipset_dev 1582 drivers/visorbus/visorchipset.c &chipset_dev->acpi_device->dev, chipset_dev 1591 drivers/visorbus/visorchipset.c INIT_DELAYED_WORK(&chipset_dev->periodic_controlvm_work, chipset_dev 1594 drivers/visorbus/visorchipset.c INIT_DELAYED_WORK(&chipset_dev->periodic_controlvm_work, chipset_dev 1596 drivers/visorbus/visorchipset.c chipset_dev->most_recent_message_jiffies = jiffies; chipset_dev 1597 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies = POLLJIFFIES_CONTROLVM_FAST; chipset_dev 1598 drivers/visorbus/visorchipset.c schedule_delayed_work(&chipset_dev->periodic_controlvm_work, chipset_dev 1599 drivers/visorbus/visorchipset.c chipset_dev->poll_jiffies); chipset_dev 1606 drivers/visorbus/visorchipset.c cancel_delayed_work_sync(&chipset_dev->periodic_controlvm_work); chipset_dev 1609 drivers/visorbus/visorchipset.c sysfs_remove_groups(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1613 drivers/visorbus/visorchipset.c visorchannel_destroy(chipset_dev->controlvm_channel); chipset_dev 1616 drivers/visorbus/visorchipset.c kfree(chipset_dev); chipset_dev 1626 drivers/visorbus/visorchipset.c cancel_delayed_work_sync(&chipset_dev->periodic_controlvm_work); chipset_dev 1627 drivers/visorbus/visorchipset.c sysfs_remove_groups(&chipset_dev->acpi_device->dev.kobj, chipset_dev 1629 drivers/visorbus/visorchipset.c visorchannel_destroy(chipset_dev->controlvm_channel); chipset_dev 1630 drivers/visorbus/visorchipset.c kfree(chipset_dev);