Lines Matching refs:rv
255 int rv;
257 rv = xenbus_setup_ring(dev, GFP_KERNEL, (void **)&priv->shr, 1,
259 if (rv < 0)
260 return rv;
262 rv = xenbus_alloc_evtchn(dev, &priv->evtchn);
263 if (rv)
264 return rv;
266 rv = bind_evtchn_to_irqhandler(priv->evtchn, tpmif_interrupt, 0,
268 if (rv <= 0) {
269 xenbus_dev_fatal(dev, rv, "allocating TPM irq");
270 return rv;
272 priv->irq = rv;
275 rv = xenbus_transaction_start(&xbt);
276 if (rv) {
277 xenbus_dev_fatal(dev, rv, "starting transaction");
278 return rv;
281 rv = xenbus_printf(xbt, dev->nodename,
283 if (rv) {
288 rv = xenbus_printf(xbt, dev->nodename, "event-channel", "%u",
290 if (rv) {
295 rv = xenbus_printf(xbt, dev->nodename, "feature-protocol-v2", "1");
296 if (rv) {
301 rv = xenbus_transaction_end(xbt, 0);
302 if (rv == -EAGAIN)
304 if (rv) {
305 xenbus_dev_fatal(dev, rv, "completing transaction");
306 return rv;
316 xenbus_dev_error(dev, rv, "%s", message);
318 return rv;
338 int rv;
346 rv = setup_chip(&dev->dev, priv);
347 if (rv) {
349 return rv;
352 rv = setup_ring(dev, priv);
353 if (rv) {
355 return rv;