search for: did_kick

Displaying 2 results from an estimated 2 matches for "did_kick".

2019 Feb 22
0
[PATCH] tpm: Add driver for TPM over virtio
....." or "waiting for..." with no > + * trailing newline. It will appear in log output. > + * > + * Returns zero for success, otherwise negative error. > + */ > +static int vtpm_wait_for_buffer(struct vtpm_device *dev, const char *why) > +{ > + int ret; > + bool did_kick; > + struct tpm_chip *chip = dev->chip; > + unsigned long deadline = jiffies + TPM_VIRTIO_TIMEOUT; > + > + /* Kick queue if needed. */ > + if (dev->needs_kick) { > + did_kick = virtqueue_kick(dev->vq); > + if (!did_kick) { > + dev_notice(&chip->dev, &quot...
2019 Feb 22
0
[PATCH] tpm: Add driver for TPM over virtio
...g newline. It will appear in log output. > >> + * > >> + * Returns zero for success, otherwise negative error. > >> + */ > >> +static int vtpm_wait_for_buffer(struct vtpm_device *dev, const char *why) > >> +{ > >> + int ret; > >> + bool did_kick; > >> + struct tpm_chip *chip = dev->chip; > >> + unsigned long deadline = jiffies + TPM_VIRTIO_TIMEOUT; > >> + > >> + /* Kick queue if needed. */ > >> + if (dev->needs_kick) { > >> + did_kick = virtqueue_kick(dev->vq); > >> +...